class Ingenico::Direct::SDK::Domain::GetHostedCheckoutResponse
@attr [Ingenico::Direct::SDK::Domain::CreatedPaymentOutput] created_payment_output
@attr [String] status
Attributes
created_payment_output[RW]
status[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Direct::SDK::DataObject#from_hash
# File lib/ingenico/direct/sdk/domain/get_hosted_checkout_response.rb, line 25 def from_hash(hash) super if hash.key? 'createdPaymentOutput' raise TypeError, "value '%s' is not a Hash" % [hash['createdPaymentOutput']] unless hash['createdPaymentOutput'].is_a? Hash @created_payment_output = Ingenico::Direct::SDK::Domain::CreatedPaymentOutput.new_from_hash(hash['createdPaymentOutput']) end @status = hash['status'] if hash.key? 'status' end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Direct::SDK::DataObject#to_h
# File lib/ingenico/direct/sdk/domain/get_hosted_checkout_response.rb, line 18 def to_h hash = super hash['createdPaymentOutput'] = @created_payment_output.to_h if @created_payment_output hash['status'] = @status unless @status.nil? hash end