Class: Braintree::ApplePayCard
- Inherits:
-
Object
- Object
- Braintree::ApplePayCard
- Includes:
- BaseModule
- Defined in:
- lib/braintree/apple_pay_card.rb
Defined Under Namespace
Modules: CardType
Instance Attribute Summary collapse
-
#billing_address ⇒ Object
readonly
Returns the value of attribute billing_address.
-
#bin ⇒ Object
readonly
Returns the value of attribute bin.
-
#business ⇒ Object
readonly
Returns the value of attribute business.
-
#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.
-
#consumer ⇒ Object
readonly
Returns the value of attribute consumer.
-
#corporate ⇒ Object
readonly
Returns the value of attribute corporate.
-
#country_of_issuance ⇒ Object
readonly
Returns the value of attribute country_of_issuance.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#customer_id ⇒ Object
readonly
Returns the value of attribute customer_id.
-
#debit ⇒ Object
readonly
Returns the value of attribute debit.
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#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.
-
#expired ⇒ Object
readonly
Returns the value of attribute expired.
-
#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.
-
#merchant_token_identifier ⇒ Object
readonly
Returns the value of attribute merchant_token_identifier.
-
#payment_instrument_name ⇒ Object
readonly
Returns the value of attribute payment_instrument_name.
-
#payroll ⇒ Object
readonly
Returns the value of attribute payroll.
-
#prepaid ⇒ Object
readonly
Returns the value of attribute prepaid.
-
#prepaid_reloadable ⇒ Object
readonly
Returns the value of attribute prepaid_reloadable.
-
#product_id ⇒ Object
readonly
Returns the value of attribute product_id.
-
#purchase ⇒ Object
readonly
Returns the value of attribute purchase.
-
#source_card_last4 ⇒ Object
readonly
Returns the value of attribute source_card_last4.
-
#source_description ⇒ Object
readonly
Returns the value of attribute source_description.
-
#subscriptions ⇒ Object
readonly
Returns the value of attribute subscriptions.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Class Method Summary collapse
Instance Method Summary collapse
- #default? ⇒ Boolean
- #expired? ⇒ Boolean
-
#initialize(gateway, attributes) ⇒ ApplePayCard
constructor
A new instance of ApplePayCard.
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
permalink #initialize(gateway, attributes) ⇒ ApplePayCard
Returns a new instance of ApplePayCard.
47 48 49 50 51 52 |
# File 'lib/braintree/apple_pay_card.rb', line 47 def initialize(gateway, attributes) @gateway = gateway set_instance_variables_from_hash(attributes) @billing_address = attributes[:billing_address] ? Address._new(@gateway, attributes[:billing_address]) : nil @subscriptions = (@subscriptions || []).map { |subscription_hash| Subscription._new(@gateway, subscription_hash) } end |
Instance Attribute Details
permalink #billing_address ⇒ Object (readonly)
Returns the value of attribute billing_address.
13 14 15 |
# File 'lib/braintree/apple_pay_card.rb', line 13 def billing_address @billing_address end |
permalink #bin ⇒ Object (readonly)
Returns the value of attribute bin.
14 15 16 |
# File 'lib/braintree/apple_pay_card.rb', line 14 def bin @bin end |
permalink #business ⇒ Object (readonly)
Returns the value of attribute business.
15 16 17 |
# File 'lib/braintree/apple_pay_card.rb', line 15 def business @business end |
permalink #card_type ⇒ Object (readonly)
Returns the value of attribute card_type.
16 17 18 |
# File 'lib/braintree/apple_pay_card.rb', line 16 def card_type @card_type end |
permalink #cardholder_name ⇒ Object (readonly)
Returns the value of attribute cardholder_name.
17 18 19 |
# File 'lib/braintree/apple_pay_card.rb', line 17 def cardholder_name @cardholder_name end |
permalink #commercial ⇒ Object (readonly)
Returns the value of attribute commercial.
18 19 20 |
# File 'lib/braintree/apple_pay_card.rb', line 18 def commercial @commercial end |
permalink #consumer ⇒ Object (readonly)
Returns the value of attribute consumer.
19 20 21 |
# File 'lib/braintree/apple_pay_card.rb', line 19 def consumer @consumer end |
permalink #corporate ⇒ Object (readonly)
Returns the value of attribute corporate.
20 21 22 |
# File 'lib/braintree/apple_pay_card.rb', line 20 def corporate @corporate end |
permalink #country_of_issuance ⇒ Object (readonly)
Returns the value of attribute country_of_issuance.
21 22 23 |
# File 'lib/braintree/apple_pay_card.rb', line 21 def country_of_issuance @country_of_issuance end |
permalink #created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
22 23 24 |
# File 'lib/braintree/apple_pay_card.rb', line 22 def created_at @created_at end |
permalink #customer_id ⇒ Object (readonly)
Returns the value of attribute customer_id.
23 24 25 |
# File 'lib/braintree/apple_pay_card.rb', line 23 def customer_id @customer_id end |
permalink #debit ⇒ Object (readonly)
Returns the value of attribute debit.
24 25 26 |
# File 'lib/braintree/apple_pay_card.rb', line 24 def debit @debit end |
permalink #default ⇒ Object (readonly)
Returns the value of attribute default.
25 26 27 |
# File 'lib/braintree/apple_pay_card.rb', line 25 def default @default end |
permalink #durbin_regulated ⇒ Object (readonly)
Returns the value of attribute durbin_regulated.
26 27 28 |
# File 'lib/braintree/apple_pay_card.rb', line 26 def durbin_regulated @durbin_regulated end |
permalink #expiration_month ⇒ Object (readonly)
Returns the value of attribute expiration_month.
27 28 29 |
# File 'lib/braintree/apple_pay_card.rb', line 27 def expiration_month @expiration_month end |
permalink #expiration_year ⇒ Object (readonly)
Returns the value of attribute expiration_year.
28 29 30 |
# File 'lib/braintree/apple_pay_card.rb', line 28 def expiration_year @expiration_year end |
permalink #expired ⇒ Object (readonly)
Returns the value of attribute expired.
29 30 31 |
# File 'lib/braintree/apple_pay_card.rb', line 29 def expired @expired end |
permalink #healthcare ⇒ Object (readonly)
Returns the value of attribute healthcare.
30 31 32 |
# File 'lib/braintree/apple_pay_card.rb', line 30 def healthcare @healthcare end |
permalink #image_url ⇒ Object (readonly)
Returns the value of attribute image_url.
31 32 33 |
# File 'lib/braintree/apple_pay_card.rb', line 31 def image_url @image_url end |
permalink #issuing_bank ⇒ Object (readonly)
Returns the value of attribute issuing_bank.
32 33 34 |
# File 'lib/braintree/apple_pay_card.rb', line 32 def issuing_bank @issuing_bank end |
permalink #last_4 ⇒ Object (readonly)
Returns the value of attribute last_4.
33 34 35 |
# File 'lib/braintree/apple_pay_card.rb', line 33 def last_4 @last_4 end |
permalink #merchant_token_identifier ⇒ Object (readonly)
Returns the value of attribute merchant_token_identifier.
34 35 36 |
# File 'lib/braintree/apple_pay_card.rb', line 34 def merchant_token_identifier @merchant_token_identifier end |
permalink #payment_instrument_name ⇒ Object (readonly)
Returns the value of attribute payment_instrument_name.
35 36 37 |
# File 'lib/braintree/apple_pay_card.rb', line 35 def payment_instrument_name @payment_instrument_name end |
permalink #payroll ⇒ Object (readonly)
Returns the value of attribute payroll.
36 37 38 |
# File 'lib/braintree/apple_pay_card.rb', line 36 def payroll @payroll end |
permalink #prepaid ⇒ Object (readonly)
Returns the value of attribute prepaid.
37 38 39 |
# File 'lib/braintree/apple_pay_card.rb', line 37 def prepaid @prepaid end |
permalink #prepaid_reloadable ⇒ Object (readonly)
Returns the value of attribute prepaid_reloadable.
38 39 40 |
# File 'lib/braintree/apple_pay_card.rb', line 38 def prepaid_reloadable @prepaid_reloadable end |
permalink #product_id ⇒ Object (readonly)
Returns the value of attribute product_id.
39 40 41 |
# File 'lib/braintree/apple_pay_card.rb', line 39 def product_id @product_id end |
permalink #purchase ⇒ Object (readonly)
Returns the value of attribute purchase.
40 41 42 |
# File 'lib/braintree/apple_pay_card.rb', line 40 def purchase @purchase end |
permalink #source_card_last4 ⇒ Object (readonly)
Returns the value of attribute source_card_last4.
41 42 43 |
# File 'lib/braintree/apple_pay_card.rb', line 41 def source_card_last4 @source_card_last4 end |
permalink #source_description ⇒ Object (readonly)
Returns the value of attribute source_description.
42 43 44 |
# File 'lib/braintree/apple_pay_card.rb', line 42 def source_description @source_description end |
permalink #subscriptions ⇒ Object (readonly)
Returns the value of attribute subscriptions.
43 44 45 |
# File 'lib/braintree/apple_pay_card.rb', line 43 def subscriptions @subscriptions end |
permalink #token ⇒ Object (readonly)
Returns the value of attribute token.
44 45 46 |
# File 'lib/braintree/apple_pay_card.rb', line 44 def token @token end |
permalink #updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
45 46 47 |
# File 'lib/braintree/apple_pay_card.rb', line 45 def updated_at @updated_at end |
Class Method Details
permalink ._new(*args) ⇒ Object
[View source]
66 67 68 |
# File 'lib/braintree/apple_pay_card.rb', line 66 def self._new(*args) self.new(*args) end |
Instance Method Details
permalink #default? ⇒ Boolean
54 55 56 |
# File 'lib/braintree/apple_pay_card.rb', line 54 def default? @default end |
permalink #expired? ⇒ Boolean
58 59 60 |
# File 'lib/braintree/apple_pay_card.rb', line 58 def expired? @expired end |