Class: Worldline::Connect::SDK::V1::Domain::CreatePaymentProductSessionRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#payment_product_session302_specific_inputWorldline::Connect::SDK::V1::Domain::MobilePaymentProductSession302SpecificInput

Returns the current value of payment_product_session302_specific_input.

Returns:



14
15
16
# File 'lib/worldline/connect/sdk/v1/domain/create_payment_product_session_request.rb', line 14

def payment_product_session302_specific_input
  @payment_product_session302_specific_input
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_request.rb', line 25

def from_hash(hash)
  super
  if hash.has_key? 'paymentProductSession302SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProductSession302SpecificInput']] unless hash['paymentProductSession302SpecificInput'].is_a? Hash
    @payment_product_session302_specific_input = Worldline::Connect::SDK::V1::Domain::MobilePaymentProductSession302SpecificInput.new_from_hash(hash['paymentProductSession302SpecificInput'])
  end
end

#to_hHash

Returns:

  • (Hash)


19
20
21
22
23
# File 'lib/worldline/connect/sdk/v1/domain/create_payment_product_session_request.rb', line 19

def to_h
  hash = super
  hash['paymentProductSession302SpecificInput'] = @payment_product_session302_specific_input.to_h unless @payment_product_session302_specific_input.nil?
  hash
end