class Ingenico::Connect::SDK::Domain::Payment::ThirdPartyData

@attr [Ingenico::Connect::SDK::Domain::Payment::PaymentProduct863ThirdPartyData] payment_product863

Attributes

payment_product863[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# 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_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Connect::SDK::DataObject#to_h
# 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