class Braintree::Transaction::SamsungPayCardDetails
NEXT_MAJOR_VERSION remove this class SamsungPayCard
has been deprecated
Attributes
Public Class Methods
Source
# File lib/braintree/transaction/samsung_pay_card_details.rb, line 28 def initialize(attributes) set_instance_variables_from_hash attributes unless attributes.nil? end
Public Instance Methods
Source
# File lib/braintree/transaction/samsung_pay_card_details.rb, line 32 def expiration_date "#{expiration_month}/#{expiration_year}" end
Source
# File lib/braintree/transaction/samsung_pay_card_details.rb, line 36 def inspect attr_order = [:token, :bin, :last_4, :card_type, :expiration_date, :source_card_last_4, :customer_location, :prepaid, :healthcare, :durbin_regulated, :debit, :commercial, :payroll, :product_id, :country_of_issuance, :issuing_bank, :image_url] formatted_attrs = attr_order.map do |attr| "#{attr}: #{send(attr).inspect}" end "#<#{formatted_attrs.join(", ")}>" end
Source
# File lib/braintree/transaction/samsung_pay_card_details.rb, line 45 def masked_number "#{bin}******#{last_4}" end