Class: OnlinePayments::SDK::Domain::PaymentProductSessionRequest
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::PaymentProductSessionRequest
- Defined in:
- lib/onlinepayments/sdk/domain/payment_product_session_request.rb
Instance Attribute Summary collapse
-
#payment_product_session302_specific_input ⇒ OnlinePayments::SDK::Domain::PaymentProductSession302SpecificInput
The current value of payment_product_session302_specific_input.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#payment_product_session302_specific_input ⇒ OnlinePayments::SDK::Domain::PaymentProductSession302SpecificInput
Returns the current value of payment_product_session302_specific_input.
11 12 13 |
# File 'lib/onlinepayments/sdk/domain/payment_product_session_request.rb', line 11 def payment_product_session302_specific_input @payment_product_session302_specific_input end |
Instance Method Details
#from_hash(hash) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/onlinepayments/sdk/domain/payment_product_session_request.rb', line 22 def from_hash(hash) super if hash.has_key? 'paymentProductSession302SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProductSession302SpecificInput']] unless hash['paymentProductSession302SpecificInput'].is_a? Hash @payment_product_session302_specific_input = OnlinePayments::SDK::Domain::PaymentProductSession302SpecificInput.new_from_hash(hash['paymentProductSession302SpecificInput']) end end |
#to_h ⇒ Hash
16 17 18 19 20 |
# File 'lib/onlinepayments/sdk/domain/payment_product_session_request.rb', line 16 def to_h hash = super hash['paymentProductSession302SpecificInput'] = @payment_product_session302_specific_input.to_h unless @payment_product_session302_specific_input.nil? hash end |