braintree 2.44.0 → 2.45.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.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YjFiMTFhNjA0MTRhODhhM2QwODI0MDk2YjQ5ZmJmYmMwYWFjZjc2Yg==
5
+ data.tar.gz: !binary |-
6
+ NDk5YmJkZDM5NmY1MDAzNjI4ZjA1ZDJhZjdiNDYyNDNiMmNjNmQyNA==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ YWEyOWEyMzkzZDIwZWUyNzI2MDg1YTU2YjEzOTE5YTg3MDcwYWE4YmZjMjNl
10
+ NWZkNDhlYzkyOGM0Mjg5ZGEwMTRhNWRmY2I2MjdjM2QzMDk3NTY0ZjhkMzE3
11
+ YjZhOTA1ZjdiNzhjYTUxZWM3MzExZjYyMzI3ZjNhN2U0YmNlYWM=
12
+ data.tar.gz: !binary |-
13
+ ZWYyMzM3NDU5ZWE3OTYzZTNlZmRlZDRjNjVkODdiYjBjNmU0NTY4ZjY4Y2Iz
14
+ MTVkZjE5NjU2ZTFmZjI1NGFiMzI5ZGZiYjliMmJhZmRlYTYzYmM0Y2QxOTk3
15
+ MDJlMDA4ZWViOWU1ODU4YmViNTE5ODQzNDhlNDBjZGI2NzBmMTU=
@@ -26,6 +26,7 @@ require "braintree/address"
26
26
  require "braintree/address/country_names"
27
27
  require "braintree/address_gateway"
28
28
  require "braintree/advanced_search"
29
+ require "braintree/android_pay_card"
29
30
  require "braintree/apple_pay_card"
30
31
  require "braintree/client_token"
31
32
  require "braintree/client_token_gateway"
@@ -89,6 +90,7 @@ require "braintree/transaction"
89
90
  require "braintree/test_transaction"
90
91
  require "braintree/transaction/address_details"
91
92
  require "braintree/transaction/apple_pay_details"
93
+ require "braintree/transaction/android_pay_details"
92
94
  require "braintree/transaction/coinbase_details"
93
95
  require "braintree/transaction/credit_card_details"
94
96
  require "braintree/transaction/customer_details"
@@ -0,0 +1,35 @@
1
+ module Braintree
2
+ class AndroidPayCard
3
+ include BaseModule # :nodoc:
4
+
5
+ attr_reader :token, :virtual_card_type, :virtual_card_last_4, :source_card_type, :source_card_last_4,
6
+ :expiration_month, :expiration_year, :created_at, :updated_at, :image_url, :subscriptions, :bin,
7
+ :google_transaction_id, :default
8
+
9
+ def initialize(gateway, attributes) # :nodoc:
10
+ @gateway = gateway
11
+ set_instance_variables_from_hash(attributes)
12
+ @subscriptions = (@subscriptions || []).map { |subscription_hash| Subscription._new(@gateway, subscription_hash) }
13
+ end
14
+
15
+ def default?
16
+ @default
17
+ end
18
+
19
+ def card_type
20
+ virtual_card_type
21
+ end
22
+
23
+ def last_4
24
+ virtual_card_last_4
25
+ end
26
+
27
+ class << self
28
+ protected :new
29
+ end
30
+
31
+ def self._new(*args) # :nodoc:
32
+ self.new *args
33
+ end
34
+ end
35
+ end
@@ -3,7 +3,8 @@ module Braintree
3
3
  include BaseModule
4
4
 
5
5
  attr_reader :addresses, :company, :created_at, :credit_cards, :email, :fax, :first_name, :id, :last_name,
6
- :phone, :updated_at, :website, :custom_fields, :paypal_accounts, :apple_pay_cards, :coinbase_accounts
6
+ :phone, :updated_at, :website, :custom_fields, :paypal_accounts, :apple_pay_cards, :coinbase_accounts,
7
+ :android_pay_cards
7
8
 
8
9
  def self.all
9
10
  Configuration.gateway.customer.all
@@ -90,6 +91,7 @@ module Braintree
90
91
  @coinbase_accounts = (@coinbase_accounts || []).map { |pm| CoinbaseAccount._new gateway, pm }
91
92
  @apple_pay_cards = (@apple_pay_cards || []).map { |pm| ApplePayCard._new gateway, pm }
92
93
  @europe_bank_accounts = (@europe_bank_Accounts || []).map { |pm| EuropeBankAccount._new gateway, pm }
94
+ @android_pay_cards = (@android_pay_cards || []).map { |pm| AndroidPayCard._new gateway, pm }
93
95
  @addresses = (@addresses || []).map { |addr| Address._new gateway, addr }
