Class: Worldline::Acquiring::SDK::V1::Domain::ApiReferencesForResponses
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Acquiring::SDK::V1::Domain::ApiReferencesForResponses
- Defined in:
- lib/worldline/acquiring/sdk/v1/domain/api_references_for_responses.rb
Instance Attribute Summary collapse
-
#payment_account_reference ⇒ String
The current value of payment_account_reference.
-
#retrieval_reference_number ⇒ String
The current value of retrieval_reference_number.
-
#scheme_transaction_id ⇒ String
The current value of scheme_transaction_id.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#payment_account_reference ⇒ String
Returns the current value of payment_account_reference.
14 15 16 |
# File 'lib/worldline/acquiring/sdk/v1/domain/api_references_for_responses.rb', line 14 def payment_account_reference @payment_account_reference end |
#retrieval_reference_number ⇒ String
Returns the current value of retrieval_reference_number.
14 15 16 |
# File 'lib/worldline/acquiring/sdk/v1/domain/api_references_for_responses.rb', line 14 def retrieval_reference_number @retrieval_reference_number end |
#scheme_transaction_id ⇒ String
Returns the current value of scheme_transaction_id.
14 15 16 |
# File 'lib/worldline/acquiring/sdk/v1/domain/api_references_for_responses.rb', line 14 def scheme_transaction_id @scheme_transaction_id 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/api_references_for_responses.rb', line 31 def from_hash(hash) super if hash.has_key? 'paymentAccountReference' @payment_account_reference = hash['paymentAccountReference'] end if hash.has_key? 'retrievalReferenceNumber' @retrieval_reference_number = hash['retrievalReferenceNumber'] end if hash.has_key? 'schemeTransactionId' @scheme_transaction_id = hash['schemeTransactionId'] end end |
#to_h ⇒ Hash
23 24 25 26 27 28 29 |
# File 'lib/worldline/acquiring/sdk/v1/domain/api_references_for_responses.rb', line 23 def to_h hash = super hash['paymentAccountReference'] = @payment_account_reference unless @payment_account_reference.nil? hash['retrievalReferenceNumber'] = @retrieval_reference_number unless @retrieval_reference_number.nil? hash['schemeTransactionId'] = @scheme_transaction_id unless @scheme_transaction_id.nil? hash end |