BTThreeDSecureResult.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. #if __has_include("BraintreeCard.h")
  8. #import "BTCardNonce.h"
  9. #else
  10. #import <BraintreeCard/BTCardNonce.h>
  11. #endif
  12. #import "BTPaymentFlowResult.h"
  13. /**
  14. The result of a 3D Secure payment flow
  15. */
  16. @interface BTThreeDSecureResult : BTPaymentFlowResult
  17. /**
  18. True if the 3D Secure flow was successful
  19. */
  20. @property (nonatomic, assign) BOOL success DEPRECATED_MSG_ATTRIBUTE("Use `tokenizedCard.threeDSecureInfo.liabilityShiftPossible` and `tokenizedCard.threeDSecureInfo.liabilityShifted` instead.");
  21. /**
  22. Indicates whether the liability for fraud has been shifted away from the merchant
  23. */
  24. @property (nonatomic, assign) BOOL liabilityShifted DEPRECATED_MSG_ATTRIBUTE("Use `tokenizedCard.threeDSecureInfo.liabilityShifted` instead.");
  25. /**
  26. Indicates whether the card was eligible for 3D Secure
  27. */
  28. @property (nonatomic, assign) BOOL liabilityShiftPossible DEPRECATED_MSG_ATTRIBUTE("Use `tokenizedCard.threeDSecureInfo.liabilityShiftPossible` instead.");
  29. /**
  30. The `BTCardNonce` resulting from the 3D Secure flow
  31. */
  32. @property (nonatomic, strong) BTCardNonce *tokenizedCard;
  33. /**
  34. The error message when the 3D Secure flow is unsuccessful
  35. */
  36. @property (nonatomic, copy) NSString *errorMessage DEPRECATED_MSG_ATTRIBUTE("Use `tokenizedCard.threeDSecureInfo.errorMessage` instead.");
  37. /**
  38. Initialize a BTThreeDSecureResult
  39. @param JSON BTJSON used to initialize the BTThreeDSecureResult
  40. */
  41. - (instancetype)initWithJSON:(BTJSON *)JSON;
  42. @end