Class: OnlinePayments::SDK::Domain::PaymentProduct5500SpecificOutput
- Inherits:
-
OnlinePayments::SDK::DataObject
- Object
- OnlinePayments::SDK::DataObject
- OnlinePayments::SDK::Domain::PaymentProduct5500SpecificOutput
- Defined in:
- lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb
Instance Attribute Summary collapse
-
#payment_end_date ⇒ String
The current value of payment_end_date.
-
#payment_reference ⇒ String
The current value of payment_reference.
-
#payment_start_date ⇒ String
The current value of payment_start_date.
Instance Method Summary collapse
Methods inherited from OnlinePayments::SDK::DataObject
Instance Attribute Details
#payment_end_date ⇒ String
Returns the current value of payment_end_date.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb', line 12 def payment_end_date @payment_end_date end |
#payment_reference ⇒ String
Returns the current value of payment_reference.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb', line 12 def payment_reference @payment_reference end |
#payment_start_date ⇒ String
Returns the current value of payment_start_date.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb', line 12 def payment_start_date @payment_start_date end |
Instance Method Details
#from_hash(hash) ⇒ Object
26 27 28 29 30 31 |
# File 'lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb', line 26 def from_hash(hash) super @payment_end_date = hash['paymentEndDate'] if hash.key? 'paymentEndDate' @payment_reference = hash['paymentReference'] if hash.key? 'paymentReference' @payment_start_date = hash['paymentStartDate'] if hash.key? 'paymentStartDate' end |
#to_h ⇒ Hash
18 19 20 21 22 23 24 |
# File 'lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb', line 18 def to_h hash = super hash['paymentEndDate'] = @payment_end_date unless @payment_end_date.nil? hash['paymentReference'] = @payment_reference unless @payment_reference.nil? hash['paymentStartDate'] = @payment_start_date unless @payment_start_date.nil? hash end |