braintree 2.79.0 → 2.80.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,6 +35,7 @@ require "braintree/apple_pay_card"
35
35
  require "braintree/apple_pay_gateway"
36
36
  require "braintree/apple_pay_options"
37
37
  require "braintree/authorization_adjustment"
38
+ require "braintree/bin_data"
38
39
  require "braintree/client_token"
39
40
  require "braintree/client_token_gateway"
40
41
  require "braintree/coinbase_account"
@@ -0,0 +1,19 @@
1
+ module Braintree
2
+ class BinData # :nodoc:
3
+ include BaseModule
4
+
5
+ attr_reader :commercial, :country_of_issuance, :debit, :durbin_regulated, :healthcare,
6
+ :issuing_bank, :payroll, :prepaid, :product_id
7
+
8
+ def initialize(attributes)
9
+ set_instance_variables_from_hash attributes unless attributes.nil?
10
+ end
11
+
12
+ def inspect
13
+ formatted_attrs = self.class._attributes.map do |attr|
14
+ "#{attr}: #{send(attr).inspect}"
15
+ end
16
+ "#<BinData #{formatted_attrs.join(", ")}>"
17
+ end
18
+ end
19
+ end
@@ -310,6 +310,15 @@ module Braintree
310
310
  FinalAuthSubmitForSettlementForDifferentAmount = "95601"
311
311
  HasAlreadyBeenRefunded = "91512"
312
312
  IdealPaymentNotComplete = "815141"
313
+ DiscountAmountFormatIsInvalid = "915159"
314
+ DiscountAmountCannotBeNegative = "915160"
315
+ DiscountAmountIsTooLarge = "915161"
316
+ ShippingAmountFormatIsInvalid = "915162"
317
+ ShippingAmountCannotBeNegative = "915163"
318
+ ShippingAmountIsTooLarge = "915164"
319
+ ShipsFromPostalCodeIsTooLong = "915165"
320
+ ShipsFromPostalCodeIsInvalid = "915166"
321
+ ShipsFromPostalCodeInvalidCharacters = "915167"
313
322
  IdealPaymentsCannotBeVaulted = "915150"
314
323
  MerchantAccountDoesNotMatch3DSecureMerchantAccount = "91584"
315
324
  MerchantAccountDoesNotMatchIdealPaymentMerchantAccount = "915143"
@@ -10,7 +10,7 @@ module Braintree
10
10
  Configuration.gateway.payment_method_nonce.find(payment_method_nonce)
11
11
  end
12
12
 
13
- attr_reader :nonce, :three_d_secure_info, :type, :details
13
+ attr_reader :nonce, :three_d_secure_info, :type, :details, :bin_data
14
14
 
15
15
  def initialize(gateway, attributes) # :nodoc:
16
16
  @gateway = gateway
@@ -18,6 +18,7 @@ module Braintree
18
18
  @type = attributes.fetch(:type)
19
19
  @details = attributes.fetch(:details)
20
20
  @three_d_secure_info = ThreeDSecureInfo.new(attributes[:three_d_secure_info]) if attributes[:three_d_secure_info]
21
+ @bin_data = BinData.new(attributes[:bin_data]) if attributes[:bin_data]
21
22
  end
22
23
 
23
24
  def to_s # :nodoc:
@@ -114,6 +114,9 @@ module Braintree
114
114
  attr_reader :subscription_id
115
115
  attr_reader :tax_amount
116
116
  attr_reader :tax_exempt
117
+ attr_reader :shipping_amount
118
+ attr_reader :discount_amount
119
+ attr_reader :ships_from_postal_code
117
120
  # Will either be "sale" or "credit"
118
121
  attr_reader :type
119
122
  attr_reader :updated_at
@@ -146,6 +146,7 @@ module Braintree
146
146
  :amount, :customer_id, :merchant_account_id, :order_id, :channel, :payment_method_token,
147
147
  :purchase_order_number, :recurring, :transaction_source, :shipping_address_id, :type, :tax_amount, :tax_exempt,
148
148
  :venmo_sdk_payment_method_code, :device_session_id, :service_fee_amount, :device_data, :fraud_merchant_id,
149
+ :shipping_amount, :discount_amount, :ships_from_postal_code,
149
150
  :billing_address_id, :payment_method_nonce, :three_d_secure_token,
150
151
  :shared_payment_method_token, :shared_billing_address_id, :shared_customer_id, :shared_shipping_address_id, :shared_payment_method_nonce,
151
152
  {:risk_data => [:customer_browser, :customer_ip]},
@@ -1,7 +1,7 @@
1
1
  module Braintree
2
2
  module Version
3
3
  Major = 2
4
- Minor = 79
4
+ Minor = 80
5
5
  Tiny = 0
6
6
 
7
7
  String = "#{Major}.#{Minor}.#{Tiny}"
@@ -71,6 +71,106 @@ describe Braintree::PaymentMethodNonce do
71
71
  nonce.three_d_secure_info.should be_nil
72
72
  end
73
73
 
