Class: OnlinePayments::SDK::Domain::RefundRedirectPaymentMethodSpecificInput
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::RefundRedirectPaymentMethodSpecificInput
- Defined in:
- lib/onlinepayments/sdk/domain/refund_redirect_payment_method_specific_input.rb
Instance Attribute Summary collapse
-
#refund_redirect_payment_product900_specific_input ⇒ OnlinePayments::SDK::Domain::RefundRedirectPaymentProduct900SpecificInput
The current value of refund_redirect_payment_product900_specific_input.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#refund_redirect_payment_product900_specific_input ⇒ OnlinePayments::SDK::Domain::RefundRedirectPaymentProduct900SpecificInput
Returns the current value of refund_redirect_payment_product900_specific_input.
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_h ⇒ 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 |