Class: Worldline::Connect::SDK::V1::Domain::ExemptionOutput

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#exemption_raisedString

Returns the current value of exemption_raised.

Returns:

  • (String)

    the current value of exemption_raised



15
16
17
# File 'lib/worldline/connect/sdk/v1/domain/exemption_output.rb', line 15

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



15
16
17
# File 'lib/worldline/connect/sdk/v1/domain/exemption_output.rb', line 15

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



15
16
17
# File 'lib/worldline/connect/sdk/v1/domain/exemption_output.rb', line 15

def exemption_request
  @exemption_request
end

Instance Method Details

#from_hash(hash) ⇒ Object



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

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)


24
25
26
27
28
29
30
# File 'lib/worldline/connect/sdk/v1/domain/exemption_output.rb', line 24

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