Class: Worldline::Acquiring::SDK::V1::Domain::PaymentReferences
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Acquiring::SDK::V1::Domain::PaymentReferences
- Defined in:
- lib/worldline/acquiring/sdk/v1/domain/payment_references.rb
Instance Attribute Summary collapse
-
#dynamic_descriptor ⇒ String
The current value of dynamic_descriptor.
-
#merchant_reference ⇒ String
The current value of merchant_reference.
-
#retrieval_reference_number ⇒ String
The current value of retrieval_reference_number.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#dynamic_descriptor ⇒ String
Returns the current value of dynamic_descriptor.
14 15 16 |
# File 'lib/worldline/acquiring/sdk/v1/domain/payment_references.rb', line 14 def dynamic_descriptor @dynamic_descriptor end |
#merchant_reference ⇒ String
Returns the current value of merchant_reference.
14 15 16 |
# File 'lib/worldline/acquiring/sdk/v1/domain/payment_references.rb', line 14 def merchant_reference @merchant_reference end |
#retrieval_reference_number ⇒ String
Returns the current value of retrieval_reference_number.
14 15 16 |
# File 'lib/worldline/acquiring/sdk/v1/domain/payment_references.rb', line 14 def retrieval_reference_number @retrieval_reference_number end |
Instance Method Details
#from_hash(hash) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/worldline/acquiring/sdk/v1/domain/payment_references.rb', line 31 def from_hash(hash) super if hash.has_key? 'dynamicDescriptor' @dynamic_descriptor = hash['dynamicDescriptor'] end if hash.has_key? 'merchantReference' @merchant_reference = hash['merchantReference'] end if hash.has_key? 'retrievalReferenceNumber' @retrieval_reference_number = hash['retrievalReferenceNumber'] end end |
#to_h ⇒ Hash
23 24 25 26 27 28 29 |
# File 'lib/worldline/acquiring/sdk/v1/domain/payment_references.rb', line 23 def to_h hash = super hash['dynamicDescriptor'] = @dynamic_descriptor unless @dynamic_descriptor.nil? hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil? hash['retrievalReferenceNumber'] = @retrieval_reference_number unless @retrieval_reference_number.nil? hash end |