94
96
  @custom_fields = attributes[:custom_fields].is_a?(Hash) ? attributes[:custom_fields] : {}
95
97
  end
@@ -5,5 +5,6 @@ module Braintree
5
5
  CreditCard = 'credit_card'
6
6
  CoinbaseAccount = 'coinbase_account'
7
7
  ApplePayCard = 'apple_pay_card'
8
+ AndroidPayCard = 'android_pay_card'
8
9
  end
9
10
  end
@@ -22,6 +22,8 @@ module Braintree
22
22
  SuccessfulResult.new(:payment_method => EuropeBankAccount._new(@gateway, response[:europe_bank_account]))
23
23
  elsif response[:apple_pay_card]
24
24
  SuccessfulResult.new(:payment_method => ApplePayCard._new(@gateway, response[:apple_pay_card]))
25
+ elsif response[:android_pay_card]
26
+ SuccessfulResult.new(:payment_method => AndroidPayCard._new(@gateway, response[:android_pay_card]))
25
27
  elsif response[:api_error_response]
26
28
  ErrorResult.new(@gateway, response[:api_error_response])
27
29
  elsif response
@@ -48,6 +50,8 @@ module Braintree
48
50
  EuropeBankAccount._new(@gateway, response[:europe_bank_account])
49
51
  elsif response.has_key?(:apple_pay_card)
50
52
  ApplePayCard._new(@gateway, response[:apple_pay_card])
53
+ elsif response.has_key?(:android_pay_card)
54
+ AndroidPayCard._new(@gateway, response[:android_pay_card])
51
55
  else
52
56
  UnknownPaymentMethod._new(@gateway, response)
53
57
  end
@@ -11,6 +11,7 @@ module Braintree
11
11
  AbstractTransactable = "fake-abstract-transactable-nonce"
12
12
  Europe = "fake-europe-bank-account-nonce"
13
13
  Coinbase = "fake-coinbase-nonce"
14
+ AndroidPay = "fake-android-pay-nonce"
14
15
  end
15
16
  end
16
17
  end
@@ -83,6 +83,7 @@ module Braintree
83
83
  attr_reader :billing_details, :shipping_details
84
84
  attr_reader :paypal_details
85
85
  attr_reader :apple_pay_details
86
+ attr_reader :android_pay_details
86
87
  attr_reader :coinbase_details
87
88
  attr_reader :plan_id
88
89
  # The authorization code from the processor.
@@ -232,6 +233,7 @@ module Braintree
232
233
  @descriptor = Descriptor.new(@descriptor)
233
234
  @paypal_details = PayPalDetails.new(@paypal)
234
235
  @apple_pay_details = ApplePayDetails.new(@apple_pay)
236
+ @android_pay_details = AndroidPayDetails.new(@android_pay_card)
235
237
  @coinbase_details = CoinbaseDetails.new(@coinbase_account)
236
238
  disputes.map! { |attrs| Dispute._new(attrs) } if disputes
237
239
  @custom_fields = attributes[:custom_fields].is_a?(Hash) ? attributes[:custom_fields] : {}
@@ -0,0 +1,16 @@
1
+ module Braintree
2
+ class Transaction
3
+ class AndroidPayDetails
4
+ include BaseModule
5
+
6
+ attr_reader :card_type, :last_4, :expiration_month, :expiration_year,
7
+ :google_transaction_id, :virtual_card_type, :virtual_card_last_4
8
+
9
+ def initialize(attributes)
10
+ set_instance_variables_from_hash attributes unless attributes.nil?
11
+ @card_type = @virtual_card_type
12
+ @last_4 = @virtual_card_last_4
13
+ end
14
+ end
15
+ end
16
+ end
@@ -1,7 +1,7 @@
1
1
  module Braintree
2
2
  module Version
3
3
  Major = 2
4
- Minor = 44
4
+ Minor = 45
5
5
  Tiny = 0
6
6
 
7
7
  String = "#{Major}.#{Minor}.#{Tiny}"
@@ -0,0 +1 @@
1
+ 12094
@@ -759,6 +759,20 @@ describe Braintree::Customer do
759
759
  apple_pay_card.payment_instrument_name.should == "AmEx 41002"
760
760
  end
761
761
 
762
+ it "returns associated AndroidPayCards" do
763
+ result = Braintree::Customer.create(
764
+ :payment_method_nonce => Braintree::Test::Nonce::AndroidPay
765
+ )
766
+ result.success?.should == true
767
+
768
+ found_customer = Braintree::Customer.find(result.customer.id)
769
+ found_customer.android_pay_cards.should_not be_nil
770
+ android_pay_card = found_customer.android_pay_cards.first
771
+ android_pay_card.should be_a Braintree::AndroidPayCard
772
+ android_pay_card.token.should_not be_nil
773
+ android_pay_card.expiration_year.should_not be_nil
774
+ end
775
+
762
776
  it "works for a blank customer" do
