braintree 2.48.1 → 2.49.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 CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- SHA512:
3
- data.tar.gz: 14395a20a0ff4e8e7e400071d57bba57e9cdb8da33b75b51e83dc4190494195e2685bb27e2a8e0e1bd4a5e5bead12df9ed768986294e858974d717a0ece5d0e0
4
- metadata.gz: 27622da8add4beec07f559159bf1bf93a2ae9cc50f7f878a0ed18684d97688cc0215e75ea0f9d2abdf26f20b144a043f0827f8233d21404f2facd69a754e0275
5
- SHA1:
6
- data.tar.gz: 0ccd252b1b006631d1135c2afc225b0fb37e6258
7
- metadata.gz: adc0ab5f3d57ae84f8b677233bfb41cbc0fd43f2
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 43d1a543b434b721b1d0b5c578c33640d4a60a67
4
+ data.tar.gz: 1de2834ffac24628ce4e3a55a2ba906b9a0f4ea9
5
+ SHA512:
6
+ metadata.gz: 0085bc10216eb7cd6effcdd5b9e0ab9da28bc8df65393840bb2142f38ee4dc07a9fdc8a047631569097242f9a27056c915f448ab2694eead09a45426dead7be6
7
+ data.tar.gz: 2715a14a10296a36b6b70264ed2db0e5c4326513df1abb02e847cc470a3a22fc1883a1ac916a767f6f9f52fcbd70630aa206bf3fd6f50cd94704f7a5a85f7010
@@ -27,9 +27,9 @@ Or add to your Gemfile:
27
27
 
