Class: CheckoutSdk::Previous::Payments::CardDestination

Inherits:
Destination
  • Object
show all
Defined in:
lib/checkout_sdk/payments/previous/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.



32
33
34
# File 'lib/checkout_sdk/payments/previous/destination/card_destination.rb', line 32

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

Instance Attribute Details

#billing_addressCheckoutSdk::Common::Address



22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/checkout_sdk/payments/previous/destination/card_destination.rb', line 22

class CardDestination < Destination
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :first_name,
                :last_name,
                :name,
                :billing_address,
                :phone

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

#expiry_monthInteger

Returns:

  • (Integer)


22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/checkout_sdk/payments/previous/destination/card_destination.rb', line 22

class CardDestination < Destination
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :first_name,
                :last_name,
                :name,
                :billing_address,
                :phone

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

#expiry_yearInteger

Returns:

  • (Integer)


22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/checkout_sdk/payments/previous/destination/card_destination.rb', line 22

class CardDestination < Destination
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :first_name,
                :last_name,
                :name,
                :billing_address,
                :phone

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

#first_nameString

Returns:

  • (String)


22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/checkout_sdk/payments/previous/destination/card_destination.rb', line 22

class CardDestination < Destination
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :first_name,
                :last_name,
                :name,
                :billing_address,
                :phone

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

#last_nameString

Returns:

  • (String)


22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/checkout_sdk/payments/previous/destination/card_destination.rb', line 22

class CardDestination < Destination
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :first_name,
                :last_name,
                :name,
                :billing_address,
                :phone

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

#nameString

Returns:

  • (String)


22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/checkout_sdk/payments/previous/destination/card_destination.rb', line 22

class CardDestination < Destination
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :first_name,
                :last_name,
                :name,
                :billing_address,
                :phone

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

#numberString

Returns:

  • (String)


22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/checkout_sdk/payments/previous/destination/card_destination.rb', line 22

class CardDestination < Destination
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :first_name,
                :last_name,
                :name,
                :billing_address,
                :phone

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

#phoneCheckoutSdk::Common::Phone



22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/checkout_sdk/payments/previous/destination/card_destination.rb', line 22

class CardDestination < Destination
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :first_name,
                :last_name,
                :name,
                :billing_address,
                :phone

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