braintree 2.99.0 → 2.100.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35130c66d5071330674c5341da2e1586416f802a696845c1d81c8076fde0899c
4
- data.tar.gz: 7d5f478974b02500f9866f650d6d5f3fdcc700d979aacf64dc7806bf331e6c34
3
+ metadata.gz: ce8a0ffb1227a51cbb8d3f53339a7b9c6f4ea4cb934a1f8650fe0376394c5e3d
4
+ data.tar.gz: b500561e20d50b0b30b816fe9152d2cf838555304a544508d800f4f8202e02c4
5
5
  SHA512:
6
- metadata.gz: 4a58351bfeed6f12c5988bae9af906a5aa73ff287494e6df8bd01f990140adde54dbe9c1ac9c0afd97a44b4f9dca9d5ffff115be76a7278242d6ff17c3cc397a
7
- data.tar.gz: e6b523d6609ed0ae3784b9ddaa43e1fb3e65c5dc05df67e65b752e0b01d104331aedfce100e6244da10099ef1fa80252959d0c3b3473a7488c0fe3ddd8878c3d
6
+ metadata.gz: d86f151ea614c6c8f5f1297873efa2c8a7e1f567bd05b06fbb9aa6216ef45ccd3b3d6aef0d40204028b05a7bd8fcfa010d9b3670fdd5a88babcc81fdfb7d3a48
7
+ data.tar.gz: 70efed7f2733dd6055fc868ca7ff7bf104dcc550a6499c7fe10bb7c1f17f33e4c686eee676463af6bd4725d1a298816871418accba721ad840b6b1d8821006ca
@@ -113,6 +113,7 @@ module Braintree
113
113
  :billing_address_id, :cardholder_name, :cvv, :device_session_id, :expiration_date,
114
114
  :expiration_month, :expiration_year, :number, :token, :venmo_sdk_payment_method_code,
115
115
  :device_data, :fraud_merchant_id, :payment_method_nonce,
116
+ {:external_vault => [:network_transaction_id]},
116
117
  {:options => options},
117
118
  {:billing_address => billing_address_params}
118
119
  ]
@@ -383,6 +383,7 @@ module Braintree
383
383
  ProcessorDoesNotSupportCredits = "91546"
384
384
  ProcessorDoesNotSupportPartialSettlement = "915102"
385
385
  ProcessorDoesNotSupportVoiceAuthorizations = "91545"
386
+ ProcessorDoesNotSupportMotoForCardType = "915195"
386
387
  PurchaseOrderNumberIsInvalid = "91548"
387
388
  PurchaseOrderNumberIsTooLong = "91537"
388
389
  RefundAmountIsTooLarge = "91521"
@@ -3,6 +3,7 @@ module Braintree
3
3
  class AndroidPayDetails
4
4
  include BaseModule
5
5
 
6
+ attr_reader :bin
6
7
  attr_reader :card_type
7
8
  attr_reader :expiration_month
8
9
  attr_reader :expiration_year
@@ -3,6 +3,7 @@ module Braintree
3
3
  class ApplePayDetails
4
4
  include BaseModule
5
5
 
6
+ attr_reader :bin
6
7
  attr_reader :card_type
7
8
  attr_reader :cardholder_name
8
9
  attr_reader :expiration_month
@@ -1,7 +1,7 @@
1
1
  module Braintree
2
2
  module Version
3
3
  Major = 2
4
- Minor = 99
4
+ Minor = 100
5
5
  Tiny = 0
6
6
 
7
7
  String = "#{Major}.#{Minor}.#{Tiny}"
@@ -336,6 +336,21 @@ describe Braintree::CreditCard do
336
336
  Braintree::CreditCard.find(card1.token).should_not be_default
337
337
  end
338
338
 
339
+ it "can set the network transaction identifier when creating a credit card" do
340
+ customer = Braintree::Customer.create!
341
+
342
+ result = Braintree::CreditCard.create(
343
+ :customer_id => customer.id,
344
+ :number => Braintree::Test::CreditCardNumbers::Visa,
345
+ :expiration_date => "05/2009",
346
+ :external_vault => {
347
+ :network_transaction_id => "MCC123456789",
348
+ },
349
+ )
350
+
351
+ expect(result.success?).to eq(true)
352
+ end
353
+
339
354
  context "card type indicators" do
340
355
  it "sets the prepaid field if the card is prepaid" do
341
356
  customer = Braintree::Customer.create!
@@ -1645,6 +1645,7 @@ describe Braintree::Transaction do
1645
1645
  result.transaction.should_not be_nil
1646
1646
  apple_pay_details = result.transaction.apple_pay_details
1647
1647
  apple_pay_details.should_not be_nil
1648
+ apple_pay_details.bin.should_not be_nil
1648
1649
  apple_pay_details.card_type.should == Braintree::ApplePayCard::CardType::Visa
1649
1650
  apple_pay_details.payment_instrument_name.should == "Visa 8886"
1650
1651
  apple_pay_details.source_description.should == "Visa 8886"
@@ -1695,6 +1696,7 @@ describe Braintree::Transaction do
1695
1696
  result.transaction.should_not be_nil
1696
1697
  android_pay_details = result.transaction.android_pay_details
1697
1698
  android_pay_details.should_not be_nil
1699
+ android_pay_details.bin.should_not be_nil
1698
1700
  android_pay_details.card_type.should == Braintree::CreditCard::CardType::Discover
1699
1701
  android_pay_details.virtual_card_type.should == Braintree::CreditCard::CardType::Discover
1700
1702
  android_pay_details.last_4.should == "1117"
@@ -25,6 +25,7 @@ describe Braintree::CreditCard do
25
25
  :device_data,
26
26
  :fraud_merchant_id,
27
27
  :payment_method_nonce,
28
+ {:external_vault=>[:network_transaction_id]},
28
29
  {:options => [:make_default, :verification_merchant_account_id, :verify_card, :verification_amount, :venmo_sdk_session, :fail_on_duplicate_payment_method, :verification_account_type]},
29
30
  {:billing_address => [
30
31
  :company,
@@ -61,6 +62,7 @@ describe Braintree::CreditCard do
61
62
  :device_data,
62
63
  :fraud_merchant_id,
63
64
  :payment_method_nonce,
65
+ {:external_vault=>[:network_transaction_id]},
64
66
  {:options => [:make_default, :verification_merchant_account_id, :verify_card, :verification_amount, :venmo_sdk_session, :fail_on_duplicate_payment_method, :verification_account_type]},
65
67
  {:billing_address => [
66
68
  :company,
@@ -101,6 +101,7 @@ describe Braintree::Customer do
101
101
  :device_data,
102
102
  :fraud_merchant_id,
103
103
  :payment_method_nonce,
104
+ {:external_vault=>[:network_transaction_id]},
104
105
  {:options => [:make_default, :verification_merchant_account_id, :verify_card, :verification_amount, :venmo_sdk_session, :fail_on_duplicate_payment_method, :verification_account_type]},
105
106
  {:billing_address => [
106
107
  :company,
@@ -179,6 +180,7 @@ describe Braintree::Customer do
179
180
  :device_data,
180
181
  :fraud_merchant_id,
181
182
  :payment_method_nonce,
183
+ {:external_vault=>[:network_transaction_id]},
182
184
  {:options => [
183
185
  :make_default,
184
186
  :verification_merchant_account_id,
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.99.0
4
+ version: 2.100.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Braintree
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-02 00:00:00.000000000 Z
11
+ date: 2019-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder