PPDataCollector_Internal.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // PPDataCollector.h
  3. // PayPalDataCollector
  4. //
  5. // Copyright © 2015 PayPal, Inc. All rights reserved.
  6. //
  7. #import "PPDataCollector.h"
  8. @interface PPDataCollector ()
  9. /**
  10. Generates a client metadata ID using an optional pairing ID and additional options.
  11. @note This is an internal method for generating raw client metadata IDs, which is not
  12. the correct format for device data when creating a transaction.
  13. @param clientMetadataID an ID to associate with this clientMetadataID must be 10-32 chars long or null
  14. @param disableBeacon a Boolean indicating whether or not to disable the beacon feature.
  15. @param data additional key/value pairs to associate with the risk data.
  16. @return a client metadata ID to send as a header
  17. */
  18. + (nonnull NSString *)generateClientMetadataID:(nullable NSString *)clientMetadataID disableBeacon:(BOOL)disableBeacon data:(nullable NSDictionary *)data;
  19. /**
  20. Generates a client metadata ID using an optional pairing ID and additional data. Disables the beacon feature.
  21. @note This is an internal method for generating raw client metadata IDs, which is not
  22. the correct format for device data when creating a transaction.
  23. @param clientMetadataID an ID to associate with this clientMetadataID must be 10-32 chars long or null
  24. @param data additional key/value pairs to associate with the risk data.
  25. @return a client metadata ID to send as a header
  26. */
  27. + (nonnull NSString *)generateClientMetadataIDWithoutBeacon:(nullable NSString *)clientMetadataID data:(nullable NSDictionary *)data;
  28. /**
  29. Generates a client metadata ID.
  30. @note This is an internal method for generating raw client metadata IDs, which is not
  31. the correct format for device data when creating a transaction.
  32. @return a client metadata ID to send as a header
  33. */
  34. + (nonnull NSString *)generateClientMetadataID;
  35. @end