Class: Ingenico::Connect::SDK::Domain::Payment::PaymentStatusOutput
- Inherits:
-
Definitions::OrderStatusOutput
- Object
- Ingenico::Connect::SDK::DataObject
- Definitions::OrderStatusOutput
- Ingenico::Connect::SDK::Domain::Payment::PaymentStatusOutput
- Defined in:
- lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb
Instance Attribute Summary collapse
-
#is_authorized ⇒ Object
true/false.
-
#is_refundable ⇒ Object
true/false.
Attributes inherited from Definitions::OrderStatusOutput
#errors, #is_cancellable, #status_category, #status_code, #status_code_change_date_time
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#is_authorized ⇒ Object
true/false
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb', line 14 def end |
#is_refundable ⇒ Object
true/false
17 18 19 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb', line 17 def is_refundable @is_refundable end |
Instance Method Details
#from_hash(hash) ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb', line 26 def from_hash(hash) super if hash.has_key?('isAuthorized') = hash['isAuthorized'] end if hash.has_key?('isRefundable') @is_refundable = hash['isRefundable'] end end |
#to_h ⇒ Object
19 20 21 22 23 24 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb', line 19 def to_h hash = super add_to_hash(hash, 'isAuthorized', ) add_to_hash(hash, 'isRefundable', @is_refundable) hash end |