Class: OnlinePayments::SDK::Domain::RefundRedirectPaymentMethodSpecificInput

Inherits:
DataObject
  • Object
show all
Defined in:
lib/onlinepayments/sdk/domain/refund_redirect_payment_method_specific_input.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#refund_redirect_payment_product900_specific_inputOnlinePayments::SDK::Domain::RefundRedirectPaymentProduct900SpecificInput

Returns the current value of refund_redirect_payment_product900_specific_input.

Returns:



11
12
13
# File 'lib/onlinepayments/sdk/domain/refund_redirect_payment_method_specific_input.rb', line 11

def refund_redirect_payment_product900_specific_input
  @refund_redirect_payment_product900_specific_input
end

Instance Method Details

#from_hash(hash) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/onlinepayments/sdk/domain/refund_redirect_payment_method_specific_input.rb', line 22

def from_hash(hash)
  super
  if hash.has_key? 'refundRedirectPaymentProduct900SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['refundRedirectPaymentProduct900SpecificInput']] unless hash['refundRedirectPaymentProduct900SpecificInput'].is_a? Hash
    @refund_redirect_payment_product900_specific_input = OnlinePayments::SDK::Domain::RefundRedirectPaymentProduct900SpecificInput.new_from_hash(hash['refundRedirectPaymentProduct900SpecificInput'])
  end
end

#to_hHash

Returns:

  • (Hash)


16
17
18
19
20
# File 'lib/onlinepayments/sdk/domain/refund_redirect_payment_method_specific_input.rb', line 16

def to_h
  hash = super
  hash['refundRedirectPaymentProduct900SpecificInput'] = @refund_redirect_payment_product900_specific_input.to_h unless @refund_redirect_payment_product900_specific_input.nil?
  hash
end