Class: OnlinePayments::SDK::Domain::ThreeDsInputData
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::ThreeDsInputData
- Defined in:
- lib/onlinepayments/sdk/domain/three_ds_input_data.rb
Instance Attribute Summary collapse
-
#acquirer_id ⇒ String?
The current value of acquirer_id.
-
#acquirer_mid ⇒ String?
The current value of acquirer_mid.
-
#requestor_id ⇒ String?
The current value of requestor_id.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#acquirer_id ⇒ String?
Returns the current value of acquirer_id.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/three_ds_input_data.rb', line 12 def acquirer_id @acquirer_id end |
#acquirer_mid ⇒ String?
Returns the current value of acquirer_mid.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/three_ds_input_data.rb', line 12 def acquirer_mid @acquirer_mid end |
#requestor_id ⇒ String?
Returns the current value of requestor_id.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/three_ds_input_data.rb', line 12 def requestor_id @requestor_id end |
Instance Method Details
#from_hash(hash) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/onlinepayments/sdk/domain/three_ds_input_data.rb', line 29 def from_hash(hash) super if hash.has_key? 'acquirerId' @acquirer_id = hash['acquirerId'] end if hash.has_key? 'acquirerMid' @acquirer_mid = hash['acquirerMid'] end if hash.has_key? 'requestorId' @requestor_id = hash['requestorId'] end end |
#to_h ⇒ Hash
21 22 23 24 25 26 27 |
# File 'lib/onlinepayments/sdk/domain/three_ds_input_data.rb', line 21 def to_h hash = super hash['acquirerId'] = @acquirer_id unless @acquirer_id.nil? hash['acquirerMid'] = @acquirer_mid unless @acquirer_mid.nil? hash['requestorId'] = @requestor_id unless @requestor_id.nil? hash end |