braintree 2.40.0 → 2.41.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/braintree.rb +2 -2
- data/lib/braintree/add_on.rb +0 -1
- data/lib/braintree/address.rb +0 -1
- data/lib/braintree/apple_pay_card.rb +0 -1
- data/lib/braintree/configuration.rb +0 -1
- data/lib/braintree/credit_card.rb +0 -33
- data/lib/braintree/credit_card_verification.rb +0 -1
- data/lib/braintree/customer.rb +1 -32
- data/lib/braintree/discount.rb +0 -1
- data/lib/braintree/error_codes.rb +1 -6
- data/lib/braintree/error_result.rb +0 -1
- data/lib/braintree/errors.rb +0 -1
- data/lib/braintree/{sepa_bank_account.rb → europe_bank_account.rb} +2 -2
- data/lib/braintree/{sepa_bank_account_gateway.rb → europe_bank_account_gateway.rb} +3 -3
- data/lib/braintree/gateway.rb +2 -3
- data/lib/braintree/payment_instrument_type.rb +1 -1
- data/lib/braintree/payment_method_gateway.rb +4 -4
- data/lib/braintree/paypal_account.rb +0 -2
- data/lib/braintree/plan.rb +0 -2
- data/lib/braintree/subscription.rb +0 -6
- data/lib/braintree/successful_result.rb +0 -1
- data/lib/braintree/test/credit_card.rb +0 -2
- data/lib/braintree/test/transaction_amounts.rb +0 -2
- data/lib/braintree/transaction.rb +0 -27
- data/lib/braintree/transaction/credit_card_details.rb +2 -2
- data/lib/braintree/transaction/paypal_details.rb +2 -1
- data/lib/braintree/transaction_search.rb +1 -1
- data/lib/braintree/transparent_redirect.rb +0 -11
- data/lib/braintree/validation_error.rb +0 -1
- data/lib/braintree/validation_error_collection.rb +0 -1
- data/lib/braintree/version.rb +1 -1
- data/spec/httpsd.pid +1 -1
- data/spec/integration/braintree/client_api/client_token_spec.rb +1 -1
- data/spec/integration/braintree/client_api/spec_helper.rb +3 -4
- data/spec/integration/braintree/credit_card_spec.rb +1 -1
- data/spec/integration/braintree/payment_method_spec.rb +2 -2
- data/spec/integration/braintree/transaction_search_spec.rb +3 -3
- data/spec/integration/braintree/transaction_spec.rb +16 -0
- data/spec/unit/braintree/transaction/credit_card_details_spec.rb +3 -2
- metadata +161 -157
- checksums.yaml +0 -7
data/lib/braintree.rb
CHANGED
@@ -69,8 +69,8 @@ require "braintree/risk_data"
|
|
69
69
|
require "braintree/settlement_batch_summary"
|
70
70
|
require "braintree/settlement_batch_summary_gateway"
|
71
71
|
require "braintree/resource_collection"
|
72
|
-
require "braintree/
|
73
|
-
require "braintree/
|
72
|
+
require "braintree/europe_bank_account"
|
73
|
+
require "braintree/europe_bank_account_gateway"
|
74
74
|
require "braintree/sha256_digest"
|
75
75
|
require "braintree/signature_service"
|
76
76
|
require "braintree/subscription"
|
data/lib/braintree/add_on.rb
CHANGED
data/lib/braintree/address.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
module Braintree
|
2
|
-
# See http://www.braintreepayments.com/docs/ruby
|
3
2
|
class CreditCard
|
4
3
|
include BaseModule # :nodoc:
|
5
4
|
|
@@ -40,56 +39,46 @@ module Braintree
|
|
40
39
|
:issuing_bank, :last_4, :payroll, :prepaid, :subscriptions, :token, :unique_number_identifier, :updated_at,
|
41
40
|
:image_url, :verification
|
42
41
|
|
43
|
-
# See http://www.braintreepayments.com/docs/ruby/credit_cards/create
|
44
42
|
def self.create(attributes)
|
45
43
|
Configuration.gateway.credit_card.create(attributes)
|
46
44
|
end
|
47
45
|
|
48
|
-
# See http://www.braintreepayments.com/docs/ruby/credit_cards/create
|
49
46
|
def self.create!(attributes)
|
50
47
|
return_object_or_raise(:credit_card) { create(attributes) }
|
51
48
|
end
|
52
49
|
|
53
50
|
# Deprecated. Use Braintree::TransparentRedirect.url
|
54
|
-
# See http://www.braintreepayments.com/docs/ruby/credit_cards/create_tr
|
55
51
|
def self.create_credit_card_url
|
56
52
|
warn "[DEPRECATED] CreditCard.create_credit_card_url is deprecated. Please use TransparentRedirect.url"
|
57
53
|
Configuration.gateway.credit_card.create_credit_card_url
|
58
54
|
end
|
59
55
|
|
60
56
|
# Deprecated. Use Braintree::TransparentRedirect.confirm
|
61
|
-
# See http://www.braintreepayments.com/docs/ruby/credit_cards/create_tr
|
62
57
|
def self.create_from_transparent_redirect(query_string)
|
63
58
|
warn "[DEPRECATED] CreditCard.create_from_transparent_redirect is deprecated. Please use TransparentRedirect.confirm"
|
64
59
|
Configuration.gateway.credit_card.create_from_transparent_redirect(query_string)
|
65
60
|
end
|
66
61
|
|
67
|
-
# See http://www.braintreepayments.com/docs/ruby/transactions/create_from_vault
|
68
62
|
def self.credit(token, transaction_attributes)
|
69
63
|
Transaction.credit(transaction_attributes.merge(:payment_method_token => token))
|
70
64
|
end
|
71
65
|
|
72
|
-
# See http://www.braintreepayments.com/docs/ruby/transactions/create_from_vault
|
73
66
|
def self.credit!(token, transaction_attributes)
|
74
67
|
return_object_or_raise(:transaction) { credit(token, transaction_attributes) }
|
75
68
|
end
|
76
69
|
|
77
|
-
# See http://www.braintreepayments.com/docs/ruby/credit_cards/delete
|
78
70
|
def self.delete(token)
|
79
71
|
Configuration.gateway.credit_card.delete(token)
|
80
72
|
end
|
81
73
|
|
82
|
-
# See http://www.braintreepayments.com/docs/ruby/credit_cards/search
|
83
74
|
def self.expired(options = {})
|
84
75
|
Configuration.gateway.credit_card.expired(options)
|
85
76
|
end
|
86
77
|
|
87
|
-
# See http://www.braintreepayments.com/docs/ruby/credit_cards/search
|
88
78
|
def self.expiring_between(start_date, end_date, options = {})
|
89
79
|
Configuration.gateway.credit_card.expiring_between(start_date, end_date, options)
|
90
80
|
end
|
91
81
|
|
92
|
-
# See http://www.braintreepayments.com/docs/ruby/credit_cards/search
|
93
82
|
def self.find(token)
|
94
83
|
Configuration.gateway.credit_card.find(token)
|
95
84
|
end
|
@@ -98,37 +87,29 @@ module Braintree
|
|
98
87
|
Configuration.gateway.credit_card.from_nonce(nonce)
|
99
88
|
end
|
100
89
|
|
101
|
-
# See http://www.braintreepayments.com/docs/ruby/transactions/create_from_vault
|
102
90
|
def self.sale(token, transaction_attributes)
|
103
91
|
Configuration.gateway.transaction.sale(transaction_attributes.merge(:payment_method_token => token))
|
104
92
|
end
|
105
93
|
|
106
|
-
# See http://www.braintreepayments.com/docs/ruby/transactions/create_from_vault
|
107
94
|
def self.sale!(token, transaction_attributes)
|
108
95
|
return_object_or_raise(:transaction) { sale(token, transaction_attributes) }
|
109
96
|
end
|
110
97
|
|
111
|
-
# See http://www.braintreepayments.com/docs/ruby/credit_cards/update
|
112
98
|
def self.update(token, attributes)
|
113
99
|
Configuration.gateway.credit_card.update(token, attributes)
|
114
100
|
end
|
115
101
|
|
116
|
-
# See http://www.braintreepayments.com/docs/ruby/credit_cards/update
|
117
102
|
def self.update!(token, attributes)
|
118
103
|
return_object_or_raise(:credit_card) { update(token, attributes) }
|
119
104
|
end
|
120
105
|
|
121
106
|
# Deprecated. Use Braintree::TransparentRedirect.confirm
|
122
|
-
#
|
123
|
-
# See http://www.braintreepayments.com/docs/ruby/credit_cards/update_tr
|
124
107
|
def self.update_from_transparent_redirect(query_string)
|
125
108
|
warn "[DEPRECATED] CreditCard.update_via_transparent_redirect_request is deprecated. Please use TransparentRedirect.confirm"
|
126
109
|
Configuration.gateway.credit_card.update_from_transparent_redirect(query_string)
|
127
110
|
end
|
128
111
|
|
129
112
|
# Deprecated. Use Braintree::TransparentRedirect.url
|
130
|
-
#
|
131
|
-
# See http://www.braintreepayments.com/docs/ruby/credit_cards/update_tr
|
132
113
|
def self.update_credit_card_url
|
133
114
|
warn "[DEPRECATED] CreditCard.update_credit_card_url is deprecated. Please use TransparentRedirect.url"
|
134
115
|
Configuration.gateway.credit_card.update_credit_card_url
|
@@ -148,24 +129,18 @@ module Braintree
|
|
148
129
|
end
|
149
130
|
|
150
131
|
# Deprecated. Use Braintree::CreditCard.credit
|
151
|
-
#
|
152
|
-
# See http://www.braintreepayments.com/docs/ruby/transactions/create_from_vault
|
153
132
|
def credit(transaction_attributes)
|
154
133
|
warn "[DEPRECATED] credit as an instance method is deprecated. Please use CreditCard.credit"
|
155
134
|
@gateway.transaction.credit(transaction_attributes.merge(:payment_method_token => token))
|
156
135
|
end
|
157
136
|
|
158
137
|
# Deprecated. Use Braintree::CreditCard.credit!
|
159
|
-
#
|
160
|
-
# See http://www.braintreepayments.com/docs/ruby/transactions/create_from_vault
|
161
138
|
def credit!(transaction_attributes)
|
162
139
|
warn "[DEPRECATED] credit! as an instance method is deprecated. Please use CreditCard.credit!"
|
163
140
|
return_object_or_raise(:transaction) { credit(transaction_attributes) }
|
164
141
|
end
|
165
142
|
|
166
143
|
# Deprecated. Use Braintree::CreditCard.delete
|
167
|
-
#
|
168
|
-
# http://www.braintreepayments.com/docs/ruby/credit_cards/delete
|
169
144
|
def delete
|
170
145
|
warn "[DEPRECATED] delete as an instance method is deprecated. Please use CreditCard.delete"
|
171
146
|
@gateway.credit_card.delete(token)
|
@@ -200,24 +175,18 @@ module Braintree
|
|
200
175
|
end
|
201
176
|
|
202
177
|
# Deprecated. Use Braintree::CreditCard.sale
|
203
|
-
#
|
204
|
-
# See http://www.braintreepayments.com/docs/ruby/transactions/create_from_vault
|
205
178
|
def sale(transaction_attributes)
|
206
179
|
warn "[DEPRECATED] sale as an instance method is deprecated. Please use CreditCard.sale"
|
207
180
|
@gateway.transaction.sale(transaction_attributes.merge(:payment_method_token => token))
|
208
181
|
end
|
209
182
|
|
210
183
|
# Deprecated. Use Braintree::CreditCard.sale!
|
211
|
-
#
|
212
|
-
# See http://www.braintreepayments.com/docs/ruby/transactions/create_from_vault
|
213
184
|
def sale!(transaction_attributes)
|
214
185
|
warn "[DEPRECATED] sale! as an instance method is deprecated. Please use CreditCard.sale!"
|
215
186
|
return_object_or_raise(:transaction) { sale(transaction_attributes) }
|
216
187
|
end
|
217
188
|
|
218
189
|
# Deprecated. Use Braintree::CreditCard.update
|
219
|
-
#
|
220
|
-
# See http://www.braintreepayments.com/docs/ruby/credit_cards/update
|
221
190
|
def update(attributes)
|
222
191
|
warn "[DEPRECATED] update as an instance method is deprecated. Please use CreditCard.update"
|
223
192
|
result = @gateway.credit_card.update(token, attributes)
|
@@ -228,8 +197,6 @@ module Braintree
|
|
228
197
|
end
|
229
198
|
|
230
199
|
# Deprecated. Use Braintree::CreditCard.update!
|
231
|
-
#
|
232
|
-
# See http://www.braintreepayments.com/docs/ruby/credit_cards/update
|
233
200
|
def update!(attributes)
|
234
201
|
warn "[DEPRECATED] update! as an instance method is deprecated. Please use CreditCard.update!"
|
235
202
|
return_object_or_raise(:credit_card) { update(attributes) }
|
data/lib/braintree/customer.rb
CHANGED
@@ -1,73 +1,58 @@
|
|
1
1
|
module Braintree
|
2
|
-
# See http://www.braintreepayments.com/docs/ruby
|
3
2
|
class Customer
|
4
3
|
include BaseModule
|
5
4
|
|
6
5
|
attr_reader :addresses, :company, :created_at, :credit_cards, :email, :fax, :first_name, :id, :last_name,
|
7
6
|
:phone, :updated_at, :website, :custom_fields, :paypal_accounts, :apple_pay_cards, :coinbase_accounts
|
8
7
|
|
9
|
-
# See http://www.braintreepayments.com/docs/ruby/customers/search
|
10
8
|
def self.all
|
11
9
|
Configuration.gateway.customer.all
|
12
10
|
end
|
13
11
|
|
14
|
-
# See http://www.braintreepayments.com/docs/ruby/customers/create
|
15
12
|
def self.create(attributes = {})
|
16
13
|
Configuration.gateway.customer.create(attributes)
|
17
14
|
end
|
18
15
|
|
19
|
-
# See http://www.braintreepayments.com/docs/ruby/customers/create
|
20
16
|
def self.create!(attributes = {})
|
21
17
|
return_object_or_raise(:customer) { create(attributes) }
|
22
18
|
end
|
23
19
|
|
24
20
|
# Deprecated. Use Braintree::TransparentRedirect.url
|
25
|
-
#
|
26
|
-
# See http://www.braintreepayments.com/docs/ruby/customers/create_tr
|
27
21
|
def self.create_customer_url
|
28
22
|
warn "[DEPRECATED] Customer.create_customer_url is deprecated. Please use TransparentRedirect.url"
|
29
23
|
Configuration.gateway.customer.create_customer_url
|
30
24
|
end
|
31
25
|
|
32
26
|
# Deprecated. Use Braintree::TransparentRedirect.confirm
|
33
|
-
#
|
34
|
-
# See http://www.braintreepayments.com/docs/ruby/customers/create_tr
|
35
27
|
def self.create_from_transparent_redirect(query_string)
|
36
28
|
warn "[DEPRECATED] Customer.create_from_transparent_redirect is deprecated. Please use TransparentRedirect.confirm"
|
37
29
|
Configuration.gateway.customer.create_from_transparent_redirect(query_string)
|
38
30
|
end
|
39
31
|
|
40
|
-
# See http://www.braintreepayments.com/docs/ruby/transactions/create_from_vault
|
41
32
|
def self.credit(customer_id, transaction_attributes)
|
42
33
|
Transaction.credit(transaction_attributes.merge(:customer_id => customer_id))
|
43
34
|
end
|
44
35
|
|
45
|
-
# See http://www.braintreepayments.com/docs/ruby/transactions/create_from_vault
|
46
36
|
def self.credit!(customer_id, transaction_attributes)
|
47
37
|
return_object_or_raise(:transaction){ credit(customer_id, transaction_attributes) }
|
48
38
|
end
|
49
39
|
|
50
|
-
# See http://www.braintreepayments.com/docs/ruby/customers/delete
|
51
40
|
def self.delete(customer_id)
|
52
41
|
Configuration.gateway.customer.delete(customer_id)
|
53
42
|
end
|
54
43
|
|
55
|
-
# See http://www.braintreepayments.com/docs/ruby/customers/search
|
56
44
|
def self.find(customer_id)
|
57
45
|
Configuration.gateway.customer.find(customer_id)
|
58
46
|
end
|
59
47
|
|
60
|
-
# See http://www.braintreepayments.com/docs/ruby/transactions/create_from_vault
|
61
48
|
def self.sale(customer_id, transaction_attributes)
|
62
49
|
Transaction.sale(transaction_attributes.merge(:customer_id => customer_id))
|
63
50
|
end
|
64
51
|
|
65
|
-
# See http://www.braintreepayments.com/docs/ruby/transactions/create_from_vault
|
66
52
|
def self.sale!(customer_id, transaction_attributes)
|
67
53
|
return_object_or_raise(:transaction) { sale(customer_id, transaction_attributes) }
|
68
54
|
end
|
69
55
|
|
70
|
-
# See http://www.braintreepayments.com/docs/ruby/customers/search
|
71
56
|
def self.search(&block)
|
72
57
|
Configuration.gateway.customer.search(&block)
|
73
58
|
end
|
@@ -77,27 +62,21 @@ module Braintree
|
|
77
62
|
Configuration.gateway.customer.transactions(customer_id, options = {})
|
78
63
|
end
|
79
64
|
|
80
|
-
# See http://www.braintreepayments.com/docs/ruby/customers/update
|
81
65
|
def self.update(customer_id, attributes)
|
82
66
|
Configuration.gateway.customer.update(customer_id, attributes)
|
83
67
|
end
|
84
68
|
|
85
|
-
# See http://www.braintreepayments.com/docs/ruby/customers/update
|
86
69
|
def self.update!(customer_id, attributes)
|
87
70
|
return_object_or_raise(:customer) { update(customer_id, attributes) }
|
88
71
|
end
|
89
72
|
|
90
73
|
# Deprecated. Use Braintree::TransparentRedirect.url
|
91
|
-
#
|
92
|
-
# See http://www.braintreepayments.com/docs/ruby/customers/update_tr
|
93
74
|
def self.update_customer_url
|
94
75
|
warn "[DEPRECATED] Customer.update_customer_url is deprecated. Please use TransparentRedirect.url"
|
95
76
|
Configuration.gateway.customer.update_customer_url
|
96
77
|
end
|
97
78
|
|
98
79
|
# Deprecated. Use Braintree::TransparentRedirect.confirm
|
99
|
-
#
|
100
|
-
# See http://www.braintreepayments.com/docs/ruby/customers/update_tr
|
101
80
|
def self.update_from_transparent_redirect(query_string)
|
102
81
|
warn "[DEPRECATED] Customer.update_from_transparent_redirect is deprecated. Please use TransparentRedirect.confirm"
|
103
82
|
Configuration.gateway.customer.update_from_transparent_redirect(query_string)
|
@@ -110,16 +89,15 @@ module Braintree
|
|
110
89
|
@paypal_accounts = (@paypal_accounts || []).map { |pm| PayPalAccount._new gateway, pm }
|
111
90
|
@coinbase_accounts = (@coinbase_accounts || []).map { |pm| CoinbaseAccount._new gateway, pm }
|
112
91
|
@apple_pay_cards = (@apple_pay_cards || []).map { |pm| ApplePayCard._new gateway, pm }
|
92
|
+
@europe_bank_accounts = (@europe_bank_Accounts || []).map { |pm| EuropeBankAccount._new gateway, pm }
|
113
93
|
@addresses = (@addresses || []).map { |addr| Address._new gateway, addr }
|
114
94
|
@custom_fields = attributes[:custom_fields].is_a?(Hash) ? attributes[:custom_fields] : {}
|
115
95
|
end
|
116
96
|
|
117
|
-
# See http://www.braintreepayments.com/docs/ruby/transactions/create_from_vault
|
118
97
|
def credit(transaction_attributes)
|
119
98
|
@gateway.transaction.credit(transaction_attributes.merge(:customer_id => id))
|
120
99
|
end
|
121
100
|
|
122
|
-
# See http://www.braintreepayments.com/docs/ruby/transactions/create_from_vault
|
123
101
|
def credit!(transaction_attributes)
|
124
102
|
return_object_or_raise(:transaction) { credit(transaction_attributes) }
|
125
103
|
end
|
@@ -137,7 +115,6 @@ module Braintree
|
|
137
115
|
payment_methods.find { |payment_instrument| payment_instrument.default? }
|
138
116
|
end
|
139
117
|
|
140
|
-
# See http://www.braintreepayments.com/docs/ruby/customers/delete
|
141
118
|
def delete
|
142
119
|
@gateway.customer.delete(id)
|
143
120
|
end
|
@@ -158,16 +135,12 @@ module Braintree
|
|
158
135
|
end
|
159
136
|
|
160
137
|
# Deprecated. Use Braintree::Customer.sale
|
161
|
-
#
|
162
|
-
# See http://www.braintreepayments.com/docs/ruby/transactions/create_from_vault
|
163
138
|
def sale(transaction_attributes)
|
164
139
|
warn "[DEPRECATED] sale as an instance method is deprecated. Please use Customer.sale"
|
165
140
|
@gateway.transaction.sale(transaction_attributes.merge(:customer_id => id))
|
166
141
|
end
|
167
142
|
|
168
143
|
# Deprecated. Use Braintree::Customer.sale!
|
169
|
-
#
|
170
|
-
# See http://www.braintreepayments.com/docs/ruby/transactions/create_from_vault
|
171
144
|
def sale!(transaction_attributes)
|
172
145
|
warn "[DEPRECATED] sale! as an instance method is deprecated. Please use Customer.sale!"
|
173
146
|
return_object_or_raise(:transaction) { sale(transaction_attributes) }
|
@@ -179,8 +152,6 @@ module Braintree
|
|
179
152
|
end
|
180
153
|
|
181
154
|
# Deprecated. Use Braintree::Customer.update
|
182
|
-
#
|
183
|
-
# See http://www.braintreepayments.com/docs/ruby/customers/update
|
184
155
|
def update(attributes)
|
185
156
|
warn "[DEPRECATED] update as an instance method is deprecated. Please use Customer.update"
|
186
157
|
result = @gateway.customer.update(id, attributes)
|
@@ -191,8 +162,6 @@ module Braintree
|
|
191
162
|
end
|
192
163
|
|
193
164
|
# Deprecated. Use Braintree::Customer.update!
|
194
|
-
#
|
195
|
-
# See http://www.braintreepayments.com/docs/ruby/customers/update
|
196
165
|
def update!(attributes)
|
197
166
|
warn "[DEPRECATED] update! as an instance method is deprecated. Please use Customer.update!"
|
198
167
|
return_object_or_raise(:customer) { update(attributes) }
|
data/lib/braintree/discount.rb
CHANGED
@@ -3,7 +3,6 @@ module Braintree
|
|
3
3
|
# The constants should be used to check for a specific validation error in a ValidationErrorCollection.
|
4
4
|
# The error messages returned from the server may change, but the codes will remain the same.
|
5
5
|
module ErrorCodes
|
6
|
-
# See http://www.braintreepayments.com/docs/ruby/addresses/validations
|
7
6
|
module Address
|
8
7
|
CompanyIsInvalid = "91821"
|
9
8
|
CountryNameIsNotAccepted = "91803"
|
@@ -58,7 +57,6 @@ module Braintree
|
|
58
57
|
KeyMismatchStoringCertificate = "93522"
|
59
58
|
end
|
60
59
|
|
61
|
-
# See http://www.braintreepayments.com/docs/ruby/credit_cards/validations
|
62
60
|
module CreditCard
|
63
61
|
BillingAddressConflict = "91701"
|
64
62
|
BillingAddressIdIsInvalid = "91702"
|
@@ -109,7 +107,6 @@ module Braintree
|
|
109
107
|
end
|
110
108
|
end
|
111
109
|
|
112
|
-
# See http://www.braintreepayments.com/docs/ruby/customers/validations
|
113
110
|
module Customer
|
114
111
|
CustomFieldIsInvalid = "91602"
|
115
112
|
IdIsInUse = "91609"
|
@@ -157,7 +154,7 @@ module Braintree
|
|
157
154
|
CannotUpdatePayPalAccountUsingPaymentMethodNonce = "92914"
|
158
155
|
end
|
159
156
|
|
160
|
-
module
|
157
|
+
module EuropeBankAccount
|
161
158
|
IBANIsRequired = "93001"
|
162
159
|
BICIsRequired = "93002"
|
163
160
|
AccountHolderNameIsRequired = "93003"
|
@@ -179,7 +176,6 @@ module Braintree
|
|
179
176
|
TypeIsInvalid = "93313"
|
180
177
|
end
|
181
178
|
|
182
|
-
# See http://www.braintreepayments.com/docs/ruby/subscriptions/validations
|
183
179
|
module Subscription
|
184
180
|
BillingDayOfMonthCannotBeUpdated = "91918"
|
185
181
|
BillingDayOfMonthIsInvalid = "91914"
|
@@ -244,7 +240,6 @@ module Braintree
|
|
244
240
|
end
|
245
241
|
end
|
246
242
|
|
247
|
-
# See http://www.braintreepayments.com/docs/ruby/transactions/validations
|
248
243
|
module Transaction
|
249
244
|
AmountCannotBeNegative = "81501"
|
250
245
|
AmountFormatIsInvalid = "81503" # Keep for backwards compatibility
|
data/lib/braintree/errors.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module Braintree
|
2
|
-
class
|
2
|
+
class EuropeBankAccount
|
3
3
|
include BaseModule
|
4
4
|
|
5
5
|
module MandateType
|
@@ -23,7 +23,7 @@ module Braintree
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def self.find(token)
|
26
|
-
Configuration.gateway.
|
26
|
+
Configuration.gateway.europe_bank_account.find(token)
|
27
27
|
end
|
28
28
|
|
29
29
|
def default?
|