braintree 4.15.0 → 4.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/lib/braintree/account_updater_daily_report.rb +3 -3
  3. data/lib/braintree/ach_mandate.rb +1 -1
  4. data/lib/braintree/add_on_gateway.rb +1 -1
  5. data/lib/braintree/address.rb +4 -4
  6. data/lib/braintree/address_gateway.rb +5 -5
  7. data/lib/braintree/advanced_search.rb +10 -10
  8. data/lib/braintree/apple_pay.rb +3 -3
  9. data/lib/braintree/apple_pay_card.rb +3 -3
  10. data/lib/braintree/apple_pay_options.rb +3 -3
  11. data/lib/braintree/authorization_adjustment.rb +3 -3
  12. data/lib/braintree/base_module.rb +1 -1
  13. data/lib/braintree/bin_data.rb +2 -2
  14. data/lib/braintree/client_token_gateway.rb +1 -1
  15. data/lib/braintree/configuration.rb +22 -22
  16. data/lib/braintree/connected_merchant_paypal_status_changed.rb +1 -1
  17. data/lib/braintree/connected_merchant_status_transitioned.rb +1 -1
  18. data/lib/braintree/credit_card.rb +9 -9
  19. data/lib/braintree/credit_card_gateway.rb +8 -8
  20. data/lib/braintree/credit_card_verification.rb +3 -3
  21. data/lib/braintree/credit_card_verification_search.rb +1 -1
  22. data/lib/braintree/customer.rb +5 -9
  23. data/lib/braintree/customer_gateway.rb +7 -7
  24. data/lib/braintree/customer_search.rb +1 -1
  25. data/lib/braintree/descriptor.rb +1 -1
  26. data/lib/braintree/digest.rb +1 -1
  27. data/lib/braintree/disbursement.rb +5 -5
  28. data/lib/braintree/discount_gateway.rb +1 -1
  29. data/lib/braintree/dispute/evidence.rb +1 -1
  30. data/lib/braintree/dispute/paypal_message.rb +1 -1
  31. data/lib/braintree/dispute/status_history.rb +1 -1
  32. data/lib/braintree/dispute/transaction.rb +1 -1
  33. data/lib/braintree/dispute/transaction_details.rb +1 -1
  34. data/lib/braintree/dispute.rb +3 -3
  35. data/lib/braintree/dispute_gateway.rb +1 -1
  36. data/lib/braintree/dispute_search.rb +1 -1
  37. data/lib/braintree/document_upload.rb +2 -2
  38. data/lib/braintree/document_upload_gateway.rb +3 -3
  39. data/lib/braintree/enriched_customer_data.rb +2 -2
  40. data/lib/braintree/error_result.rb +2 -3
  41. data/lib/braintree/errors.rb +3 -3
  42. data/lib/braintree/exceptions.rb +1 -2
  43. data/lib/braintree/exchange_rate.rb +2 -2
  44. data/lib/braintree/exchange_rate_quote.rb +3 -3
  45. data/lib/braintree/exchange_rate_quote_gateway.rb +1 -1
  46. data/lib/braintree/exchange_rate_quote_input.rb +3 -3
  47. data/lib/braintree/exchange_rate_quote_request.rb +3 -3
  48. data/lib/braintree/exchange_rate_quote_response.rb +3 -3
  49. data/lib/braintree/facilitated_details.rb +1 -1
  50. data/lib/braintree/facilitator_details.rb +1 -1
  51. data/lib/braintree/google_pay_card.rb +3 -3
  52. data/lib/braintree/granted_payment_instrument_update.rb +1 -1
  53. data/lib/braintree/graphql_client.rb +1 -1
  54. data/lib/braintree/http.rb +1 -1
  55. data/lib/braintree/local_payment_completed.rb +2 -2
  56. data/lib/braintree/local_payment_expired.rb +2 -2
  57. data/lib/braintree/local_payment_funded.rb +2 -2
  58. data/lib/braintree/local_payment_reversed.rb +2 -2
  59. data/lib/braintree/merchant.rb +3 -3
  60. data/lib/braintree/merchant_account.rb +2 -2
  61. data/lib/braintree/merchant_account_gateway.rb +9 -9
  62. data/lib/braintree/meta_checkout_card.rb +89 -0
  63. data/lib/braintree/meta_checkout_token.rb +88 -0
  64. data/lib/braintree/modification.rb +3 -3
  65. data/lib/braintree/oauth_credentials.rb +3 -3
  66. data/lib/braintree/paginated_collection.rb +2 -2
  67. data/lib/braintree/paginated_result.rb +1 -1
  68. data/lib/braintree/payment_instrument_type.rb +2 -0
  69. data/lib/braintree/payment_method_customer_data_updated_metadata.rb +2 -2
  70. data/lib/braintree/payment_method_gateway.rb +8 -7
  71. data/lib/braintree/payment_method_nonce.rb +4 -4
  72. data/lib/braintree/payment_method_nonce_details.rb +1 -1
  73. data/lib/braintree/payment_method_nonce_details_payer_info.rb +1 -1
  74. data/lib/braintree/payment_method_nonce_gateway.rb +1 -1
  75. data/lib/braintree/paypal_account.rb +1 -2
  76. data/lib/braintree/paypal_account_gateway.rb +5 -5
  77. data/lib/braintree/plan.rb +1 -1
  78. data/lib/braintree/plan_gateway.rb +2 -2
  79. data/lib/braintree/resource_collection.rb +2 -2
  80. data/lib/braintree/revoked_payment_method_metadata.rb +1 -1
  81. data/lib/braintree/risk_data.rb +1 -1
  82. data/lib/braintree/samsung_pay_card.rb +5 -5
  83. data/lib/braintree/sepa_direct_debit_account.rb +2 -2
  84. data/lib/braintree/sepa_direct_debit_account_nonce_details.rb +1 -1
  85. data/lib/braintree/settlement_batch_summary_gateway.rb +1 -1
  86. data/lib/braintree/sha256_digest.rb +1 -1
  87. data/lib/braintree/subscription/status_details.rb +1 -1
  88. data/lib/braintree/subscription.rb +2 -2
  89. data/lib/braintree/subscription_gateway.rb +6 -6
  90. data/lib/braintree/subscription_search.rb +1 -1
  91. data/lib/braintree/successful_result.rb +2 -2
  92. data/lib/braintree/test/credit_card.rb +7 -10
  93. data/lib/braintree/test/merchant_account.rb +1 -1
  94. data/lib/braintree/test/nonce.rb +3 -0
  95. data/lib/braintree/test/transaction_amounts.rb +2 -3
  96. data/lib/braintree/testing_gateway.rb +1 -1
  97. data/lib/braintree/three_d_secure_info.rb +1 -1
  98. data/lib/braintree/transaction/address_details.rb +1 -1
  99. data/lib/braintree/transaction/credit_card_details.rb +1 -1
  100. data/lib/braintree/transaction/customer_details.rb +1 -1
  101. data/lib/braintree/transaction/disbursement_details.rb +1 -1
  102. data/lib/braintree/transaction/meta_checkout_card_details.rb +52 -0
  103. data/lib/braintree/transaction/meta_checkout_token_details.rb +54 -0
  104. data/lib/braintree/transaction/samsung_pay_card_details.rb +1 -1
  105. data/lib/braintree/transaction/sepa_direct_debit_account_details.rb +1 -1
  106. data/lib/braintree/transaction/status_details.rb +1 -1
  107. data/lib/braintree/transaction/subscription_details.rb +1 -1
  108. data/lib/braintree/transaction/us_bank_account_details.rb +1 -1
  109. data/lib/braintree/transaction/visa_checkout_card_details.rb +1 -1
  110. data/lib/braintree/transaction.rb +22 -16
  111. data/lib/braintree/transaction_gateway.rb +9 -10
  112. data/lib/braintree/transaction_line_item.rb +2 -2
  113. data/lib/braintree/transaction_line_item_gateway.rb +1 -1
  114. data/lib/braintree/transaction_review.rb +1 -1
  115. data/lib/braintree/transaction_search.rb +1 -1
  116. data/lib/braintree/unknown_payment_method.rb +1 -1
  117. data/lib/braintree/us_bank_account.rb +2 -2
  118. data/lib/braintree/us_bank_account_verification.rb +23 -15
  119. data/lib/braintree/us_bank_account_verification_search.rb +1 -1
  120. data/lib/braintree/util.rb +3 -3
  121. data/lib/braintree/validation_error.rb +1 -1
  122. data/lib/braintree/validation_error_collection.rb +3 -3
  123. data/lib/braintree/venmo_account.rb +3 -3
  124. data/lib/braintree/venmo_profile_data.rb +6 -4
  125. data/lib/braintree/version.rb +1 -1
  126. data/lib/braintree/visa_checkout_card.rb +7 -7
  127. data/lib/braintree/webhook_notification.rb +2 -2
  128. data/lib/braintree/webhook_notification_gateway.rb +3 -3
  129. data/lib/braintree/webhook_testing.rb +1 -1
  130. data/lib/braintree/webhook_testing_gateway.rb +1 -1
  131. data/lib/braintree/xml/generator.rb +1 -1
  132. data/lib/braintree/xml/libxml.rb +1 -1
  133. data/lib/braintree/xml/parser.rb +2 -2
  134. data/lib/braintree/xml/rexml.rb +2 -2
  135. data/lib/braintree/xml.rb +1 -1
  136. data/lib/braintree.rb +4 -1
  137. data/spec/integration/braintree/dispute_search_spec.rb +0 -1
  138. data/spec/integration/braintree/payment_method_nonce_spec.rb +20 -0
  139. data/spec/integration/braintree/payment_method_us_bank_account_spec.rb +72 -0
  140. data/spec/integration/braintree/transaction_search_spec.rb +27 -0
  141. data/spec/integration/braintree/transaction_spec.rb +192 -66
  142. data/spec/unit/braintree/enriched_customer_data_spec.rb +9 -0
  143. data/spec/unit/braintree/http_spec.rb +1 -1
  144. data/spec/unit/braintree/meta_checkout_card_details_spec.rb +60 -0
  145. data/spec/unit/braintree/meta_checkout_card_spec.rb +60 -0
  146. data/spec/unit/braintree/meta_checkout_token_details_spec.rb +63 -0
  147. data/spec/unit/braintree/meta_checkout_token_spec.rb +63 -0
  148. data/spec/unit/braintree/transaction_gateway_spec.rb +30 -1
  149. data/spec/unit/braintree/us_bank_account_verification_spec.rb +5 -0
  150. data/spec/unit/braintree/venmo_profile_data_spec.rb +11 -0
  151. metadata +10 -2
