Class: Worldline::Connect::SDK::V1::Domain::CashPaymentMethodSpecificInput

Inherits:
AbstractCashPaymentMethodSpecificInput show all
Defined in:
lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractPaymentMethodSpecificInput

#payment_product_id

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#payment_product1503_specific_inputObject

Deprecated.

No replacement



26
27
28
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 26

def payment_product1503_specific_input
  @payment_product1503_specific_input
end

#payment_product1504_specific_inputWorldline::Connect::SDK::V1::Domain::CashPaymentProduct1504SpecificInput

Returns the current value of payment_product1504_specific_input.

Returns:



26
27
28
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 26

def payment_product1504_specific_input
  @payment_product1504_specific_input
end

#payment_product1521_specific_inputWorldline::Connect::SDK::V1::Domain::CashPaymentProduct1521SpecificInput

Returns the current value of payment_product1521_specific_input.

Returns:



26
27
28
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 26

def payment_product1521_specific_input
  @payment_product1521_specific_input
end

#payment_product1522_specific_inputWorldline::Connect::SDK::V1::Domain::CashPaymentProduct1522SpecificInput

Returns the current value of payment_product1522_specific_input.

Returns:



26
27
28
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 26

def payment_product1522_specific_input
  @payment_product1522_specific_input
end

#payment_product1523_specific_inputWorldline::Connect::SDK::V1::Domain::CashPaymentProduct1523SpecificInput

Returns the current value of payment_product1523_specific_input.

Returns:



26
27
28
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 26

def payment_product1523_specific_input
  @payment_product1523_specific_input
end

#payment_product1524_specific_inputWorldline::Connect::SDK::V1::Domain::CashPaymentProduct1524SpecificInput

Returns the current value of payment_product1524_specific_input.

Returns:



26
27
28
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 26

def payment_product1524_specific_input
  @payment_product1524_specific_input
end

#payment_product1526_specific_inputWorldline::Connect::SDK::V1::Domain::CashPaymentProduct1526SpecificInput

Returns the current value of payment_product1526_specific_input.

Returns:



26
27
28
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 26

def payment_product1526_specific_input
  @payment_product1526_specific_input
end

Instance Method Details

#from_hash(hash) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 57

def from_hash(hash)
  super
  if hash.has_key? 'paymentProduct1503SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct1503SpecificInput']] unless hash['paymentProduct1503SpecificInput'].is_a? Hash
    @payment_product1503_specific_input = Worldline::Connect::SDK::V1::Domain::CashPaymentProduct1503SpecificInput.new_from_hash(hash['paymentProduct1503SpecificInput'])
  end
  if hash.has_key? 'paymentProduct1504SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct1504SpecificInput']] unless hash['paymentProduct1504SpecificInput'].is_a? Hash
    @payment_product1504_specific_input = Worldline::Connect::SDK::V1::Domain::CashPaymentProduct1504SpecificInput.new_from_hash(hash['paymentProduct1504SpecificInput'])
  end
  if hash.has_key? 'paymentProduct1521SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct1521SpecificInput']] unless hash['paymentProduct1521SpecificInput'].is_a? Hash
    @payment_product1521_specific_input = Worldline::Connect::SDK::V1::Domain::CashPaymentProduct1521SpecificInput.new_from_hash(hash['paymentProduct1521SpecificInput'])
  end
  if hash.has_key? 'paymentProduct1522SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct1522SpecificInput']] unless hash['paymentProduct1522SpecificInput'].is_a? Hash
    @payment_product1522_specific_input = Worldline::Connect::SDK::V1::Domain::CashPaymentProduct1522SpecificInput.new_from_hash(hash['paymentProduct1522SpecificInput'])
  end
  if hash.has_key? 'paymentProduct1523SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct1523SpecificInput']] unless hash['paymentProduct1523SpecificInput'].is_a? Hash
    @payment_product1523_specific_input = Worldline::Connect::SDK::V1::Domain::CashPaymentProduct1523SpecificInput.new_from_hash(hash['paymentProduct1523SpecificInput'])
  end
  if hash.has_key? 'paymentProduct1524SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct1524SpecificInput']] unless hash['paymentProduct1524SpecificInput'].is_a? Hash
    @payment_product1524_specific_input = Worldline::Connect::SDK::V1::Domain::CashPaymentProduct1524SpecificInput.new_from_hash(hash['paymentProduct1524SpecificInput'])
  end
  if hash.has_key? 'paymentProduct1526SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct1526SpecificInput']] unless hash['paymentProduct1526SpecificInput'].is_a? Hash
    @payment_product1526_specific_input = Worldline::Connect::SDK::V1::Domain::CashPaymentProduct1526SpecificInput.new_from_hash(hash['paymentProduct1526SpecificInput'])
  end
end

#to_hHash

Returns:

  • (Hash)


45
46
47
48
49
50
51
52
53
54
55
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 45

def to_h
  hash = super
  hash['paymentProduct1503SpecificInput'] = @payment_product1503_specific_input.to_h unless @payment_product1503_specific_input.nil?
  hash['paymentProduct1504SpecificInput'] = @payment_product1504_specific_input.to_h unless @payment_product1504_specific_input.nil?
  hash['paymentProduct1521SpecificInput'] = @payment_product1521_specific_input.to_h unless @payment_product1521_specific_input.nil?
  hash['paymentProduct1522SpecificInput'] = @payment_product1522_specific_input.to_h unless @payment_product1522_specific_input.nil?
  hash['paymentProduct1523SpecificInput'] = @payment_product1523_specific_input.to_h unless @payment_product1523_specific_input.nil?
  hash['paymentProduct1524SpecificInput'] = @payment_product1524_specific_input.to_h unless @payment_product1524_specific_input.nil?
  hash['paymentProduct1526SpecificInput'] = @payment_product1526_specific_input.to_h unless @payment_product1526_specific_input.nil?
  hash
end