Class: OnlinePayments::SDK::Domain::RedirectPaymentProduct5001SpecificInput
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::RedirectPaymentProduct5001SpecificInput
- Defined in:
- lib/onlinepayments/sdk/domain/redirect_payment_product5001_specific_input.rb
Instance Attribute Summary collapse
-
#exemption_request ⇒ String
The current value of exemption_request.
-
#subsequent_type ⇒ String
The current value of subsequent_type.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#exemption_request ⇒ String
Returns the current value of exemption_request.
11 12 13 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product5001_specific_input.rb', line 11 def exemption_request @exemption_request end |
#subsequent_type ⇒ String
Returns the current value of subsequent_type.
11 12 13 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product5001_specific_input.rb', line 11 def subsequent_type @subsequent_type end |
Instance Method Details
#from_hash(hash) ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product5001_specific_input.rb', line 25 def from_hash(hash) super if hash.has_key? 'exemptionRequest' @exemption_request = hash['exemptionRequest'] end if hash.has_key? 'subsequentType' @subsequent_type = hash['subsequentType'] end end |
#to_h ⇒ Hash
18 19 20 21 22 23 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product5001_specific_input.rb', line 18 def to_h hash = super hash['exemptionRequest'] = @exemption_request unless @exemption_request.nil? hash['subsequentType'] = @subsequent_type unless @subsequent_type.nil? hash end |