Class: Braintree::Transaction::SamsungPayCardDetails
- Inherits:
-
Object
- Object
- Braintree::Transaction::SamsungPayCardDetails
- Includes:
- BaseModule
- Defined in:
- lib/braintree/transaction/samsung_pay_card_details.rb
Overview
NEXT_MAJOR_VERSION remove this class SamsungPayCard has been deprecated
Instance Attribute Summary collapse
-
#bin ⇒ Object
readonly
Returns the value of attribute bin.
-
#card_type ⇒ Object
readonly
Returns the value of attribute card_type.
-
#cardholder_name ⇒ Object
readonly
Returns the value of attribute cardholder_name.
-
#commercial ⇒ Object
readonly
Returns the value of attribute commercial.
-
#country_of_issuance ⇒ Object
readonly
Returns the value of attribute country_of_issuance.
-
#customer_location ⇒ Object
readonly
Returns the value of attribute customer_location.
-
#debit ⇒ Object
readonly
Returns the value of attribute debit.
-
#durbin_regulated ⇒ Object
readonly
Returns the value of attribute durbin_regulated.
-
#expiration_month ⇒ Object
readonly
Returns the value of attribute expiration_month.
-
#expiration_year ⇒ Object
readonly
Returns the value of attribute expiration_year.
-
#healthcare ⇒ Object
readonly
Returns the value of attribute healthcare.
-
#image_url ⇒ Object
readonly
Returns the value of attribute image_url.
-
#issuing_bank ⇒ Object
readonly
Returns the value of attribute issuing_bank.
-
#last_4 ⇒ Object
readonly
Returns the value of attribute last_4.
-
#payroll ⇒ Object
readonly
Returns the value of attribute payroll.
-
#prepaid ⇒ Object
readonly
Returns the value of attribute prepaid.
-
#product_id ⇒ Object
readonly
Returns the value of attribute product_id.
-
#source_card_last_4 ⇒ Object
readonly
Returns the value of attribute source_card_last_4.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
- #expiration_date ⇒ Object
-
#initialize(attributes) ⇒ SamsungPayCardDetails
constructor
A new instance of SamsungPayCardDetails.
- #inspect ⇒ Object
- #masked_number ⇒ Object
Methods included from BaseModule
Methods included from BaseModule::Methods
#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class
Constructor Details
#initialize(attributes) ⇒ SamsungPayCardDetails
Returns a new instance of SamsungPayCardDetails.
28 29 30 |
# File 'lib/braintree/transaction/samsung_pay_card_details.rb', line 28 def initialize(attributes) set_instance_variables_from_hash attributes unless attributes.nil? end |
Instance Attribute Details
#bin ⇒ Object (readonly)
Returns the value of attribute bin.
8 9 10 |
# File 'lib/braintree/transaction/samsung_pay_card_details.rb', line 8 def bin @bin end |
#card_type ⇒ Object (readonly)
Returns the value of attribute card_type.
10 11 12 |
# File 'lib/braintree/transaction/samsung_pay_card_details.rb', line 10 def card_type @card_type end |
#cardholder_name ⇒ Object (readonly)
Returns the value of attribute cardholder_name.
9 10 11 |
# File 'lib/braintree/transaction/samsung_pay_card_details.rb', line 9 def cardholder_name @cardholder_name end |
#commercial ⇒ Object (readonly)
Returns the value of attribute commercial.
11 12 13 |
# File 'lib/braintree/transaction/samsung_pay_card_details.rb', line 11 def commercial @commercial end |
#country_of_issuance ⇒ Object (readonly)
Returns the value of attribute country_of_issuance.
12 13 14 |
# File 'lib/braintree/transaction/samsung_pay_card_details.rb', line 12 def country_of_issuance @country_of_issuance end |
#customer_location ⇒ Object (readonly)
Returns the value of attribute customer_location.
13 14 15 |
# File 'lib/braintree/transaction/samsung_pay_card_details.rb', line 13 def customer_location @customer_location end |
#debit ⇒ Object (readonly)
Returns the value of attribute debit.
14 15 16 |
# File 'lib/braintree/transaction/samsung_pay_card_details.rb', line 14 def debit @debit end |
#durbin_regulated ⇒ Object (readonly)
Returns the value of attribute durbin_regulated.
15 16 17 |
# File 'lib/braintree/transaction/samsung_pay_card_details.rb', line 15 def durbin_regulated @durbin_regulated end |
#expiration_month ⇒ Object (readonly)
Returns the value of attribute expiration_month.
16 17 18 |
# File 'lib/braintree/transaction/samsung_pay_card_details.rb', line 16 def expiration_month @expiration_month end |
#expiration_year ⇒ Object (readonly)
Returns the value of attribute expiration_year.
17 18 19 |
# File 'lib/braintree/transaction/samsung_pay_card_details.rb', line 17 def expiration_year @expiration_year end |
#healthcare ⇒ Object (readonly)
Returns the value of attribute healthcare.
18 19 20 |
# File 'lib/braintree/transaction/samsung_pay_card_details.rb', line 18 def healthcare @healthcare end |
#image_url ⇒ Object (readonly)
Returns the value of attribute image_url.
19 20 21 |
# File 'lib/braintree/transaction/samsung_pay_card_details.rb', line 19 def image_url @image_url end |
#issuing_bank ⇒ Object (readonly)
Returns the value of attribute issuing_bank.
20 21 22 |
# File 'lib/braintree/transaction/samsung_pay_card_details.rb', line 20 def issuing_bank @issuing_bank end |
#last_4 ⇒ Object (readonly)
Returns the value of attribute last_4.
21 22 23 |
# File 'lib/braintree/transaction/samsung_pay_card_details.rb', line 21 def last_4 @last_4 end |
#payroll ⇒ Object (readonly)
Returns the value of attribute payroll.
22 23 24 |
# File 'lib/braintree/transaction/samsung_pay_card_details.rb', line 22 def payroll @payroll end |
#prepaid ⇒ Object (readonly)
Returns the value of attribute prepaid.
23 24 25 |
# File 'lib/braintree/transaction/samsung_pay_card_details.rb', line 23 def prepaid @prepaid end |
#product_id ⇒ Object (readonly)
Returns the value of attribute product_id.
24 25 26 |
# File 'lib/braintree/transaction/samsung_pay_card_details.rb', line 24 def product_id @product_id end |
#source_card_last_4 ⇒ Object (readonly)
Returns the value of attribute source_card_last_4.
25 26 27 |
# File 'lib/braintree/transaction/samsung_pay_card_details.rb', line 25 def source_card_last_4 @source_card_last_4 end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
26 27 28 |
# File 'lib/braintree/transaction/samsung_pay_card_details.rb', line 26 def token @token end |
Instance Method Details
#expiration_date ⇒ Object
32 33 34 |
# File 'lib/braintree/transaction/samsung_pay_card_details.rb', line 32 def expiration_date "#{expiration_month}/#{expiration_year}" end |
#inspect ⇒ Object
36 37 38 39 40 41 42 43 |
# 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 |
#masked_number ⇒ Object
45 46 47 |
# File 'lib/braintree/transaction/samsung_pay_card_details.rb', line 45 def masked_number "#{bin}******#{last_4}" end |