Class: CheckoutSdk::RequestToken
- Inherits:
-
Object
- Object
- CheckoutSdk::RequestToken
- Defined in:
- lib/checkout_sdk/data/request_token.rb
Instance Attribute Summary collapse
-
#billing_address_line1 ⇒ Object
Returns the value of attribute billing_address_line1.
-
#billing_address_line2 ⇒ Object
Returns the value of attribute billing_address_line2.
-
#billing_city ⇒ Object
Returns the value of attribute billing_city.
-
#billing_country ⇒ Object
Returns the value of attribute billing_country.
-
#billing_state ⇒ Object
Returns the value of attribute billing_state.
-
#billing_zip ⇒ Object
Returns the value of attribute billing_zip.
-
#card_cvv ⇒ Object
Returns the value of attribute card_cvv.
-
#card_expiry_month ⇒ Object
Returns the value of attribute card_expiry_month.
-
#card_expiry_year ⇒ Object
Returns the value of attribute card_expiry_year.
-
#card_name ⇒ Object
Returns the value of attribute card_name.
-
#card_number ⇒ Object
Returns the value of attribute card_number.
-
#phone_country_code ⇒ Object
Returns the value of attribute phone_country_code.
-
#phone_number ⇒ Object
Returns the value of attribute phone_number.
-
#token_data_data ⇒ Object
Returns the value of attribute token_data_data.
-
#token_data_header ⇒ Object
Returns the value of attribute token_data_header.
-
#token_data_protocolVersion ⇒ Object
Returns the value of attribute token_data_protocolVersion.
-
#token_data_signature ⇒ Object
Returns the value of attribute token_data_signature.
-
#token_data_signedMessage ⇒ Object
Returns the value of attribute token_data_signedMessage.
-
#token_data_version ⇒ Object
Returns the value of attribute token_data_version.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#billing_address_line1 ⇒ Object
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_line2 ⇒ Object
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_city ⇒ Object
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_country ⇒ Object
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_state ⇒ Object
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_zip ⇒ Object
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_cvv ⇒ Object
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_month ⇒ Object
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_year ⇒ Object
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_name ⇒ Object
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_number ⇒ Object
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_code ⇒ Object
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_number ⇒ Object
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_data ⇒ Object
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_header ⇒ Object
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_protocolVersion ⇒ Object
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_signature ⇒ Object
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_signedMessage ⇒ Object
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_version ⇒ Object
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 |
#type ⇒ Object
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
#data ⇒ Object
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 |