Class: Ingenico::Connect::SDK::Domain::Payment::ExemptionOutput
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Payment::ExemptionOutput
- Defined in:
- lib/ingenico/connect/sdk/domain/payment/exemption_output.rb
Instance Attribute Summary collapse
-
#exemption_raised ⇒ String
The current value of exemption_raised.
-
#exemption_rejection_reason ⇒ String
The current value of exemption_rejection_reason.
-
#exemption_request ⇒ String
The current value of exemption_request.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#exemption_raised ⇒ String
Returns 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_reason ⇒ String
Returns 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_request ⇒ String
Returns 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_h ⇒ 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 |