Class: OnlinePayments::SDK::Domain::DpaTransactionOptions

Inherits:
DataObject
  • Object
show all
Defined in:
lib/onlinepayments/sdk/domain/dpa_transaction_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#three_ds_input_dataOnlinePayments::SDK::Domain::ThreeDsInputData?

Returns the current value of three_ds_input_data.

Returns:



11
12
13
# File 'lib/onlinepayments/sdk/domain/dpa_transaction_options.rb', line 11

def three_ds_input_data
  @three_ds_input_data
end

Instance Method Details

#from_hash(hash) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/onlinepayments/sdk/domain/dpa_transaction_options.rb', line 22

def from_hash(hash)
  super
  if hash.has_key? 'threeDsInputData'
    raise TypeError, "value '%s' is not a Hash" % [hash['threeDsInputData']] unless hash['threeDsInputData'].is_a? Hash
    @three_ds_input_data = OnlinePayments::SDK::Domain::ThreeDsInputData.new_from_hash(hash['threeDsInputData'])
  end
end

#to_hHash

Returns:

  • (Hash)


16
17
18
19
20
# File 'lib/onlinepayments/sdk/domain/dpa_transaction_options.rb', line 16

def to_h
  hash = super
  hash['threeDsInputData'] = @three_ds_input_data.to_h unless @three_ds_input_data.nil?
  hash
end