Class: CheckoutSdk::Instruments::UpdateInstrumentCard

Inherits:
UpdateInstrument show all
Defined in:
lib/checkout_sdk/instruments/update/update_instrument_card.rb

Instance Attribute Summary collapse

Attributes inherited from UpdateInstrument

#type

Instance Method Summary collapse

Constructor Details

#initializeUpdateInstrumentCard

Returns a new instance of UpdateInstrumentCard.



22
23
24
# File 'lib/checkout_sdk/instruments/update/update_instrument_card.rb', line 22

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

Instance Attribute Details

#account_holderCheckoutSdk::Common::AccountHolder



15
16
17
18
19
20
21
22
23
24
25
# File 'lib/checkout_sdk/instruments/update/update_instrument_card.rb', line 15

class UpdateInstrumentCard < UpdateInstrument
  attr_accessor :expiry_month,
                :expiry_year,
                :name,
                :account_holder,
                :customer

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

#customerCheckoutSdk::Common::UpdateCustomerRequest



15
16
17
18
19
20
21
22
23
24
25
# File 'lib/checkout_sdk/instruments/update/update_instrument_card.rb', line 15

class UpdateInstrumentCard < UpdateInstrument
  attr_accessor :expiry_month,
                :expiry_year,
                :name,
                :account_holder,
                :customer

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

#expiry_monthInteger

Returns:

  • (Integer)


15
16
17
18
19
20
21
22
23
24
25
# File 'lib/checkout_sdk/instruments/update/update_instrument_card.rb', line 15

class UpdateInstrumentCard < UpdateInstrument
  attr_accessor :expiry_month,
                :expiry_year,
                :name,
                :account_holder,
                :customer

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

#expiry_yearInteger

Returns:

  • (Integer)


15
16
17
18
19
20
21
22
23
24
25
# File 'lib/checkout_sdk/instruments/update/update_instrument_card.rb', line 15

class UpdateInstrumentCard < UpdateInstrument
  attr_accessor :expiry_month,
                :expiry_year,
                :name,
                :account_holder,
                :customer

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

#nameString

Returns:

  • (String)


15
16
17
18
19
20
21
22
23
24
25
# File 'lib/checkout_sdk/instruments/update/update_instrument_card.rb', line 15

class UpdateInstrumentCard < UpdateInstrument
  attr_accessor :expiry_month,
                :expiry_year,
                :name,
                :account_holder,
                :customer

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