Class: Ingenico::Connect::SDK::Domain::Payment::ThirdPartyData

Inherits:
Ingenico::Connect::SDK::DataObject show all
Defined in:
lib/ingenico/connect/sdk/domain/payment/third_party_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ingenico::Connect::SDK::DataObject

new_from_hash

Instance Attribute Details

#payment_product863Ingenico::Connect::SDK::Domain::Payment::PaymentProduct863ThirdPartyData

Returns the current value of payment_product863.

Returns:



13
14
15
# File 'lib/ingenico/connect/sdk/domain/payment/third_party_data.rb', line 13

def payment_product863
  @payment_product863
end

Instance Method Details

#from_hash(hash) ⇒ Object



24
25
26
27
28
29
30
# File 'lib/ingenico/connect/sdk/domain/payment/third_party_data.rb', line 24

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 = Ingenico::Connect::SDK::Domain::Payment::PaymentProduct863ThirdPartyData.new_from_hash(hash['paymentProduct863'])
  end
end

#to_hHash

Returns:

  • (Hash)


18
19
20
21
22
# File 'lib/ingenico/connect/sdk/domain/payment/third_party_data.rb', line 18

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