lib/braintree/credit_card.rb in braintree-2.17.0 vs lib/braintree/credit_card.rb in braintree-2.18.0

- old
+ new

@@ -24,18 +24,49 @@ module CustomerLocation International = "international" US = "us" end + module Commercial + Yes = "Yes" + No = "No" + Unknown = "Unknown" + end + + module Debit + Yes = "Yes" + No = "No" + Unknown = "Unknown" + end + + module DurbinRegulated + Yes = "Yes" + No = "No" + Unknown = "Unknown" + end + + 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, :created_at, :customer_id, :expiration_month, - :expiration_year, :last_4, :prepaid, :unique_number_identifier, :subscriptions, :token, :updated_at + 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 @@ -231,10 +262,11 @@ end 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 + :expiration_year, :last_4, :token, :updated_at, :prepaid, :payroll, :commercial, :debit, :durbin_regulated, + :healthcare ] end def self._new(*args) # :nodoc: self.new *args