Class: Worldline::Connect::SDK::V1::Domain::PaymentStatusOutput
- Inherits:
-
OrderStatusOutput
- Object
- Domain::DataObject
- OrderStatusOutput
- Worldline::Connect::SDK::V1::Domain::PaymentStatusOutput
- Defined in:
- lib/worldline/connect/sdk/v1/domain/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 OrderStatusOutput
#errors, #is_cancellable, #is_retriable, #provider_raw_output, #status_category, #status_code, #status_code_change_date_time
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#is_authorized ⇒ true/false
Returns the current value of is_authorized.
15 16 17 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_status_output.rb', line 15 def @is_authorized end |
#is_refundable ⇒ true/false
Returns the current value of is_refundable.
15 16 17 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_status_output.rb', line 15 def is_refundable @is_refundable end |
#three_d_secure_status ⇒ String
Returns the current value of three_d_secure_status.
15 16 17 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_status_output.rb', line 15 def three_d_secure_status @three_d_secure_status 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/payment_status_output.rb', line 32 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
24 25 26 27 28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_status_output.rb', line 24 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 |