Class: Ingenico::Connect::SDK::Domain::Product::CreatePaymentProductSessionResponse

Inherits:
Ingenico::Connect::SDK::DataObject show all
Defined in:
lib/ingenico/connect/sdk/domain/product/create_payment_product_session_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ingenico::Connect::SDK::DataObject

new_from_hash

Instance Attribute Details

#payment_product_session302_specific_outputIngenico::Connect::SDK::Domain::Product::MobilePaymentProductSession302SpecificOutput

Returns the current value of payment_product_session302_specific_output.

Returns:



14
15
16
# File 'lib/ingenico/connect/sdk/domain/product/create_payment_product_session_response.rb', line 14

def payment_product_session302_specific_output
  @payment_product_session302_specific_output
end

Instance Method Details

#from_hash(hash) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/ingenico/connect/sdk/domain/product/create_payment_product_session_response.rb', line 25

def from_hash(hash)
  super
  if hash.has_key? 'paymentProductSession302SpecificOutput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProductSession302SpecificOutput']] unless hash['paymentProductSession302SpecificOutput'].is_a? Hash
    @payment_product_session302_specific_output = Ingenico::Connect::SDK::Domain::Product::MobilePaymentProductSession302SpecificOutput.new_from_hash(hash['paymentProductSession302SpecificOutput'])
  end
end

#to_hHash

Returns:

  • (Hash)


19
20
21
22
23
# File 'lib/ingenico/connect/sdk/domain/product/create_payment_product_session_response.rb', line 19

def to_h
  hash = super
  hash['paymentProductSession302SpecificOutput'] = @payment_product_session302_specific_output.to_h unless @payment_product_session302_specific_output.nil?
  hash
end