Class: Worldline::Connect::SDK::V1::Domain::OrderReferencesApprovePayment
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::OrderReferencesApprovePayment
- Defined in:
- lib/worldline/connect/sdk/v1/domain/order_references_approve_payment.rb
Instance Attribute Summary collapse
-
#merchant_reference ⇒ String
The current value of merchant_reference.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#merchant_reference ⇒ String
Returns the current value of merchant_reference.
13 14 15 |
# File 'lib/worldline/connect/sdk/v1/domain/order_references_approve_payment.rb', line 13 def merchant_reference @merchant_reference end |
Instance Method Details
#from_hash(hash) ⇒ Object
24 25 26 27 28 29 |
# File 'lib/worldline/connect/sdk/v1/domain/order_references_approve_payment.rb', line 24 def from_hash(hash) super if hash.has_key? 'merchantReference' @merchant_reference = hash['merchantReference'] end end |
#to_h ⇒ Hash
18 19 20 21 22 |
# File 'lib/worldline/connect/sdk/v1/domain/order_references_approve_payment.rb', line 18 def to_h hash = super hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil? hash end |