74
+ it "returns bin_data with commercial set to Yes" do
75
+ result = Braintree::PaymentMethodNonce.find("fake-valid-commercial-nonce")
76
+
77
+ nonce = result.payment_method_nonce
78
+
79
+ result.should be_success
80
+ nonce.bin_data.should_not be_nil
81
+ nonce.bin_data.commercial.should == Braintree::CreditCard::Commercial::Yes
82
+ end
83
+
84
+ it "returns bin_data with country_of_issuance set to CAN" do
85
+ result = Braintree::PaymentMethodNonce.find("fake-valid-country-of-issuance-cad-nonce")
86
+
87
+ nonce = result.payment_method_nonce
88
+
89
+ result.should be_success
90
+ nonce.bin_data.should_not be_nil
91
+ nonce.bin_data.country_of_issuance.should == "CAN"
92
+ end
93
+
94
+ it "returns bin_data with debit set to Yes" do
95
+ result = Braintree::PaymentMethodNonce.find("fake-valid-debit-nonce")
96
+
97
+ nonce = result.payment_method_nonce
98
+
99
+ result.should be_success
100
+ nonce.bin_data.should_not be_nil
101
+ nonce.bin_data.debit.should == Braintree::CreditCard::Debit::Yes
102
+ end
103
+
104
+ it "returns bin_data with durbin_regulated set to Yes" do
105
+ result = Braintree::PaymentMethodNonce.find("fake-valid-durbin-regulated-nonce")
106
+
107
+ nonce = result.payment_method_nonce
108
+
109
+ result.should be_success
110
+ nonce.bin_data.should_not be_nil
111
+ nonce.bin_data.durbin_regulated.should == Braintree::CreditCard::DurbinRegulated::Yes
112
+ end
113
+
114
+ it "returns bin_data with healthcare set to Yes" do
115
+ result = Braintree::PaymentMethodNonce.find("fake-valid-healthcare-nonce")
116
+
117
+ nonce = result.payment_method_nonce
118
+
119
+ result.should be_success
120
+ nonce.bin_data.should_not be_nil
121
+ nonce.bin_data.healthcare.should == Braintree::CreditCard::Healthcare::Yes
122
+ nonce.bin_data.product_id.should == "J3"
123
+ end
124
+
125
+ it "returns bin_data with issuing_bank set to Network Only" do
126
+ result = Braintree::PaymentMethodNonce.find("fake-valid-issuing-bank-network-only-nonce")
127
+
128
+ nonce = result.payment_method_nonce
129
+
130
+ result.should be_success
131
+ nonce.bin_data.should_not be_nil
132
+ nonce.bin_data.issuing_bank.should == "NETWORK ONLY"
133
+ end
134
+
135
+ it "returns bin_data with payroll set to Yes" do
136
+ result = Braintree::PaymentMethodNonce.find("fake-valid-payroll-nonce")
137
+
138
+ nonce = result.payment_method_nonce
139
+
140
+ result.should be_success
141
+ nonce.bin_data.should_not be_nil
142
+ nonce.bin_data.payroll.should == Braintree::CreditCard::Payroll::Yes
143
+ nonce.bin_data.product_id.should == "MSA"
144
+ end
145
+
146
+ it "returns bin_data with prepaid set to Yes" do
147
+ result = Braintree::PaymentMethodNonce.find("fake-valid-prepaid-nonce")
148
+
149
+ nonce = result.payment_method_nonce
150
+
151
+ result.should be_success
152
+ nonce.bin_data.should_not be_nil
153
+ nonce.bin_data.prepaid.should == Braintree::CreditCard::Prepaid::Yes
154
+ end
155
+
156
+ it "returns bin_data with unknown indicators" do
157
+ result = Braintree::PaymentMethodNonce.find("fake-valid-unknown-indicators-nonce")
158
+
159
+ nonce = result.payment_method_nonce
160
+
161
+ result.should be_success
162
+ nonce.bin_data.should_not be_nil
163
+ nonce.bin_data.commercial.should == Braintree::CreditCard::Commercial::Unknown
164
+ nonce.bin_data.country_of_issuance.should == Braintree::CreditCard::CountryOfIssuance::Unknown
165
+ nonce.bin_data.debit.should == Braintree::CreditCard::Debit::Unknown
166
+ nonce.bin_data.durbin_regulated.should == Braintree::CreditCard::DurbinRegulated::Unknown
167
+ nonce.bin_data.healthcare.should == Braintree::CreditCard::Healthcare::Unknown
168
+ nonce.bin_data.issuing_bank.should == Braintree::CreditCard::IssuingBank::Unknown
169
+ nonce.bin_data.payroll.should == Braintree::CreditCard::Payroll::Unknown
170
+ nonce.bin_data.prepaid.should == Braintree::CreditCard::Prepaid::Unknown
171
+ nonce.bin_data.product_id.should == Braintree::CreditCard::ProductId::Unknown
172
+ end
173
+
74
174
  it "correctly raises and exception for a non existent token" do
75
175
  expect do
76
176
  Braintree::PaymentMethodNonce.find("not_a_nonce")
