Class: Worldline::Acquiring::SDK::V1::Domain::ApiReferencesForResponses

Inherits:
Domain::DataObject
  • Object
show all
Defined in:
lib/worldline/acquiring/sdk/v1/domain/api_references_for_responses.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#payment_account_referenceString

Returns the current value of payment_account_reference.

Returns:

  • (String)

    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
end

#retrieval_reference_numberString

Returns the current value of retrieval_reference_number.

Returns:

  • (String)

    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_idString

Returns the current value of scheme_transaction_id.

Returns:

  • (String)

    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_hHash

Returns:

  • (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