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:



14
15
16
# File 'lib/ingenico/connect/sdk/domain/payment/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/ingenico/connect/sdk/domain/payment/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 = Ingenico::Connect::SDK::Domain::Payment::PaymentProduct863ThirdPartyData.new_from_hash(hash['paymentProduct863'])
  end
end

#to_hHash

Returns:

  • (Hash)


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

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