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



30
31
32
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 30

def payment_product1503_specific_input
  @payment_product1503_specific_input
end

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



30
31
32
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 30

def payment_product1504_specific_input
  @payment_product1504_specific_input
end

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



30
31
32
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 30

def payment_product1506_specific_input
  @payment_product1506_specific_input
end

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



30
31
32
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 30

def payment_product1508_specific_input
  @payment_product1508_specific_input
end

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



30
31
32
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 30

def payment_product1521_specific_input
  @payment_product1521_specific_input
end

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



30
31
32
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 30

def payment_product1522_specific_input
  @payment_product1522_specific_input
end

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



30
31
32
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 30

def payment_product1523_specific_input
  @payment_product1523_specific_input
end

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



30
31
32
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 30

def payment_product1524_specific_input
  @payment_product1524_specific_input
end

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



30
31
32
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 30

def payment_product1526_specific_input
  @payment_product1526_specific_input
end

Instance Method Details

#from_hash(hash) ⇒ Object



66
67
68
69
70
71
72
73
74
75
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
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 66

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? '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? '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



52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb', line 52

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['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['paymentProduct1526SpecificInput'] = @payment_product1526_specific_input.to_h unless @payment_product1526_specific_input.nil?
  hash
end