class Ingenico::Connect::SDK::Domain::Hostedcheckout::GetHostedCheckoutResponse

@attr [Ingenico::Connect::SDK::Domain::Hostedcheckout::CreatedPaymentOutput] created_payment_output @attr [String] status

Attributes

created_payment_output[RW]
status[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/hostedcheckout/get_hosted_checkout_response.rb, line 28
def from_hash(hash)
  super
  if hash.has_key? 'createdPaymentOutput'
    raise TypeError, "value '%s' is not a Hash" % [hash['createdPaymentOutput']] unless hash['createdPaymentOutput'].is_a? Hash
    @created_payment_output = Ingenico::Connect::SDK::Domain::Hostedcheckout::CreatedPaymentOutput.new_from_hash(hash['createdPaymentOutput'])
  end
  if hash.has_key? 'status'
    @status = hash['status']
  end
end
to_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/hostedcheckout/get_hosted_checkout_response.rb, line 21
def to_h
  hash = super
  hash['createdPaymentOutput'] = @created_payment_output.to_h unless @created_payment_output.nil?
  hash['status'] = @status unless @status.nil?
  hash
end