BTCardRequest.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #import "BTCard.h"
  2. #import <Foundation/Foundation.h>
  3. NS_ASSUME_NONNULL_BEGIN
  4. /**
  5. Contains information about a card to tokenize
  6. */
  7. @interface BTCardRequest : NSObject
  8. /**
  9. Initialize with an instance of `BTCard`.
  10. @param card The `BTCard` to initialize with.
  11. */
  12. - (instancetype)initWithCard:(BTCard *)card;
  13. /**
  14. The `BTCard` associated with this instance.
  15. */
  16. @property (nonatomic, strong) BTCard *card;
  17. #pragma mark - UnionPay properties
  18. /**
  19. The mobile phone number to use to verify the enrollment via SMS.
  20. */
  21. @property (nonatomic, copy, nullable) NSString *mobilePhoneNumber;
  22. /**
  23. The country code for the mobile phone number. This string should only contain digits.
  24. @note By default, this is set to 62.
  25. */
  26. @property (nonatomic, copy, nullable) NSString *mobileCountryCode;
  27. /**
  28. The enrollment verification code sent via SMS to the mobile phone number. The code is needed to tokenize a UnionPay card that requires enrollment.
  29. */
  30. @property (nonatomic, copy, nullable) NSString *smsCode;
  31. /**
  32. The UnionPay enrollment ID
  33. */
  34. @property (nonatomic, copy, nullable) NSString *enrollmentID;
  35. @end
  36. NS_ASSUME_NONNULL_END