@@ -2242,6 +2242,40 @@ describe Braintree::Transaction do
2242
2242
  result.errors.for(:transaction).on(:payment_method_nonce)[0].code.should == Braintree::ErrorCodes::Transaction::IdealPaymentNotComplete
2243
2243
  end
2244
2244
  end
2245
+
2246
+ context "level 3 summary data" do
2247
+ it "accepts level 3 summary data" do
2248
+ result = Braintree::Transaction.create(
2249
+ :type => "sale",
2250
+ :payment_method_nonce => Braintree::Test::Nonce::Transactable,
2251
+ :amount => "10.00",
2252
+ :shipping_amount => "1.00",
2253
+ :discount_amount => "2.00",
2254
+ :ships_from_postal_code => "12345",
2255
+ )
2256
+
2257
+ result.success?.should == true
2258
+ result.transaction.shipping_amount.should == "1.00"
2259
+ result.transaction.discount_amount.should == "2.00"
2260
+ result.transaction.ships_from_postal_code.should == "12345"
2261
+ end
2262
+
2263
+ it "handles validation errors on summary data" do
2264
+ result = Braintree::Transaction.create(
2265
+ :type => "sale",
2266
+ :payment_method_nonce => Braintree::Test::Nonce::Transactable,
2267
+ :amount => "10.00",
2268
+ :shipping_amount => "1a00",
2269
+ :discount_amount => "-2.00",
2270
+ :ships_from_postal_code => "1$345",
2271
+ )
2272
+
2273
+ result.success?.should == false
2274
+ result.errors.for(:transaction).on(:shipping_amount)[0].code.should == Braintree::ErrorCodes::Transaction::ShippingAmountFormatIsInvalid
2275
+ result.errors.for(:transaction).on(:discount_amount)[0].code.should == Braintree::ErrorCodes::Transaction::DiscountAmountCannotBeNegative
2276
+ result.errors.for(:transaction).on(:ships_from_postal_code)[0].code.should == Braintree::ErrorCodes::Transaction::ShipsFromPostalCodeInvalidCharacters
2277
+ end
2278
+ end
2245
2279
  end
2246
2280
 
2247
2281
  describe "self.create!" do
metadata CHANGED
@@ -1,27 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: braintree
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.79.0
4
+ version: 2.80.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Braintree
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2017-11-16 00:00:00.000000000 Z
12
+ date: 2017-11-22 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: builder
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - ">="
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: 2.0.0
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - ">="
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: 2.0.0
27
30
  description: Ruby library for integrating with the Braintree Gateway
@@ -30,271 +33,273 @@ executables: []
30
33
  extensions: []
31
34
  extra_rdoc_files: []
32
35
  files:
33
- - LICENSE
34
36
  - README.rdoc
35
- - braintree.gemspec
36
- - lib/braintree.rb
37
- - lib/braintree/account_updater_daily_report.rb
38
- - lib/braintree/ach_mandate.rb
39
- - lib/braintree/add_on.rb
40
- - lib/braintree/add_on_gateway.rb
41
- - lib/braintree/address.rb
42
- - lib/braintree/address/country_names.rb
43
- - lib/braintree/address_gateway.rb
44
- - lib/braintree/advanced_search.rb
45
- - lib/braintree/amex_express_checkout_card.rb
37
+ - LICENSE
46
38
  - lib/braintree/android_pay_card.rb
47
- - lib/braintree/apple_pay.rb
48
- - lib/braintree/apple_pay_card.rb
49
- - lib/braintree/apple_pay_gateway.rb
50
- - lib/braintree/apple_pay_options.rb
51
- - lib/braintree/authorization_adjustment.rb
52
- - lib/braintree/base_module.rb
53
- - lib/braintree/client_token.rb
54
- - lib/braintree/client_token_gateway.rb
55
- - lib/braintree/coinbase_account.rb
39
+ - lib/braintree/util.rb
40
+ - lib/braintree/successful_result.rb
41
+ - lib/braintree/transaction/status_details.rb
42
+ - lib/braintree/transaction/coinbase_details.rb
43
+ - lib/braintree/transaction/customer_details.rb
44
+ - lib/braintree/transaction/us_bank_account_details.rb
45
+ - lib/braintree/transaction/credit_card_details.rb
46
+ - lib/braintree/transaction/paypal_details.rb
47
+ - lib/braintree/transaction/venmo_account_details.rb
48
+ - lib/braintree/transaction/masterpass_card_details.rb
49
+ - lib/braintree/transaction/address_details.rb
50
+ - lib/braintree/transaction/ideal_payment_details.rb
51
+ - lib/braintree/transaction/disbursement_details.rb
52
+ - lib/braintree/transaction/apple_pay_details.rb
53
+ - lib/braintree/transaction/amex_express_checkout_details.rb
54
+ - lib/braintree/transaction/visa_checkout_card_details.rb
55
+ - lib/braintree/transaction/subscription_details.rb
56
+ - lib/braintree/transaction/android_pay_details.rb
57
+ - lib/braintree/amex_express_checkout_card.rb
58
+ - lib/braintree/modification.rb
59
+ - lib/braintree/facilitator_details.rb
60
+ - lib/braintree/account_updater_daily_report.rb
56
61
  - lib/braintree/configuration.rb
