Class: OnlinePayments::SDK::Domain::PaymentReferences
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::PaymentReferences
- Defined in:
- lib/onlinepayments/sdk/domain/payment_references.rb
Instance Attribute Summary collapse
-
#merchant_parameters ⇒ String
The current value of merchant_parameters.
-
#merchant_reference ⇒ String
The current value of merchant_reference.
-
#operation_group_reference ⇒ String
The current value of operation_group_reference.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#merchant_parameters ⇒ String
Returns the current value of merchant_parameters.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/payment_references.rb', line 12 def merchant_parameters @merchant_parameters end |
#merchant_reference ⇒ String
Returns the current value of merchant_reference.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/payment_references.rb', line 12 def merchant_reference @merchant_reference end |
#operation_group_reference ⇒ String
Returns the current value of operation_group_reference.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/payment_references.rb', line 12 def operation_group_reference @operation_group_reference end |
Instance Method Details
#from_hash(hash) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/onlinepayments/sdk/domain/payment_references.rb', line 29 def from_hash(hash) super if hash.has_key? 'merchantParameters' @merchant_parameters = hash['merchantParameters'] end if hash.has_key? 'merchantReference' @merchant_reference = hash['merchantReference'] end if hash.has_key? 'operationGroupReference' @operation_group_reference = hash['operationGroupReference'] end end |
#to_h ⇒ Hash
21 22 23 24 25 26 27 |
# File 'lib/onlinepayments/sdk/domain/payment_references.rb', line 21 def to_h hash = super hash['merchantParameters'] = @merchant_parameters unless @merchant_parameters.nil? hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil? hash['operationGroupReference'] = @operation_group_reference unless @operation_group_reference.nil? hash end |