BTLocalPaymentResult.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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 "BTPaymentFlowResult.h"
  8. NS_ASSUME_NONNULL_BEGIN
  9. /**
  10. The result of an local payment flow
  11. */
  12. @interface BTLocalPaymentResult : BTPaymentFlowResult
  13. /**
  14. The billing address.
  15. */
  16. @property (nonatomic, nullable, readonly, strong) BTPostalAddress *billingAddress;
  17. /**
  18. Client Metadata Id associated with this transaction.
  19. */
  20. @property (nonatomic, nullable, readonly, copy) NSString *clientMetadataId;
  21. /**
  22. Payer's email address.
  23. */
  24. @property (nonatomic, nullable, readonly, copy) NSString *email;
  25. /**
  26. Payer's first name.
  27. */
  28. @property (nonatomic, nullable, readonly, copy) NSString *firstName;
  29. /**
  30. Payer's last name.
  31. */
  32. @property (nonatomic, nullable, readonly, copy) NSString *lastName;
  33. /**
  34. A localized description of the payment info.
  35. */
  36. @property (nonatomic, readonly, copy) NSString *localizedDescription;
  37. /**
  38. The one-time use payment method nonce.
  39. */
  40. @property (nonatomic, readonly, copy) NSString *nonce;
  41. /**
  42. Optional. Payer Id associated with this transaction.
  43. */
  44. @property (nonatomic, nullable, readonly, copy) NSString *payerId;
  45. /**
  46. Payer's phone number.
  47. */
  48. @property (nonatomic, nullable, readonly, copy) NSString *phone;
  49. /**
  50. The shipping address.
  51. */
  52. @property (nonatomic, nullable, readonly, strong) BTPostalAddress *shippingAddress;
  53. /**
  54. The type of the tokenized payment.
  55. */
  56. @property (nonatomic, readonly, copy) NSString *type;
  57. /**
  58. Creates a BTLocalPaymentResult.
  59. @param nonce The one-time use payment method nonce.
  60. @param description A localized description of the payment info.
  61. @param type The type of the tokenized payment.
  62. @param email Payer's email address.
  63. @param firstName Payer's first name.
  64. @param lastName Payer's last name.
  65. @param phone Payer's phone number.
  66. @param billingAddress The billing address.
  67. @param shippingAddress The shipping address.
  68. @param clientMetadataId Client Metadata Id associated with this transaction.
  69. @param payerId Payer Id associated with this transaction.
  70. */
  71. - (instancetype)initWithNonce:(NSString *)nonce
  72. description:(NSString *)description
  73. type:(NSString *)type
  74. email:(NSString *)email
  75. firstName:(NSString *)firstName
  76. lastName:(NSString *)lastName
  77. phone:(NSString *)phone
  78. billingAddress:(BTPostalAddress *)billingAddress
  79. shippingAddress:(BTPostalAddress *)shippingAddress
  80. clientMetadataId:(NSString *)clientMetadataId
  81. payerId:(NSString *)payerId;
  82. @end
  83. NS_ASSUME_NONNULL_END