Class: Ingenico::Direct::SDK::Domain::PaymentProduct5500SpecificOutput
- Inherits:
-
Ingenico::Direct::SDK::DataObject
- Object
- Ingenico::Direct::SDK::DataObject
- Ingenico::Direct::SDK::Domain::PaymentProduct5500SpecificOutput
- Defined in:
- lib/ingenico/direct/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 Ingenico::Direct::SDK::DataObject
Instance Attribute Details
#payment_end_date ⇒ String
Returns the current value of payment_end_date.
13 14 15 |
# File 'lib/ingenico/direct/sdk/domain/payment_product5500_specific_output.rb', line 13 def payment_end_date @payment_end_date end |
#payment_reference ⇒ String
Returns the current value of payment_reference.
13 14 15 |
# File 'lib/ingenico/direct/sdk/domain/payment_product5500_specific_output.rb', line 13 def payment_reference @payment_reference end |
#payment_start_date ⇒ String
Returns the current value of payment_start_date.
13 14 15 |
# File 'lib/ingenico/direct/sdk/domain/payment_product5500_specific_output.rb', line 13 def payment_start_date @payment_start_date end |
Instance Method Details
#from_hash(hash) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/ingenico/direct/sdk/domain/payment_product5500_specific_output.rb', line 27 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
19 20 21 22 23 24 25 |
# File 'lib/ingenico/direct/sdk/domain/payment_product5500_specific_output.rb', line 19 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 |