763
777
  created_customer = Braintree::Customer.create!
764
778
  found_customer = Braintree::Customer.find(created_customer.id)
@@ -109,6 +109,7 @@ describe Braintree::MerchantAccount do
109
109
  context "funding destination" do
110
110
  it "accepts a bank" do
111
111
  params = VALID_APPLICATION_PARAMS.dup
112
+ params[:funding] = VALID_APPLICATION_PARAMS[:funding].dup
112
113
  params[:funding][:destination] = ::Braintree::MerchantAccount::FundingDestination::Bank
113
114
  result = Braintree::MerchantAccount.create(params)
114
115
 
@@ -117,6 +118,9 @@ describe Braintree::MerchantAccount do
117
118
 
118
119
  it "accepts an email" do
119
120
  params = VALID_APPLICATION_PARAMS.dup
121
+ params[:funding] = VALID_APPLICATION_PARAMS[:funding].dup
122
+ params[:funding].delete(:routing_number)
123
+ params[:funding].delete(:account_number)
120
124
  params[:funding][:destination] = ::Braintree::MerchantAccount::FundingDestination::Email
121
125
  params[:funding][:email] = "joebloggs@compuserve.com"
122
126
  result = Braintree::MerchantAccount.create(params)
@@ -126,6 +130,9 @@ describe Braintree::MerchantAccount do
126
130
 
127
131
  it "accepts a mobile_phone" do
128
132
  params = VALID_APPLICATION_PARAMS.dup
133
+ params[:funding] = VALID_APPLICATION_PARAMS[:funding].dup
134
+ params[:funding].delete(:routing_number)
135
+ params[:funding].delete(:account_number)
129
136
  params[:funding][:destination] = ::Braintree::MerchantAccount::FundingDestination::MobilePhone
130
137
  params[:funding][:mobile_phone] = "3125882300"
131
138
  result = Braintree::MerchantAccount.create(params)
@@ -83,6 +83,7 @@ describe Braintree::PaymentMethod do
83
83
 
84
84
  result.should be_success
85
85
  apple_pay_card = result.payment_method
86
+ apple_pay_card.should be_a(Braintree::ApplePayCard)
86
87
  apple_pay_card.should_not be_nil
87
88
  apple_pay_card.token.should == token
88
89
  apple_pay_card.card_type.should == Braintree::ApplePayCard::CardType::AmEx
@@ -93,6 +94,31 @@ describe Braintree::PaymentMethod do
93
94
  apple_pay_card.expiration_year.to_i.should > 0
94
95
  end
95
96
 
97
+ it "creates a payment method from a fake android pay nonce" do
98
+ customer = Braintree::Customer.create.customer
99
+ token = SecureRandom.hex(16)
100
+ result = Braintree::PaymentMethod.create(
101
+ :payment_method_nonce => Braintree::Test::Nonce::AndroidPay,
102
+ :customer_id => customer.id,
103
+ :token => token
104
+ )
105
+
106
+ result.should be_success
107
+ android_pay_card = result.payment_method
108
+ android_pay_card.should be_a(Braintree::AndroidPayCard)
109
+ android_pay_card.should_not be_nil
110
+ android_pay_card.token.should == token
111
+ android_pay_card.card_type.should == Braintree::CreditCard::CardType::Discover
112
+ android_pay_card.virtual_card_type.should == Braintree::CreditCard::CardType::Discover
113
+ android_pay_card.expiration_month.to_i.should > 0
114
+ android_pay_card.expiration_year.to_i.should > 0
115
+ android_pay_card.default.should == true
116
+ android_pay_card.image_url.should =~ /android_pay/
117
+ android_pay_card.source_card_type.should == Braintree::CreditCard::CardType::Visa
118
+ android_pay_card.source_card_last_4.should == "1111"
119
+ android_pay_card.google_transaction_id.should == "google_transaction_id"
120
+ end
121
+
96
122
  it "allows passing the make_default option alongside the nonce" do
97
123
  customer = Braintree::Customer.create!
