class Ingenico::Connect::SDK::Domain::Payment::PaymentStatusOutput
@attr [true/false] is_authorized
@attr [true/false] is_refundable
@attr [String] three_d_secure_status
Attributes
is_refundable[RW]
three_d_secure_status[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Connect::SDK::Domain::Definitions::OrderStatusOutput#from_hash
# 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()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Connect::SDK::Domain::Definitions::OrderStatusOutput#to_h
# 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