Class: OnlinePayments::SDK::Domain::PaymentReferences
- Inherits:
-
OnlinePayments::SDK::DataObject
- Object
- OnlinePayments::SDK::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.
Instance Method Summary collapse
Methods inherited from OnlinePayments::SDK::DataObject
Instance Attribute Details
#merchant_parameters ⇒ String
Returns the current value of merchant_parameters.
11 12 13 |
# File 'lib/onlinepayments/sdk/domain/payment_references.rb', line 11 def merchant_parameters @merchant_parameters end |
#merchant_reference ⇒ String
Returns the current value of merchant_reference.
11 12 13 |
# File 'lib/onlinepayments/sdk/domain/payment_references.rb', line 11 def merchant_reference @merchant_reference end |
Instance Method Details
#from_hash(hash) ⇒ Object
23 24 25 26 27 |
# File 'lib/onlinepayments/sdk/domain/payment_references.rb', line 23 def from_hash(hash) super @merchant_parameters = hash['merchantParameters'] if hash.key? 'merchantParameters' @merchant_reference = hash['merchantReference'] if hash.key? 'merchantReference' end |
#to_h ⇒ Hash
16 17 18 19 20 21 |
# File 'lib/onlinepayments/sdk/domain/payment_references.rb', line 16 def to_h hash = super hash['merchantParameters'] = @merchant_parameters unless @merchant_parameters.nil? hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil? hash end |