braintree 4.2.0 → 4.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/braintree.gemspec +1 -1
  3. data/lib/braintree/apple_pay_card.rb +9 -0
  4. data/lib/braintree/enriched_customer_data.rb +21 -0
  5. data/lib/braintree/error_codes.rb +1 -0
  6. data/lib/braintree/google_pay_card.rb +9 -0
  7. data/lib/braintree/http.rb +1 -0
  8. data/lib/braintree/local_payment_expired.rb +21 -0
  9. data/lib/braintree/local_payment_funded.rb +22 -0
  10. data/lib/braintree/payment_method_customer_data_updated_metadata.rb +24 -0
  11. data/lib/braintree/plan.rb +20 -0
  12. data/lib/braintree/plan_gateway.rb +100 -0
  13. data/lib/braintree/successful_result.rb +1 -0
  14. data/lib/braintree/transaction/paypal_details.rb +2 -0
  15. data/lib/braintree/transaction_gateway.rb +2 -2
  16. data/lib/braintree/transaction_review.rb +18 -0
  17. data/lib/braintree/venmo_profile_data.rb +23 -0
  18. data/lib/braintree/version.rb +1 -1
  19. data/lib/braintree/webhook_notification.rb +14 -0
  20. data/lib/braintree/webhook_testing_gateway.rb +91 -17
  21. data/lib/braintree.rb +5 -0
  22. data/spec/integration/braintree/customer_spec.rb +27 -0
  23. data/spec/integration/braintree/merchant_account_spec.rb +3 -3
  24. data/spec/integration/braintree/payment_method_nonce_spec.rb +2 -1
  25. data/spec/integration/braintree/payment_method_spec.rb +27 -0
  26. data/spec/integration/braintree/plan_spec.rb +82 -0
  27. data/spec/integration/braintree/transaction_spec.rb +28 -0
  28. data/spec/unit/braintree/enriched_customer_data_spec.rb +32 -0
  29. data/spec/unit/braintree/http_spec.rb +2 -0
  30. data/spec/unit/braintree/local_payment_expired_spec.rb +24 -0
  31. data/spec/unit/braintree/local_payment_funded_spec.rb +34 -0
  32. data/spec/unit/braintree/payment_method_customer_data_updated_metadata_spec.rb +45 -0
  33. data/spec/unit/braintree/transaction/paypal_details_spec.rb +4 -0
  34. data/spec/unit/braintree/transaction_spec.rb +3 -3
  35. data/spec/unit/braintree/venmo_profile_data_spec.rb +32 -0
  36. data/spec/unit/braintree/webhook_notification_spec.rb +78 -1
  37. metadata +15 -4
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.2.0
4
+ version: 4.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Braintree
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-21 00:00:00.000000000 Z
11
+ date: 2022-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder
@@ -92,6 +92,7 @@ files:
92
92
  - lib/braintree/dispute_search.rb
93
93
  - lib/braintree/document_upload.rb
94
94
  - lib/braintree/document_upload_gateway.rb
95
+ - lib/braintree/enriched_customer_data.rb
95
96
  - lib/braintree/error_codes.rb
96
97
  - lib/braintree/error_result.rb
97
98
  - lib/braintree/errors.rb
@@ -104,6 +105,8 @@ files:
104
105
  - lib/braintree/graphql_client.rb
105
106
  - lib/braintree/http.rb
106
107
  - lib/braintree/local_payment_completed.rb
108
+ - lib/braintree/local_payment_expired.rb
109
+ - lib/braintree/local_payment_funded.rb
107
110
  - lib/braintree/local_payment_reversed.rb
108
111
  - lib/braintree/merchant.rb
109
112
  - lib/braintree/merchant_account.rb
@@ -120,6 +123,7 @@ files:
120
123
  - lib/braintree/paginated_result.rb
121
124
  - lib/braintree/payment_instrument_type.rb
