Class: CheckoutSdk::RequestToken

Inherits:
Object
  • Object
show all
Defined in:
lib/checkout_sdk/data/request_token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#billing_address_line1Object

Returns the value of attribute billing_address_line1.



2
3
4
# File 'lib/checkout_sdk/data/request_token.rb', line 2

def billing_address_line1
  @billing_address_line1
end

#billing_address_line2Object

Returns the value of attribute billing_address_line2.



2
3
4
# File 'lib/checkout_sdk/data/request_token.rb', line 2

def billing_address_line2
  @billing_address_line2
end

#billing_cityObject

Returns the value of attribute billing_city.



2
3
4
# File 'lib/checkout_sdk/data/request_token.rb', line 2

def billing_city
  @billing_city
end

#billing_countryObject

Returns the value of attribute billing_country.



2
3
4
# File 'lib/checkout_sdk/data/request_token.rb', line 2

def billing_country
  @billing_country
end

#billing_stateObject

Returns the value of attribute billing_state.



2
3
4
# File 'lib/checkout_sdk/data/request_token.rb', line 2

def billing_state
  @billing_state
end

#billing_zipObject

Returns the value of attribute billing_zip.



2
3
4
# File 'lib/checkout_sdk/data/request_token.rb', line 2

def billing_zip
  @billing_zip
end

#card_cvvObject

Returns the value of attribute card_cvv.



2
3
4
# File 'lib/checkout_sdk/data/request_token.rb', line 2

def card_cvv
  @card_cvv
end

#card_expiry_monthObject

Returns the value of attribute card_expiry_month.



2
3
4
# File 'lib/checkout_sdk/data/request_token.rb', line 2

def card_expiry_month
  @card_expiry_month
end

#card_expiry_yearObject

Returns the value of attribute card_expiry_year.



2
3
4
# File 'lib/checkout_sdk/data/request_token.rb', line 2

def card_expiry_year
  @card_expiry_year
end

#card_nameObject

Returns the value of attribute card_name.



2
3
4
# File 'lib/checkout_sdk/data/request_token.rb', line 2

def card_name
  @card_name
end

#card_numberObject

Returns the value of attribute card_number.



2
3
4
# File 'lib/checkout_sdk/data/request_token.rb', line 2

def card_number
  @card_number
end

#phone_country_codeObject

Returns the value of attribute phone_country_code.



2
3
4
# File 'lib/checkout_sdk/data/request_token.rb', line 2

def phone_country_code
  @phone_country_code
end

#phone_numberObject

Returns the value of attribute phone_number.



2
3
4
# File 'lib/checkout_sdk/data/request_token.rb', line 2

def phone_number
  @phone_number
end

#token_data_dataObject

Returns the value of attribute token_data_data.



2
3
4
# File 'lib/checkout_sdk/data/request_token.rb', line 2

def token_data_data
  @token_data_data
end

#token_data_headerObject

Returns the value of attribute token_data_header.



2
3
4
# File 'lib/checkout_sdk/data/request_token.rb', line 2

def token_data_header
  @token_data_header
end

#token_data_protocolVersionObject

Returns the value of attribute token_data_protocolVersion.



2
3
4
# File 'lib/checkout_sdk/data/request_token.rb', line 2

def token_data_protocolVersion
  @token_data_protocolVersion
end

#token_data_signatureObject

Returns the value of attribute token_data_signature.



2
3
4
# File 'lib/checkout_sdk/data/request_token.rb', line 2

def token_data_signature
  @token_data_signature
end

#token_data_signedMessageObject

Returns the value of attribute token_data_signedMessage.



2
3
4
# File 'lib/checkout_sdk/data/request_token.rb', line 2

def token_data_signedMessage
  @token_data_signedMessage
end

#token_data_versionObject

Returns the value of attribute token_data_version.



2
3
4
# File 'lib/checkout_sdk/data/request_token.rb', line 2

def token_data_version
  @token_data_version
end

#typeObject

Returns the value of attribute type.



2
3
4
# File 'lib/checkout_sdk/data/request_token.rb', line 2

def type
  @type
end

Instance Method Details

#dataObject



8
9
10
11
12
13
14
15
16
17
# File 'lib/checkout_sdk/data/request_token.rb', line 8

def data
  if type == "card"
    card_type
  else
    {
      type: type,
      token_data: token_data(type)
    }
  end
end