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