Class: CheckoutSdk::Previous::Payments::CardSource

Inherits:
PaymentSource
  • Object
show all
Defined in:
lib/checkout_sdk/payments/previous/source/card_source.rb

Instance Attribute Summary collapse

Attributes inherited from PaymentSource

#type

Instance Method Summary collapse

Constructor Details

#initializeCardSource

Returns a new instance of CardSource.



35
36
37
# File 'lib/checkout_sdk/payments/previous/source/card_source.rb', line 35

def initialize
  super CheckoutSdk::Common::PaymentSourceType::CARD
end

Instance Attribute Details

#billing_addressCheckoutSdk::Common::Address



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/checkout_sdk/payments/previous/source/card_source.rb', line 24

class CardSource < PaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :cvv,
                :stored,
                :store_for_future_use,
                :billing_address,
                :phone

  def initialize
    super CheckoutSdk::Common::PaymentSourceType::CARD
  end
end

#cvvString

Returns:

  • (String)


24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/checkout_sdk/payments/previous/source/card_source.rb', line 24

class CardSource < PaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :cvv,
                :stored,
                :store_for_future_use,
                :billing_address,
                :phone

  def initialize
    super CheckoutSdk::Common::PaymentSourceType::CARD
  end
end

#expiry_monthInteger

Returns:

  • (Integer)


24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/checkout_sdk/payments/previous/source/card_source.rb', line 24

class CardSource < PaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :cvv,
                :stored,
                :store_for_future_use,
                :billing_address,
                :phone

  def initialize
    super CheckoutSdk::Common::PaymentSourceType::CARD
  end
end

#expiry_yearInteger

Returns:

  • (Integer)


24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/checkout_sdk/payments/previous/source/card_source.rb', line 24

class CardSource < PaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :cvv,
                :stored,
                :store_for_future_use,
                :billing_address,
                :phone

  def initialize
    super CheckoutSdk::Common::PaymentSourceType::CARD
  end
end

#nameString

Returns:

  • (String)


24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/checkout_sdk/payments/previous/source/card_source.rb', line 24

class CardSource < PaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :cvv,
                :stored,
                :store_for_future_use,
                :billing_address,
                :phone

  def initialize
    super CheckoutSdk::Common::PaymentSourceType::CARD
  end
end

#numberString

Returns:

  • (String)


24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/checkout_sdk/payments/previous/source/card_source.rb', line 24

class CardSource < PaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :cvv,
                :stored,
                :store_for_future_use,
                :billing_address,
                :phone

  def initialize
    super CheckoutSdk::Common::PaymentSourceType::CARD
  end
end

#phoneCheckoutSdk::Common::Phone



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/checkout_sdk/payments/previous/source/card_source.rb', line 24

class CardSource < PaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :cvv,
                :stored,
                :store_for_future_use,
                :billing_address,
                :phone

  def initialize
    super CheckoutSdk::Common::PaymentSourceType::CARD
  end
end

#store_for_future_useTrueClass, FalseClass

Returns:

  • (TrueClass, FalseClass)


24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/checkout_sdk/payments/previous/source/card_source.rb', line 24

class CardSource < PaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :cvv,
                :stored,
                :store_for_future_use,
                :billing_address,
                :phone

  def initialize
    super CheckoutSdk::Common::PaymentSourceType::CARD
  end
end

#storedTrueClass, FalseClass

Returns:

  • (TrueClass, FalseClass)


24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/checkout_sdk/payments/previous/source/card_source.rb', line 24

class CardSource < PaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :cvv,
                :stored,
                :store_for_future_use,
                :billing_address,
                :phone

  def initialize
    super CheckoutSdk::Common::PaymentSourceType::CARD
  end
end