Class: CheckoutSdk::Payments::CardDestination

Inherits:
Destination
  • Object
show all
Defined in:
lib/checkout_sdk/payments/destination/card_destination.rb

Instance Attribute Summary collapse

Attributes inherited from Destination

#type

Instance Method Summary collapse

Constructor Details

#initializeCardDestination

Returns a new instance of CardDestination.



19
20
21
# File 'lib/checkout_sdk/payments/destination/card_destination.rb', line 19

def initialize
  super CheckoutSdk::Payments::DestinationType::CARD
end

Instance Attribute Details

#account_holderCheckoutSdk::Common::AccountHolder



13
14
15
16
17
18
19
20
21
22
# File 'lib/checkout_sdk/payments/destination/card_destination.rb', line 13

class CardDestination < Destination
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :account_holder

  def initialize
    super CheckoutSdk::Payments::DestinationType::CARD
  end
end

#expiry_monthInteger

Returns:

  • (Integer)


13
14
15
16
17
18
19
20
21
22
# File 'lib/checkout_sdk/payments/destination/card_destination.rb', line 13

class CardDestination < Destination
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :account_holder

  def initialize
    super CheckoutSdk::Payments::DestinationType::CARD
  end
end

#expiry_yearInteger

Returns:

  • (Integer)


13
14
15
16
17
18
19
20
21
22
# File 'lib/checkout_sdk/payments/destination/card_destination.rb', line 13

class CardDestination < Destination
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :account_holder

  def initialize
    super CheckoutSdk::Payments::DestinationType::CARD
  end
end

#numberString

Returns:

  • (String)


13
14
15
16
17
18
19
20
21
22
# File 'lib/checkout_sdk/payments/destination/card_destination.rb', line 13

class CardDestination < Destination
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :account_holder

  def initialize
    super CheckoutSdk::Payments::DestinationType::CARD
  end
end