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

- old
+ new

@@ -24,12 +24,18 @@ module CustomerLocation International = "international" US = "us" 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, :unique_number_identifier, :subscriptions, :token, :updated_at + :expiration_year, :last_4, :prepaid, :unique_number_identifier, :subscriptions, :token, :updated_at # See http://www.braintreepayments.com/docs/ruby/credit_cards/create def self.create(attributes) Configuration.gateway.credit_card.create(attributes) end @@ -225,10 +231,10 @@ 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 + :expiration_year, :last_4, :token, :updated_at, :prepaid ] end def self._new(*args) # :nodoc: self.new *args