57
- - lib/braintree/connected_merchant_paypal_status_changed.rb
58
- - lib/braintree/connected_merchant_status_transitioned.rb
59
- - lib/braintree/credentials_parser.rb
60
62
  - lib/braintree/credit_card.rb
61
- - lib/braintree/credit_card_gateway.rb
62
- - lib/braintree/credit_card_verification.rb
63
- - lib/braintree/credit_card_verification_gateway.rb
64
- - lib/braintree/credit_card_verification_search.rb
65
- - lib/braintree/customer.rb
66
- - lib/braintree/customer_gateway.rb
67
- - lib/braintree/customer_search.rb
68
- - lib/braintree/descriptor.rb
69
- - lib/braintree/digest.rb
70
- - lib/braintree/disbursement.rb
71
- - lib/braintree/discount.rb
72
- - lib/braintree/discount_gateway.rb
73
- - lib/braintree/dispute.rb
74
- - lib/braintree/dispute/evidence.rb
75
- - lib/braintree/dispute/history_event.rb
76
- - lib/braintree/dispute/transaction.rb
77
- - lib/braintree/dispute/transaction_details.rb
78
- - lib/braintree/dispute_gateway.rb
79
- - lib/braintree/dispute_search.rb
80
- - lib/braintree/document_upload.rb
81
- - lib/braintree/document_upload_gateway.rb
82
- - lib/braintree/error_codes.rb
83
- - lib/braintree/error_result.rb
84
63
  - lib/braintree/errors.rb
85
- - lib/braintree/europe_bank_account.rb
86
- - lib/braintree/europe_bank_account_gateway.rb
87
- - lib/braintree/exceptions.rb
88
- - lib/braintree/facilitated_details.rb
89
- - lib/braintree/facilitator_details.rb
90
- - lib/braintree/gateway.rb
91
- - lib/braintree/granted_payment_instrument_update.rb
92
- - lib/braintree/http.rb
93
- - lib/braintree/ideal_payment.rb
94
- - lib/braintree/ideal_payment_gateway.rb
95
- - lib/braintree/masterpass_card.rb
96
- - lib/braintree/merchant.rb
97
- - lib/braintree/merchant_account.rb
98
- - lib/braintree/merchant_account/address_details.rb
99
- - lib/braintree/merchant_account/business_details.rb
100
- - lib/braintree/merchant_account/funding_details.rb
101
- - lib/braintree/merchant_account/individual_details.rb
102
- - lib/braintree/merchant_account_gateway.rb
103
- - lib/braintree/merchant_gateway.rb
104
- - lib/braintree/modification.rb
105
- - lib/braintree/oauth_credentials.rb
106
- - lib/braintree/oauth_gateway.rb
107
- - lib/braintree/paginated_collection.rb
64
+ - lib/braintree/client_token_gateway.rb
65
+ - lib/braintree/address_gateway.rb
66
+ - lib/braintree/error_result.rb
108
67
  - lib/braintree/paginated_result.rb
109
- - lib/braintree/payment_instrument_type.rb
68
+ - lib/braintree/plan.rb
69
+ - lib/braintree/webhook_notification_gateway.rb
70
+ - lib/braintree/xml/parser.rb
71
+ - lib/braintree/xml/generator.rb
72
+ - lib/braintree/xml/rexml.rb
73
+ - lib/braintree/xml/libxml.rb
74
+ - lib/braintree/unknown_payment_method.rb
110
75
  - lib/braintree/payment_method.rb
111
- - lib/braintree/payment_method_gateway.rb
76
+ - lib/braintree/apple_pay.rb
112
77
  - lib/braintree/payment_method_nonce.rb
113
- - lib/braintree/payment_method_nonce_gateway.rb
114
- - lib/braintree/paypal_account.rb
115
- - lib/braintree/paypal_account_gateway.rb
116
- - lib/braintree/plan.rb
78
+ - lib/braintree/dispute.rb
117
79
  - lib/braintree/plan_gateway.rb
118
- - lib/braintree/resource_collection.rb
80
+ - lib/braintree/discount_gateway.rb
81
+ - lib/braintree/document_upload_gateway.rb
82
+ - lib/braintree/merchant_account_gateway.rb
83
+ - lib/braintree/oauth_credentials.rb
119
84
  - lib/braintree/risk_data.rb
120
- - lib/braintree/settlement_batch.rb
121
- - lib/braintree/settlement_batch_summary.rb
122
- - lib/braintree/settlement_batch_summary_gateway.rb
85
+ - lib/braintree/validation_error_collection.rb
86
+ - lib/braintree/paypal_account_gateway.rb
87
+ - lib/braintree/gateway.rb
88
+ - lib/braintree/oauth_gateway.rb
89
+ - lib/braintree/credentials_parser.rb
90
+ - lib/braintree/add_on_gateway.rb
91
+ - lib/braintree/client_token.rb
123
92
  - lib/braintree/sha256_digest.rb
