braintree 2.59.0 → 2.60.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NzNjMjU5ZTQyNTlmM2EzYzk1ODQwMjgxMDRiNWYzMjE2NDZmZWY0Yg==
5
- data.tar.gz: !binary |-
6
- YWYxMWEzYWE2NmYwNTExZWZjMDNmZGI1NDBjN2MyNmJjMGYzZTBiMA==
7
- SHA512:
8
- metadata.gz: !binary |-
9
- OTYwNGNhMGFhMzUwYTg5MjlkYzk0YTIzMjQyY2M3NjM5OGYzNmJmMTYxM2I4
10
- ZjYwNGNlNWNhOGNlNjU1Nzk2Y2EwMmYyNjQ4NjFiM2QyMmY5MjA1YTRjZDc4
11
- MDBlNDM3ZjdhMDJkMDk1NWJjYzllZTdiMWM1ZWFiMGZkMDMxMTg=
12
- data.tar.gz: !binary |-
13
- ZjA0NmNiN2MxMjBlYjMxNzIxYTVmMjNlYWE1NTA0ZDU4MTVlMjhhZjExYjAy
14
- NjM2OTM3YzJlM2Q0OTgwYmViNjIwNmZhN2E3MDZkMTc2NGIzMmFiODc2YTcz
15
- NzJkNGU1YzY4OWVlNzAzMGFmYzJlNWQxMWUzZDM2MTlkM2ExYWM=
1
+ ---
2
+ SHA1:
3
+ data.tar.gz: f64561b1b82b8a824ce2101f7155c83b1e0f6879
4
+ metadata.gz: 733dc78ef9bad90d24f86f155467dd885a98f7d5
5
+ SHA512:
6
+ data.tar.gz: badb67e03e36b3ba7117bd106b9e27c015ae9c4cbddf238f2708b6720211ec0fcc0a60408b34e4486e69c263a2eb30cf35d87c97c9a76a3f67ed75dbd9bbbe92
7
+ metadata.gz: 31e55977b925aa79669210d1463ebd6544da4313ef4df50509c3ee43daaa2a9ae5e9690787d50d6186fcce8f515b5b5c3e006169ba7176d618ac9173e5ddb6fd
@@ -16,6 +16,7 @@ module Braintree
16
16
  FirstNameIsInvalid = "91819"
17
17
  FirstNameIsTooLong = "81805"
18
18
  InconsistentCountry = "91815"
19
+ IsInvalid = "91828"
19
20
  LastNameIsInvalid = "91820"
20
21
  LastNameIsTooLong = "81806"
21
22
  LocalityIsInvalid = "91824"
@@ -384,10 +385,12 @@ module Braintree
384
385
  CountryCodeNumericIsNotAccepted = "93608"
385
386
  CountryNameIsInvalid = "93611"
386
387
  CountryNameIsNotAccepted = "93610"
388
+ CurrenciesAreInvalid = "93614"
387
389
  EmailFormatIsInvalid = "93602"
388
390
  EmailIsRequired = "83601"
389
391
  InconsistentCountry = "93612"
390
392
  PaymentMethodsAreInvalid = "93613"
393
+ PaymentMethodsAreNotAllowed = "93615"
391
394
  end
392
395
 
393
396
  module MerchantAccount
@@ -2,9 +2,13 @@ module Braintree
2
2
  class Merchant
3
3
  include BaseModule # :nodoc:
4
4
 
5
- attr_reader :id, :email, :company_name, :country_code_alpha2, :country_code_alpha3, :country_code_numeric, :country_name
5
+ attr_reader :id, :email, :company_name, :country_code_alpha2, :country_code_alpha3, :country_code_numeric, :country_name, :merchant_accounts
6
6
 
7
7
  def initialize(attributes) # :nodoc:
8
+ @merchant_accounts = attributes.delete(:merchant_accounts).map do |merchant_account|
9
+ MerchantAccount._new(Configuration.gateway, merchant_account)
10
+ end
11
+
8
12
  set_instance_variables_from_hash(attributes)
9
13
  end
10
14
 
@@ -20,7 +20,7 @@ module Braintree
20
20
 
21
21
  attr_reader :status, :id, :master_merchant_account,
22
22
  :individual_details, :business_details, :funding_details,
23
- :currency_iso_code
23
+ :currency_iso_code, :default
24
24
 
25
25
  def self.create(attributes)
26
26
  Configuration.gateway.merchant_account.create(attributes)
@@ -107,8 +107,12 @@ module Braintree
107
107
  SuccessfulResult.new(:payment_method => CreditCard._new(@gateway, response[:credit_card]))
108
108
  elsif response[:paypal_account]
109
109
  SuccessfulResult.new(:payment_method => PayPalAccount._new(@gateway, response[:paypal_account]))
110
+ elsif response[:coinbase_account]
111
+ SuccessfulResult.new(:payment_method => CoinbaseAccount._new(@gateway, response[:coinbase_account]))
110
112
  elsif response[:api_error_response]
111
113
  ErrorResult.new(@gateway, response[:api_error_response])
114
+ elsif response
115
+ SuccessfulResult.new(:payment_method => UnknownPaymentMethod._new(@gateway, response))
112
116
  else
113
117
  raise UnexpectedError, "expected :payment_method or :api_error_response"
114
118
  end
