Class: OnlinePayments::SDK::Domain::OrderReferences
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::OrderReferences
- Defined in:
- lib/onlinepayments/sdk/domain/order_references.rb
Instance Attribute Summary collapse
-
#descriptor ⇒ String
The current value of descriptor.
-
#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.
-
#structured_creditor_reference ⇒ String
The current value of structured_creditor_reference.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#descriptor ⇒ String
Returns the current value of descriptor.
14 15 16 |
# File 'lib/onlinepayments/sdk/domain/order_references.rb', line 14 def descriptor @descriptor end |
#merchant_parameters ⇒ String
Returns the current value of merchant_parameters.
14 15 16 |
# File 'lib/onlinepayments/sdk/domain/order_references.rb', line 14 def merchant_parameters @merchant_parameters end |
#merchant_reference ⇒ String
Returns the current value of merchant_reference.
14 15 16 |
# File 'lib/onlinepayments/sdk/domain/order_references.rb', line 14 def merchant_reference @merchant_reference end |
#operation_group_reference ⇒ String
Returns the current value of operation_group_reference.
14 15 16 |
# File 'lib/onlinepayments/sdk/domain/order_references.rb', line 14 def operation_group_reference @operation_group_reference end |
#structured_creditor_reference ⇒ String
Returns the current value of structured_creditor_reference.
14 15 16 |
# File 'lib/onlinepayments/sdk/domain/order_references.rb', line 14 def structured_creditor_reference @structured_creditor_reference end |
Instance Method Details
#from_hash(hash) ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/onlinepayments/sdk/domain/order_references.rb', line 37 def from_hash(hash) super if hash.has_key? 'descriptor' @descriptor = hash['descriptor'] end 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 if hash.has_key? 'structuredCreditorReference' @structured_creditor_reference = hash['structuredCreditorReference'] end end |
#to_h ⇒ Hash
27 28 29 30 31 32 33 34 35 |
# File 'lib/onlinepayments/sdk/domain/order_references.rb', line 27 def to_h hash = super hash['descriptor'] = @descriptor unless @descriptor.nil? 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['structuredCreditorReference'] = @structured_creditor_reference unless @structured_creditor_reference.nil? hash end |