28
28
  result = Braintree::Transaction.sale(
29
29
  :amount => "1000.00",
30
- :credit_card => {
31
- :number => "5105105105105100",
32
- :expiration_date => "05/12"
30
+ :payment_method_nonce => nonce_from_the_client,
31
+ :options => {
32
+ :submit_for_settlement => true
33
33
  }
34
34
  )
35
35
 
@@ -85,7 +85,6 @@ require "braintree/subscription/status_details"
85
85
  require "braintree/subscription_gateway"
86
86
  require "braintree/subscription_search"
87
87
  require "braintree/successful_result"
88
- require "braintree/test/amex_rewards"
89
88
  require "braintree/test/credit_card"
90
89
  require "braintree/test/merchant_account"
91
90
  require "braintree/test/venmo_sdk"
@@ -4,7 +4,7 @@ module Braintree
4
4
 
5
5
  attr_reader :token, :virtual_card_type, :virtual_card_last_4, :source_card_type, :source_card_last_4,
6
6
  :expiration_month, :expiration_year, :created_at, :updated_at, :image_url, :subscriptions, :bin,
7
- :google_transaction_id, :default, :source_description
7
+ :google_transaction_id, :default, :source_description, :customer_id
8
8
 
9
9
  def initialize(gateway, attributes) # :nodoc:
10
10
  @gateway = gateway
@@ -10,10 +10,9 @@ module Braintree
10
10
  All = constants.map { |c| const_get(c) }
11
11
  end
12
12
 
13
- attr_reader :token, :card_type, :last_4, :default, :image_url,
14
- :created_at, :updated_at, :subscriptions, :expiration_month,
15
- :expiration_year, :expired, :payment_instrument_name, :source_description
16
-
13
+ attr_reader :card_type, :created_at, :customer_id, :default, :expiration_month,
14
+ :expiration_year, :expired, :image_url, :last_4, :payment_instrument_name,
15
+ :source_description, :subscriptions, :token, :updated_at
17
16
 
18
17
  def initialize(gateway, attributes) # :nodoc:
19
18
  @gateway = gateway
@@ -25,6 +24,10 @@ module Braintree
25
24
  @default
26
25
  end
27
26
 
27
+ def expired?
28
+ @expired
29
+ end
30
+
28
31
  class << self
29
32
  protected :new
30
33
  end
@@ -2,7 +2,7 @@ module Braintree
2
2
  class CoinbaseAccount
3
3
  include BaseModule # :nodoc:
4
4
 
5
- attr_reader :token, :user_id, :user_email, :user_name, :subscriptions, :created_at, :updated_at, :default
5
+ attr_reader :token, :user_id, :user_email, :user_name, :subscriptions, :created_at, :updated_at, :default, :customer_id
6
6
  def initialize(gateway, attributes) # :nodoc:
7
7
  @gateway = gateway
8
8
  set_instance_variables_from_hash(attributes)
@@ -307,6 +307,7 @@ module Braintree
307
307
  PaymentMethodTokenIsInvalid = "91518"
308
308
  ProcessorAuthorizationCodeCannotBeSet = "91519"
309
309
  ProcessorAuthorizationCodeIsInvalid = "81520"
310
+ ProcessorDoesNotSupportAuths = "915104"
310
311
  ProcessorDoesNotSupportCredits = "91546"
311
312
  ProcessorDoesNotSupportVoiceAuthorizations = "91545"
312
313
  PurchaseOrderNumberIsInvalid = "91548"
@@ -7,7 +7,7 @@ module Braintree
7
7
  Consumer = 'consumer'
8
8
  end
9
9
 
10
- attr_reader :token, :image_url
10
+ attr_reader :token, :image_url, :customer_id
11
11
 
12
12
  def initialize(gateway, attributes) # :nodoc:
13
13
  @gateway = gateway
@@ -2,7 +2,7 @@ module Braintree
2
2
  class PayPalAccount
3
3
  include BaseModule
4
4
 
5
- attr_reader :email, :token, :image_url, :created_at, :updated_at, :subscriptions, :billing_agreement_id
5
+ attr_reader :email, :token, :image_url, :created_at, :updated_at, :subscriptions, :billing_agreement_id, :customer_id
6
6
 
7
7
  def initialize(gateway, attributes) # :nodoc:
8
8
  @gateway = gateway
@@ -47,7 +47,14 @@ module Braintree
47
47
  Numbers = [AmEx, Discover, MasterCard, Visa]
48
48
  end
49
49
 
50
- All = AmExes + Discovers + MasterCards + Visas
50
+ module AmexPayWithPoints
51
+ Success = "371260714673002"
52
+ IneligibleCard = "378267515471109"
53
+ InsufficientPoints = "371544868764018"
54
+ All = [Success, IneligibleCard, InsufficientPoints]
55
+ end
56
+
57
+ All = AmExes + Discovers + MasterCards + Visas + AmexPayWithPoints::All
51
58
  end
52
59
 
53
60
  module CreditCardDefaults
@@ -117,7 +117,6 @@ module Braintree
117
117
  attr_reader :payment_instrument_type
118
118
  attr_reader :risk_data
119
119
  attr_reader :three_d_secure_info
120
- attr_reader :amex_rewards_response
121
120
 
122
121
  def self.create(attributes)
123
122
  Configuration.gateway.transaction.create(attributes)
@@ -2,7 +2,7 @@ module Braintree
2
2
  class UnknownPaymentMethod
3
3
  include BaseModule
4
4
 
5
- attr_reader :token
5
+ attr_reader :token, :customer_id
6
6
 
7
7
  def initialize(gateway, attributes)
8
8
  @gateway = gateway
@@ -1,8 +1,8 @@
1
1
  module Braintree
2
2
  module Version
3
3
  Major = 2
4
- Minor = 48
5
- Tiny = 1
4
+ Minor = 49
5
+ Tiny = 0
6
6
 
7
7
  String = "#{Major}.#{Minor}.#{Tiny}"
8
8
  end
@@ -49,11 +49,32 @@ module Braintree
49
49
  _disbursement_exception_sample_xml(id)
50
50
  when Braintree::WebhookNotification::Kind::Disbursement
51
51
  _disbursement_sample_xml(id)
52
+ when Braintree::WebhookNotification::Kind::SubscriptionChargedSuccessfully
53
+ _subscription_charged_successfully(id)
52
54
  else
53
55
  _subscription_sample_xml(id)
54
56
  end
55
57
  end
56
58
 
59
+ def _subscription_charged_successfully(id)
60
+
61
+ <<-XML
62
+ <subscription>
63
+ <id>#{id}</id>
64
+ <transactions type="array">
65
+ <transaction>
66
+ <status>submitted_for_settlement</status>
67
+ <amount>49.99</amount>
68
+ </transaction>
69
+ </transactions>
70
+ <add_ons type="array">
71
+ </add_ons>
72
+ <discounts type="array">
73
+ </discounts>
74
+ </subscription>
75
+ XML
76
+ end
77
+
57
78
  def _subscription_sample_xml(id)
58
79
 
59
80
  <<-XML
@@ -93,6 +93,7 @@ describe Braintree::PaymentMethod do
93
93
  apple_pay_card.image_url.should =~ /apple_pay/
94
94
  apple_pay_card.expiration_month.to_i.should > 0
95
95
  apple_pay_card.expiration_year.to_i.should > 0
96
+ apple_pay_card.customer_id.should == customer.id
96
97
  end
97
98
 
98
99
  it "creates a payment method from a fake android pay proxy card nonce" do
@@ -119,6 +120,7 @@ describe Braintree::PaymentMethod do
119
120
  android_pay_card.source_card_last_4.should == "1111"
120
121
  android_pay_card.google_transaction_id.should == "google_transaction_id"
121
122
  android_pay_card.source_description.should == "Visa 1111"
123
+ android_pay_card.customer_id.should == customer.id
122
124
  end
123
125
 
124
126
  it "creates a payment method from a android pay network token nonce" do
@@ -145,6 +147,7 @@ describe Braintree::PaymentMethod do
145
147
  android_pay_card.source_card_last_4.should == "4444"
146
148
  android_pay_card.google_transaction_id.should == "google_transaction_id"
147
149
  android_pay_card.source_description.should == "MasterCard 4444"
150
+ android_pay_card.customer_id.should == customer.id
148
151
  end
149
152
 
150
153
  it "allows passing the make_default option alongside the nonce" do
@@ -540,6 +543,7 @@ describe Braintree::PaymentMethod do
540
543
  result.should be_success
541
544
  result.payment_method.token.should_not == nil
542
545
  result.payment_method.image_url.should_not be_nil
546
+ result.payment_method.customer_id.should == customer.id
543
547
  end
544
548
  end
545
549
 
@@ -620,6 +624,7 @@ describe Braintree::PaymentMethod do
620
624
  paypal_account.should be_a(Braintree::PayPalAccount)
621
625
  paypal_account.token.should == payment_method_token
622
626
  paypal_account.email.should == "jane.doe@example.com"
627
+ paypal_account.customer_id.should == customer.id
623
628
  end
624
629
  end
625
630
 
@@ -644,6 +649,7 @@ describe Braintree::PaymentMethod do
644
649
  apple_pay_card.expiration_month.to_i.should > 0
645
650
  apple_pay_card.expiration_year.to_i.should > 0
646
651
  apple_pay_card.source_description.should == "AmEx 41002"
652
+ apple_pay_card.customer_id.should == customer.id
647
653
  end
648
654
  end
649
655
 
@@ -672,6 +678,7 @@ describe Braintree::PaymentMethod do
672
678
  android_pay_card.source_card_last_4.should == "1111"
673
679
  android_pay_card.google_transaction_id.should == "google_transaction_id"
674
680
  android_pay_card.source_description.should == "Visa 1111"
681
+ android_pay_card.customer_id.should == customer.id
675
682
  end
676
683
 
677
684
  it "finds the network token payment method with the given token" do
@@ -698,6 +705,7 @@ describe Braintree::PaymentMethod do
698
705
  android_pay_card.source_card_last_4.should == "4444"
699
706
  android_pay_card.google_transaction_id.should == "google_transaction_id"
700
707
  android_pay_card.source_description.should == "MasterCard 4444"
708
+ android_pay_card.customer_id.should == customer.id
701
709
  end
702
710
  end
703
711
 
@@ -717,6 +725,7 @@ describe Braintree::PaymentMethod do
717
725
  payment_method.token.should == payment_method_token
718
726
  payment_method.image_url.should_not be_nil
719
727
  payment_method.should be_a Braintree::UnknownPaymentMethod
728
+ payment_method.customer_id.should == customer.id
720
729
  end
721
730
  end
722
731
 
@@ -24,6 +24,7 @@ describe Braintree::PayPalAccount do
24
24
  paypal_account.image_url.should_not be_nil
25
25
  paypal_account.created_at.should_not be_nil
26
26
  paypal_account.updated_at.should_not be_nil
27
+ paypal_account.customer_id.should == customer.id
27
28
  end
28
29
 
29
30
  it "returns a PayPalAccount with a billing agreement id" do
@@ -2308,11 +2308,11 @@ describe Braintree::Transaction do
2308
2308
 
2309
2309
  context "Amex Pay with Points" do
2310
2310
  context "transaction creation" do
2311
- it "burns rewards points when submit_for_settlement is true" do
2311
+ it "succeeds when submit_for_settlement is true" do
2312
2312
  result = Braintree::Transaction.sale(
2313
2313
  :amount => Braintree::Test::TransactionAmounts::Authorize,
2314
2314
  :credit_card => {
2315
- :number => Braintree::Test::CreditCardNumbers::AmExes[0],
2315
+ :number => Braintree::Test::CreditCardNumbers::AmexPayWithPoints::Success,
2316
2316
  :expiration_date => "05/2009"
2317
2317
  },
2318
2318
  :options => {
@@ -2327,20 +2327,40 @@ describe Braintree::Transaction do
2327
2327
  )
2328
2328
  result.success?.should == true
2329
2329
  result.transaction.status.should == Braintree::Transaction::Status::SubmittedForSettlement
2330
- result.transaction.amex_rewards_response.should == "success"
2331
2330
  end
2332
2331
 
2333
- it "returns an error if the credit card is not eligible" do
2332
+ it "succeeds even if the card is ineligible" do
2334
2333
  result = Braintree::Transaction.sale(
2335
2334
  :amount => Braintree::Test::TransactionAmounts::Authorize,
2336
2335
  :credit_card => {
2337
- :number => Braintree::Test::CreditCardNumbers::AmExes[0],
2336
+ :number => Braintree::Test::CreditCardNumbers::AmexPayWithPoints::IneligibleCard,
2338
2337
  :expiration_date => "05/2009"
2339
2338
  },
2340
2339
  :options => {
2341
2340
  :submit_for_settlement => true,
2342
2341
  :amex_rewards => {
2343
- :request_id => Braintree::Test::AmexRewards::RequestIds::CardIneligible,
2342
+ :request_id => "ABC123",
2343
+ :points => "1000",
2344
+ :currency_amount => "10.00",
2345
+ :currency_iso_code => "USD"
2346
+ }
2347
+ }
2348
+ )
2349
+ result.success?.should == true
2350
+ result.transaction.status.should == Braintree::Transaction::Status::SubmittedForSettlement
2351
+ end
2352
+
2353
+ it "succeeds even if the card's balance is insufficient" do
2354
+ result = Braintree::Transaction.sale(
2355
+ :amount => Braintree::Test::TransactionAmounts::Authorize,
2356
+ :credit_card => {
2357
+ :number => Braintree::Test::CreditCardNumbers::AmexPayWithPoints::InsufficientPoints,
2358
+ :expiration_date => "05/2009"
2359
+ },
2360
+ :options => {
2361
+ :submit_for_settlement => true,
2362
+ :amex_rewards => {
2363
+ :request_id => "ABC123",
2344
2364
  :points => "1000",
2345
2365
  :currency_amount => "10.00",
2346
2366
  :currency_iso_code => "USD"
@@ -2349,16 +2369,38 @@ describe Braintree::Transaction do
2349
2369
  )
2350
2370
  result.success?.should == true
2351
2371
  result.transaction.status.should == Braintree::Transaction::Status::SubmittedForSettlement
2352
- result.transaction.amex_rewards_response.should == "RDM2002 Card is not eligible for redemption"
2353
2372
  end
2354
2373
  end
2355
2374
 
2356
2375
  context "submit for settlement" do
2357
- it "burns rewards points when option is set" do
2376
+ it "succeeds" do
2377
+ result = Braintree::Transaction.sale(
2378
+ :amount => Braintree::Test::TransactionAmounts::Authorize,
2379
+ :credit_card => {
2380
+ :number => Braintree::Test::CreditCardNumbers::AmexPayWithPoints::Success,
2381
+ :expiration_date => "05/2009"
2382
+ },
2383
+ :options => {
2384
+ :amex_rewards => {
2385
+ :request_id => "ABC123",
2386
+ :points => "1000",
2387
+ :currency_amount => "10.00",
2388
+ :currency_iso_code => "USD"
2389
+ }
2390
+ }
2391
+ )
2392
+ result.success?.should == true
2393
+
2394
+ result = Braintree::Transaction.submit_for_settlement(result.transaction.id)
2395
+ result.success?.should == true
2396
+ result.transaction.status.should == Braintree::Transaction::Status::SubmittedForSettlement
2397
+ end
2398
+
2399
+ it "succeeds even if the card is ineligible" do
2358
2400
  result = Braintree::Transaction.sale(
2359
2401
  :amount => Braintree::Test::TransactionAmounts::Authorize,
2360
2402
  :credit_card => {
2361
- :number => Braintree::Test::CreditCardNumbers::AmExes[0],
2403
+ :number => Braintree::Test::CreditCardNumbers::AmexPayWithPoints::IneligibleCard,
2362
2404
  :expiration_date => "05/2009"
2363
2405
  },
2364
2406
  :options => {
@@ -2372,24 +2414,22 @@ describe Braintree::Transaction do
2372
2414
  )
2373
2415
  result.success?.should == true
2374
2416
  result.transaction.status.should == Braintree::Transaction::Status::Authorized
2375
- result.transaction.amex_rewards_response.should be_nil
2376
2417
 
2377
2418
  result = Braintree::Transaction.submit_for_settlement(result.transaction.id)
2378
2419
  result.success?.should == true
2379
2420
  result.transaction.status.should == Braintree::Transaction::Status::SubmittedForSettlement
2380
- result.transaction.amex_rewards_response.should == "success"
2381
2421
  end
2382
2422
 
2383
- it "returns an error if the credit card is not eligible" do
2423
+ it "succeeds even if the card's balance is insufficient" do
2384
2424
  result = Braintree::Transaction.sale(
2385
2425
  :amount => Braintree::Test::TransactionAmounts::Authorize,
2386
2426
  :credit_card => {
2387
- :number => Braintree::Test::CreditCardNumbers::AmExes[0],
2427
+ :number => Braintree::Test::CreditCardNumbers::AmexPayWithPoints::IneligibleCard,
2388
2428
  :expiration_date => "05/2009"
2389
2429
  },
2390
2430
  :options => {
2391
2431
  :amex_rewards => {
2392
- :request_id => Braintree::Test::AmexRewards::RequestIds::CardIneligible,
2432
+ :request_id => "ABC123",
2393
2433
  :points => "1000",
2394
2434
  :currency_amount => "10.00",
2395
2435
  :currency_iso_code => "USD"
@@ -2398,12 +2438,10 @@ describe Braintree::Transaction do
2398
2438
  )
2399
2439
  result.success?.should == true
2400
2440
  result.transaction.status.should == Braintree::Transaction::Status::Authorized
2401
- result.transaction.amex_rewards_response.should be_nil
2402
2441
 
2403
2442
  result = Braintree::Transaction.submit_for_settlement(result.transaction.id)
2404
2443
  result.success?.should == true
2405
2444
  result.transaction.status.should == Braintree::Transaction::Status::SubmittedForSettlement
2406
- result.transaction.amex_rewards_response.should == "RDM2002 Card is not eligible for redemption"
2407
2445
  end
2408
2446
  end
2409
2447
  end
@@ -10,4 +10,14 @@ describe Braintree::ApplePayCard do
10
10
  Braintree::ApplePayCard._new(:gateway, :default => false).default?.should == false
11
11
  end
12
12
  end
13
+
14
+ describe "expired?" do
15
+ it "is true if the Apple pay card is expired" do
16
+ Braintree::ApplePayCard._new(:gateway, :expired => true).expired?.should == true
17
+ end
18
+
19
+ it "is false if the Apple pay card is not expired" do
20
+ Braintree::ApplePayCard._new(:gateway, :expired => false).expired?.should == false
21
+ end
22
+ end
13
23
  end
@@ -193,6 +193,23 @@ describe Braintree::WebhookNotification do
193
193
  end
194
194
  end
195
195
 
196
+ context "subscription" do
197
+ it "builds a sample notification for a subscription charged successfully webhook" do
198
+ sample_notification = Braintree::WebhookTesting.sample_notification(
199
+ Braintree::WebhookNotification::Kind::SubscriptionChargedSuccessfully,
200
+ "my_id"
201
+ )
202
+
203
+ notification = Braintree::WebhookNotification.parse(sample_notification[:bt_signature], sample_notification[:bt_payload])
204
+
205
+ notification.kind.should == Braintree::WebhookNotification::Kind::SubscriptionChargedSuccessfully
206
+ notification.subscription.id.should == "my_id"
207
+ notification.subscription.transactions.size.should == 1
208
+ notification.subscription.transactions.first.status.should == Braintree::Transaction::Status::SubmittedForSettlement
209
+ notification.subscription.transactions.first.amount.should == BigDecimal("49.99")
210
+ end
211
+ end
212
+
196
213
  it "includes a valid signature" do
197
214
  sample_notification = Braintree::WebhookTesting.sample_notification(
198
215
  Braintree::WebhookNotification::Kind::SubscriptionWentPastDue,
metadata CHANGED
@@ -1,259 +1,254 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: braintree
3
- version: !ruby/object:Gem::Version
4
- version: 2.48.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.49.0
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Braintree
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
-
12
- date: 2015-09-03 00:00:00 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
11
+ date: 2015-09-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
15
14
  name: builder
16
- prerelease: false
17
- requirement: &id001 !ruby/object:Gem::Requirement
18
- requirements:
19
- - - ">="
20
- - !ruby/object:Gem::Version
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
21
19
  version: 2.0.0
22
20
  type: :runtime
23
- version_requirements: *id001
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 2.0.0
24
27
  description: Ruby library for integrating with the Braintree Gateway
25
28
  email: code@getbraintree.com
26
29
  executables: []
27
-
28
30
  extensions: []
29
-
30
31
  extra_rdoc_files: []
31
-
32
- files:
32
+ files:
33
33
  - README.rdoc
34
34
  - LICENSE
35
35
  - lib/braintree.rb
36
- - lib/braintree/discount.rb
37
- - lib/braintree/configuration.rb
38
- - lib/braintree/credit_card.rb
39
- - lib/braintree/testing_gateway.rb
40
- - lib/braintree/address/country_names.rb
41
- - lib/braintree/sha256_digest.rb
42
- - lib/braintree/merchant_gateway.rb
43
- - lib/braintree/dispute/transaction_details.rb
44
- - lib/braintree/android_pay_card.rb
45
- - lib/braintree/digest.rb
46
- - lib/braintree/plan_gateway.rb
47
- - lib/braintree/webhook_testing.rb
48
- - lib/braintree/plan.rb
49
- - lib/braintree/unknown_payment_method.rb
50
- - lib/braintree/subscription_gateway.rb
51
- - lib/braintree/xml/generator.rb
36
+ - lib/braintree/address.rb
37
+ - lib/braintree/webhook_notification.rb
38
+ - lib/braintree/subscription.rb
39
+ - lib/braintree/add_on.rb
52
40
  - lib/braintree/xml/rexml.rb
53
41
  - lib/braintree/xml/libxml.rb
42
+ - lib/braintree/xml/generator.rb
54
43
  - lib/braintree/xml/parser.rb
55
- - lib/braintree/credentials_parser.rb
56
- - lib/braintree/error_codes.rb
57
- - lib/braintree/add_on.rb
58
- - lib/braintree/paypal_account.rb
59
- - lib/braintree/coinbase_account.rb
44
+ - lib/braintree/validation_error.rb
45
+ - lib/braintree/oauth_gateway.rb
60
46
  - lib/braintree/apple_pay_card.rb
61
- - lib/braintree/error_result.rb
62
- - lib/braintree/transaction_search.rb
63
- - lib/braintree/webhook_testing_gateway.rb
64
- - lib/braintree/address.rb
65
- - lib/braintree/europe_bank_account_gateway.rb
66
- - lib/braintree/customer_search.rb
67
- - lib/braintree/merchant.rb
68
- - lib/braintree/exceptions.rb
69
- - lib/braintree/gateway.rb
70
- - lib/braintree/payment_method_nonce.rb
71
- - lib/braintree/disbursement.rb
72
- - lib/braintree/transparent_redirect.rb
47
+ - lib/braintree/successful_result.rb
73
48
  - lib/braintree/version.rb
49
+ - lib/braintree/payment_instrument_type.rb
50
+ - lib/braintree/client_token.rb
51
+ - lib/braintree/webhook_testing_gateway.rb
52
+ - lib/braintree/xml.rb
53
+ - lib/braintree/paypal_account_gateway.rb
54
+ - lib/braintree/signature_service.rb
55
+ - lib/braintree/settlement_batch_summary_gateway.rb
74
56
  - lib/braintree/credit_card_verification_search.rb
75
- - lib/braintree/http.rb
76
- - lib/braintree/dispute.rb
77
- - lib/braintree/descriptor.rb
57
+ - lib/braintree/base_module.rb
58
+ - lib/braintree/plan.rb
78
59
  - lib/braintree/transaction_gateway.rb
79
- - lib/braintree/address_gateway.rb
80
- - lib/braintree/webhook_notification_gateway.rb
81
- - lib/braintree/add_on_gateway.rb
82
- - lib/braintree/settlement_batch.rb
83
- - lib/braintree/validation_error_collection.rb
84
- - lib/braintree/util.rb
85
- - lib/braintree/credit_card_verification.rb
86
- - lib/braintree/test/credit_card.rb
87
- - lib/braintree/test/venmo_sdk.rb
88
- - lib/braintree/test/merchant_account.rb
89
- - lib/braintree/test/amex_rewards.rb
90
- - lib/braintree/test/nonce.rb
91
- - lib/braintree/test/transaction_amounts.rb
92
- - lib/braintree/payment_method_gateway.rb
93
- - lib/braintree/merchant_account/address_details.rb
60
+ - lib/braintree/credit_card_verification_gateway.rb
61
+ - lib/braintree/subscription_search.rb
62
+ - lib/braintree/webhook_testing.rb
94
63
  - lib/braintree/merchant_account/funding_details.rb
95
- - lib/braintree/merchant_account/business_details.rb
96
64
  - lib/braintree/merchant_account/individual_details.rb
97
- - lib/braintree/base_module.rb
65
+ - lib/braintree/merchant_account/address_details.rb
66
+ - lib/braintree/merchant_account/business_details.rb
67
+ - lib/braintree/risk_data.rb
68
+ - lib/braintree/customer_search.rb
69
+ - lib/braintree/discount_gateway.rb
70
+ - lib/braintree/payment_method_nonce.rb
71
+ - lib/braintree/validation_error_collection.rb
72
+ - lib/braintree/credit_card.rb
73
+ - lib/braintree/customer.rb
74
+ - lib/braintree/digest.rb
75
+ - lib/braintree/settlement_batch_summary.rb
76
+ - lib/braintree/testing_gateway.rb
77
+ - lib/braintree/unknown_payment_method.rb
78
+ - lib/braintree/credit_card_verification.rb
79
+ - lib/braintree/address/country_names.rb
80
+ - lib/braintree/android_pay_card.rb
81
+ - lib/braintree/disbursement.rb
98
82
  - lib/braintree/client_token_gateway.rb
99
- - lib/braintree/signature_service.rb
83
+ - lib/braintree/settlement_batch.rb
84
+ - lib/braintree/dispute.rb
100
85
  - lib/braintree/merchant_account_gateway.rb
101
- - lib/braintree/payment_method_nonce_gateway.rb
102
- - lib/braintree/transparent_redirect_gateway.rb
103
- - lib/braintree/errors.rb
104
- - lib/braintree/resource_collection.rb
105
- - lib/braintree/credit_card_verification_gateway.rb
106
- - lib/braintree/advanced_search.rb
107
- - lib/braintree/three_d_secure_info.rb
108
- - lib/braintree/modification.rb
109
- - lib/braintree/oauth_credentials.rb
110
- - lib/braintree/successful_result.rb
111
- - lib/braintree/settlement_batch_summary_gateway.rb
112
- - lib/braintree/validation_error.rb
113
- - lib/braintree/xml.rb
114
- - lib/braintree/test_transaction.rb
115
- - lib/braintree/subscription_search.rb
116
- - lib/braintree/subscription.rb
117
- - lib/braintree/payment_instrument_type.rb
118
- - lib/braintree/credit_card_gateway.rb
119
- - lib/braintree/merchant_account.rb
120
- - lib/braintree/settlement_batch_summary.rb
121
- - lib/braintree/paypal_account_gateway.rb
122
- - lib/braintree/europe_bank_account.rb
86
+ - lib/braintree/coinbase_account.rb
123
87
  - lib/braintree/payment_method.rb
124
- - lib/braintree/customer.rb
125
- - lib/braintree/webhook_notification.rb
126
- - lib/braintree/client_token.rb
127
- - lib/braintree/transaction.rb
88
+ - lib/braintree/transparent_redirect.rb
89
+ - lib/braintree/gateway.rb
90
+ - lib/braintree/webhook_notification_gateway.rb
128
91
  - lib/braintree/customer_gateway.rb
129
- - lib/braintree/transaction/address_details.rb
130
- - lib/braintree/transaction/status_details.rb
131
- - lib/braintree/transaction/paypal_details.rb
132
- - lib/braintree/transaction/credit_card_details.rb
133
- - lib/braintree/transaction/coinbase_details.rb
92
+ - lib/braintree/modification.rb
93
+ - lib/braintree/configuration.rb
134
94
  - lib/braintree/transaction/customer_details.rb
135
- - lib/braintree/transaction/android_pay_details.rb
95
+ - lib/braintree/transaction/paypal_details.rb
96
+ - lib/braintree/transaction/disbursement_details.rb
136
97
  - lib/braintree/transaction/subscription_details.rb
98
+ - lib/braintree/transaction/status_details.rb
99
+ - lib/braintree/transaction/credit_card_details.rb
137
100
  - lib/braintree/transaction/apple_pay_details.rb
138
- - lib/braintree/transaction/disbursement_details.rb
101
+ - lib/braintree/transaction/android_pay_details.rb
102
+ - lib/braintree/transaction/coinbase_details.rb
103
+ - lib/braintree/transaction/address_details.rb
104
+ - lib/braintree/descriptor.rb
105
+ - lib/braintree/oauth_credentials.rb
106
+ - lib/braintree/payment_method_gateway.rb
107
+ - lib/braintree/resource_collection.rb
108
+ - lib/braintree/sha256_digest.rb
109
+ - lib/braintree/three_d_secure_info.rb
110
+ - lib/braintree/merchant_gateway.rb
111
+ - lib/braintree/subscription_gateway.rb
112
+ - lib/braintree/add_on_gateway.rb
113
+ - lib/braintree/merchant_account.rb
114
+ - lib/braintree/transaction.rb
115
+ - lib/braintree/error_result.rb
116
+ - lib/braintree/test_transaction.rb
117
+ - lib/braintree/credentials_parser.rb
118
+ - lib/braintree/plan_gateway.rb
119
+ - lib/braintree/transparent_redirect_gateway.rb
120
+ - lib/braintree/payment_method_nonce_gateway.rb
121
+ - lib/braintree/transaction_search.rb
122
+ - lib/braintree/paypal_account.rb
123
+ - lib/braintree/exceptions.rb
124
+ - lib/braintree/http.rb
125
+ - lib/braintree/merchant.rb
126
+ - lib/braintree/europe_bank_account_gateway.rb
127
+ - lib/braintree/errors.rb
128
+ - lib/braintree/address_gateway.rb
129
+ - lib/braintree/credit_card_gateway.rb
130
+ - lib/braintree/advanced_search.rb
131
+ - lib/braintree/test/nonce.rb
132
+ - lib/braintree/test/venmo_sdk.rb
133
+ - lib/braintree/test/credit_card.rb
134
+ - lib/braintree/test/transaction_amounts.rb
135
+ - lib/braintree/test/merchant_account.rb
136
+ - lib/braintree/discount.rb
137
+ - lib/braintree/dispute/transaction_details.rb
138
+ - lib/braintree/error_codes.rb
139
+ - lib/braintree/util.rb
140
+ - lib/braintree/europe_bank_account.rb
139
141
  - lib/braintree/subscription/status_details.rb
140
- - lib/braintree/discount_gateway.rb
141
- - lib/braintree/risk_data.rb
142
- - lib/braintree/oauth_gateway.rb
142
+ - lib/ssl/api_braintreegateway_com.ca.crt
143
143
  - lib/ssl/www_braintreegateway_com.ca.crt
144
144
  - lib/ssl/sandbox_braintreegateway_com.ca.crt
145
145
  - lib/ssl/securetrust_ca.crt
146
- - lib/ssl/api_braintreegateway_com.ca.crt
147
- - spec/integration/spec_helper.rb
148
- - spec/integration/braintree/customer_spec.rb
149
- - spec/integration/braintree/merchant_account_spec.rb
150
- - spec/integration/braintree/credit_card_verification_search_spec.rb
151
- - spec/integration/braintree/oauth_spec.rb
152
- - spec/integration/braintree/credit_card_spec.rb
153
- - spec/integration/braintree/transaction_spec.rb
154
- - spec/integration/braintree/disbursement_spec.rb
155
- - spec/integration/braintree/transaction_search_spec.rb
156
- - spec/integration/braintree/advanced_search_spec.rb
157
- - spec/integration/braintree/settlement_batch_summary_spec.rb
158
- - spec/integration/braintree/transparent_redirect_spec.rb
159
- - spec/integration/braintree/test_transaction_spec.rb
160
- - spec/integration/braintree/merchant_spec.rb
161
- - spec/integration/braintree/test/transaction_amounts_spec.rb
162
- - spec/integration/braintree/payment_method_spec.rb
163
- - spec/integration/braintree/plan_spec.rb
164
- - spec/integration/braintree/payment_method_nonce_spec.rb
165
- - spec/integration/braintree/error_codes_spec.rb
166
- - spec/integration/braintree/credit_card_verification_spec.rb
167
- - spec/integration/braintree/discount_spec.rb
168
- - spec/integration/braintree/add_on_spec.rb
169
- - spec/integration/braintree/address_spec.rb
170
- - spec/integration/braintree/paypal_account_spec.rb
171
- - spec/integration/braintree/client_api/spec_helper.rb
172
- - spec/integration/braintree/client_api/client_token_spec.rb
173
- - spec/integration/braintree/http_spec.rb
174
- - spec/integration/braintree/coinbase_spec.rb
175
- - spec/integration/braintree/subscription_spec.rb
176
- - spec/integration/braintree/customer_search_spec.rb
177
- - spec/spec_helper.rb
178
- - spec/spec.opts
179
- - spec/hacks/tcp_socket.rb
146
+ - spec/ssl/geotrust_global.crt
147
+ - spec/ssl/privateKey.key
148
+ - spec/ssl/certificate.crt
149
+ - spec/script/httpsd.rb
150
+ - spec/oauth_test_helper.rb
151
+ - spec/unit/braintree_spec.rb
180
152
  - spec/unit/spec_helper.rb
181
- - spec/unit/braintree/signature_service_spec.rb
182
- - spec/unit/braintree/customer_spec.rb
183
- - spec/unit/braintree/digest_spec.rb
184
- - spec/unit/braintree/merchant_account_spec.rb
185
- - spec/unit/braintree/credit_card_verification_search_spec.rb
186
- - spec/unit/braintree/apple_pay_card_spec.rb
187
- - spec/unit/braintree/validation_error_collection_spec.rb
188
- - spec/unit/braintree/xml_spec.rb
189
- - spec/unit/braintree/credit_card_spec.rb
190
- - spec/unit/braintree/transaction_spec.rb
191
- - spec/unit/braintree/disbursement_spec.rb
192
- - spec/unit/braintree/resource_collection_spec.rb
193
- - spec/unit/braintree/transaction_search_spec.rb
194
- - spec/unit/braintree/xml/libxml_spec.rb
153
+ - spec/unit/braintree/configuration_spec.rb
154
+ - spec/unit/braintree/base_module_spec.rb
195
155
  - spec/unit/braintree/xml/parser_spec.rb
196
156
  - spec/unit/braintree/xml/rexml_spec.rb
197
- - spec/unit/braintree/modification_spec.rb
198
- - spec/unit/braintree/validation_error_spec.rb
199
- - spec/unit/braintree/dispute_spec.rb
200
- - spec/unit/braintree/sha256_digest_spec.rb
201
- - spec/unit/braintree/transparent_redirect_spec.rb
202
- - spec/unit/braintree/errors_spec.rb
203
- - spec/unit/braintree/three_d_secure_info_spec.rb
204
- - spec/unit/braintree/unknown_payment_method_spec.rb
205
- - spec/unit/braintree/payment_method_spec.rb
206
- - spec/unit/braintree/client_token_spec.rb
207
- - spec/unit/braintree/subscription_search_spec.rb
208
- - spec/unit/braintree/base_module_spec.rb
209
- - spec/unit/braintree/credit_card_verification_spec.rb
210
- - spec/unit/braintree/successful_result_spec.rb
211
- - spec/unit/braintree/risk_data_spec.rb
157
+ - spec/unit/braintree/xml/libxml_spec.rb
212
158
  - spec/unit/braintree/error_result_spec.rb
159
+ - spec/unit/braintree/resource_collection_spec.rb
160
+ - spec/unit/braintree/disbursement_spec.rb
161
+ - spec/unit/braintree/credit_card_verification_spec.rb
162
+ - spec/unit/braintree/apple_pay_card_spec.rb
163
+ - spec/unit/braintree/client_token_spec.rb
164
+ - spec/unit/braintree/subscription_spec.rb
165
+ - spec/unit/braintree/payment_method_spec.rb
166
+ - spec/unit/braintree/credit_card_spec.rb
167
+ - spec/unit/braintree/credit_card_verification_search_spec.rb
168
+ - spec/unit/braintree/webhook_notification_spec.rb
169
+ - spec/unit/braintree/three_d_secure_info_spec.rb
170
+ - spec/unit/braintree/errors_spec.rb
171
+ - spec/unit/braintree/dispute_spec.rb
172
+ - spec/unit/braintree/signature_service_spec.rb
213
173
  - spec/unit/braintree/util_spec.rb
214
- - spec/unit/braintree/configuration_spec.rb
215
- - spec/unit/braintree/address_spec.rb
216
- - spec/unit/braintree/paypal_account_spec.rb
174
+ - spec/unit/braintree/modification_spec.rb
175
+ - spec/unit/braintree/validation_error_collection_spec.rb
217
176
  - spec/unit/braintree/http_spec.rb
177
+ - spec/unit/braintree/successful_result_spec.rb
178
+ - spec/unit/braintree/transparent_redirect_spec.rb
179
+ - spec/unit/braintree/unknown_payment_method_spec.rb
180
+ - spec/unit/braintree/transaction/customer_details_spec.rb
218
181
  - spec/unit/braintree/transaction/credit_card_details_spec.rb
219
182
  - spec/unit/braintree/transaction/deposit_details_spec.rb
220
- - spec/unit/braintree/transaction/customer_details_spec.rb
221
- - spec/unit/braintree/subscription_spec.rb
222
- - spec/unit/braintree/webhook_notification_spec.rb
183
+ - spec/unit/braintree/digest_spec.rb
184
+ - spec/unit/braintree/sha256_digest_spec.rb
185
+ - spec/unit/braintree/merchant_account_spec.rb
186
+ - spec/unit/braintree/address_spec.rb
187
+ - spec/unit/braintree/validation_error_spec.rb
188
+ - spec/unit/braintree/xml_spec.rb
189
+ - spec/unit/braintree/subscription_search_spec.rb
190
+ - spec/unit/braintree/transaction_search_spec.rb
191
+ - spec/unit/braintree/paypal_account_spec.rb
192
+ - spec/unit/braintree/risk_data_spec.rb
193
+ - spec/unit/braintree/transaction_spec.rb
223
194
  - spec/unit/braintree/credentials_parser_spec.rb
224
- - spec/unit/braintree_spec.rb
225
- - spec/ssl/privateKey.key
226
- - spec/ssl/certificate.crt
227
- - spec/ssl/geotrust_global.crt
228
- - spec/oauth_test_helper.rb
229
- - spec/httpsd.pid
230
- - spec/script/httpsd.rb
195
+ - spec/unit/braintree/customer_spec.rb
196
+ - spec/spec.opts
197
+ - spec/hacks/tcp_socket.rb
198
+ - spec/spec_helper.rb
199
+ - spec/integration/spec_helper.rb
200
+ - spec/integration/braintree/add_on_spec.rb
201
+ - spec/integration/braintree/test_transaction_spec.rb
202
+ - spec/integration/braintree/disbursement_spec.rb
203
+ - spec/integration/braintree/coinbase_spec.rb
204
+ - spec/integration/braintree/credit_card_verification_spec.rb
205
+ - spec/integration/braintree/subscription_spec.rb
206
+ - spec/integration/braintree/payment_method_spec.rb
207
+ - spec/integration/braintree/credit_card_spec.rb
208
+ - spec/integration/braintree/credit_card_verification_search_spec.rb
209
+ - spec/integration/braintree/payment_method_nonce_spec.rb
210
+ - spec/integration/braintree/error_codes_spec.rb
211
+ - spec/integration/braintree/http_spec.rb
212
+ - spec/integration/braintree/oauth_spec.rb
213
+ - spec/integration/braintree/transparent_redirect_spec.rb
214
+ - spec/integration/braintree/customer_search_spec.rb
215
+ - spec/integration/braintree/merchant_account_spec.rb
216
+ - spec/integration/braintree/address_spec.rb
217
+ - spec/integration/braintree/settlement_batch_summary_spec.rb
218
+ - spec/integration/braintree/transaction_search_spec.rb
219
+ - spec/integration/braintree/paypal_account_spec.rb
220
+ - spec/integration/braintree/discount_spec.rb
221
+ - spec/integration/braintree/plan_spec.rb
222
+ - spec/integration/braintree/merchant_spec.rb
223
+ - spec/integration/braintree/test/transaction_amounts_spec.rb
224
+ - spec/integration/braintree/advanced_search_spec.rb
225
+ - spec/integration/braintree/transaction_spec.rb
226
+ - spec/integration/braintree/client_api/client_token_spec.rb
227
+ - spec/integration/braintree/client_api/spec_helper.rb
228
+ - spec/integration/braintree/customer_spec.rb
231
229
  - braintree.gemspec
232
230
  homepage: http://www.braintreepayments.com/
233
- licenses:
231
+ licenses:
234
232
  - MIT
235
233
  metadata: {}
236
-
237
234
  post_install_message:
238
235
  rdoc_options: []
239
-
240
- require_paths:
236
+ require_paths:
241
237
  - lib
242
- required_ruby_version: !ruby/object:Gem::Requirement
243
- requirements:
244
- - &id002
245
- - ">="
246
- - !ruby/object:Gem::Version
247
- version: "0"
248
- required_rubygems_version: !ruby/object:Gem::Requirement
249
- requirements:
250
- - *id002
238
+ required_ruby_version: !ruby/object:Gem::Requirement
239
+ requirements:
240
+ - - '>='
241
+ - !ruby/object:Gem::Version
242
+ version: '0'
243
+ required_rubygems_version: !ruby/object:Gem::Requirement
244
+ requirements:
245
+ - - '>='
246
+ - !ruby/object:Gem::Version
247
+ version: '0'
251
248
  requirements: []
252
-
253
249
  rubyforge_project: braintree
254
- rubygems_version: 2.0.17
250
+ rubygems_version: 2.1.11
255
251
  signing_key:
256
252
  specification_version: 4
257
253
  summary: Braintree Gateway Ruby Client Library
258
254
  test_files: []
259
-
@@ -1,11 +0,0 @@
1
- module Braintree
2
- module Test # :nodoc:
3
- module AmexRewards
4
- module RequestIds
5
- InternalError = "INTERNAL_ERROR"
6
- CardIneligible = "CARD_INELIGIBLE"
7
- PerformExternalRequest = "PERFORM_EXTERNAL_REQUEST"
8
- end
9
- end
10
- end
11
- end
@@ -1 +0,0 @@
1
- 11847