BTCardNonce_Internal.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #if __has_include(<Braintree/BraintreeCard.h>)
  2. #import <Braintree/BTCardNonce.h>
  3. #else
  4. #import <BraintreeCard/BTCardNonce.h>
  5. #endif
  6. @class BTJSON;
  7. NS_ASSUME_NONNULL_BEGIN
  8. @interface BTCardNonce ()
  9. - (instancetype)initWithNonce:(nonnull NSString *)nonce
  10. cardNetwork:(BTCardNetwork)cardNetwork
  11. expirationMonth:(nullable NSString *)expirationMonth
  12. expirationYear:(nullable NSString *)expirationYear
  13. cardholderName:(nullable NSString *)cardholderName
  14. lastTwo:(nullable NSString *)lastTwo
  15. lastFour:(nullable NSString *)lastFour
  16. isDefault:(BOOL)isDefault
  17. cardJSON:(BTJSON *)cardJSON
  18. authInsightJSON:(nullable BTJSON *)authInsightJSON;
  19. /**
  20. Create a `BTCardNonce` object from JSON.
  21. */
  22. + (instancetype)cardNonceWithJSON:(BTJSON *)cardJSON;
  23. /**
  24. Create a `BTCardNonce` object from GraphQL JSON.
  25. */
  26. + (instancetype)cardNonceWithGraphQLJSON:(BTJSON *)json;
  27. @end
  28. NS_ASSUME_NONNULL_END