Class: CheckoutSdk::Sessions::CardSource

Inherits:
SessionSource show all
Defined in:
lib/checkout_sdk/sessions/source/card_source.rb

Instance Attribute Summary collapse

Attributes inherited from SessionSource

#billing_address, #email, #home_phone, #mobile_phone, #scheme, #type, #work_phone

Instance Method Summary collapse

Constructor Details

#initialize(stored: false) ⇒ CardSource

Returns a new instance of CardSource.



22
23
24
25
# File 'lib/checkout_sdk/sessions/source/card_source.rb', line 22

def initialize(stored: false)
  super(SessionSourceType::CARD)
  @stored = stored
end

Instance Attribute Details

#expiry_monthInteger

Returns:

  • (Integer)


15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/checkout_sdk/sessions/source/card_source.rb', line 15

class CardSource < SessionSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :stored

  def initialize(stored: false)
    super(SessionSourceType::CARD)
    @stored = stored
  end
end

#expiry_yearInteger

Returns:

  • (Integer)


15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/checkout_sdk/sessions/source/card_source.rb', line 15

class CardSource < SessionSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :stored

  def initialize(stored: false)
    super(SessionSourceType::CARD)
    @stored = stored
  end
end

#nameString

Returns:

  • (String)


15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/checkout_sdk/sessions/source/card_source.rb', line 15

class CardSource < SessionSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :stored

  def initialize(stored: false)
    super(SessionSourceType::CARD)
    @stored = stored
  end
end

#numberString

Returns:

  • (String)


15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/checkout_sdk/sessions/source/card_source.rb', line 15

class CardSource < SessionSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :stored

  def initialize(stored: false)
    super(SessionSourceType::CARD)
    @stored = stored
  end
end

#storedTrueClass, FalseClass

Returns:

  • (TrueClass, FalseClass)


15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/checkout_sdk/sessions/source/card_source.rb', line 15

class CardSource < SessionSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :stored

  def initialize(stored: false)
    super(SessionSourceType::CARD)
    @stored = stored
  end
end