Class: OnlinePayments::SDK::Domain::RedirectPaymentProduct11SpecificInput
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::RedirectPaymentProduct11SpecificInput
- Defined in:
- lib/onlinepayments/sdk/domain/redirect_payment_product11_specific_input.rb
Instance Attribute Summary collapse
-
#first_installment_payment_date ⇒ Date
The current value of first_installment_payment_date.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#first_installment_payment_date ⇒ Date
Returns the current value of first_installment_payment_date.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product11_specific_input.rb', line 12 def first_installment_payment_date @first_installment_payment_date end |
Instance Method Details
#from_hash(hash) ⇒ Object
23 24 25 26 27 28 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product11_specific_input.rb', line 23 def from_hash(hash) super if hash.has_key? 'firstInstallmentPaymentDate' @first_installment_payment_date = Date.parse(hash['firstInstallmentPaymentDate']) end end |
#to_h ⇒ Hash
17 18 19 20 21 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product11_specific_input.rb', line 17 def to_h hash = super hash['firstInstallmentPaymentDate'] = @first_installment_payment_date.iso8601 unless @first_installment_payment_date.nil? hash end |