class Ingenico::Direct::SDK::Domain::RefundPaymentProduct840SpecificOutput
@attr [Ingenico::Direct::SDK::Domain::RefundPaymentProduct840CustomerAccount] customer_account
Attributes
customer_account[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Direct::SDK::DataObject#from_hash
# File lib/ingenico/direct/sdk/domain/refund_payment_product840_specific_output.rb, line 22 def from_hash(hash) super if hash.key? 'customerAccount' raise TypeError, "value '%s' is not a Hash" % [hash['customerAccount']] unless hash['customerAccount'].is_a? Hash @customer_account = Ingenico::Direct::SDK::Domain::RefundPaymentProduct840CustomerAccount.new_from_hash(hash['customerAccount']) end end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Direct::SDK::DataObject#to_h
# File lib/ingenico/direct/sdk/domain/refund_payment_product840_specific_output.rb, line 16 def to_h hash = super hash['customerAccount'] = @customer_account.to_h if @customer_account hash end