Class: Ingenico::Connect::SDK::Domain::Payment::SdkDataInput
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Payment::SdkDataInput
- Defined in:
- lib/ingenico/connect/sdk/domain/payment/sdk_data_input.rb
Instance Attribute Summary collapse
-
#device_info ⇒ Object
deprecated
Deprecated.
No replacement
-
#device_render_options ⇒ Ingenico::Connect::SDK::Domain::Payment::DeviceRenderOptions
The current value of device_render_options.
-
#sdk_app_id ⇒ String
The current value of sdk_app_id.
-
#sdk_encrypted_data ⇒ String
The current value of sdk_encrypted_data.
-
#sdk_ephemeral_public_key ⇒ String
The current value of sdk_ephemeral_public_key.
-
#sdk_max_timeout ⇒ String
The current value of sdk_max_timeout.
-
#sdk_reference_number ⇒ String
The current value of sdk_reference_number.
-
#sdk_transaction_id ⇒ String
The current value of sdk_transaction_id.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#device_info ⇒ Object
Deprecated.
No replacement
20 21 22 |
# File 'lib/ingenico/connect/sdk/domain/payment/sdk_data_input.rb', line 20 def device_info @device_info end |
#device_render_options ⇒ Ingenico::Connect::SDK::Domain::Payment::DeviceRenderOptions
Returns the current value of device_render_options.
20 21 22 |
# File 'lib/ingenico/connect/sdk/domain/payment/sdk_data_input.rb', line 20 def @device_render_options end |
#sdk_app_id ⇒ String
Returns the current value of sdk_app_id.
20 21 22 |
# File 'lib/ingenico/connect/sdk/domain/payment/sdk_data_input.rb', line 20 def sdk_app_id @sdk_app_id end |
#sdk_encrypted_data ⇒ String
Returns the current value of sdk_encrypted_data.
20 21 22 |
# File 'lib/ingenico/connect/sdk/domain/payment/sdk_data_input.rb', line 20 def sdk_encrypted_data @sdk_encrypted_data end |
#sdk_ephemeral_public_key ⇒ String
Returns the current value of sdk_ephemeral_public_key.
20 21 22 |
# File 'lib/ingenico/connect/sdk/domain/payment/sdk_data_input.rb', line 20 def sdk_ephemeral_public_key @sdk_ephemeral_public_key end |
#sdk_max_timeout ⇒ String
Returns the current value of sdk_max_timeout.
20 21 22 |
# File 'lib/ingenico/connect/sdk/domain/payment/sdk_data_input.rb', line 20 def sdk_max_timeout @sdk_max_timeout end |
#sdk_reference_number ⇒ String
Returns the current value of sdk_reference_number.
20 21 22 |
# File 'lib/ingenico/connect/sdk/domain/payment/sdk_data_input.rb', line 20 def sdk_reference_number @sdk_reference_number end |
#sdk_transaction_id ⇒ String
Returns the current value of sdk_transaction_id.
20 21 22 |
# File 'lib/ingenico/connect/sdk/domain/payment/sdk_data_input.rb', line 20 def sdk_transaction_id @sdk_transaction_id end |
Instance Method Details
#from_hash(hash) ⇒ Object
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/ingenico/connect/sdk/domain/payment/sdk_data_input.rb', line 54 def from_hash(hash) super if hash.has_key? 'deviceInfo' @device_info = hash['deviceInfo'] end if hash.has_key? 'deviceRenderOptions' raise TypeError, "value '%s' is not a Hash" % [hash['deviceRenderOptions']] unless hash['deviceRenderOptions'].is_a? Hash @device_render_options = Ingenico::Connect::SDK::Domain::Payment::DeviceRenderOptions.new_from_hash(hash['deviceRenderOptions']) end if hash.has_key? 'sdkAppId' @sdk_app_id = hash['sdkAppId'] end if hash.has_key? 'sdkEncryptedData' @sdk_encrypted_data = hash['sdkEncryptedData'] end if hash.has_key? 'sdkEphemeralPublicKey' @sdk_ephemeral_public_key = hash['sdkEphemeralPublicKey'] end if hash.has_key? 'sdkMaxTimeout' @sdk_max_timeout = hash['sdkMaxTimeout'] end if hash.has_key? 'sdkReferenceNumber' @sdk_reference_number = hash['sdkReferenceNumber'] end if hash.has_key? 'sdkTransactionId' @sdk_transaction_id = hash['sdkTransactionId'] end end |
#to_h ⇒ Hash
41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/ingenico/connect/sdk/domain/payment/sdk_data_input.rb', line 41 def to_h hash = super hash['deviceInfo'] = @device_info unless @device_info.nil? hash['deviceRenderOptions'] = @device_render_options.to_h unless @device_render_options.nil? hash['sdkAppId'] = @sdk_app_id unless @sdk_app_id.nil? hash['sdkEncryptedData'] = @sdk_encrypted_data unless @sdk_encrypted_data.nil? hash['sdkEphemeralPublicKey'] = @sdk_ephemeral_public_key unless @sdk_ephemeral_public_key.nil? hash['sdkMaxTimeout'] = @sdk_max_timeout unless @sdk_max_timeout.nil? hash['sdkReferenceNumber'] = @sdk_reference_number unless @sdk_reference_number.nil? hash['sdkTransactionId'] = @sdk_transaction_id unless @sdk_transaction_id.nil? hash end |