Class: CheckoutSdk::NetworkTokens::NetworkTokenSourceCard

Inherits:
Object
  • Object
show all
Defined in:
lib/checkout_sdk/network_tokens/network_token_source_card.rb

Overview

Card-based source for provisioning a network token. Set ‘type = “card”`.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNetworkTokenSourceCard

Returns a new instance of NetworkTokenSourceCard.



20
21
22
# File 'lib/checkout_sdk/network_tokens/network_token_source_card.rb', line 20

def initialize
  @type = 'card'
end

Instance Attribute Details

#cvvString

Returns:

  • (String)


17
18
19
20
21
22
23
# File 'lib/checkout_sdk/network_tokens/network_token_source_card.rb', line 17

class NetworkTokenSourceCard
  attr_accessor :type, :number, :cvv, :expiry_month, :expiry_year

  def initialize
    @type = 'card'
  end
end

#expiry_monthString

Returns 1- or 2-digit month.

Returns:

  • (String)

    1- or 2-digit month.



17
18
19
20
21
22
23
# File 'lib/checkout_sdk/network_tokens/network_token_source_card.rb', line 17

class NetworkTokenSourceCard
  attr_accessor :type, :number, :cvv, :expiry_month, :expiry_year

  def initialize
    @type = 'card'
  end
end

#expiry_yearString

Returns Four-digit year.

Returns:

  • (String)

    Four-digit year.



17
18
19
20
21
22
23
# File 'lib/checkout_sdk/network_tokens/network_token_source_card.rb', line 17

class NetworkTokenSourceCard
  attr_accessor :type, :number, :cvv, :expiry_month, :expiry_year

  def initialize
    @type = 'card'
  end
end

#numberString

Returns The card number.

Returns:

  • (String)

    The card number.



17
18
19
20
21
22
23
# File 'lib/checkout_sdk/network_tokens/network_token_source_card.rb', line 17

class NetworkTokenSourceCard
  attr_accessor :type, :number, :cvv, :expiry_month, :expiry_year

  def initialize
    @type = 'card'
  end
end

#typeString

Returns Always “card”.

Returns:

  • (String)

    Always “card”.



17
18
19
20
21
22
23
# File 'lib/checkout_sdk/network_tokens/network_token_source_card.rb', line 17

class NetworkTokenSourceCard
  attr_accessor :type, :number, :cvv, :expiry_month, :expiry_year

  def initialize
    @type = 'card'
  end
end