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 ⇒ true/false
The current value of is_authorized.
-
#is_refundable ⇒ true/false
The current value of is_refundable.
-
#three_d_secure_status ⇒ String
The current value of three_d_secure_status.
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 ⇒ true/false
Returns the current value of is_authorized.
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb', line 14 def @is_authorized end |
#is_refundable ⇒ true/false
Returns the current value of is_refundable.
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb', line 14 def is_refundable @is_refundable end |
#three_d_secure_status ⇒ String
Returns the current value of three_d_secure_status.
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb', line 14 def three_d_secure_status @three_d_secure_status 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/payment_status_output.rb', line 31 def from_hash(hash) super if hash.has_key? 'isAuthorized' @is_authorized = hash['isAuthorized'] end if hash.has_key? 'isRefundable' @is_refundable = hash['isRefundable'] end if hash.has_key? 'threeDSecureStatus' @three_d_secure_status = hash['threeDSecureStatus'] end end |
#to_h ⇒ Hash
23 24 25 26 27 28 29 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb', line 23 def to_h hash = super hash['isAuthorized'] = @is_authorized unless @is_authorized.nil? hash['isRefundable'] = @is_refundable unless @is_refundable.nil? hash['threeDSecureStatus'] = @three_d_secure_status unless @three_d_secure_status.nil? hash end |