Class: Worldline::Connect::SDK::V1::Domain::ThirdPartyData

Inherits:
Domain::DataObject show all
Defined in:
lib/worldline/connect/sdk/v1/domain/third_party_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#payment_product863Worldline::Connect::SDK::V1::Domain::PaymentProduct863ThirdPartyData

Returns the current value of payment_product863.

Returns:



14
15
16
# File 'lib/worldline/connect/sdk/v1/domain/third_party_data.rb', line 14

def payment_product863
  @payment_product863
end

Instance Method Details

#from_hash(hash) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/worldline/connect/sdk/v1/domain/third_party_data.rb', line 25

def from_hash(hash)
  super
  if hash.has_key? 'paymentProduct863'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct863']] unless hash['paymentProduct863'].is_a? Hash
    @payment_product863 = Worldline::Connect::SDK::V1::Domain::PaymentProduct863ThirdPartyData.new_from_hash(hash['paymentProduct863'])
  end
end

#to_hHash

Returns:

  • (Hash)


19
20
21
22
23
# File 'lib/worldline/connect/sdk/v1/domain/third_party_data.rb', line 19

def to_h
  hash = super
  hash['paymentProduct863'] = @payment_product863.to_h unless @payment_product863.nil?
  hash
end