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_product1502_specific_inputWorldline::Connect::SDK::V1::Domain::CashPaymentProduct1502SpecificInput

Returns the current value of payment_product1502_specific_input.

Returns:



34
35
36
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 34

def payment_product1502_specific_input
  @payment_product1502_specific_input
end

#payment_product1503_specific_inputObject

Deprecated.

No replacement



34
35
36
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 34

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:



34
35
36
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 34

def payment_product1504_specific_input
  @payment_product1504_specific_input
end

#payment_product1506_specific_inputWorldline::Connect::SDK::V1::Domain::CashPaymentProduct1506SpecificInput

Returns the current value of payment_product1506_specific_input.

Returns:



34
35
36
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 34

def payment_product1506_specific_input
  @payment_product1506_specific_input
end

#payment_product1508_specific_inputWorldline::Connect::SDK::V1::Domain::CashPaymentProduct1508SpecificInput

Returns the current value of payment_product1508_specific_input.

Returns:



34
35
36
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 34

def payment_product1508_specific_input
  @payment_product1508_specific_input
end

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

Returns the current value of payment_product1521_specific_input.

Returns:



34
35
36
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 34

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:



34
35
36
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 34

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:



34
35
36
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 34

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:



34
35
36
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 34

def payment_product1524_specific_input
  @payment_product1524_specific_input
end

#payment_product1525_specific_inputWorldline::Connect::SDK::V1::Domain::CashPaymentProduct1525SpecificInput

Returns the current value of payment_product1525_specific_input.

Returns:



34
35
36
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 34

def payment_product1525_specific_input
  @payment_product1525_specific_input
end

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

Returns the current value of payment_product1526_specific_input.

Returns:



34
35
36
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 34

def payment_product1526_specific_input
  @payment_product1526_specific_input
end

Instance Method Details

#from_hash(hash) ⇒ Object



76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 76

def from_hash(hash)
  super
  if hash.has_key? 'paymentProduct1502SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct1502SpecificInput']] unless hash['paymentProduct1502SpecificInput'].is_a? Hash
    @payment_product1502_specific_input = Worldline::Connect::SDK::V1::Domain::CashPaymentProduct1502SpecificInput.new_from_hash(hash['paymentProduct1502SpecificInput'])
  end
  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? 'paymentProduct1506SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct1506SpecificInput']] unless hash['paymentProduct1506SpecificInput'].is_a? Hash
    @payment_product1506_specific_input = Worldline::Connect::SDK::V1::Domain::CashPaymentProduct1506SpecificInput.new_from_hash(hash['paymentProduct1506SpecificInput'])
  end
  if hash.has_key? 'paymentProduct1508SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct1508SpecificInput']] unless hash['paymentProduct1508SpecificInput'].is_a? Hash
    @payment_product1508_specific_input = Worldline::Connect::SDK::V1::Domain::CashPaymentProduct1508SpecificInput.new_from_hash(hash['paymentProduct1508SpecificInput'])
  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? 'paymentProduct1525SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct1525SpecificInput']] unless hash['paymentProduct1525SpecificInput'].is_a? Hash
    @payment_product1525_specific_input = Worldline::Connect::SDK::V1::Domain::CashPaymentProduct1525SpecificInput.new_from_hash(hash['paymentProduct1525SpecificInput'])
  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)


60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 60

def to_h
  hash = super
  hash['paymentProduct1502SpecificInput'] = @payment_product1502_specific_input.to_h unless @payment_product1502_specific_input.nil?
  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['paymentProduct1506SpecificInput'] = @payment_product1506_specific_input.to_h unless @payment_product1506_specific_input.nil?
  hash['paymentProduct1508SpecificInput'] = @payment_product1508_specific_input.to_h unless @payment_product1508_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['paymentProduct1525SpecificInput'] = @payment_product1525_specific_input.to_h unless @payment_product1525_specific_input.nil?
  hash['paymentProduct1526SpecificInput'] = @payment_product1526_specific_input.to_h unless @payment_product1526_specific_input.nil?
  hash
end