Class: OnlinePayments::SDK::Domain::OperationPaymentReferences
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::OperationPaymentReferences
- Defined in:
- lib/onlinepayments/sdk/domain/operation_payment_references.rb
Instance Attribute Summary collapse
-
#merchant_comment ⇒ String
The current value of merchant_comment.
-
#merchant_reconciliation_reference ⇒ String
The current value of merchant_reconciliation_reference.
-
#merchant_reference ⇒ String
The current value of merchant_reference.
-
#operation_group_reference ⇒ String
The current value of operation_group_reference.
-
#soft_descriptor ⇒ String
The current value of soft_descriptor.
-
#structured_creditor_reference ⇒ String
The current value of structured_creditor_reference.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#merchant_comment ⇒ String
Returns the current value of merchant_comment.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/operation_payment_references.rb', line 15 def merchant_comment @merchant_comment end |
#merchant_reconciliation_reference ⇒ String
Returns the current value of merchant_reconciliation_reference.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/operation_payment_references.rb', line 15 def merchant_reconciliation_reference @merchant_reconciliation_reference end |
#merchant_reference ⇒ String
Returns the current value of merchant_reference.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/operation_payment_references.rb', line 15 def merchant_reference @merchant_reference end |
#operation_group_reference ⇒ String
Returns the current value of operation_group_reference.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/operation_payment_references.rb', line 15 def operation_group_reference @operation_group_reference end |
#soft_descriptor ⇒ String
Returns the current value of soft_descriptor.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/operation_payment_references.rb', line 15 def soft_descriptor @soft_descriptor end |
#structured_creditor_reference ⇒ String
Returns the current value of structured_creditor_reference.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/operation_payment_references.rb', line 15 def structured_creditor_reference @structured_creditor_reference end |
Instance Method Details
#from_hash(hash) ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/onlinepayments/sdk/domain/operation_payment_references.rb', line 41 def from_hash(hash) super if hash.has_key? 'merchantComment' @merchant_comment = hash['merchantComment'] end if hash.has_key? 'merchantReconciliationReference' @merchant_reconciliation_reference = hash['merchantReconciliationReference'] 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? 'softDescriptor' @soft_descriptor = hash['softDescriptor'] end if hash.has_key? 'structuredCreditorReference' @structured_creditor_reference = hash['structuredCreditorReference'] end end |
#to_h ⇒ Hash
30 31 32 33 34 35 36 37 38 39 |
# File 'lib/onlinepayments/sdk/domain/operation_payment_references.rb', line 30 def to_h hash = super hash['merchantComment'] = @merchant_comment unless @merchant_comment.nil? hash['merchantReconciliationReference'] = @merchant_reconciliation_reference unless @merchant_reconciliation_reference.nil? hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil? hash['operationGroupReference'] = @operation_group_reference unless @operation_group_reference.nil? hash['softDescriptor'] = @soft_descriptor unless @soft_descriptor.nil? hash['structuredCreditorReference'] = @structured_creditor_reference unless @structured_creditor_reference.nil? hash end |