braintree 2.84.0 → 2.85.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.
- checksums.yaml +4 -4
- data/lib/braintree.rb +3 -0
- data/lib/braintree/advanced_search.rb +8 -0
- data/lib/braintree/credit_card_verification_gateway.rb +1 -1
- data/lib/braintree/error_codes.rb +6 -0
- data/lib/braintree/gateway.rb +4 -0
- data/lib/braintree/payment_method_gateway.rb +3 -1
- data/lib/braintree/us_bank_account.rb +8 -0
- data/lib/braintree/us_bank_account_verification.rb +75 -0
- data/lib/braintree/us_bank_account_verification_gateway.rb +32 -0
- data/lib/braintree/us_bank_account_verification_search.rb +19 -0
- data/lib/braintree/version.rb +1 -1
- data/lib/braintree/webhook_notification.rb +3 -0
- data/lib/braintree/webhook_testing_gateway.rb +10 -0
- data/spec/httpsd.pid +1 -1
- data/spec/integration/braintree/client_api/spec_helper.rb +33 -5
- data/spec/integration/braintree/credit_card_spec.rb +2 -2
- data/spec/integration/braintree/customer_spec.rb +9 -4
- data/spec/integration/braintree/dispute_search_spec.rb +14 -3
- data/spec/integration/braintree/payment_method_spec.rb +0 -35
- data/spec/integration/braintree/payment_method_us_bank_account_spec.rb +412 -0
- data/spec/integration/braintree/transaction_search_spec.rb +49 -51
- data/spec/integration/braintree/transaction_spec.rb +3 -93
- data/spec/integration/braintree/transaction_us_bank_account_spec.rb +432 -0
- data/spec/integration/braintree/us_bank_account_spec.rb +36 -15
- data/spec/integration/braintree/us_bank_account_verification_search_spec.rb +178 -0
- data/spec/integration/braintree/us_bank_account_verification_spec.rb +79 -0
- data/spec/spec_helper.rb +2 -1
- data/spec/unit/braintree/us_bank_account_verification_search_spec.rb +60 -0
- data/spec/unit/braintree/us_bank_account_verification_spec.rb +67 -0
- data/spec/unit/braintree/webhook_notification_spec.rb +13 -0
- metadata +12 -3
|
@@ -58,6 +58,19 @@ describe Braintree::WebhookNotification do
|
|
|
58
58
|
notification.timestamp.should be_within(10).of(Time.now.utc)
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
+
it 'builds a sample notification for OAuth application revocation' do
|
|
62
|
+
sample_notification = Braintree::WebhookTesting.sample_notification(
|
|
63
|
+
Braintree::WebhookNotification::Kind::OAuthAccessRevoked,
|
|
64
|
+
'my_id'
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
notification = Braintree::WebhookNotification.parse(sample_notification[:bt_signature], sample_notification[:bt_payload])
|
|
68
|
+
|
|
69
|
+
expect(notification.kind).to eq(Braintree::WebhookNotification::Kind::OAuthAccessRevoked)
|
|
70
|
+
expect(notification.oauth_access_revocation.merchant_id).to eq('abc123')
|
|
71
|
+
expect(notification.timestamp).to be_within(10).of(Time.now.utc)
|
|
72
|
+
end
|
|
73
|
+
|
|
61
74
|
it "builds a sample notification with a source merchant ID" do
|
|
62
75
|
sample_notification = Braintree::WebhookTesting.sample_notification(
|
|
63
76
|
Braintree::WebhookNotification::Kind::SubscriptionWentPastDue,
|
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: 2.
|
|
4
|
+
version: 2.85.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Braintree
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-03-
|
|
11
|
+
date: 2018-03-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: builder
|
|
@@ -161,6 +161,9 @@ files:
|
|
|
161
161
|
- lib/braintree/unknown_payment_method.rb
|
|
162
162
|
- lib/braintree/us_bank_account.rb
|
|
163
163
|
- lib/braintree/us_bank_account_gateway.rb
|
|
164
|
+
- lib/braintree/us_bank_account_verification.rb
|
|
165
|
+
- lib/braintree/us_bank_account_verification_gateway.rb
|
|
166
|
+
- lib/braintree/us_bank_account_verification_search.rb
|
|
164
167
|
- lib/braintree/util.rb
|
|
165
168
|
- lib/braintree/validation_error.rb
|
|
166
169
|
- lib/braintree/validation_error_collection.rb
|
|
@@ -209,6 +212,7 @@ files:
|
|
|
209
212
|
- spec/integration/braintree/oauth_spec.rb
|
|
210
213
|
- spec/integration/braintree/payment_method_nonce_spec.rb
|
|
211
214
|
- spec/integration/braintree/payment_method_spec.rb
|
|
215
|
+
- spec/integration/braintree/payment_method_us_bank_account_spec.rb
|
|
212
216
|
- spec/integration/braintree/paypal_account_spec.rb
|
|
213
217
|
- spec/integration/braintree/plan_spec.rb
|
|
214
218
|
- spec/integration/braintree/settlement_batch_summary_spec.rb
|
|
@@ -218,8 +222,11 @@ files:
|
|
|
218
222
|
- spec/integration/braintree/transaction_line_item_spec.rb
|
|
219
223
|
- spec/integration/braintree/transaction_search_spec.rb
|
|
220
224
|
- spec/integration/braintree/transaction_spec.rb
|
|
225
|
+
- spec/integration/braintree/transaction_us_bank_account_spec.rb
|
|
221
226
|
- spec/integration/braintree/transparent_redirect_spec.rb
|
|
222
227
|
- spec/integration/braintree/us_bank_account_spec.rb
|
|
228
|
+
- spec/integration/braintree/us_bank_account_verification_search_spec.rb
|
|
229
|
+
- spec/integration/braintree/us_bank_account_verification_spec.rb
|
|
223
230
|
- spec/integration/braintree/visa_checkout_card_spec.rb
|
|
224
231
|
- spec/integration/spec_helper.rb
|
|
225
232
|
- spec/oauth_test_helper.rb
|
|
@@ -267,6 +274,8 @@ files:
|
|
|
267
274
|
- spec/unit/braintree/transparent_redirect_spec.rb
|
|
268
275
|
- spec/unit/braintree/unknown_payment_method_spec.rb
|
|
269
276
|
- spec/unit/braintree/us_bank_account_spec.rb
|
|
277
|
+
- spec/unit/braintree/us_bank_account_verification_search_spec.rb
|
|
278
|
+
- spec/unit/braintree/us_bank_account_verification_spec.rb
|
|
270
279
|
- spec/unit/braintree/util_spec.rb
|
|
271
280
|
- spec/unit/braintree/validation_error_collection_spec.rb
|
|
272
281
|
- spec/unit/braintree/validation_error_spec.rb
|
|
@@ -297,7 +306,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
297
306
|
version: '0'
|
|
298
307
|
requirements: []
|
|
299
308
|
rubyforge_project: braintree
|
|
300
|
-
rubygems_version: 2.
|
|
309
|
+
rubygems_version: 2.6.14
|
|
301
310
|
signing_key:
|
|
302
311
|
specification_version: 4
|
|
303
312
|
summary: Braintree Gateway Ruby Client Library
|