Class: OnlinePayments::SDK::Domain::PaymentProduct5500SpecificOutput
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::PaymentProduct5500SpecificOutput
- Defined in:
- lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb
Instance Attribute Summary collapse
-
#entity_id ⇒ String
The current value of entity_id.
-
#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 DataObject
Instance Attribute Details
#entity_id ⇒ String
Returns the current value of entity_id.
13 14 15 |
# File 'lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb', line 13 def entity_id @entity_id end |
#payment_end_date ⇒ String
Returns the current value of payment_end_date.
13 14 15 |
# File 'lib/onlinepayments/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/onlinepayments/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/onlinepayments/sdk/domain/payment_product5500_specific_output.rb', line 13 def payment_start_date @payment_start_date end |
Instance Method Details
#from_hash(hash) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb', line 33 def from_hash(hash) super if hash.has_key? 'entityId' @entity_id = hash['entityId'] end if hash.has_key? 'paymentEndDate' @payment_end_date = hash['paymentEndDate'] end if hash.has_key? 'paymentReference' @payment_reference = hash['paymentReference'] end if hash.has_key? 'paymentStartDate' @payment_start_date = hash['paymentStartDate'] end end |
#to_h ⇒ Hash
24 25 26 27 28 29 30 31 |
# File 'lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb', line 24 def to_h hash = super hash['entityId'] = @entity_id unless @entity_id.nil? 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 |