@@ -12,12 +12,21 @@ describe Braintree::VenmoProfileData do
12
12
  describe "self._new" do
13
13
  it "initializes the object with the appropriate attributes set" do
14
14
 
15
+ address = {
16
+ street_address: "a-street-address",
17
+ extended_address: "an-extended-address",
18
+ locality: "a-locality",
19
+ region: "a-region",
20
+ postal_code: "a-postal-code"
21
+ }
15
22
  params = {
16
23
  username: "a-username",
17
24
  first_name: "a-first-name",
18
25
  last_name: "a-last-name",
19
26
  phone_number: "12312312343",
20
27
  email: "a-email",
28
+ billing_address: address,
29
+ shipping_address: address
21
30
  }
22
31
 
23
32
  payment_method_customer_data_updated = Braintree::VenmoProfileData._new(params)
@@ -27,6 +36,8 @@ describe Braintree::VenmoProfileData do
27
36
  expect(payment_method_customer_data_updated.last_name).to eq("a-last-name")
28
37
  expect(payment_method_customer_data_updated.phone_number).to eq("12312312343")
29
38
  expect(payment_method_customer_data_updated.email).to eq("a-email")
39
+ expect(payment_method_customer_data_updated.billing_address).to eq(address)
40
+ expect(payment_method_customer_data_updated.shipping_address).to eq(address)
30
41
  end
