Class: Worldline::Connect::SDK::V1::Domain::SdkDataInput
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::SdkDataInput
- Defined in:
- lib/worldline/connect/sdk/v1/domain/sdk_data_input.rb
Instance Attribute Summary collapse
-
#device_render_options ⇒ Worldline::Connect::SDK::V1::Domain::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 Domain::DataObject
Instance Attribute Details
#device_render_options ⇒ Worldline::Connect::SDK::V1::Domain::DeviceRenderOptions
Returns the current value of device_render_options.
20 21 22 |
# File 'lib/worldline/connect/sdk/v1/domain/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/worldline/connect/sdk/v1/domain/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/worldline/connect/sdk/v1/domain/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/worldline/connect/sdk/v1/domain/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/worldline/connect/sdk/v1/domain/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/worldline/connect/sdk/v1/domain/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/worldline/connect/sdk/v1/domain/sdk_data_input.rb', line 20 def sdk_transaction_id @sdk_transaction_id end |
Instance Method Details
#from_hash(hash) ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/worldline/connect/sdk/v1/domain/sdk_data_input.rb', line 49 def from_hash(hash) super if hash.has_key? 'deviceRenderOptions' raise TypeError, "value '%s' is not a Hash" % [hash['deviceRenderOptions']] unless hash['deviceRenderOptions'].is_a? Hash @device_render_options = Worldline::Connect::SDK::V1::Domain::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
37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/worldline/connect/sdk/v1/domain/sdk_data_input.rb', line 37 def to_h hash = super 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 |