braintree 4.11.0 → 4.12.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: 2bee761d9c397c8fd16648ea8fbb108ff57e10e821c3867391b9fb39f7f524a4
4
- data.tar.gz: b638e5e4b14ddde9ed7034f7909b0b6c4ab3fc9332cebe5fffd8a141c2e7ab09
3
+ metadata.gz: bfe8849002c4dbacd2476b61311adc19f0939a2c42bb61ccf2ca797d59248054
4
+ data.tar.gz: 7f97e328fdd729365a0117bc8297edac4e12e8e383e8c7b10b06f74862bd8e34
5
5
  SHA512:
6
- metadata.gz: 77c28cf2f97e235be57bca0e0443386c344af4e6c5295b9f9eda7433575a82920b2c5b977138c0b3ebf396101debc76d8a66e358d2119ae9b9c09733a4dfb982
7
- data.tar.gz: d8e3cf8bad775556b0b3c2d89bb372443144d95086abcc21fa8a57e88b335525ec0181f4d11682bcc13d6e1d099beebbec4f7642b38aba29199c563e300a17af
6
+ metadata.gz: 20e3ed69efa6b094974b3461165a3197958df6e62be5f9952d676d14c7411bdae5c2169b2f0e86eab743a94475f436baf3b907ff1dab4a45e984eafa741e3356
7
+ data.tar.gz: b7e5bcbe3a4c57e6aa2a60016e93b0adff02b9dd51601370d94f08d56307e319b19381274e032eb8bd80fffa4ecf5a8c601c3da9e17e38526a8860d981a7d471
@@ -127,6 +127,8 @@ module Braintree
127
127
  attr_reader :installments
128
128
  attr_reader :local_payment_details
129
129
  attr_reader :merchant_account_id
130
+ attr_reader :merchant_advice_code
131
+ attr_reader :merchant_advice_code_text
130
132
  attr_reader :network_response_code # Response code from the card network
131
133
  attr_reader :network_response_text # Response text from the card network
132
134
  attr_reader :network_token_details
@@ -1,7 +1,7 @@
1
1
  module Braintree
2
2
  module Version
3
3
  Major = 4
4
- Minor = 11
4
+ Minor = 12
5
5
  Tiny = 0
6
6
 
7
7
  String = "#{Major}.#{Minor}.#{Tiny}"
@@ -1066,7 +1066,7 @@ describe Braintree::Customer do
1066
1066
  venmo_account.username.should_not be_nil
1067
1067
  end
1068
1068
 
1069
- it "returns associated us bank accounts" do
1069
+ xit "returns associated us bank accounts" do
1070
1070
  result = Braintree::Customer.create(
1071
1071
  :payment_method_nonce => generate_non_plaid_us_bank_account_nonce,
1072
1072
  :credit_card => {
@@ -7261,4 +7261,19 @@ describe Braintree::Transaction do
7261
7261
  end
7262
7262
  end
7263
7263
  end
7264
+
7265
+ context "Merchant Advice Code" do
7266
+ it "exposes MAC and MAC text" do
7267
+ result = Braintree::Transaction.create(
7268
+ :type => "sale",
7269
+ :amount => Braintree::Test::TransactionAmounts::Decline,
7270
+ :credit_card => {
7271
+ :number => Braintree::Test::CreditCardNumbers::MasterCard,
7272
+ :expiration_date => DateTime.now.strftime("%m/%Y")
7273
+ },
7274
+ )
7275
+ expect(result.transaction.merchant_advice_code).to eq("01")
7276
+ expect(result.transaction.merchant_advice_code_text).to eq("New account information available")
7277
+ end
7278
+ end
7264
7279
  end
@@ -298,6 +298,16 @@ describe Braintree::Transaction do
298
298
  expect(transaction.network_response_text).to eq("Successful approval/completion or V.I.P. PIN verification is successful")
299
299
  end
300
300
 
301
+ it "accepts merchant_advice_code and merchant_advice_text" do
302
+ transaction = Braintree::Transaction._new(
303
+ :gateway,
304
+ :merchant_advice_code => "01",
305
+ :merchant_advice_code_text => "New account information available",
306
+ )
307
+ expect(transaction.merchant_advice_code).to eq("01")
308
+ expect(transaction.merchant_advice_code_text).to eq("New account information available")
309
+ end
310
+
301
311
  it "accepts sepa_direct_debit_return_code" do
302
312
  transaction = Braintree::Transaction._new(
303
313
  :gateway,
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.11.0
4
+ version: 4.12.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-04-06 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder
@@ -364,7 +364,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
364
364
  - !ruby/object:Gem::Version
365
365
  version: '0'
366
366
  requirements: []
367
- rubygems_version: 3.4.10
367
+ rubygems_version: 3.4.13
368
368
  signing_key:
369
369
  specification_version: 4
370
370
  summary: Braintree Ruby Server SDK