Class: OnlinePayments::SDK::Domain::PaymentReferences

Inherits:
DataObject
  • Object
show all
Defined in:
lib/onlinepayments/sdk/domain/payment_references.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#merchant_commentString

Returns the current value of merchant_comment.

Returns:

  • (String)

    the current value of merchant_comment



16
17
18
# File 'lib/onlinepayments/sdk/domain/payment_references.rb', line 16

def merchant_comment
  @merchant_comment
end

#merchant_parametersString

Returns the current value of merchant_parameters.

Returns:

  • (String)

    the current value of merchant_parameters



16
17
18
# File 'lib/onlinepayments/sdk/domain/payment_references.rb', line 16

def merchant_parameters
  @merchant_parameters
end

#merchant_reconciliation_referenceString

Returns the current value of merchant_reconciliation_reference.

Returns:

  • (String)

    the current value of merchant_reconciliation_reference



16
17
18
# File 'lib/onlinepayments/sdk/domain/payment_references.rb', line 16

def merchant_reconciliation_reference
  @merchant_reconciliation_reference
end

#merchant_referenceString

Returns the current value of merchant_reference.

Returns:

  • (String)

    the current value of merchant_reference



16
17
18
# File 'lib/onlinepayments/sdk/domain/payment_references.rb', line 16

def merchant_reference
  @merchant_reference
end

#operation_group_referenceString

Returns the current value of operation_group_reference.

Returns:

  • (String)

    the current value of operation_group_reference



16
17
18
# File 'lib/onlinepayments/sdk/domain/payment_references.rb', line 16

def operation_group_reference
  @operation_group_reference
end

#soft_descriptorString

Returns the current value of soft_descriptor.

Returns:

  • (String)

    the current value of soft_descriptor



16
17
18
# File 'lib/onlinepayments/sdk/domain/payment_references.rb', line 16

def soft_descriptor
  @soft_descriptor
end

#structured_creditor_referenceString

Returns the current value of structured_creditor_reference.

Returns:

  • (String)

    the current value of structured_creditor_reference



16
17
18
# File 'lib/onlinepayments/sdk/domain/payment_references.rb', line 16

def structured_creditor_reference
  @structured_creditor_reference
end

Instance Method Details

#from_hash(hash) ⇒ Object



45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/onlinepayments/sdk/domain/payment_references.rb', line 45

def from_hash(hash)
  super
  if hash.has_key? 'merchantComment'
    @merchant_comment = hash['merchantComment']
  end
  if hash.has_key? 'merchantParameters'
    @merchant_parameters = hash['merchantParameters']
  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_hHash

Returns:

  • (Hash)


33
34
35
36
37
38
39
40
41
42
43
# File 'lib/onlinepayments/sdk/domain/payment_references.rb', line 33

def to_h
  hash = super
  hash['merchantComment'] = @merchant_comment unless @merchant_comment.nil?
  hash['merchantParameters'] = @merchant_parameters unless @merchant_parameters.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