Class: Worldline::Acquiring::SDK::V1::Domain::DisputeReferences

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#acquirer_dispute_reference ⇒ String

Returns the current value of acquirer_dispute_reference.

Returns:

  • (String) —

    the current value of acquirer_dispute_reference



13
14
15
# File 'lib/worldline/acquiring/sdk/v1/domain/dispute_references.rb', line 13

def acquirer_dispute_reference
  @acquirer_dispute_reference
end

#scheme_dispute_reference ⇒ String

Returns the current value of scheme_dispute_reference.

Returns:

  • (String) —

    the current value of scheme_dispute_reference



13
14
15
# File 'lib/worldline/acquiring/sdk/v1/domain/dispute_references.rb', line 13

def scheme_dispute_reference
  @scheme_dispute_reference
end

Instance Method Details

#from_hash(hash) ⇒ Object



27
28
29
30
31
32
33
34
35
# File 'lib/worldline/acquiring/sdk/v1/domain/dispute_references.rb', line 27

def from_hash(hash)
  super
  if hash.has_key? 'acquirerDisputeReference'
    @acquirer_dispute_reference = hash['acquirerDisputeReference']
  end
  if hash.has_key? 'schemeDisputeReference'
    @scheme_dispute_reference = hash['schemeDisputeReference']
  end
end

#to_h ⇒ Hash

Returns:

  • (Hash)


20
21
22
23
24
25
# File 'lib/worldline/acquiring/sdk/v1/domain/dispute_references.rb', line 20

def to_h
  hash = super
  hash['acquirerDisputeReference'] = @acquirer_dispute_reference unless @acquirer_dispute_reference.nil?
  hash['schemeDisputeReference'] = @scheme_dispute_reference unless @scheme_dispute_reference.nil?
  hash
end