124
- - lib/braintree/signature_service.rb
125
- - lib/braintree/subscription.rb
126
- - lib/braintree/subscription/status_details.rb
127
- - lib/braintree/subscription_gateway.rb
128
- - lib/braintree/subscription_search.rb
129
- - lib/braintree/successful_result.rb
93
+ - lib/braintree/merchant_account/business_details.rb
94
+ - lib/braintree/merchant_account/individual_details.rb
95
+ - lib/braintree/merchant_account/address_details.rb
96
+ - lib/braintree/merchant_account/funding_details.rb
97
+ - lib/braintree/validation_error.rb
98
+ - lib/braintree/customer_search.rb
99
+ - lib/braintree/transparent_redirect_gateway.rb
100
+ - lib/braintree/us_bank_account.rb
101
+ - lib/braintree/merchant_gateway.rb
130
102
  - lib/braintree/test/credit_card.rb
131
- - lib/braintree/test/merchant_account.rb
132
- - lib/braintree/test/nonce.rb
133
103
  - lib/braintree/test/transaction_amounts.rb
134
104
  - lib/braintree/test/venmo_sdk.rb
135
- - lib/braintree/test_transaction.rb
136
- - lib/braintree/testing_gateway.rb
105
+ - lib/braintree/test/nonce.rb
106
+ - lib/braintree/test/merchant_account.rb
107
+ - lib/braintree/webhook_notification.rb
108
+ - lib/braintree/http.rb
109
+ - lib/braintree/subscription_search.rb
110
+ - lib/braintree/digest.rb
111
+ - lib/braintree/connected_merchant_paypal_status_changed.rb
112
+ - lib/braintree/authorization_adjustment.rb
113
+ - lib/braintree/descriptor.rb
114
+ - lib/braintree/signature_service.rb
115
+ - lib/braintree/payment_method_gateway.rb
137
116
  - lib/braintree/three_d_secure_info.rb
117
+ - lib/braintree/webhook_testing.rb
118
+ - lib/braintree/credit_card_verification.rb
119
+ - lib/braintree/xml.rb
120
+ - lib/braintree/europe_bank_account_gateway.rb
121
+ - lib/braintree/payment_method_nonce_gateway.rb
122
+ - lib/braintree/subscription.rb
138
123
  - lib/braintree/transaction.rb
139
- - lib/braintree/transaction/address_details.rb
140
- - lib/braintree/transaction/amex_express_checkout_details.rb
141
- - lib/braintree/transaction/android_pay_details.rb
142
- - lib/braintree/transaction/apple_pay_details.rb
143
- - lib/braintree/transaction/coinbase_details.rb
144
- - lib/braintree/transaction/credit_card_details.rb
145
- - lib/braintree/transaction/customer_details.rb
146
- - lib/braintree/transaction/disbursement_details.rb
147
- - lib/braintree/transaction/ideal_payment_details.rb
148
- - lib/braintree/transaction/masterpass_card_details.rb
149
- - lib/braintree/transaction/paypal_details.rb
150
- - lib/braintree/transaction/status_details.rb
151
- - lib/braintree/transaction/subscription_details.rb
152
- - lib/braintree/transaction/us_bank_account_details.rb
153
- - lib/braintree/transaction/venmo_account_details.rb
154
- - lib/braintree/transaction/visa_checkout_card_details.rb
124
+ - lib/braintree/credit_card_verification_gateway.rb
125
+ - lib/braintree/dispute_gateway.rb
126
+ - lib/braintree/address.rb
127
+ - lib/braintree/connected_merchant_status_transitioned.rb
128
+ - lib/braintree/customer.rb
129
+ - lib/braintree/dispute_search.rb
130
+ - lib/braintree/facilitated_details.rb
131
+ - lib/braintree/coinbase_account.rb
132
+ - lib/braintree/resource_collection.rb
133
+ - lib/braintree/customer_gateway.rb
134
+ - lib/braintree/ideal_payment_gateway.rb
135
+ - lib/braintree/add_on.rb
136
+ - lib/braintree/venmo_account.rb
137
+ - lib/braintree/discount.rb
138
+ - lib/braintree/advanced_search.rb
155
139
  - lib/braintree/transaction_gateway.rb
156
- - lib/braintree/transaction_search.rb
157
- - lib/braintree/transparent_redirect.rb
158
- - lib/braintree/transparent_redirect_gateway.rb
159
- - lib/braintree/unknown_payment_method.rb
160
- - lib/braintree/us_bank_account.rb
161
140
  - lib/braintree/us_bank_account_gateway.rb
