class Ingenico::Connect::SDK::Domain::Payment::RefundMethodSpecificOutput
@attr [Integer] refund_product_id
@attr [Integer] total_amount_paid
@attr [Integer] total_amount_refunded
Attributes
refund_product_id[RW]
total_amount_paid[RW]
total_amount_refunded[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Connect::SDK::DataObject#from_hash
# File lib/ingenico/connect/sdk/domain/payment/refund_method_specific_output.rb, line 31 def from_hash(hash) super if hash.has_key? 'refundProductId' @refund_product_id = hash['refundProductId'] end if hash.has_key? 'totalAmountPaid' @total_amount_paid = hash['totalAmountPaid'] end if hash.has_key? 'totalAmountRefunded' @total_amount_refunded = hash['totalAmountRefunded'] 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/refund_method_specific_output.rb, line 23 def to_h hash = super hash['refundProductId'] = @refund_product_id unless @refund_product_id.nil? hash['totalAmountPaid'] = @total_amount_paid unless @total_amount_paid.nil? hash['totalAmountRefunded'] = @total_amount_refunded unless @total_amount_refunded.nil? hash end