Class: OnlinePayments::SDK::Domain::ThreeDsInputData

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#acquirer_idString?

Returns the current value of acquirer_id.

Returns:

  • (String, nil)

    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_midString?

Returns the current value of acquirer_mid.

Returns:

  • (String, nil)

    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_idString?

Returns the current value of requestor_id.

Returns:

  • (String, nil)

    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_hHash

Returns:

  • (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