BTLocalPaymentResult.m 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #import "BTLocalPaymentResult.h"
  2. #if __has_include("BraintreeCore.h")
  3. #import "BraintreeCore.h"
  4. #else
  5. #import <BraintreeCore/BraintreeCore.h>
  6. #endif
  7. @implementation BTLocalPaymentResult
  8. - (instancetype)initWithNonce:(NSString *)nonce
  9. description:(NSString *)description
  10. type:(NSString *)type
  11. email:(NSString *)email
  12. firstName:(NSString *)firstName
  13. lastName:(NSString *)lastName
  14. phone:(NSString *)phone
  15. billingAddress:(BTPostalAddress *)billingAddress
  16. shippingAddress:(BTPostalAddress *)shippingAddress
  17. clientMetadataId:(NSString *)clientMetadataId
  18. payerId:(NSString *)payerId
  19. {
  20. if (self = [super init]) {
  21. _nonce = nonce;
  22. _localizedDescription = description;
  23. _type = type;
  24. _email = email;
  25. _firstName = firstName;
  26. _lastName = lastName;
  27. _phone = phone;
  28. _billingAddress = [billingAddress copy];
  29. _shippingAddress = [shippingAddress copy];
  30. _clientMetadataId = clientMetadataId;
  31. _payerId = payerId;
  32. }
  33. return self;
  34. }
  35. @end