Class: OnlinePayments::SDK::Domain::RedirectPaymentProduct5410SpecificInput

Inherits:
DataObject
  • Object
show all
Defined in:
lib/onlinepayments/sdk/domain/redirect_payment_product5410_specific_input.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#second_installment_payment_dateDate

Returns the current value of second_installment_payment_date.

Returns:

  • (Date)

    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_hHash

Returns:

  • (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