BTCardNonce.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #import <Foundation/Foundation.h>
  2. #if __has_include("BraintreeCore.h")
  3. #import "BraintreeCore.h"
  4. #else
  5. #import <BraintreeCore/BraintreeCore.h>
  6. #endif
  7. #import "BTThreeDSecureInfo.h"
  8. #import "BTAuthenticationInsight.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. /**
  11. Contains information about a tokenized card.
  12. */
  13. @interface BTCardNonce : BTPaymentMethodNonce
  14. /**
  15. The card network.
  16. */
  17. @property (nonatomic, readonly, assign) BTCardNetwork cardNetwork;
  18. /**
  19. The expiration month of the card, if available.
  20. */
  21. @property (nonatomic, nullable, readonly, copy) NSString *expirationMonth;
  22. /**
  23. The expiration year of the card, if available.
  24. */
  25. @property (nonatomic, nullable, readonly, copy) NSString *expirationYear;
  26. /**
  27. The name of the cardholder, if available.
  28. */
  29. @property (nonatomic, nullable, readonly, copy) NSString *cardholderName;
  30. /**
  31. The last two digits of the card, if available.
  32. */
  33. @property (nonatomic, nullable, readonly, copy) NSString *lastTwo;
  34. /**
  35. The last four digits of the card, if available.
  36. */
  37. @property (nonatomic, nullable, readonly, copy) NSString *lastFour;
  38. /**
  39. The BIN number of the card, if available.
  40. */
  41. @property (nonatomic, nullable, readonly, copy) NSString *bin;
  42. /**
  43. The BIN data for the card number associated with this nonce.
  44. */
  45. @property (nonatomic, readonly, strong) BTBinData *binData;
  46. /**
  47. The 3D Secure info for the card number associated with this nonce.
  48. */
  49. @property (nonatomic, readonly, strong) BTThreeDSecureInfo *threeDSecureInfo;
  50. /**
  51. Details about the regulatory environment and applicable customer authentication regulation
  52. for a potential transaction. This can be used to make an informed decision whether to perform
  53. 3D Secure authentication.
  54. */
  55. @property (nonatomic, nullable, readonly, strong) BTAuthenticationInsight *authenticationInsight;
  56. @end
  57. NS_ASSUME_NONNULL_END