162
- - lib/braintree/util.rb
163
- - lib/braintree/validation_error.rb
164
- - lib/braintree/validation_error_collection.rb
165
- - lib/braintree/venmo_account.rb
141
+ - lib/braintree/settlement_batch_summary.rb
142
+ - lib/braintree/testing_gateway.rb
143
+ - lib/braintree/credit_card_gateway.rb
144
+ - lib/braintree/exceptions.rb
145
+ - lib/braintree/webhook_testing_gateway.rb
146
+ - lib/braintree/transaction_search.rb
147
+ - lib/braintree/disbursement.rb
148
+ - lib/braintree/dispute/transaction_details.rb
149
+ - lib/braintree/dispute/evidence.rb
150
+ - lib/braintree/dispute/history_event.rb
151
+ - lib/braintree/dispute/transaction.rb
152
+ - lib/braintree/address/country_names.rb
153
+ - lib/braintree/subscription/status_details.rb
154
+ - lib/braintree/test_transaction.rb
155
+ - lib/braintree/base_module.rb
156
+ - lib/braintree/settlement_batch.rb
157
+ - lib/braintree/bin_data.rb
158
+ - lib/braintree/document_upload.rb
159
+ - lib/braintree/credit_card_verification_search.rb
166
160
  - lib/braintree/version.rb
161
+ - lib/braintree/subscription_gateway.rb
162
+ - lib/braintree/settlement_batch_summary_gateway.rb
163
+ - lib/braintree/apple_pay_options.rb
164
+ - lib/braintree/apple_pay_card.rb
165
+ - lib/braintree/merchant_account.rb
166
+ - lib/braintree/error_codes.rb
167
+ - lib/braintree/apple_pay_gateway.rb
168
+ - lib/braintree/europe_bank_account.rb
167
169
  - lib/braintree/visa_checkout_card.rb
168
- - lib/braintree/webhook_notification.rb
169
- - lib/braintree/webhook_notification_gateway.rb
170
- - lib/braintree/webhook_testing.rb
171
- - lib/braintree/webhook_testing_gateway.rb
172
- - lib/braintree/xml.rb
173
- - lib/braintree/xml/generator.rb
174
- - lib/braintree/xml/libxml.rb
175
- - lib/braintree/xml/parser.rb
176
- - lib/braintree/xml/rexml.rb
170
+ - lib/braintree/masterpass_card.rb
171
+ - lib/braintree/ideal_payment.rb
172
+ - lib/braintree/transparent_redirect.rb
173
+ - lib/braintree/granted_payment_instrument_update.rb
174
+ - lib/braintree/merchant.rb
175
+ - lib/braintree/paypal_account.rb
176
+ - lib/braintree/payment_instrument_type.rb
177
+ - lib/braintree/ach_mandate.rb
178
+ - lib/braintree/paginated_collection.rb
179
+ - lib/braintree.rb
177
180
  - lib/ssl/api_braintreegateway_com.ca.crt
178
181
  - lib/ssl/securetrust_ca.crt
179
- - spec/fixtures/files/bt_logo.png
180
- - spec/fixtures/files/gif_extension_bt_logo.gif
181
- - spec/fixtures/files/malformed_pdf.pdf
182
+ - spec/script/httpsd.rb
182
183
  - spec/hacks/tcp_socket.rb
183
- - spec/integration/braintree/add_on_spec.rb
184
- - spec/integration/braintree/address_spec.rb
185
- - spec/integration/braintree/advanced_search_spec.rb
186
- - spec/integration/braintree/apple_pay_spec.rb
184
+ - spec/oauth_test_helper.rb
185
+ - spec/integration/braintree/masterpass_card_spec.rb
187
186
  - spec/integration/braintree/client_api/client_token_spec.rb
188
187
  - spec/integration/braintree/client_api/spec_helper.rb
189
- - spec/integration/braintree/coinbase_spec.rb
190
- - spec/integration/braintree/credit_card_spec.rb
191
- - spec/integration/braintree/credit_card_verification_search_spec.rb
192
- - spec/integration/braintree/credit_card_verification_spec.rb
193
- - spec/integration/braintree/customer_search_spec.rb
194
- - spec/integration/braintree/customer_spec.rb
188
+ - spec/integration/braintree/test_transaction_spec.rb
195
189
  - spec/integration/braintree/disbursement_spec.rb
196
- - spec/integration/braintree/discount_spec.rb
197
- - spec/integration/braintree/dispute_search_spec.rb
198
- - spec/integration/braintree/dispute_spec.rb
199
- - spec/integration/braintree/document_upload_spec.rb
200
- - spec/integration/braintree/error_codes_spec.rb
201
- - spec/integration/braintree/http_spec.rb
202
190
  - spec/integration/braintree/ideal_payment_spec.rb
203
- - spec/integration/braintree/masterpass_card_spec.rb
204
- - spec/integration/braintree/merchant_account_spec.rb
205
191
  - spec/integration/braintree/merchant_spec.rb
206
192
  - spec/integration/braintree/oauth_spec.rb
193
+ - spec/integration/braintree/visa_checkout_card_spec.rb
194
+ - spec/integration/braintree/customer_spec.rb
195
+ - spec/integration/braintree/coinbase_spec.rb
196
+ - spec/integration/braintree/transparent_redirect_spec.rb
207
197
  - spec/integration/braintree/payment_method_nonce_spec.rb
