Class: Worldline::Connect::SDK::V1::Domain::RefundEWalletMethodSpecificOutput

Inherits:
RefundMethodSpecificOutput show all
Defined in:
lib/worldline/connect/sdk/v1/domain/refund_e_wallet_method_specific_output.rb

Instance Attribute Summary collapse

Attributes inherited from RefundMethodSpecificOutput

#refund_product_id, #total_amount_paid, #total_amount_refunded

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#payment_product840_specific_outputWorldline::Connect::SDK::V1::Domain::RefundPaymentProduct840SpecificOutput

Returns the current value of payment_product840_specific_output.

Returns:



14
15
16
# File 'lib/worldline/connect/sdk/v1/domain/refund_e_wallet_method_specific_output.rb', line 14

def payment_product840_specific_output
  @payment_product840_specific_output
end

Instance Method Details

#from_hash(hash) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/worldline/connect/sdk/v1/domain/refund_e_wallet_method_specific_output.rb', line 25

def from_hash(hash)
  super
  if hash.has_key? 'paymentProduct840SpecificOutput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct840SpecificOutput']] unless hash['paymentProduct840SpecificOutput'].is_a? Hash
    @payment_product840_specific_output = Worldline::Connect::SDK::V1::Domain::RefundPaymentProduct840SpecificOutput.new_from_hash(hash['paymentProduct840SpecificOutput'])
  end
end

#to_hHash

Returns:

  • (Hash)


19
20
21
22
23
# File 'lib/worldline/connect/sdk/v1/domain/refund_e_wallet_method_specific_output.rb', line 19

def to_h
  hash = super
  hash['paymentProduct840SpecificOutput'] = @payment_product840_specific_output.to_h unless @payment_product840_specific_output.nil?
  hash
end