class Ingenico::Connect::SDK::Domain::Payment::ExemptionOutput

@attr [String] exemption_raised @attr [String] exemption_rejection_reason @attr [String] exemption_request

Attributes

exemption_raised[RW]
exemption_rejection_reason[RW]
exemption_request[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# 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_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Connect::SDK::DataObject#to_h
# 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