208
- - spec/integration/braintree/payment_method_spec.rb
198
+ - spec/integration/braintree/add_on_spec.rb
199
+ - spec/integration/braintree/advanced_search_spec.rb
200
+ - spec/integration/braintree/credit_card_verification_spec.rb
201
+ - spec/integration/braintree/test/transaction_amounts_spec.rb
202
+ - spec/integration/braintree/transaction_spec.rb
203
+ - spec/integration/braintree/customer_search_spec.rb
204
+ - spec/integration/braintree/credit_card_verification_search_spec.rb
205
+ - spec/integration/braintree/dispute_search_spec.rb
206
+ - spec/integration/braintree/error_codes_spec.rb
209
207
  - spec/integration/braintree/paypal_account_spec.rb
208
+ - spec/integration/braintree/credit_card_spec.rb
209
+ - spec/integration/braintree/subscription_spec.rb
210
+ - spec/integration/braintree/discount_spec.rb
211
+ - spec/integration/braintree/document_upload_spec.rb
212
+ - spec/integration/braintree/merchant_account_spec.rb
210
213
  - spec/integration/braintree/plan_spec.rb
214
+ - spec/integration/braintree/apple_pay_spec.rb
215
+ - spec/integration/braintree/address_spec.rb
216
+ - spec/integration/braintree/payment_method_spec.rb
217
+ - spec/integration/braintree/http_spec.rb
211
218
  - spec/integration/braintree/settlement_batch_summary_spec.rb
212
- - spec/integration/braintree/subscription_spec.rb
213
- - spec/integration/braintree/test/transaction_amounts_spec.rb
214
- - spec/integration/braintree/test_transaction_spec.rb
215
- - spec/integration/braintree/transaction_search_spec.rb
216
- - spec/integration/braintree/transaction_spec.rb
217
- - spec/integration/braintree/transparent_redirect_spec.rb
219
+ - spec/integration/braintree/dispute_spec.rb
218
220
  - spec/integration/braintree/us_bank_account_spec.rb
219
- - spec/integration/braintree/visa_checkout_card_spec.rb
221
+ - spec/integration/braintree/transaction_search_spec.rb
220
222
  - spec/integration/spec_helper.rb
221
- - spec/oauth_test_helper.rb
222
- - spec/script/httpsd.rb
223
- - spec/spec.opts
224
- - spec/spec_helper.rb
225
223
  - spec/ssl/certificate.crt
226
224
  - spec/ssl/geotrust_global.crt
227
225
  - spec/ssl/privateKey.key
228
- - spec/unit/braintree/address_spec.rb
226
+ - spec/spec.opts
227
+ - spec/fixtures/files/malformed_pdf.pdf
228
+ - spec/fixtures/files/gif_extension_bt_logo.gif
229
+ - spec/fixtures/files/bt_logo.png
230
+ - spec/unit/braintree_spec.rb
231
+ - spec/unit/braintree/transaction/deposit_details_spec.rb
232
+ - spec/unit/braintree/transaction/customer_details_spec.rb
233
+ - spec/unit/braintree/transaction/credit_card_details_spec.rb
229
234
  - spec/unit/braintree/apple_pay_card_spec.rb
235
+ - spec/unit/braintree/disbursement_spec.rb
236
+ - spec/unit/braintree/xml/rexml_spec.rb
237
+ - spec/unit/braintree/xml/parser_spec.rb
238
+ - spec/unit/braintree/xml/libxml_spec.rb
239
+ - spec/unit/braintree/sha256_digest_spec.rb
230
240
  - spec/unit/braintree/base_module_spec.rb
231
241
  - spec/unit/braintree/client_token_spec.rb
232
- - spec/unit/braintree/configuration_spec.rb
233
- - spec/unit/braintree/credentials_parser_spec.rb
234
- - spec/unit/braintree/credit_card_spec.rb
235
- - spec/unit/braintree/credit_card_verification_search_spec.rb
236
- - spec/unit/braintree/credit_card_verification_spec.rb
242
+ - spec/unit/braintree/three_d_secure_info_spec.rb
243
+ - spec/unit/braintree/validation_error_spec.rb
237
244
  - spec/unit/braintree/customer_spec.rb
238
- - spec/unit/braintree/digest_spec.rb
239
- - spec/unit/braintree/disbursement_spec.rb
240
- - spec/unit/braintree/dispute_search_spec.rb
241
- - spec/unit/braintree/dispute_spec.rb
242
- - spec/unit/braintree/document_upload_spec.rb
243
- - spec/unit/braintree/error_result_spec.rb
244
- - spec/unit/braintree/errors_spec.rb
245
- - spec/unit/braintree/http_spec.rb
246
- - spec/unit/braintree/merchant_account_spec.rb
247
- - spec/unit/braintree/modification_spec.rb
248
- - spec/unit/braintree/payment_method_spec.rb
249
- - spec/unit/braintree/paypal_account_spec.rb
250
- - spec/unit/braintree/resource_collection_spec.rb
245
+ - spec/unit/braintree/util_spec.rb
251
246
  - spec/unit/braintree/risk_data_spec.rb