98
124
  result = Braintree::CreditCard.create(
@@ -592,6 +618,33 @@ describe Braintree::PaymentMethod do
592
618
  end
593
619
  end
594
620
 
621
+ context "android pay cards" do
622
+ it "finds the payment method with the given token" do
623
+ customer = Braintree::Customer.create!
624
+ payment_method_token = "PAYMENT_METHOD_TOKEN_#{rand(36**3).to_s(36)}"
625
+ result = Braintree::PaymentMethod.create(
626
+ :payment_method_nonce => Braintree::Test::Nonce::AndroidPay,
627
+ :customer_id => customer.id,
628
+ :token => payment_method_token
629
+ )
630
+ result.should be_success
631
+
632
+ android_pay_card = Braintree::PaymentMethod.find(payment_method_token)
633
+ android_pay_card.should be_a(Braintree::AndroidPayCard)
634
+ android_pay_card.should_not be_nil
635
+ android_pay_card.token.should == payment_method_token
636
+ android_pay_card.card_type.should == Braintree::CreditCard::CardType::Discover
637
+ android_pay_card.virtual_card_type.should == Braintree::CreditCard::CardType::Discover
638
+ android_pay_card.expiration_month.to_i.should > 0
639
+ android_pay_card.expiration_year.to_i.should > 0
640
+ android_pay_card.default.should == true
641
+ android_pay_card.image_url.should =~ /android_pay/
642
+ android_pay_card.source_card_type.should == Braintree::CreditCard::CardType::Visa
643
+ android_pay_card.source_card_last_4.should == "1111"
644
+ android_pay_card.google_transaction_id.should == "google_transaction_id"
645
+ end
646
+ end
647
+
595
648
  context "unknown payment methods" do
596
649
  it "finds the payment method with the given token" do
597
650
  customer = Braintree::Customer.create!
@@ -1270,6 +1270,26 @@ describe Braintree::Transaction do
1270
1270
  apple_pay_details.cardholder_name.should_not be_nil
1271
1271
  end
1272
1272
 
1273
+ it "can create a transaction with a fake android pay nonce" do
1274
+ customer = Braintree::Customer.create!
1275
+ result = Braintree::Transaction.create(
1276
+ :type => "sale",
1277
+ :amount => Braintree::Test::TransactionAmounts::Authorize,
1278
+ :payment_method_nonce => Braintree::Test::Nonce::AndroidPay
1279
+ )
1280
+ result.success?.should == true
1281
+ result.transaction.should_not be_nil
1282
+ android_pay_details = result.transaction.android_pay_details
1283
+ android_pay_details.should_not be_nil
1284
+ android_pay_details.card_type.should == Braintree::CreditCard::CardType::Discover
1285
+ android_pay_details.virtual_card_type.should == Braintree::CreditCard::CardType::Discover
1286
+ android_pay_details.last_4.should == "1117"
1287
+ android_pay_details.virtual_card_last_4.should == "1117"
1288
+ android_pay_details.expiration_month.to_i.should > 0
1289
+ android_pay_details.expiration_year.to_i.should > 0
1290
+ android_pay_details.google_transaction_id.should == "google_transaction_id"
1291
+ end
1292
+
1273
1293
  it "can create a transaction with an unknown nonce" do
1274
1294
  customer = Braintree::Customer.create!
1275
1295
  result = Braintree::Transaction.create(
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: braintree
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.44.0
5
- prerelease:
4
+ version: 2.45.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Braintree
@@ -14,7 +13,6 @@ dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: builder
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -36,212 +33,214 @@ files:
36
33
  - README.rdoc
37
34
  - LICENSE
38
35
  - lib/braintree.rb
39
- - lib/braintree/credit_card.rb
40
- - lib/braintree/test_transaction.rb
41
- - lib/braintree/risk_data.rb
42
- - lib/braintree/disbursement.rb
36
+ - lib/braintree/dispute/transaction_details.rb
37
+ - lib/braintree/util.rb
38
+ - lib/braintree/plan_gateway.rb
39
+ - lib/braintree/webhook_testing_gateway.rb
40
+ - lib/braintree/version.rb
41
+ - lib/braintree/base_module.rb
43
42
  - lib/braintree/subscription_gateway.rb
44
- - lib/braintree/paypal_account_gateway.rb
45
- - lib/braintree/payment_instrument_type.rb
46
- - lib/braintree/error_codes.rb
47
- - lib/braintree/apple_pay_card.rb
43
+ - lib/braintree/xml.rb
44
+ - lib/braintree/settlement_batch_summary_gateway.rb
48
45
  - lib/braintree/coinbase_account.rb
46
+ - lib/braintree/payment_method_gateway.rb
49
47
  - lib/braintree/transaction_gateway.rb
50
- - lib/braintree/subscription/status_details.rb
51
- - lib/braintree/credit_card_verification_search.rb
52
- - lib/braintree/unknown_payment_method.rb
53
- - lib/braintree/address.rb
54
- - lib/braintree/dispute/transaction_details.rb
55
- - lib/braintree/transaction/disbursement_details.rb
56
- - lib/braintree/transaction/paypal_details.rb
57
- - lib/braintree/transaction/address_details.rb
58
- - lib/braintree/transaction/credit_card_details.rb
59
- - lib/braintree/transaction/status_details.rb
60
- - lib/braintree/transaction/coinbase_details.rb
61
- - lib/braintree/transaction/subscription_details.rb
62
- - lib/braintree/transaction/apple_pay_details.rb
63
- - lib/braintree/transaction/customer_details.rb
64
- - lib/braintree/paypal_account.rb
65
- - lib/braintree/dispute.rb
66
- - lib/braintree/merchant_account.rb
67
- - lib/braintree/plan.rb
68
- - lib/braintree/gateway.rb
69
- - lib/braintree/webhook_testing.rb
70
- - lib/braintree/customer.rb
71
- - lib/braintree/validation_error.rb
72
- - lib/braintree/transparent_redirect_gateway.rb
73
48
  - lib/braintree/descriptor.rb
74
- - lib/braintree/digest.rb
75
- - lib/braintree/webhook_notification.rb
76
- - lib/braintree/advanced_search.rb
77
- - lib/braintree/signature_service.rb
49
+ - lib/braintree/subscription_search.rb
50
+ - lib/braintree/transparent_redirect.rb
51
+ - lib/braintree/error_codes.rb
52
+ - lib/braintree/settlement_batch.rb
53
+ - lib/braintree/credit_card_verification_gateway.rb
54
+ - lib/braintree/address/country_names.rb
55
+ - lib/braintree/errors.rb
78
56
  - lib/braintree/credit_card_verification.rb
79
- - lib/braintree/plan_gateway.rb
80
- - lib/braintree/europe_bank_account_gateway.rb
57
+ - lib/braintree/paypal_account_gateway.rb
81
58
  - lib/braintree/credit_card_gateway.rb
82
- - lib/braintree/xml.rb
83
- - lib/braintree/transaction.rb
84
- - lib/braintree/sha256_digest.rb
85
- - lib/braintree/merchant_account_gateway.rb
86
- - lib/braintree/address/country_names.rb
87
- - lib/braintree/client_token_gateway.rb
88
- - lib/braintree/transaction_search.rb
89
- - lib/braintree/version.rb
90
- - lib/braintree/subscription_search.rb
91
- - lib/braintree/exceptions.rb
92
- - lib/braintree/configuration.rb
93
- - lib/braintree/payment_method_nonce_gateway.rb
94
- - lib/braintree/settlement_batch_summary_gateway.rb
95
- - lib/braintree/customer_search.rb
59
+ - lib/braintree/europe_bank_account_gateway.rb
96
60
  - lib/braintree/http.rb
97
- - lib/braintree/merchant_account/address_details.rb
98
- - lib/braintree/merchant_account/business_details.rb
99
- - lib/braintree/merchant_account/funding_details.rb
100
- - lib/braintree/merchant_account/individual_details.rb
101
- - lib/braintree/util.rb
102
- - lib/braintree/payment_method.rb
103
- - lib/braintree/europe_bank_account.rb
104
- - lib/braintree/discount.rb
105
- - lib/braintree/base_module.rb
106
- - lib/braintree/webhook_notification_gateway.rb
107
- - lib/braintree/validation_error_collection.rb
108
- - lib/braintree/payment_method_gateway.rb
109
- - lib/braintree/discount_gateway.rb
61
+ - lib/braintree/sha256_digest.rb
62
+ - lib/braintree/gateway.rb
110
63
  - lib/braintree/three_d_secure_info.rb
111
- - lib/braintree/subscription.rb
112
- - lib/braintree/xml/generator.rb
64
+ - lib/braintree/payment_method_nonce.rb
65
+ - lib/braintree/subscription/status_details.rb
66
+ - lib/braintree/client_token.rb
67
+ - lib/braintree/signature_service.rb
68
+ - lib/braintree/successful_result.rb
69
+ - lib/braintree/android_pay_card.rb
70
+ - lib/braintree/digest.rb
71
+ - lib/braintree/transparent_redirect_gateway.rb
72
+ - lib/braintree/credit_card.rb
73
+ - lib/braintree/add_on_gateway.rb
74
+ - lib/braintree/disbursement.rb
75
+ - lib/braintree/webhook_testing.rb
113
76
  - lib/braintree/xml/parser.rb
114
77
  - lib/braintree/xml/rexml.rb
78
+ - lib/braintree/xml/generator.rb
115
79
  - lib/braintree/xml/libxml.rb
116
- - lib/braintree/address_gateway.rb
117
- - lib/braintree/credit_card_verification_gateway.rb
118
- - lib/braintree/add_on.rb
119
- - lib/braintree/errors.rb
120
- - lib/braintree/modification.rb
121
- - lib/braintree/resource_collection.rb
122
- - lib/braintree/webhook_testing_gateway.rb
123
- - lib/braintree/add_on_gateway.rb
124
- - lib/braintree/error_result.rb
125
- - lib/braintree/settlement_batch.rb
126
- - lib/braintree/successful_result.rb
127
- - lib/braintree/client_token.rb
128
- - lib/braintree/settlement_batch_summary.rb
80
+ - lib/braintree/subscription.rb
81
+ - lib/braintree/paypal_account.rb
82
+ - lib/braintree/address.rb
83
+ - lib/braintree/test/nonce.rb
129
84
  - lib/braintree/test/credit_card.rb
130
- - lib/braintree/test/venmo_sdk.rb
131
85
  - lib/braintree/test/merchant_account.rb
132
86
  - lib/braintree/test/transaction_amounts.rb
133
- - lib/braintree/test/nonce.rb
87
+ - lib/braintree/test/venmo_sdk.rb
88
+ - lib/braintree/discount_gateway.rb
89
+ - lib/braintree/merchant_account/address_details.rb
90
+ - lib/braintree/merchant_account/funding_details.rb
91
+ - lib/braintree/merchant_account/business_details.rb
92
+ - lib/braintree/merchant_account/individual_details.rb
134
93
  - lib/braintree/customer_gateway.rb
135
- - lib/braintree/payment_method_nonce.rb
94
+ - lib/braintree/error_result.rb
95
+ - lib/braintree/merchant_account.rb
96
+ - lib/braintree/discount.rb
97
+ - lib/braintree/settlement_batch_summary.rb
98
+ - lib/braintree/exceptions.rb
99
+ - lib/braintree/address_gateway.rb
100
+ - lib/braintree/dispute.rb
101
+ - lib/braintree/unknown_payment_method.rb
102
+ - lib/braintree/customer_search.rb
103
+ - lib/braintree/customer.rb
104
+ - lib/braintree/resource_collection.rb
105
+ - lib/braintree/configuration.rb
106
+ - lib/braintree/credit_card_verification_search.rb
107
+ - lib/braintree/validation_error.rb
108
+ - lib/braintree/apple_pay_card.rb
109
+ - lib/braintree/merchant_account_gateway.rb
110
+ - lib/braintree/modification.rb
111
+ - lib/braintree/plan.rb
112
+ - lib/braintree/advanced_search.rb
113
+ - lib/braintree/payment_method_nonce_gateway.rb
114
+ - lib/braintree/validation_error_collection.rb
115
+ - lib/braintree/client_token_gateway.rb
116
+ - lib/braintree/webhook_notification_gateway.rb
117
+ - lib/braintree/risk_data.rb
118
+ - lib/braintree/transaction/address_details.rb
119
+ - lib/braintree/transaction/apple_pay_details.rb
120
+ - lib/braintree/transaction/customer_details.rb
121
+ - lib/braintree/transaction/paypal_details.rb
122
+ - lib/braintree/transaction/status_details.rb
123
+ - lib/braintree/transaction/android_pay_details.rb
124
+ - lib/braintree/transaction/disbursement_details.rb
125
+ - lib/braintree/transaction/credit_card_details.rb
126
+ - lib/braintree/transaction/subscription_details.rb
127
+ - lib/braintree/transaction/coinbase_details.rb
136
128
  - lib/braintree/testing_gateway.rb
137
- - lib/braintree/transparent_redirect.rb
138
- - lib/ssl/www_braintreegateway_com.ca.crt
129
+ - lib/braintree/transaction_search.rb
130
+ - lib/braintree/add_on.rb
131
+ - lib/braintree/webhook_notification.rb
132
+ - lib/braintree/payment_instrument_type.rb
133
+ - lib/braintree/transaction.rb
134
+ - lib/braintree/europe_bank_account.rb
135
+ - lib/braintree/test_transaction.rb
136
+ - lib/braintree/payment_method.rb
137
+ - lib/ssl/sandbox_braintreegateway_com.ca.crt
139
138
  - lib/ssl/securetrust_ca.crt
139
+ - lib/ssl/www_braintreegateway_com.ca.crt
140
140
  - lib/ssl/api_braintreegateway_com.ca.crt
141
- - lib/ssl/sandbox_braintreegateway_com.ca.crt
142
- - spec/script/httpsd.rb
143
- - spec/spec.opts
144
- - spec/ssl/geotrust_global.crt
145
- - spec/ssl/certificate.crt
146
- - spec/ssl/privateKey.key
147
- - spec/hacks/tcp_socket.rb
148
- - spec/spec_helper.rb
149
141
  - spec/integration/spec_helper.rb
142
+ - spec/integration/braintree/coinbase_spec.rb
150
143
  - spec/integration/braintree/paypal_account_spec.rb
151
- - spec/integration/braintree/transaction_spec.rb
144
+ - spec/integration/braintree/http_spec.rb
145
+ - spec/integration/braintree/discount_spec.rb
152
146
  - spec/integration/braintree/subscription_spec.rb
153
- - spec/integration/braintree/add_on_spec.rb
154
- - spec/integration/braintree/customer_spec.rb
147
+ - spec/integration/braintree/error_codes_spec.rb
148
+ - spec/integration/braintree/customer_search_spec.rb
149
+ - spec/integration/braintree/credit_card_spec.rb
155
150
  - spec/integration/braintree/payment_method_spec.rb
156
- - spec/integration/braintree/disbursement_spec.rb
157
- - spec/integration/braintree/merchant_account_spec.rb
151
+ - spec/integration/braintree/settlement_batch_summary_spec.rb
158
152
  - spec/integration/braintree/credit_card_verification_spec.rb
153
+ - spec/integration/braintree/transaction_spec.rb
154
+ - spec/integration/braintree/credit_card_verification_search_spec.rb
155
+ - spec/integration/braintree/test/transaction_amounts_spec.rb
159
156
  - spec/integration/braintree/address_spec.rb
160
- - spec/integration/braintree/error_codes_spec.rb
161
- - spec/integration/braintree/payment_method_nonce_spec.rb
162
- - spec/integration/braintree/coinbase_spec.rb
163
- - spec/integration/braintree/http_spec.rb
164
- - spec/integration/braintree/settlement_batch_summary_spec.rb
157
+ - spec/integration/braintree/plan_spec.rb
158
+ - spec/integration/braintree/merchant_account_spec.rb
159
+ - spec/integration/braintree/disbursement_spec.rb
165
160
  - spec/integration/braintree/advanced_search_spec.rb
166
- - spec/integration/braintree/credit_card_spec.rb
167
- - spec/integration/braintree/customer_search_spec.rb
168
- - spec/integration/braintree/transparent_redirect_spec.rb
169
- - spec/integration/braintree/discount_spec.rb
170
- - spec/integration/braintree/credit_card_verification_search_spec.rb
161
+ - spec/integration/braintree/payment_method_nonce_spec.rb
162
+ - spec/integration/braintree/add_on_spec.rb
171
163
  - spec/integration/braintree/test_transaction_spec.rb
164
+ - spec/integration/braintree/customer_spec.rb
172
165
  - spec/integration/braintree/transaction_search_spec.rb
173
166
  - spec/integration/braintree/client_api/client_token_spec.rb
174
167
  - spec/integration/braintree/client_api/spec_helper.rb
175
- - spec/integration/braintree/test/transaction_amounts_spec.rb
176
- - spec/integration/braintree/plan_spec.rb
177
- - spec/unit/braintree_spec.rb
168
+ - spec/integration/braintree/transparent_redirect_spec.rb
178
169
  - spec/unit/spec_helper.rb
179
170
  - spec/unit/braintree/paypal_account_spec.rb
180
- - spec/unit/braintree/sha256_digest_spec.rb
181
- - spec/unit/braintree/transaction_spec.rb
182
- - spec/unit/braintree/resource_collection_spec.rb
171
+ - spec/unit/braintree/successful_result_spec.rb
172
+ - spec/unit/braintree/base_module_spec.rb
173
+ - spec/unit/braintree/http_spec.rb
183
174
  - spec/unit/braintree/subscription_spec.rb
184
- - spec/unit/braintree/customer_spec.rb
185
- - spec/unit/braintree/transaction/credit_card_details_spec.rb
186
- - spec/unit/braintree/transaction/deposit_details_spec.rb
187
- - spec/unit/braintree/transaction/customer_details_spec.rb
188
- - spec/unit/braintree/risk_data_spec.rb
189
- - spec/unit/braintree/payment_method_spec.rb
190
- - spec/unit/braintree/disbursement_spec.rb
175
+ - spec/unit/braintree/configuration_spec.rb
176
+ - spec/unit/braintree/webhook_notification_spec.rb
191
177
  - spec/unit/braintree/digest_spec.rb
192
- - spec/unit/braintree/merchant_account_spec.rb
193
- - spec/unit/braintree/credit_card_verification_spec.rb
194
- - spec/unit/braintree/address_spec.rb
195
178
  - spec/unit/braintree/apple_pay_card_spec.rb
196
- - spec/unit/braintree/signature_service_spec.rb
197
- - spec/unit/braintree/unknown_payment_method_spec.rb
198
- - spec/unit/braintree/three_d_secure_info_spec.rb
199
- - spec/unit/braintree/error_result_spec.rb
200
179
  - spec/unit/braintree/errors_spec.rb
201
- - spec/unit/braintree/http_spec.rb
202
180
  - spec/unit/braintree/credit_card_spec.rb
203
- - spec/unit/braintree/client_token_spec.rb
204
- - spec/unit/braintree/modification_spec.rb
205
- - spec/unit/braintree/base_module_spec.rb
206
- - spec/unit/braintree/validation_error_spec.rb
207
- - spec/unit/braintree/successful_result_spec.rb
181
+ - spec/unit/braintree/three_d_secure_info_spec.rb
182
+ - spec/unit/braintree/payment_method_spec.rb
183
+ - spec/unit/braintree/xml/libxml_spec.rb
208
184
  - spec/unit/braintree/xml/parser_spec.rb
209
185
  - spec/unit/braintree/xml/rexml_spec.rb
210
- - spec/unit/braintree/xml/libxml_spec.rb
211
- - spec/unit/braintree/validation_error_collection_spec.rb
212
- - spec/unit/braintree/transparent_redirect_spec.rb
186
+ - spec/unit/braintree/risk_data_spec.rb
187
+ - spec/unit/braintree/credit_card_verification_spec.rb
188
+ - spec/unit/braintree/transaction_spec.rb
213
189
  - spec/unit/braintree/credit_card_verification_search_spec.rb
214
- - spec/unit/braintree/subscription_search_spec.rb
190
+ - spec/unit/braintree/address_spec.rb
191
+ - spec/unit/braintree/client_token_spec.rb
192
+ - spec/unit/braintree/modification_spec.rb
193
+ - spec/unit/braintree/merchant_account_spec.rb
194
+ - spec/unit/braintree/resource_collection_spec.rb
195
+ - spec/unit/braintree/error_result_spec.rb
196
+ - spec/unit/braintree/disbursement_spec.rb
215
197
  - spec/unit/braintree/dispute_spec.rb
216
- - spec/unit/braintree/transaction_search_spec.rb
217
- - spec/unit/braintree/webhook_notification_spec.rb
198
+ - spec/unit/braintree/signature_service_spec.rb
199
+ - spec/unit/braintree/validation_error_collection_spec.rb
200
+ - spec/unit/braintree/customer_spec.rb
201
+ - spec/unit/braintree/subscription_search_spec.rb
218
202
  - spec/unit/braintree/util_spec.rb
203
+ - spec/unit/braintree/transaction/customer_details_spec.rb
204
+ - spec/unit/braintree/transaction/credit_card_details_spec.rb
205
+ - spec/unit/braintree/transaction/deposit_details_spec.rb
206
+ - spec/unit/braintree/transaction_search_spec.rb
207
+ - spec/unit/braintree/unknown_payment_method_spec.rb
219
208
  - spec/unit/braintree/xml_spec.rb
220
- - spec/unit/braintree/configuration_spec.rb
209
+ - spec/unit/braintree/transparent_redirect_spec.rb
210
+ - spec/unit/braintree/validation_error_spec.rb
211
+ - spec/unit/braintree/sha256_digest_spec.rb
212
+ - spec/unit/braintree_spec.rb
213
+ - spec/httpsd.pid
214
+ - spec/ssl/geotrust_global.crt
215
+ - spec/ssl/privateKey.key
216
+ - spec/ssl/certificate.crt
217
+ - spec/spec.opts
218
+ - spec/script/httpsd.rb
219
+ - spec/hacks/tcp_socket.rb
220
+ - spec/spec_helper.rb
221
221
  - braintree.gemspec
222
222
  homepage: http://www.braintreepayments.com/
223
223
  licenses:
224
224
  - MIT
225
+ metadata: {}
225
226
  post_install_message:
226
227
  rdoc_options: []
227
228
  require_paths:
228
229
  - lib
229
230
  required_ruby_version: !ruby/object:Gem::Requirement
230
- none: false
231
231
  requirements:
232
232
  - - ! '>='
233
233
  - !ruby/object:Gem::Version
234
234
  version: '0'
235
235
  required_rubygems_version: !ruby/object:Gem::Requirement
236
- none: false
237
236
  requirements:
238
237
  - - ! '>='
239
238
  - !ruby/object:Gem::Version
240
239
  version: '0'
241
240
  requirements: []
242
241
  rubyforge_project: braintree
243
- rubygems_version: 1.8.23
242
+ rubygems_version: 2.1.11
244
243
  signing_key:
245
- specification_version: 3
244
+ specification_version: 4
246
245
  summary: Braintree Gateway Ruby Client Library
247
246
  test_files: []