122
125
  - lib/braintree/payment_method.rb
126
+ - lib/braintree/payment_method_customer_data_updated_metadata.rb
123
127
  - lib/braintree/payment_method_gateway.rb
124
128
  - lib/braintree/payment_method_nonce.rb
125
129
  - lib/braintree/payment_method_nonce_details.rb
@@ -174,6 +178,7 @@ files:
174
178
  - lib/braintree/transaction_gateway.rb
175
179
  - lib/braintree/transaction_line_item.rb
176
180
  - lib/braintree/transaction_line_item_gateway.rb
181
+ - lib/braintree/transaction_review.rb
177
182
  - lib/braintree/transaction_search.rb
178
183
  - lib/braintree/unknown_payment_method.rb
179
184
  - lib/braintree/us_bank_account.rb
@@ -185,6 +190,7 @@ files:
185
190
  - lib/braintree/validation_error.rb
186
191
  - lib/braintree/validation_error_collection.rb
187
192
  - lib/braintree/venmo_account.rb
193
+ - lib/braintree/venmo_profile_data.rb
188
194
  - lib/braintree/version.rb
189
195
  - lib/braintree/visa_checkout_card.rb
190
196
  - lib/braintree/webhook_notification.rb
@@ -266,12 +272,16 @@ files:
266
272
  - spec/unit/braintree/dispute_search_spec.rb
267
273
  - spec/unit/braintree/dispute_spec.rb
268
274
  - spec/unit/braintree/document_upload_spec.rb
275
+ - spec/unit/braintree/enriched_customer_data_spec.rb
269
276
  - spec/unit/braintree/error_result_spec.rb
270
277
  - spec/unit/braintree/errors_spec.rb
271
278
  - spec/unit/braintree/http_spec.rb
272
279
  - spec/unit/braintree/local_payment_completed_spec.rb
280
+ - spec/unit/braintree/local_payment_expired_spec.rb
281
+ - spec/unit/braintree/local_payment_funded_spec.rb
273
282
  - spec/unit/braintree/merchant_account_spec.rb
274
283
  - spec/unit/braintree/modification_spec.rb
284
+ - spec/unit/braintree/payment_method_customer_data_updated_metadata_spec.rb
275
285
  - spec/unit/braintree/payment_method_nonce_details_payer_info_spec.rb
276
286
  - spec/unit/braintree/payment_method_nonce_details_spec.rb
277
287
  - spec/unit/braintree/payment_method_nonce_spec.rb
@@ -299,6 +309,7 @@ files:
299
309
  - spec/unit/braintree/util_spec.rb
300
310
  - spec/unit/braintree/validation_error_collection_spec.rb
301
311
  - spec/unit/braintree/validation_error_spec.rb
312
+ - spec/unit/braintree/venmo_profile_data_spec.rb
302
313
  - spec/unit/braintree/webhook_notification_spec.rb
303
314
  - spec/unit/braintree/xml/libxml_spec.rb
304
315
  - spec/unit/braintree/xml/parser_spec.rb
@@ -313,7 +324,7 @@ metadata:
313
324
  bug_tracker_uri: https://github.com/braintree/braintree_ruby/issues
314
325
  changelog_uri: https://github.com/braintree/braintree_ruby/blob/master/CHANGELOG.md
315
326
  source_code_uri: https://github.com/braintree/braintree_ruby
316
- documentation_uri: https://developers.braintreepayments.com/
327
+ documentation_uri: https://developer.paypal.com/braintree/docs
317
328
  post_install_message:
318
329
  rdoc_options: []
319
330
  require_paths:
@@ -329,7 +340,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
329
340
  - !ruby/object:Gem::Version
330
341
  version: '0'
331
342
  requirements: []
332
- rubygems_version: 3.2.20
343
+ rubygems_version: 3.3.7
333
344
  signing_key:
334
345
  specification_version: 4
335
346
  summary: Braintree Ruby Server SDK