252
- - spec/unit/braintree/sha256_digest_spec.rb
253
- - spec/unit/braintree/signature_service_spec.rb
254
247
  - spec/unit/braintree/subscription_search_spec.rb
255
- - spec/unit/braintree/subscription_spec.rb
256
- - spec/unit/braintree/successful_result_spec.rb
257
- - spec/unit/braintree/three_d_secure_info_spec.rb
258
- - spec/unit/braintree/transaction/credit_card_details_spec.rb
259
- - spec/unit/braintree/transaction/customer_details_spec.rb
260
- - spec/unit/braintree/transaction/deposit_details_spec.rb
261
- - spec/unit/braintree/transaction_search_spec.rb
262
- - spec/unit/braintree/transaction_spec.rb
263
248
  - spec/unit/braintree/transparent_redirect_spec.rb
249
+ - spec/unit/braintree/modification_spec.rb
250
+ - spec/unit/braintree/credit_card_verification_spec.rb
264
251
  - spec/unit/braintree/unknown_payment_method_spec.rb
265
- - spec/unit/braintree/us_bank_account_spec.rb
266
- - spec/unit/braintree/util_spec.rb
252
+ - spec/unit/braintree/credentials_parser_spec.rb
253
+ - spec/unit/braintree/transaction_spec.rb
267
254
  - spec/unit/braintree/validation_error_collection_spec.rb
268
- - spec/unit/braintree/validation_error_spec.rb
255
+ - spec/unit/braintree/resource_collection_spec.rb
256
+ - spec/unit/braintree/credit_card_verification_search_spec.rb
269
257
  - spec/unit/braintree/webhook_notification_spec.rb
270
- - spec/unit/braintree/xml/libxml_spec.rb
271
- - spec/unit/braintree/xml/parser_spec.rb
272
- - spec/unit/braintree/xml/rexml_spec.rb
258
+ - spec/unit/braintree/errors_spec.rb
259
+ - spec/unit/braintree/error_result_spec.rb
260
+ - spec/unit/braintree/dispute_search_spec.rb
273
261
  - spec/unit/braintree/xml_spec.rb
274
- - spec/unit/braintree_spec.rb
262
+ - spec/unit/braintree/paypal_account_spec.rb
263
+ - spec/unit/braintree/credit_card_spec.rb
264
+ - spec/unit/braintree/signature_service_spec.rb
265
+ - spec/unit/braintree/subscription_spec.rb
266
+ - spec/unit/braintree/document_upload_spec.rb
267
+ - spec/unit/braintree/merchant_account_spec.rb
268
+ - spec/unit/braintree/address_spec.rb
269
+ - spec/unit/braintree/digest_spec.rb
270
+ - spec/unit/braintree/configuration_spec.rb
271
+ - spec/unit/braintree/payment_method_spec.rb
272
+ - spec/unit/braintree/http_spec.rb
273
+ - spec/unit/braintree/dispute_spec.rb
274
+ - spec/unit/braintree/us_bank_account_spec.rb
275
+ - spec/unit/braintree/successful_result_spec.rb
276
+ - spec/unit/braintree/transaction_search_spec.rb
275
277
  - spec/unit/spec_helper.rb
278
+ - spec/spec_helper.rb
279
+ - braintree.gemspec
276
280
  homepage: http://www.braintreepayments.com/
277
281
  licenses:
278
282
  - MIT
279
- metadata: {}
280
283
  post_install_message:
281
284
  rdoc_options: []
282
285
  require_paths:
283
286
  - lib
284
287
  required_ruby_version: !ruby/object:Gem::Requirement
288
+ none: false
285
289
  requirements:
286
- - - ">="
290
+ - - ! '>='
287
291
  - !ruby/object:Gem::Version
288
292
  version: '0'
289
293
  required_rubygems_version: !ruby/object:Gem::Requirement
294
+ none: false
290
295
  requirements:
291
- - - ">="
296
+ - - ! '>='
292
297
  - !ruby/object:Gem::Version
293
298
  version: '0'
294
299
  requirements: []
295
300
  rubyforge_project: braintree
296
- rubygems_version: 2.4.5.1
301
+ rubygems_version: 1.8.23
297
302
  signing_key:
298
- specification_version: 4
303
+ specification_version: 3
299
304
  summary: Braintree Gateway Ruby Client Library
300
305
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 0e9443a409e302f9f139f6b8f43f6357671c4fb4
4
- data.tar.gz: 58f33b08befa54a85859bda8277d6f556c4c834d
5
- SHA512:
6
- metadata.gz: 2482192edfc3d977132a3fee6c9f1052746ec2fc20ce8b2be5ae02021978cfbb64c1c93248a7f3b27d20da680b7d6f92abdc3ed7d627768887812a1f30ffc84e
7
- data.tar.gz: f33e4c21098180d53f3839d7f2039c2add7df880b0856e86717b450d3604803d8b92463a0d365657cb23f5749708eb1b23e352e7d84212a8a80e862b5e3f2f5c