lib/braintree/credit_card.rb in braintree-2.19.0 vs lib/braintree/credit_card.rb in braintree-2.20.0
- old
+ new
@@ -24,50 +24,23 @@
module CustomerLocation
International = "international"
US = "us"
end
- module Commercial
+ module CardTypeIndicator
Yes = "Yes"
No = "No"
Unknown = "Unknown"
end
- module Debit
- Yes = "Yes"
- No = "No"
- Unknown = "Unknown"
- end
+ Commercial = Debit = DurbinRegulated = Healthcare = Payroll = Prepaid =
+ IssuingBank = CountryOfIssuance = CardTypeIndicator
- module DurbinRegulated
- Yes = "Yes"
- No = "No"
- Unknown = "Unknown"
- end
+ attr_reader :billing_address, :bin, :card_type, :cardholder_name, :commercial, :country_of_issuance,
+ :created_at, :customer_id, :debit, :durbin_regulated, :expiration_month, :expiration_year, :healthcare,
+ :issuing_bank, :last_4, :payroll, :prepaid, :subscriptions, :token, :unique_number_identifier, :updated_at
- module Healthcare
- Yes = "Yes"
- No = "No"
- Unknown = "Unknown"
- end
-
- module Payroll
- Yes = "Yes"
- No = "No"
- Unknown = "Unknown"
- end
-
- module Prepaid
- Yes = "Yes"
- No = "No"
- Unknown = "Unknown"
- end
-
- attr_reader :billing_address, :bin, :card_type, :cardholder_name, :commercial, :created_at,
- :customer_id, :debit, :durbin_regulated, :expiration_month, :expiration_year, :healthcare,
- :last_4, :payroll, :prepaid, :subscriptions, :token, :unique_number_identifier, :updated_at
-
# See http://www.braintreepayments.com/docs/ruby/credit_cards/create
def self.create(attributes)
Configuration.gateway.credit_card.create(attributes)
end
@@ -263,10 +236,10 @@
def self._attributes # :nodoc:
[
:billing_address, :bin, :card_type, :cardholder_name, :created_at, :customer_id, :expiration_month,
:expiration_year, :last_4, :token, :updated_at, :prepaid, :payroll, :commercial, :debit, :durbin_regulated,
- :healthcare
+ :healthcare, :country_of_issuance, :issuing_bank
]
end
def self._new(*args) # :nodoc:
self.new *args