Class: Worldline::Connect::SDK::V1::Domain::CreatePaymentProductSessionResponse

Inherits:
Domain::DataObject
  • Object
show all
Defined in:
lib/worldline/connect/sdk/v1/domain/create_payment_product_session_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#payment_product_session302_specific_outputWorldline::Connect::SDK::V1::Domain::MobilePaymentProductSession302SpecificOutput

Returns the current value of payment_product_session302_specific_output.

Returns:



14
15
16
# File 'lib/worldline/connect/sdk/v1/domain/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/worldline/connect/sdk/v1/domain/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 = Worldline::Connect::SDK::V1::Domain::MobilePaymentProductSession302SpecificOutput.new_from_hash(hash['paymentProductSession302SpecificOutput'])
  end
end

#to_hHash

Returns:

  • (Hash)


19
20
21
22
23
# File 'lib/worldline/connect/sdk/v1/domain/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