Class: Ingenico::Connect::SDK::Domain::Payment::ExemptionOutput

Inherits:
Ingenico::Connect::SDK::DataObject show all
Defined in:
lib/ingenico/connect/sdk/domain/payment/exemption_output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ingenico::Connect::SDK::DataObject

new_from_hash

Instance Attribute Details

#exemption_raisedString

Returns the current value of exemption_raised.

Returns:

  • (String)

    the current value of exemption_raised



14
15
16
# File 'lib/ingenico/connect/sdk/domain/payment/exemption_output.rb', line 14

def exemption_raised
  @exemption_raised
end

#exemption_rejection_reasonString

Returns the current value of exemption_rejection_reason.

Returns:

  • (String)

    the current value of exemption_rejection_reason



14
15
16
# File 'lib/ingenico/connect/sdk/domain/payment/exemption_output.rb', line 14

def exemption_rejection_reason
  @exemption_rejection_reason
end

#exemption_requestString

Returns the current value of exemption_request.

Returns:

  • (String)

    the current value of exemption_request



14
15
16
# File 'lib/ingenico/connect/sdk/domain/payment/exemption_output.rb', line 14

def exemption_request
  @exemption_request
end

Instance Method Details

#from_hash(hash) ⇒ Object



31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/ingenico/connect/sdk/domain/payment/exemption_output.rb', line 31

def from_hash(hash)
  super
  if hash.has_key? 'exemptionRaised'
    @exemption_raised = hash['exemptionRaised']
  end
  if hash.has_key? 'exemptionRejectionReason'
    @exemption_rejection_reason = hash['exemptionRejectionReason']
  end
  if hash.has_key? 'exemptionRequest'
    @exemption_request = hash['exemptionRequest']
  end
end

#to_hHash

Returns:

  • (Hash)


23
24
25
26
27
28
29
# File 'lib/ingenico/connect/sdk/domain/payment/exemption_output.rb', line 23

def to_h
  hash = super
  hash['exemptionRaised'] = @exemption_raised unless @exemption_raised.nil?
  hash['exemptionRejectionReason'] = @exemption_rejection_reason unless @exemption_rejection_reason.nil?
  hash['exemptionRequest'] = @exemption_request unless @exemption_request.nil?
  hash
end