@@ -1,7 +1,7 @@
1
1
  module Braintree
2
2
  module Version
3
3
  Major = 2
4
- Minor = 59
4
+ Minor = 60
5
5
  Tiny = 0
6
6
 
7
7
  String = "#{Major}.#{Minor}.#{Tiny}"
@@ -1 +1 @@
1
- 31643
1
+ 21966
@@ -172,6 +172,19 @@ describe Braintree::Customer do
172
172
  result.credit_card_verification.status.should == Braintree::Transaction::Status::ProcessorDeclined
173
173
  end
174
174
 
175
+ it "allows a verification_amount" do
176
+ result = Braintree::Customer.create(
177
+ :first_name => "Mike",
178
+ :last_name => "Jones",
179
+ :credit_card => {
180
+ :number => Braintree::Test::CreditCardNumbers::MasterCard,
181
+ :expiration_date => "05/2019",
182
+ :options => {:verify_card => true, :verification_amount => "2.00"}
183
+ }
184
+ )
185
+ result.success?.should == true
186
+ end
187
+
175
188
  it "fails on create if credit_card[options][fail_on_duplicate_payment_method]=true and there is a duplicated payment method" do
176
189
  customer = Braintree::Customer.create!
177
190
  Braintree::CreditCard.create(
@@ -963,6 +976,24 @@ describe Braintree::Customer do
963
976
  credit_card.billing_address.postal_code.should == "60666"
964
977
  end
965
978
 
979
+ it "can update the customer and verify_card with a specific verification_amount" do
980
+ customer = Braintree::Customer.create!(
981
+ :first_name => "Joe"
982
+ )
983
+
984
+ result = Braintree::Customer.update(
985
+ customer.id,
986
+ :first_name => "New Joe",
987
+ :credit_card => {
988
+ :cardholder_name => "New Joe Cardholder",
989
+ :number => Braintree::Test::CreditCardNumbers::Visa,
990
+ :expiration_date => "12/2009",
991
+ :options => { :verify_card => true, :verification_amount => "2.00" }
992
+ }
993
+ )
994
+ result.success?.should == true
995
+ end
996
+
966
997
  it "can update the nested billing address with billing_address_id" do
967
998
  customer = Braintree::Customer.create!
968
999
 
@@ -27,8 +27,8 @@ describe Braintree::MerchantGateway do
27
27
  merchant.country_name.should == "United States of America"
28
28
 
29
29
  credentials = result.credentials
30
- credentials.access_token.should start_with("access_token$")
31
- credentials.refresh_token.should start_with("refresh_token$")
30
+ credentials.access_token.should_not be_nil
31
+ credentials.refresh_token.should_not be_nil
32
32
  credentials.expires_at.should_not be_nil
33
33
  credentials.token_type.should == "bearer"
34
34
  end
@@ -51,6 +51,208 @@ describe Braintree::MerchantGateway do
51
51
 
52
52
  errors[0].code.should == Braintree::ErrorCodes::Merchant::PaymentMethodsAreInvalid
53
53
  end
54
+
55
+ context "multiple currencies" do
56
+ before(:each) do
57
+ @gateway = Braintree::Gateway.new(
58
+ :client_id => "client_id$development$signup_client_id",
59
+ :client_secret => "client_secret$development$signup_client_secret",
60
+ :logger => Logger.new("/dev/null")
61
+ )
62
+ end
63
+
64
+ it "creates a paypal-only merchant that accepts multiple currencies" do
65
+ result = @gateway.merchant.create(
66
+ :email => "name@email.com",
67
+ :country_code_alpha3 => "USA",
68
+ :payment_methods => ["paypal"],
69
+ :currencies => ["GBP", "USD"],
70
+ :paypal_account => {
71
+ :client_id => "paypal_client_id",
72
+ :client_secret => "paypal_client_secret",
73
+ }
74
+ )
75
+
76
+ result.should be_success
77
+
78
+ merchant = result.merchant
79
+ merchant.id.should_not be_nil
80
+ merchant.email.should == "name@email.com"
81
+ merchant.company_name.should == "name@email.com"
82
+ merchant.country_code_alpha3.should == "USA"
83
+ merchant.country_code_alpha2.should == "US"
84
+ merchant.country_code_numeric.should == "840"
85
+ merchant.country_name.should == "United States of America"
86
+
87
+ credentials = result.credentials
88
+ credentials.access_token.should_not be_nil
89
+ credentials.refresh_token.should_not be_nil
90
+ credentials.expires_at.should_not be_nil
91
+ credentials.token_type.should == "bearer"
92
+
93
+ merchant_accounts = merchant.merchant_accounts
94
+ merchant_accounts.count.should == 2
95
+
96
+ merchant_account = merchant_accounts.detect { |ma| ma.id == "USD" }
97
+ merchant_account.default.should == true
98
+ merchant_account.currency_iso_code.should == "USD"
99
+
100
+ merchant_account = merchant_accounts.detect { |ma| ma.id == "GBP" }
101
+ merchant_account.default.should == false
102
+ merchant_account.currency_iso_code.should == "GBP"
103
+ end
104
+
105
+ it "allows creation of non-US merchant if onboarding application is internal" do
106
+ result = @gateway.merchant.create(
107
+ :email => "name@email.com",
108
+ :country_code_alpha3 => "JPN",
109
+ :payment_methods => ["paypal"],
110
+ :paypal_account => {
111
+ :client_id => "paypal_client_id",
112
+ :client_secret => "paypal_client_secret",
113
+ }
114
+ )
115
+
116
+ result.should be_success
117
+
118
+ merchant = result.merchant
119
+ merchant.id.should_not be_nil
120
+ merchant.email.should == "name@email.com"
121
+ merchant.company_name.should == "name@email.com"
122
+ merchant.country_code_alpha3.should == "JPN"
123
+ merchant.country_code_alpha2.should == "JP"
124
+ merchant.country_code_numeric.should == "392"
125
+ merchant.country_name.should == "Japan"
126
+
127
+ credentials = result.credentials
128
+ credentials.access_token.should_not be_nil
129
+ credentials.refresh_token.should_not be_nil
130
+ credentials.expires_at.should_not be_nil
131
+ credentials.token_type.should == "bearer"
132
+
133
+ merchant_accounts = merchant.merchant_accounts
134
+ merchant_accounts.count.should == 1
135
+
136
+ merchant_account = merchant_accounts.detect { |ma| ma.id == "JPY" }
137
+ merchant_account.default.should == true
138
+ merchant_account.currency_iso_code.should == "JPY"
139
+ end
140
+
141
+ it "defaults to USD for non-US merchant if onboarding application is internal and country currency not supported" do
142
+ result = @gateway.merchant.create(
143
+ :email => "name@email.com",
144
+ :country_code_alpha3 => "YEM",
145
+ :payment_methods => ["paypal"],
146
+ :paypal_account => {
147
+ :client_id => "paypal_client_id",
148
+ :client_secret => "paypal_client_secret",
149
+ }
150
+ )
151
+
152
+ result.should be_success
153
+
154
+ merchant = result.merchant
155
+ merchant.id.should_not be_nil
156
+ merchant.email.should == "name@email.com"
157
+ merchant.company_name.should == "name@email.com"
158
+ merchant.country_code_alpha3.should == "YEM"
159
+ merchant.country_code_alpha2.should == "YE"
160
+ merchant.country_code_numeric.should == "887"
161
+ merchant.country_name.should == "Yemen"
162
+
163
+ credentials = result.credentials
164
+ credentials.access_token.should_not be_nil
165
+ credentials.refresh_token.should_not be_nil
166
+ credentials.expires_at.should_not be_nil
167
+ credentials.token_type.should == "bearer"
168
+
169
+ merchant_accounts = merchant.merchant_accounts
170
+ merchant_accounts.count.should == 1
171
+
172
+ merchant_account = merchant_accounts.detect { |ma| ma.id == "USD" }
173
+ merchant_account.default.should == true
174
+ merchant_account.currency_iso_code.should == "USD"
175
+ end
176
+
177
+ it "creates a paypal-only merchant via the non multi-currency flow if the oauth_application is not internal" do
178
+ gateway = Braintree::Gateway.new(
179
+ :client_id => "client_id$development$integration_client_id",
180
+ :client_secret => "client_secret$development$integration_client_secret",
181
+ :logger => Logger.new("/dev/null")
182
+ )
183
+
184
+ result = gateway.merchant.create(
185
+ :email => "name@email.com",
186
+ :country_code_alpha3 => "USA",
187
+ :payment_methods => ["paypal"],
188
+ :currencies => ["USD", "GBP"],
189
+ :paypal_account => {
190
+ :client_id => "paypal_client_id",
191
+ :client_secret => "paypal_client_secret",
192
+ }
193
+ )
194
+
195
+ result.should be_success
196
+
197
+ merchant = result.merchant
198
+ merchant.id.should_not be_nil
199
+ merchant.email.should == "name@email.com"
200
+ merchant.company_name.should == "name@email.com"
201
+ merchant.country_code_alpha3.should == "USA"
202
+ merchant.country_code_alpha2.should == "US"
203
+ merchant.country_code_numeric.should == "840"
204
+ merchant.country_name.should == "United States of America"
205
+
206
+ credentials = result.credentials
207
+ credentials.access_token.should_not be_nil
208
+ credentials.refresh_token.should_not be_nil
209
+ credentials.expires_at.should_not be_nil
210
+ credentials.token_type.should == "bearer"
211
+
212
+ merchant_accounts = merchant.merchant_accounts
213
+ merchant_accounts.count.should == 1
214
+
215
+ merchant_account = merchant_accounts.first
216
+ merchant_account.default.should == true
217
+ merchant_account.currency_iso_code.should == "USD"
218
+ end
219
+
220
+ it "returns error if valid payment_method other than paypal is passed" do
221
+ result = @gateway.merchant.create(
222
+ :email => "name@email.com",
223
+ :country_code_alpha3 => "USA",
224
+ :payment_methods => ["credit_card", "paypal"],
225
+ :currencies => ["USD", "GBP"],
226
+ :paypal_account => {
227
+ :client_id => "paypal_client_id",
228
+ :client_secret => "paypal_client_secret",
229
+ }
230
+ )
231
+
232
+ result.should_not be_success
233
+ errors = result.errors.for(:merchant).on(:payment_methods)
234
+
235
+ errors[0].code.should == Braintree::ErrorCodes::Merchant::PaymentMethodsAreNotAllowed
236
+ end
237
+
238
+ it "returns error if invalid currency is passed" do
239
+ result = @gateway.merchant.create(
240
+ :email => "name@email.com",
241
+ :country_code_alpha3 => "USA",
242
+ :payment_methods => ["paypal"],
243
+ :currencies => ["FAKE", "GBP"],
244
+ :paypal_account => {
245
+ :client_id => "paypal_client_id",
246
+ :client_secret => "paypal_client_secret",
247
+ }
248
+ )
249
+
250
+ result.should_not be_success
251
+ errors = result.errors.for(:merchant).on(:currencies)
252
+
253
+ errors[0].code.should == Braintree::ErrorCodes::Merchant::CurrenciesAreInvalid
254
+ end
255
+ end
54
256
  end
55
257
 
56
258
  describe "provision_raw_apple_pay" do
@@ -1137,6 +1137,33 @@ describe Braintree::PaymentMethod do
1137
1137
  end
1138
1138
  end
1139
1139
 
1140
+ context "coinbase accounts" do
1141
+ it "can make a coinbase account the default payment method" do
1142
+ customer = Braintree::Customer.create!
1143
+ result = Braintree::CreditCard.create(
1144
+ :customer_id => customer.id,
1145
+ :number => Braintree::Test::CreditCardNumbers::Visa,
1146
+ :expiration_date => "05/2009",
1147
+ :options => {:make_default => true}
1148
+ )
1149
+ result.should be_success
1150
+
1151
+ nonce = Braintree::Test::Nonce::Coinbase
1152
+ original_token = Braintree::PaymentMethod.create(
1153
+ :payment_method_nonce => nonce,
1154
+ :customer_id => customer.id
1155
+ ).payment_method.token
1156
+
1157
+ updated_result = Braintree::PaymentMethod.update(
1158
+ original_token,
1159
+ :options => {:make_default => true}
1160
+ )
1161
+
1162
+ updated_customer = Braintree::Customer.find(customer.id)
1163
+ updated_customer.default_payment_method.token.should == original_token
1164
+ end
1165
+ end
1166
+
1140
1167
  context "paypal accounts" do
1141
1168
  it "updates a paypal account's token" do
1142
1169
  customer = Braintree::Customer.create!
@@ -2917,7 +2917,7 @@ describe Braintree::Transaction do
2917
2917
  authorized_transaction = Braintree::Transaction.sale!(
2918
2918
  :amount => Braintree::Test::TransactionAmounts::Authorize,
2919
2919
  :merchant_account_id => SpecHelper::DefaultMerchantAccountId,
2920
- :payment_method_nonce => Braintree::Test::Nonce::ApplePayAmEx
2920
+ :payment_method_nonce => Braintree::Test::Nonce::AndroidPayDiscover
2921
2921
  )
2922
2922
 
2923
2923
  result = Braintree::Transaction.submit_for_partial_settlement(authorized_transaction.id, 100)
@@ -13,6 +13,20 @@ describe Braintree::PaymentMethod do
13
13
  end
14
14
  end
15
15
 
16
+ describe "update" do
17
+ it "handles an unknown payment method type" do
18
+ unknown_response = {:unknown_payment_method => {:token => 1234, :default => true}}
19
+ http_instance = double(:put => unknown_response)
20
+ Braintree::Http.stub(:new).and_return(http_instance)
21
+ result = Braintree::PaymentMethod.update(:unknown,
22
+ {:options => {:make_default => true}})
23
+
24
+ result.should be_success
25
+ result.payment_method.token.should == 1234
26
+ result.payment_method.should be_instance_of(Braintree::UnknownPaymentMethod)
27
+ end
28
+ end
29
+
16
30
  describe "timestamps" do
17
31
  it "exposes created_at and updated_at" do
18
32
  now = Time.now
metadata CHANGED
@@ -1,259 +1,262 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: braintree
3
- version: !ruby/object:Gem::Version
4
- version: 2.59.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.60.0
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Braintree
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-18 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
11
+
12
+ date: 2016-04-18 00:00:00 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
14
15
  name: builder
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ! '>='
18
- - !ruby/object:Gem::Version
19
- version: 2.0.0
20
- type: :runtime
21
16
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ! '>='
25
- - !ruby/object:Gem::Version
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
26
21
  version: 2.0.0
22
+ type: :runtime
23
+ version_requirements: *id001
27
24
  description: Ruby library for integrating with the Braintree Gateway
28
25
  email: code@getbraintree.com
29
26
  executables: []
27
+
30
28
  extensions: []
29
+
31
30
  extra_rdoc_files: []
32
- files:
31
+
32
+ files:
33
33
  - README.rdoc
34
34
  - LICENSE
35
- - lib/braintree/amex_express_checkout_card.rb
36
- - lib/braintree/android_pay_card.rb
37
- - lib/braintree/merchant_account.rb
38
- - lib/braintree/payment_method_nonce_gateway.rb
39
- - lib/braintree/plan_gateway.rb
40
- - lib/braintree/paypal_account.rb
41
- - lib/braintree/facilitator_details.rb
42
- - lib/braintree/modification.rb
43
- - lib/braintree/sha256_digest.rb
44
- - lib/braintree/validation_error_collection.rb
45
- - lib/braintree/transparent_redirect.rb
46
- - lib/braintree/customer_search.rb
47
- - lib/braintree/europe_bank_account_gateway.rb
48
- - lib/braintree/base_module.rb
49
- - lib/braintree/dispute.rb
50
- - lib/braintree/descriptor.rb
51
- - lib/braintree/payment_instrument_type.rb
52
- - lib/braintree/xml/generator.rb
53
- - lib/braintree/xml/parser.rb
54
- - lib/braintree/xml/rexml.rb
55
- - lib/braintree/xml/libxml.rb
56
- - lib/braintree/address/country_names.rb
57
- - lib/braintree/credentials_parser.rb
58
- - lib/braintree/credit_card_gateway.rb
59
- - lib/braintree/settlement_batch_summary.rb
60
- - lib/braintree/customer.rb
61
- - lib/braintree/merchant_gateway.rb
62
- - lib/braintree/plan.rb
63
- - lib/braintree/discount_gateway.rb
64
- - lib/braintree/address_gateway.rb
65
- - lib/braintree/gateway.rb
66
35
  - lib/braintree/credit_card_verification.rb
67
- - lib/braintree/oauth_credentials.rb
68
- - lib/braintree/transaction.rb
36
+ - lib/braintree/venmo_account.rb
37
+ - lib/braintree/advanced_search.rb
38
+ - lib/braintree/payment_method.rb
39
+ - lib/braintree/payment_method_nonce_gateway.rb
69
40
  - lib/braintree/credit_card_verification_search.rb
70
- - lib/braintree/configuration.rb
71
41
  - lib/braintree/settlement_batch.rb
42
+ - lib/braintree/webhook_testing_gateway.rb
43
+ - lib/braintree/gateway.rb
72
44
  - lib/braintree/merchant_account_gateway.rb
73
- - lib/braintree/dispute/transaction_details.rb
74
- - lib/braintree/subscription/status_details.rb
75
- - lib/braintree/webhook_notification_gateway.rb
76
- - lib/braintree/advanced_search.rb
77
- - lib/braintree/credit_card_verification_gateway.rb
78
- - lib/braintree/version.rb
45
+ - lib/braintree/three_d_secure_info.rb
46
+ - lib/braintree/xml.rb
47
+ - lib/braintree/webhook_notification.rb
48
+ - lib/braintree/address_gateway.rb
49
+ - lib/braintree/facilitator_details.rb
50
+ - lib/braintree/merchant.rb
51
+ - lib/braintree/subscription_search.rb
52
+ - lib/braintree/credentials_parser.rb
53
+ - lib/braintree/transaction.rb
54
+ - lib/braintree/payment_instrument_type.rb
79
55
  - lib/braintree/add_on.rb
80
- - lib/braintree/settlement_batch_summary_gateway.rb
56
+ - lib/braintree/util.rb
57
+ - lib/braintree/test_transaction.rb
58
+ - lib/braintree/configuration.rb
59
+ - lib/braintree/transaction/customer_details.rb
60
+ - lib/braintree/transaction/address_details.rb
61
+ - lib/braintree/transaction/subscription_details.rb
62
+ - lib/braintree/transaction/paypal_details.rb
63
+ - lib/braintree/transaction/coinbase_details.rb
64
+ - lib/braintree/transaction/android_pay_details.rb
65
+ - lib/braintree/transaction/amex_express_checkout_details.rb
66
+ - lib/braintree/transaction/disbursement_details.rb
67
+ - lib/braintree/transaction/status_details.rb
68
+ - lib/braintree/transaction/credit_card_details.rb
69
+ - lib/braintree/transaction/apple_pay_details.rb
70
+ - lib/braintree/transaction/venmo_account_details.rb
81
71
  - lib/braintree/europe_bank_account.rb
82
- - lib/braintree/error_result.rb
83
- - lib/braintree/subscription.rb
84
- - lib/braintree/payment_method_nonce.rb
85
- - lib/braintree/signature_service.rb
86
- - lib/braintree/validation_error.rb
87
- - lib/braintree/testing_gateway.rb
88
- - lib/braintree/webhook_testing_gateway.rb
89
- - lib/braintree/webhook_testing.rb
90
- - lib/braintree/test/merchant_account.rb
91
- - lib/braintree/test/transaction_amounts.rb
72
+ - lib/braintree/amex_express_checkout_card.rb
73
+ - lib/braintree/plan.rb
74
+ - lib/braintree/subscription_gateway.rb
75
+ - lib/braintree/android_pay_card.rb
76
+ - lib/braintree/base_module.rb
77
+ - lib/braintree/xml/rexml.rb
78
+ - lib/braintree/xml/parser.rb
79
+ - lib/braintree/xml/generator.rb
80
+ - lib/braintree/xml/libxml.rb
81
+ - lib/braintree/address.rb
82
+ - lib/braintree/paypal_account.rb
83
+ - lib/braintree/account_updater_daily_report.rb
84
+ - lib/braintree/successful_result.rb
85
+ - lib/braintree/discount.rb
86
+ - lib/braintree/transaction_gateway.rb
87
+ - lib/braintree/customer_search.rb
88
+ - lib/braintree/http.rb
92
89
  - lib/braintree/test/nonce.rb
90
+ - lib/braintree/test/transaction_amounts.rb
91
+ - lib/braintree/test/merchant_account.rb
93
92
  - lib/braintree/test/credit_card.rb
94
93
  - lib/braintree/test/venmo_sdk.rb
94
+ - lib/braintree/credit_card_verification_gateway.rb
95
+ - lib/braintree/testing_gateway.rb
96
+ - lib/braintree/merchant_account.rb
97
+ - lib/braintree/subscription/status_details.rb
98
+ - lib/braintree/transparent_redirect.rb
99
+ - lib/braintree/error_result.rb
95
100
  - lib/braintree/disbursement.rb
96
- - lib/braintree/payment_method_gateway.rb
97
- - lib/braintree/account_updater_daily_report.rb
98
- - lib/braintree/address.rb
99
- - lib/braintree/apple_pay_card.rb
100
- - lib/braintree/client_token_gateway.rb
101
- - lib/braintree/successful_result.rb
101
+ - lib/braintree/address/country_names.rb
102
+ - lib/braintree/subscription.rb
103
+ - lib/braintree/europe_bank_account_gateway.rb
104
+ - lib/braintree/customer.rb
105
+ - lib/braintree/credit_card.rb
106
+ - lib/braintree/errors.rb
107
+ - lib/braintree/webhook_testing.rb
108
+ - lib/braintree/paypal_account_gateway.rb
102
109
  - lib/braintree/digest.rb
110
+ - lib/braintree/modification.rb
111
+ - lib/braintree/credit_card_gateway.rb
112
+ - lib/braintree/validation_error.rb
113
+ - lib/braintree/payment_method_nonce.rb
103
114
  - lib/braintree/coinbase_account.rb
115
+ - lib/braintree/merchant_gateway.rb
116
+ - lib/braintree/version.rb
117
+ - lib/braintree/signature_service.rb
118
+ - lib/braintree/unknown_payment_method.rb
119
+ - lib/braintree/descriptor.rb
120
+ - lib/braintree/validation_error_collection.rb
121
+ - lib/braintree/client_token_gateway.rb
122
+ - lib/braintree/risk_data.rb
123
+ - lib/braintree/add_on_gateway.rb
124
+ - lib/braintree/dispute/transaction_details.rb
125
+ - lib/braintree/settlement_batch_summary_gateway.rb
126
+ - lib/braintree/apple_pay_card.rb
127
+ - lib/braintree/dispute.rb
104
128
  - lib/braintree/oauth_gateway.rb
129
+ - lib/braintree/client_token.rb
130
+ - lib/braintree/customer_gateway.rb
131
+ - lib/braintree/discount_gateway.rb
105
132
  - lib/braintree/resource_collection.rb
106
- - lib/braintree/util.rb
107
- - lib/braintree/paypal_account_gateway.rb
108
- - lib/braintree/discount.rb
133
+ - lib/braintree/plan_gateway.rb
134
+ - lib/braintree/transparent_redirect_gateway.rb
135
+ - lib/braintree/payment_method_gateway.rb
136
+ - lib/braintree/settlement_batch_summary.rb
109
137
  - lib/braintree/exceptions.rb
110
- - lib/braintree/merchant.rb
111
- - lib/braintree/add_on_gateway.rb
112
- - lib/braintree/client_token.rb
138
+ - lib/braintree/transaction_search.rb
139
+ - lib/braintree/error_codes.rb
140
+ - lib/braintree/sha256_digest.rb
141
+ - lib/braintree/webhook_notification_gateway.rb
113
142
  - lib/braintree/merchant_account/address_details.rb
114
- - lib/braintree/merchant_account/individual_details.rb
115
143
  - lib/braintree/merchant_account/business_details.rb
116
144
  - lib/braintree/merchant_account/funding_details.rb
117
- - lib/braintree/xml.rb
118
- - lib/braintree/subscription_gateway.rb
119
- - lib/braintree/subscription_search.rb
120
- - lib/braintree/venmo_account.rb
121
- - lib/braintree/risk_data.rb
122
- - lib/braintree/unknown_payment_method.rb
123
- - lib/braintree/transaction/address_details.rb
124
- - lib/braintree/transaction/venmo_account_details.rb
125
- - lib/braintree/transaction/paypal_details.rb
126
- - lib/braintree/transaction/amex_express_checkout_details.rb
127
- - lib/braintree/transaction/status_details.rb
128
- - lib/braintree/transaction/disbursement_details.rb
129
- - lib/braintree/transaction/android_pay_details.rb
130
- - lib/braintree/transaction/apple_pay_details.rb
131
- - lib/braintree/transaction/customer_details.rb
132
- - lib/braintree/transaction/coinbase_details.rb
133
- - lib/braintree/transaction/subscription_details.rb
134
- - lib/braintree/transaction/credit_card_details.rb
135
- - lib/braintree/transaction_search.rb
136
- - lib/braintree/error_codes.rb
137
- - lib/braintree/credit_card.rb
138
- - lib/braintree/errors.rb
139
- - lib/braintree/customer_gateway.rb
140
- - lib/braintree/transparent_redirect_gateway.rb
141
- - lib/braintree/http.rb
142
- - lib/braintree/test_transaction.rb
143
- - lib/braintree/payment_method.rb
144
- - lib/braintree/transaction_gateway.rb
145
- - lib/braintree/webhook_notification.rb
146
- - lib/braintree/three_d_secure_info.rb
145
+ - lib/braintree/merchant_account/individual_details.rb
146
+ - lib/braintree/oauth_credentials.rb
147
147
  - lib/braintree.rb
148
148
  - lib/ssl/api_braintreegateway_com.ca.crt
149
149
  - lib/ssl/securetrust_ca.crt
150
- - spec/unit/braintree/customer_spec.rb
151
- - spec/unit/braintree/error_result_spec.rb
152
- - spec/unit/braintree/sha256_digest_spec.rb
153
- - spec/unit/braintree/base_module_spec.rb
154
- - spec/unit/braintree/successful_result_spec.rb
155
- - spec/unit/braintree/http_spec.rb
156
- - spec/unit/braintree/merchant_account_spec.rb
157
- - spec/unit/braintree/subscription_spec.rb
158
- - spec/unit/braintree/risk_data_spec.rb
159
- - spec/unit/braintree/resource_collection_spec.rb
160
- - spec/unit/braintree/transparent_redirect_spec.rb
161
- - spec/unit/braintree/dispute_spec.rb
150
+ - spec/spec.opts
151
+ - spec/httpsd.pid
152
+ - spec/hacks/tcp_socket.rb
153
+ - spec/unit/spec_helper.rb
162
154
  - spec/unit/braintree/credit_card_verification_search_spec.rb
163
- - spec/unit/braintree/payment_method_spec.rb
164
- - spec/unit/braintree/xml/rexml_spec.rb
165
- - spec/unit/braintree/xml/parser_spec.rb
166
- - spec/unit/braintree/xml/libxml_spec.rb
167
- - spec/unit/braintree/credit_card_verification_spec.rb
155
+ - spec/unit/braintree/subscription_search_spec.rb
168
156
  - spec/unit/braintree/signature_service_spec.rb
169
- - spec/unit/braintree/transaction_spec.rb
170
- - spec/unit/braintree/digest_spec.rb
171
- - spec/unit/braintree/address_spec.rb
172
- - spec/unit/braintree/configuration_spec.rb
173
- - spec/unit/braintree/modification_spec.rb
174
- - spec/unit/braintree/validation_error_spec.rb
175
- - spec/unit/braintree/unknown_payment_method_spec.rb
157
+ - spec/unit/braintree/apple_pay_card_spec.rb
176
158
  - spec/unit/braintree/webhook_notification_spec.rb
177
- - spec/unit/braintree/client_token_spec.rb
178
- - spec/unit/braintree/credit_card_spec.rb
179
- - spec/unit/braintree/util_spec.rb
180
- - spec/unit/braintree/credentials_parser_spec.rb
159
+ - spec/unit/braintree/payment_method_spec.rb
181
160
  - spec/unit/braintree/errors_spec.rb
182
- - spec/unit/braintree/subscription_search_spec.rb
183
- - spec/unit/braintree/disbursement_spec.rb
184
- - spec/unit/braintree/transaction_search_spec.rb
161
+ - spec/unit/braintree/unknown_payment_method_spec.rb
162
+ - spec/unit/braintree/merchant_account_spec.rb
163
+ - spec/unit/braintree/validation_error_spec.rb
164
+ - spec/unit/braintree/credentials_parser_spec.rb
165
+ - spec/unit/braintree/xml_spec.rb
166
+ - spec/unit/braintree/transparent_redirect_spec.rb
167
+ - spec/unit/braintree/client_token_spec.rb
168
+ - spec/unit/braintree/transaction/customer_details_spec.rb
185
169
  - spec/unit/braintree/transaction/deposit_details_spec.rb
186
170
  - spec/unit/braintree/transaction/credit_card_details_spec.rb
187
- - spec/unit/braintree/transaction/customer_details_spec.rb
171
+ - spec/unit/braintree/address_spec.rb
172
+ - spec/unit/braintree/http_spec.rb
173
+ - spec/unit/braintree/customer_spec.rb
188
174
  - spec/unit/braintree/validation_error_collection_spec.rb
189
- - spec/unit/braintree/apple_pay_card_spec.rb
190
- - spec/unit/braintree/xml_spec.rb
175
+ - spec/unit/braintree/modification_spec.rb
176
+ - spec/unit/braintree/xml/parser_spec.rb
177
+ - spec/unit/braintree/xml/rexml_spec.rb
178
+ - spec/unit/braintree/xml/libxml_spec.rb
191
179
  - spec/unit/braintree/paypal_account_spec.rb
180
+ - spec/unit/braintree/digest_spec.rb
181
+ - spec/unit/braintree/error_result_spec.rb
182
+ - spec/unit/braintree/transaction_spec.rb
192
183
  - spec/unit/braintree/three_d_secure_info_spec.rb
184
+ - spec/unit/braintree/successful_result_spec.rb
185
+ - spec/unit/braintree/util_spec.rb
186
+ - spec/unit/braintree/disbursement_spec.rb
187
+ - spec/unit/braintree/credit_card_spec.rb
188
+ - spec/unit/braintree/dispute_spec.rb
189
+ - spec/unit/braintree/credit_card_verification_spec.rb
190
+ - spec/unit/braintree/base_module_spec.rb
191
+ - spec/unit/braintree/transaction_search_spec.rb
192
+ - spec/unit/braintree/risk_data_spec.rb
193
+ - spec/unit/braintree/subscription_spec.rb
194
+ - spec/unit/braintree/configuration_spec.rb
195
+ - spec/unit/braintree/sha256_digest_spec.rb
196
+ - spec/unit/braintree/resource_collection_spec.rb
193
197
  - spec/unit/braintree_spec.rb
194
- - spec/unit/spec_helper.rb
195
- - spec/integration/braintree/add_on_spec.rb
196
- - spec/integration/braintree/customer_spec.rb
197
- - spec/integration/braintree/http_spec.rb
198
- - spec/integration/braintree/merchant_account_spec.rb
199
- - spec/integration/braintree/subscription_spec.rb
200
- - spec/integration/braintree/payment_method_nonce_spec.rb
201
- - spec/integration/braintree/transparent_redirect_spec.rb
198
+ - spec/spec_helper.rb
199
+ - spec/script/httpsd.rb
200
+ - spec/integration/spec_helper.rb
202
201
  - spec/integration/braintree/credit_card_verification_search_spec.rb
202
+ - spec/integration/braintree/settlement_batch_summary_spec.rb
203
203
  - spec/integration/braintree/payment_method_spec.rb
204
- - spec/integration/braintree/credit_card_verification_spec.rb
205
- - spec/integration/braintree/transaction_spec.rb
204
+ - spec/integration/braintree/payment_method_nonce_spec.rb
205
+ - spec/integration/braintree/merchant_account_spec.rb
206
206
  - spec/integration/braintree/client_api/client_token_spec.rb
207
207
  - spec/integration/braintree/client_api/spec_helper.rb
208
+ - spec/integration/braintree/test_transaction_spec.rb
209
+ - spec/integration/braintree/customer_search_spec.rb
210
+ - spec/integration/braintree/transparent_redirect_spec.rb
208
211
  - spec/integration/braintree/address_spec.rb
209
- - spec/integration/braintree/merchant_spec.rb
212
+ - spec/integration/braintree/http_spec.rb
213
+ - spec/integration/braintree/customer_spec.rb
214
+ - spec/integration/braintree/paypal_account_spec.rb
210
215
  - spec/integration/braintree/error_codes_spec.rb
211
- - spec/integration/braintree/customer_search_spec.rb
216
+ - spec/integration/braintree/transaction_spec.rb
212
217
  - spec/integration/braintree/test/transaction_amounts_spec.rb
218
+ - spec/integration/braintree/disbursement_spec.rb
219
+ - spec/integration/braintree/merchant_spec.rb
213
220
  - spec/integration/braintree/credit_card_spec.rb
214
- - spec/integration/braintree/advanced_search_spec.rb
215
- - spec/integration/braintree/plan_spec.rb
216
- - spec/integration/braintree/test_transaction_spec.rb
221
+ - spec/integration/braintree/oauth_spec.rb
217
222
  - spec/integration/braintree/coinbase_spec.rb
218
- - spec/integration/braintree/settlement_batch_summary_spec.rb
223
+ - spec/integration/braintree/credit_card_verification_spec.rb
219
224
  - spec/integration/braintree/discount_spec.rb
220
- - spec/integration/braintree/disbursement_spec.rb
225
+ - spec/integration/braintree/add_on_spec.rb
221
226
  - spec/integration/braintree/transaction_search_spec.rb
222
- - spec/integration/braintree/paypal_account_spec.rb
223
- - spec/integration/braintree/oauth_spec.rb
224
- - spec/integration/spec_helper.rb
225
- - spec/oauth_test_helper.rb
226
- - spec/ssl/privateKey.key
227
- - spec/ssl/geotrust_global.crt
227
+ - spec/integration/braintree/advanced_search_spec.rb
228
+ - spec/integration/braintree/plan_spec.rb
229
+ - spec/integration/braintree/subscription_spec.rb
228
230
  - spec/ssl/certificate.crt
229
- - spec/hacks/tcp_socket.rb
230
- - spec/script/httpsd.rb
231
- - spec/httpsd.pid
232
- - spec/spec_helper.rb
233
- - spec/spec.opts
231
+ - spec/ssl/geotrust_global.crt
232
+ - spec/ssl/privateKey.key
233
+ - spec/oauth_test_helper.rb
234
234
  - braintree.gemspec
235
235
  homepage: http://www.braintreepayments.com/
236
- licenses:
236
+ licenses:
237
237
  - MIT
238
238
  metadata: {}
239
+
239
240
  post_install_message:
240
241
  rdoc_options: []
241
- require_paths:
242
+
243
+ require_paths:
242
244
  - lib
243
- required_ruby_version: !ruby/object:Gem::Requirement
244
- requirements:
245
- - - ! '>='
246
- - !ruby/object:Gem::Version
247
- version: '0'
248
- required_rubygems_version: !ruby/object:Gem::Requirement
249
- requirements:
250
- - - ! '>='
251
- - !ruby/object:Gem::Version
252
- version: '0'
245
+ required_ruby_version: !ruby/object:Gem::Requirement
246
+ requirements:
247
+ - &id002
248
+ - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: "0"
251
+ required_rubygems_version: !ruby/object:Gem::Requirement
252
+ requirements:
253
+ - *id002
253
254
  requirements: []
255
+
254
256
  rubyforge_project: braintree
255
- rubygems_version: 2.1.11
257
+ rubygems_version: 2.0.17
256
258
  signing_key:
257
259
  specification_version: 4
258
260
  summary: Braintree Gateway Ruby Client Library
259
261
  test_files: []
262
+