31
42
  end
32
43
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: braintree
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.15.0
4
+ version: 4.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Braintree
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-18 00:00:00.000000000 Z
11
+ date: 2023-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder
@@ -122,6 +122,8 @@ files:
122
122
  - lib/braintree/merchant_account/individual_details.rb
123
123
  - lib/braintree/merchant_account_gateway.rb
124
124
  - lib/braintree/merchant_gateway.rb
125
+ - lib/braintree/meta_checkout_card.rb
126
+ - lib/braintree/meta_checkout_token.rb
125
127
  - lib/braintree/modification.rb
126
128
  - lib/braintree/oauth_credentials.rb
127
129
  - lib/braintree/oauth_gateway.rb
@@ -177,6 +179,8 @@ files:
177
179
  - lib/braintree/transaction/installment.rb
178
180
  - lib/braintree/transaction/installment/adjustment.rb
179
181
  - lib/braintree/transaction/local_payment_details.rb
182
+ - lib/braintree/transaction/meta_checkout_card_details.rb
183
+ - lib/braintree/transaction/meta_checkout_token_details.rb
180
184
  - lib/braintree/transaction/payment_receipt.rb
181
185
  - lib/braintree/transaction/payment_receipt/card_present_data.rb
182
186
  - lib/braintree/transaction/payment_receipt/merchant_address.rb
@@ -302,6 +306,10 @@ files:
302
306
  - spec/unit/braintree/local_payment_expired_spec.rb
303
307
  - spec/unit/braintree/local_payment_funded_spec.rb
304
308
  - spec/unit/braintree/merchant_account_spec.rb
309
+ - spec/unit/braintree/meta_checkout_card_details_spec.rb
310
+ - spec/unit/braintree/meta_checkout_card_spec.rb
311
+ - spec/unit/braintree/meta_checkout_token_details_spec.rb
312
+ - spec/unit/braintree/meta_checkout_token_spec.rb
305
313
  - spec/unit/braintree/modification_spec.rb
306
314
  - spec/unit/braintree/payment_method_customer_data_updated_metadata_spec.rb
307
315
  - spec/unit/braintree/payment_method_nonce_details_payer_info_spec.rb