wallee-ruby-sdk 2.2.4 → 2.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/lib/wallee-ruby-sdk.rb +23 -1
- data/lib/wallee-ruby-sdk/api/charge_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/external_transfer_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/internal_transfer_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/refund_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/refund_recovery_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api_client.rb +2 -1
- data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +15 -15
- data/lib/wallee-ruby-sdk/models/bank_account.rb +291 -0
- data/lib/wallee-ruby-sdk/models/bank_account_environment.rb +35 -0
- data/lib/wallee-ruby-sdk/models/bank_account_state.rb +37 -0
- data/lib/wallee-ruby-sdk/models/bank_account_type.rb +227 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction.rb +387 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_flow_direction.rb +35 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_source.rb +215 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_state.rb +35 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_type.rb +215 -0
- data/lib/wallee-ruby-sdk/models/charge_bank_transaction.rb +291 -0
- data/lib/wallee-ruby-sdk/models/currency_bank_account.rb +241 -0
- data/lib/wallee-ruby-sdk/models/external_transfer_bank_transaction.rb +251 -0
- data/lib/wallee-ruby-sdk/models/internal_transfer_bank_transaction.rb +231 -0
- data/lib/wallee-ruby-sdk/models/payment_adjustment.rb +231 -0
- data/lib/wallee-ruby-sdk/models/payment_adjustment_type.rb +215 -0
- data/lib/wallee-ruby-sdk/models/payment_link.rb +15 -15
- data/lib/wallee-ruby-sdk/models/payment_link_active.rb +15 -15
- data/lib/wallee-ruby-sdk/models/payment_link_address_handling_mode.rb +36 -0
- data/lib/wallee-ruby-sdk/models/payment_link_create.rb +15 -15
- data/lib/wallee-ruby-sdk/models/payment_link_update.rb +15 -15
- data/lib/wallee-ruby-sdk/models/payment_terminal_address.rb +0 -60
- data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +2 -12
- data/lib/wallee-ruby-sdk/models/refund_bank_transaction.rb +281 -0
- data/lib/wallee-ruby-sdk/models/refund_recovery_bank_transaction.rb +293 -0
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry.rb +11 -1
- data/lib/wallee-ruby-sdk/models/transaction.rb +64 -4
- data/lib/wallee-ruby-sdk/version.rb +1 -1
- data/test/condition_type_service_test.rb +22 -0
- metadata +27 -3
- data/lib/wallee-ruby-sdk/models/payment_terminal_contact_address.rb +0 -396
@@ -38,8 +38,8 @@ module Wallee
|
|
38
38
|
# The available from date defines the latest date on which the payment link can be used to initialize a transaction. When no date is specified there will be no restriction.
|
39
39
|
attr_accessor :available_until
|
40
40
|
|
41
|
-
#
|
42
|
-
attr_accessor :
|
41
|
+
# The billing address handling mode controls if the address is collected or not and how it is collected.
|
42
|
+
attr_accessor :billing_address_handling_mode
|
43
43
|
|
44
44
|
# The currency defines in which currency the payment is executed in. If no currency is defined it has to be specified within the request parameter 'currency'.
|
45
45
|
attr_accessor :currency
|
@@ -56,8 +56,8 @@ module Wallee
|
|
56
56
|
# The payment link name is used internally to identify the payment link. For example the name is used within search fields and hence it should be distinct and descriptive.
|
57
57
|
attr_accessor :name
|
58
58
|
|
59
|
-
#
|
60
|
-
attr_accessor :
|
59
|
+
# The shipping address handling mode controls if the address is collected or not and how it is collected.
|
60
|
+
attr_accessor :shipping_address_handling_mode
|
61
61
|
|
62
62
|
#
|
63
63
|
attr_accessor :state
|
@@ -71,13 +71,13 @@ module Wallee
|
|
71
71
|
:'applied_space_view' => :'appliedSpaceView',
|
72
72
|
:'available_from' => :'availableFrom',
|
73
73
|
:'available_until' => :'availableUntil',
|
74
|
-
:'
|
74
|
+
:'billing_address_handling_mode' => :'billingAddressHandlingMode',
|
75
75
|
:'currency' => :'currency',
|
76
76
|
:'language' => :'language',
|
77
77
|
:'line_items' => :'lineItems',
|
78
78
|
:'maximal_number_of_transactions' => :'maximalNumberOfTransactions',
|
79
79
|
:'name' => :'name',
|
80
|
-
:'
|
80
|
+
:'shipping_address_handling_mode' => :'shippingAddressHandlingMode',
|
81
81
|
:'state' => :'state'
|
82
82
|
}
|
83
83
|
end
|
@@ -91,13 +91,13 @@ module Wallee
|
|
91
91
|
:'applied_space_view' => :'Integer',
|
92
92
|
:'available_from' => :'DateTime',
|
93
93
|
:'available_until' => :'DateTime',
|
94
|
-
:'
|
94
|
+
:'billing_address_handling_mode' => :'PaymentLinkAddressHandlingMode',
|
95
95
|
:'currency' => :'String',
|
96
96
|
:'language' => :'String',
|
97
97
|
:'line_items' => :'Array<LineItemCreate>',
|
98
98
|
:'maximal_number_of_transactions' => :'Integer',
|
99
99
|
:'name' => :'String',
|
100
|
-
:'
|
100
|
+
:'shipping_address_handling_mode' => :'PaymentLinkAddressHandlingMode',
|
101
101
|
:'state' => :'CreationEntityState'
|
102
102
|
}
|
103
103
|
end
|
@@ -136,8 +136,8 @@ module Wallee
|
|
136
136
|
self.available_until = attributes[:'availableUntil']
|
137
137
|
end
|
138
138
|
|
139
|
-
if attributes.has_key?(:'
|
140
|
-
self.
|
139
|
+
if attributes.has_key?(:'billingAddressHandlingMode')
|
140
|
+
self.billing_address_handling_mode = attributes[:'billingAddressHandlingMode']
|
141
141
|
end
|
142
142
|
|
143
143
|
if attributes.has_key?(:'currency')
|
@@ -162,8 +162,8 @@ module Wallee
|
|
162
162
|
self.name = attributes[:'name']
|
163
163
|
end
|
164
164
|
|
165
|
-
if attributes.has_key?(:'
|
166
|
-
self.
|
165
|
+
if attributes.has_key?(:'shippingAddressHandlingMode')
|
166
|
+
self.shipping_address_handling_mode = attributes[:'shippingAddressHandlingMode']
|
167
167
|
end
|
168
168
|
|
169
169
|
if attributes.has_key?(:'state')
|
@@ -220,13 +220,13 @@ module Wallee
|
|
220
220
|
applied_space_view == o.applied_space_view &&
|
221
221
|
available_from == o.available_from &&
|
222
222
|
available_until == o.available_until &&
|
223
|
-
|
223
|
+
billing_address_handling_mode == o.billing_address_handling_mode &&
|
224
224
|
currency == o.currency &&
|
225
225
|
language == o.language &&
|
226
226
|
line_items == o.line_items &&
|
227
227
|
maximal_number_of_transactions == o.maximal_number_of_transactions &&
|
228
228
|
name == o.name &&
|
229
|
-
|
229
|
+
shipping_address_handling_mode == o.shipping_address_handling_mode &&
|
230
230
|
state == o.state
|
231
231
|
end
|
232
232
|
|
@@ -239,7 +239,7 @@ module Wallee
|
|
239
239
|
# Calculates hash code according to all attributes.
|
240
240
|
# @return [Fixnum] Hash code
|
241
241
|
def hash
|
242
|
-
[id, version, allowed_payment_method_configurations, applied_space_view, available_from, available_until,
|
242
|
+
[id, version, allowed_payment_method_configurations, applied_space_view, available_from, available_until, billing_address_handling_mode, currency, language, line_items, maximal_number_of_transactions, name, shipping_address_handling_mode, state].hash
|
243
243
|
end
|
244
244
|
|
245
245
|
# Builds the object from hash
|
@@ -0,0 +1,36 @@
|
|
1
|
+
=begin
|
2
|
+
The wallee API allows an easy interaction with the wallee web service.
|
3
|
+
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
See the License for the specific language governing permissions and
|
14
|
+
limitations under the License.
|
15
|
+
|
16
|
+
=end
|
17
|
+
|
18
|
+
require 'date'
|
19
|
+
|
20
|
+
module Wallee
|
21
|
+
class PaymentLinkAddressHandlingMode
|
22
|
+
|
23
|
+
NOT_REQUIRED = 'NOT_REQUIRED'.freeze
|
24
|
+
REQUIRED_IN_URL = 'REQUIRED_IN_URL'.freeze
|
25
|
+
REQUIRED_ON_PAYMENT_PAGE = 'REQUIRED_ON_PAYMENT_PAGE'.freeze
|
26
|
+
|
27
|
+
# Builds the enum from string
|
28
|
+
# @param [String] The enum value in the form of the string
|
29
|
+
# @return [String] The enum value
|
30
|
+
def build_from_hash(value)
|
31
|
+
constantValues = PaymentLinkAddressHandlingMode.constants.select { |c| PaymentLinkAddressHandlingMode::const_get(c) == value }
|
32
|
+
raise "Invalid ENUM value #{value} for class #PaymentLinkAddressHandlingMode" if constantValues.empty?
|
33
|
+
value
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -32,8 +32,8 @@ module Wallee
|
|
32
32
|
# The available from date defines the latest date on which the payment link can be used to initialize a transaction. When no date is specified there will be no restriction.
|
33
33
|
attr_accessor :available_until
|
34
34
|
|
35
|
-
#
|
36
|
-
attr_accessor :
|
35
|
+
# The billing address handling mode controls if the address is collected or not and how it is collected.
|
36
|
+
attr_accessor :billing_address_handling_mode
|
37
37
|
|
38
38
|
# The currency defines in which currency the payment is executed in. If no currency is defined it has to be specified within the request parameter 'currency'.
|
39
39
|
attr_accessor :currency
|
@@ -50,8 +50,8 @@ module Wallee
|
|
50
50
|
# The payment link name is used internally to identify the payment link. For example the name is used within search fields and hence it should be distinct and descriptive.
|
51
51
|
attr_accessor :name
|
52
52
|
|
53
|
-
#
|
54
|
-
attr_accessor :
|
53
|
+
# The shipping address handling mode controls if the address is collected or not and how it is collected.
|
54
|
+
attr_accessor :shipping_address_handling_mode
|
55
55
|
|
56
56
|
#
|
57
57
|
attr_accessor :state
|
@@ -69,13 +69,13 @@ module Wallee
|
|
69
69
|
:'applied_space_view' => :'appliedSpaceView',
|
70
70
|
:'available_from' => :'availableFrom',
|
71
71
|
:'available_until' => :'availableUntil',
|
72
|
-
:'
|
72
|
+
:'billing_address_handling_mode' => :'billingAddressHandlingMode',
|
73
73
|
:'currency' => :'currency',
|
74
74
|
:'language' => :'language',
|
75
75
|
:'line_items' => :'lineItems',
|
76
76
|
:'maximal_number_of_transactions' => :'maximalNumberOfTransactions',
|
77
77
|
:'name' => :'name',
|
78
|
-
:'
|
78
|
+
:'shipping_address_handling_mode' => :'shippingAddressHandlingMode',
|
79
79
|
:'state' => :'state',
|
80
80
|
:'external_id' => :'externalId',
|
81
81
|
:'protection_mode' => :'protectionMode'
|
@@ -89,13 +89,13 @@ module Wallee
|
|
89
89
|
:'applied_space_view' => :'Integer',
|
90
90
|
:'available_from' => :'DateTime',
|
91
91
|
:'available_until' => :'DateTime',
|
92
|
-
:'
|
92
|
+
:'billing_address_handling_mode' => :'PaymentLinkAddressHandlingMode',
|
93
93
|
:'currency' => :'String',
|
94
94
|
:'language' => :'String',
|
95
95
|
:'line_items' => :'Array<LineItemCreate>',
|
96
96
|
:'maximal_number_of_transactions' => :'Integer',
|
97
97
|
:'name' => :'String',
|
98
|
-
:'
|
98
|
+
:'shipping_address_handling_mode' => :'PaymentLinkAddressHandlingMode',
|
99
99
|
:'state' => :'CreationEntityState',
|
100
100
|
:'external_id' => :'String',
|
101
101
|
:'protection_mode' => :'PaymentLinkProtectionMode'
|
@@ -128,8 +128,8 @@ module Wallee
|
|
128
128
|
self.available_until = attributes[:'availableUntil']
|
129
129
|
end
|
130
130
|
|
131
|
-
if attributes.has_key?(:'
|
132
|
-
self.
|
131
|
+
if attributes.has_key?(:'billingAddressHandlingMode')
|
132
|
+
self.billing_address_handling_mode = attributes[:'billingAddressHandlingMode']
|
133
133
|
end
|
134
134
|
|
135
135
|
if attributes.has_key?(:'currency')
|
@@ -154,8 +154,8 @@ module Wallee
|
|
154
154
|
self.name = attributes[:'name']
|
155
155
|
end
|
156
156
|
|
157
|
-
if attributes.has_key?(:'
|
158
|
-
self.
|
157
|
+
if attributes.has_key?(:'shippingAddressHandlingMode')
|
158
|
+
self.shipping_address_handling_mode = attributes[:'shippingAddressHandlingMode']
|
159
159
|
end
|
160
160
|
|
161
161
|
if attributes.has_key?(:'state')
|
@@ -241,13 +241,13 @@ module Wallee
|
|
241
241
|
applied_space_view == o.applied_space_view &&
|
242
242
|
available_from == o.available_from &&
|
243
243
|
available_until == o.available_until &&
|
244
|
-
|
244
|
+
billing_address_handling_mode == o.billing_address_handling_mode &&
|
245
245
|
currency == o.currency &&
|
246
246
|
language == o.language &&
|
247
247
|
line_items == o.line_items &&
|
248
248
|
maximal_number_of_transactions == o.maximal_number_of_transactions &&
|
249
249
|
name == o.name &&
|
250
|
-
|
250
|
+
shipping_address_handling_mode == o.shipping_address_handling_mode &&
|
251
251
|
state == o.state &&
|
252
252
|
external_id == o.external_id &&
|
253
253
|
protection_mode == o.protection_mode
|
@@ -262,7 +262,7 @@ module Wallee
|
|
262
262
|
# Calculates hash code according to all attributes.
|
263
263
|
# @return [Fixnum] Hash code
|
264
264
|
def hash
|
265
|
-
[allowed_payment_method_configurations, applied_space_view, available_from, available_until,
|
265
|
+
[allowed_payment_method_configurations, applied_space_view, available_from, available_until, billing_address_handling_mode, currency, language, line_items, maximal_number_of_transactions, name, shipping_address_handling_mode, state, external_id, protection_mode].hash
|
266
266
|
end
|
267
267
|
|
268
268
|
# Builds the object from hash
|
@@ -38,8 +38,8 @@ module Wallee
|
|
38
38
|
# The available from date defines the latest date on which the payment link can be used to initialize a transaction. When no date is specified there will be no restriction.
|
39
39
|
attr_accessor :available_until
|
40
40
|
|
41
|
-
#
|
42
|
-
attr_accessor :
|
41
|
+
# The billing address handling mode controls if the address is collected or not and how it is collected.
|
42
|
+
attr_accessor :billing_address_handling_mode
|
43
43
|
|
44
44
|
# The currency defines in which currency the payment is executed in. If no currency is defined it has to be specified within the request parameter 'currency'.
|
45
45
|
attr_accessor :currency
|
@@ -56,8 +56,8 @@ module Wallee
|
|
56
56
|
# The payment link name is used internally to identify the payment link. For example the name is used within search fields and hence it should be distinct and descriptive.
|
57
57
|
attr_accessor :name
|
58
58
|
|
59
|
-
#
|
60
|
-
attr_accessor :
|
59
|
+
# The shipping address handling mode controls if the address is collected or not and how it is collected.
|
60
|
+
attr_accessor :shipping_address_handling_mode
|
61
61
|
|
62
62
|
# Attribute mapping from ruby-style variable name to JSON key.
|
63
63
|
def self.attribute_map
|
@@ -68,13 +68,13 @@ module Wallee
|
|
68
68
|
:'applied_space_view' => :'appliedSpaceView',
|
69
69
|
:'available_from' => :'availableFrom',
|
70
70
|
:'available_until' => :'availableUntil',
|
71
|
-
:'
|
71
|
+
:'billing_address_handling_mode' => :'billingAddressHandlingMode',
|
72
72
|
:'currency' => :'currency',
|
73
73
|
:'language' => :'language',
|
74
74
|
:'line_items' => :'lineItems',
|
75
75
|
:'maximal_number_of_transactions' => :'maximalNumberOfTransactions',
|
76
76
|
:'name' => :'name',
|
77
|
-
:'
|
77
|
+
:'shipping_address_handling_mode' => :'shippingAddressHandlingMode'
|
78
78
|
}
|
79
79
|
end
|
80
80
|
|
@@ -87,13 +87,13 @@ module Wallee
|
|
87
87
|
:'applied_space_view' => :'Integer',
|
88
88
|
:'available_from' => :'DateTime',
|
89
89
|
:'available_until' => :'DateTime',
|
90
|
-
:'
|
90
|
+
:'billing_address_handling_mode' => :'PaymentLinkAddressHandlingMode',
|
91
91
|
:'currency' => :'String',
|
92
92
|
:'language' => :'String',
|
93
93
|
:'line_items' => :'Array<LineItemCreate>',
|
94
94
|
:'maximal_number_of_transactions' => :'Integer',
|
95
95
|
:'name' => :'String',
|
96
|
-
:'
|
96
|
+
:'shipping_address_handling_mode' => :'PaymentLinkAddressHandlingMode'
|
97
97
|
}
|
98
98
|
end
|
99
99
|
|
@@ -131,8 +131,8 @@ module Wallee
|
|
131
131
|
self.available_until = attributes[:'availableUntil']
|
132
132
|
end
|
133
133
|
|
134
|
-
if attributes.has_key?(:'
|
135
|
-
self.
|
134
|
+
if attributes.has_key?(:'billingAddressHandlingMode')
|
135
|
+
self.billing_address_handling_mode = attributes[:'billingAddressHandlingMode']
|
136
136
|
end
|
137
137
|
|
138
138
|
if attributes.has_key?(:'currency')
|
@@ -157,8 +157,8 @@ module Wallee
|
|
157
157
|
self.name = attributes[:'name']
|
158
158
|
end
|
159
159
|
|
160
|
-
if attributes.has_key?(:'
|
161
|
-
self.
|
160
|
+
if attributes.has_key?(:'shippingAddressHandlingMode')
|
161
|
+
self.shipping_address_handling_mode = attributes[:'shippingAddressHandlingMode']
|
162
162
|
end
|
163
163
|
end
|
164
164
|
|
@@ -211,13 +211,13 @@ module Wallee
|
|
211
211
|
applied_space_view == o.applied_space_view &&
|
212
212
|
available_from == o.available_from &&
|
213
213
|
available_until == o.available_until &&
|
214
|
-
|
214
|
+
billing_address_handling_mode == o.billing_address_handling_mode &&
|
215
215
|
currency == o.currency &&
|
216
216
|
language == o.language &&
|
217
217
|
line_items == o.line_items &&
|
218
218
|
maximal_number_of_transactions == o.maximal_number_of_transactions &&
|
219
219
|
name == o.name &&
|
220
|
-
|
220
|
+
shipping_address_handling_mode == o.shipping_address_handling_mode
|
221
221
|
end
|
222
222
|
|
223
223
|
# @see the `==` method
|
@@ -229,7 +229,7 @@ module Wallee
|
|
229
229
|
# Calculates hash code according to all attributes.
|
230
230
|
# @return [Fixnum] Hash code
|
231
231
|
def hash
|
232
|
-
[id, version, allowed_payment_method_configurations, applied_space_view, available_from, available_until,
|
232
|
+
[id, version, allowed_payment_method_configurations, applied_space_view, available_from, available_until, billing_address_handling_mode, currency, language, line_items, maximal_number_of_transactions, name, shipping_address_handling_mode].hash
|
233
233
|
end
|
234
234
|
|
235
235
|
# Builds the object from hash
|
@@ -179,26 +179,10 @@ module Wallee
|
|
179
179
|
invalid_properties.push('invalid value for "email_address", the character length must be smaller than or equal to 254.')
|
180
180
|
end
|
181
181
|
|
182
|
-
if !@family_name.nil? && @family_name.to_s.length > 100
|
183
|
-
invalid_properties.push('invalid value for "family_name", the character length must be smaller than or equal to 100.')
|
184
|
-
end
|
185
|
-
|
186
|
-
if !@given_name.nil? && @given_name.to_s.length > 100
|
187
|
-
invalid_properties.push('invalid value for "given_name", the character length must be smaller than or equal to 100.')
|
188
|
-
end
|
189
|
-
|
190
182
|
if !@mobile_phone_number.nil? && @mobile_phone_number.to_s.length > 100
|
191
183
|
invalid_properties.push('invalid value for "mobile_phone_number", the character length must be smaller than or equal to 100.')
|
192
184
|
end
|
193
185
|
|
194
|
-
if !@organization_name.nil? && @organization_name.to_s.length > 100
|
195
|
-
invalid_properties.push('invalid value for "organization_name", the character length must be smaller than or equal to 100.')
|
196
|
-
end
|
197
|
-
|
198
|
-
if !@phone_number.nil? && @phone_number.to_s.length > 100
|
199
|
-
invalid_properties.push('invalid value for "phone_number", the character length must be smaller than or equal to 100.')
|
200
|
-
end
|
201
|
-
|
202
186
|
if !@salutation.nil? && @salutation.to_s.length > 20
|
203
187
|
invalid_properties.push('invalid value for "salutation", the character length must be smaller than or equal to 20.')
|
204
188
|
end
|
@@ -215,11 +199,7 @@ module Wallee
|
|
215
199
|
def valid?
|
216
200
|
return false if !@dependent_locality.nil? && @dependent_locality.to_s.length > 100
|
217
201
|
return false if !@email_address.nil? && @email_address.to_s.length > 254
|
218
|
-
return false if !@family_name.nil? && @family_name.to_s.length > 100
|
219
|
-
return false if !@given_name.nil? && @given_name.to_s.length > 100
|
220
202
|
return false if !@mobile_phone_number.nil? && @mobile_phone_number.to_s.length > 100
|
221
|
-
return false if !@organization_name.nil? && @organization_name.to_s.length > 100
|
222
|
-
return false if !@phone_number.nil? && @phone_number.to_s.length > 100
|
223
203
|
return false if !@salutation.nil? && @salutation.to_s.length > 20
|
224
204
|
return false if !@sorting_code.nil? && @sorting_code.to_s.length > 100
|
225
205
|
true
|
@@ -245,26 +225,6 @@ module Wallee
|
|
245
225
|
@email_address = email_address
|
246
226
|
end
|
247
227
|
|
248
|
-
# Custom attribute writer method with validation
|
249
|
-
# @param [Object] family_name Value to be assigned
|
250
|
-
def family_name=(family_name)
|
251
|
-
if !family_name.nil? && family_name.to_s.length > 100
|
252
|
-
fail ArgumentError, 'invalid value for "family_name", the character length must be smaller than or equal to 100.'
|
253
|
-
end
|
254
|
-
|
255
|
-
@family_name = family_name
|
256
|
-
end
|
257
|
-
|
258
|
-
# Custom attribute writer method with validation
|
259
|
-
# @param [Object] given_name Value to be assigned
|
260
|
-
def given_name=(given_name)
|
261
|
-
if !given_name.nil? && given_name.to_s.length > 100
|
262
|
-
fail ArgumentError, 'invalid value for "given_name", the character length must be smaller than or equal to 100.'
|
263
|
-
end
|
264
|
-
|
265
|
-
@given_name = given_name
|
266
|
-
end
|
267
|
-
|
268
228
|
# Custom attribute writer method with validation
|
269
229
|
# @param [Object] mobile_phone_number Value to be assigned
|
270
230
|
def mobile_phone_number=(mobile_phone_number)
|
@@ -275,26 +235,6 @@ module Wallee
|
|
275
235
|
@mobile_phone_number = mobile_phone_number
|
276
236
|
end
|
277
237
|
|
278
|
-
# Custom attribute writer method with validation
|
279
|
-
# @param [Object] organization_name Value to be assigned
|
280
|
-
def organization_name=(organization_name)
|
281
|
-
if !organization_name.nil? && organization_name.to_s.length > 100
|
282
|
-
fail ArgumentError, 'invalid value for "organization_name", the character length must be smaller than or equal to 100.'
|
283
|
-
end
|
284
|
-
|
285
|
-
@organization_name = organization_name
|
286
|
-
end
|
287
|
-
|
288
|
-
# Custom attribute writer method with validation
|
289
|
-
# @param [Object] phone_number Value to be assigned
|
290
|
-
def phone_number=(phone_number)
|
291
|
-
if !phone_number.nil? && phone_number.to_s.length > 100
|
292
|
-
fail ArgumentError, 'invalid value for "phone_number", the character length must be smaller than or equal to 100.'
|
293
|
-
end
|
294
|
-
|
295
|
-
@phone_number = phone_number
|
296
|
-
end
|
297
|
-
|
298
238
|
# Custom attribute writer method with validation
|
299
239
|
# @param [Object] salutation Value to be assigned
|
300
240
|
def salutation=(salutation)
|
@@ -26,9 +26,6 @@ module Wallee
|
|
26
26
|
#
|
27
27
|
attr_accessor :default_configuration
|
28
28
|
|
29
|
-
#
|
30
|
-
attr_accessor :delivery_address
|
31
|
-
|
32
29
|
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
33
30
|
attr_accessor :id
|
34
31
|
|
@@ -52,7 +49,6 @@ module Wallee
|
|
52
49
|
{
|
53
50
|
:'contact_address' => :'contactAddress',
|
54
51
|
:'default_configuration' => :'defaultConfiguration',
|
55
|
-
:'delivery_address' => :'deliveryAddress',
|
56
52
|
:'id' => :'id',
|
57
53
|
:'linked_space_id' => :'linkedSpaceId',
|
58
54
|
:'name' => :'name',
|
@@ -65,9 +61,8 @@ module Wallee
|
|
65
61
|
# Attribute type mapping.
|
66
62
|
def self.swagger_types
|
67
63
|
{
|
68
|
-
:'contact_address' => :'
|
64
|
+
:'contact_address' => :'PaymentTerminalAddress',
|
69
65
|
:'default_configuration' => :'PaymentTerminalConfiguration',
|
70
|
-
:'delivery_address' => :'PaymentTerminalAddress',
|
71
66
|
:'id' => :'Integer',
|
72
67
|
:'linked_space_id' => :'Integer',
|
73
68
|
:'name' => :'String',
|
@@ -93,10 +88,6 @@ module Wallee
|
|
93
88
|
self.default_configuration = attributes[:'defaultConfiguration']
|
94
89
|
end
|
95
90
|
|
96
|
-
if attributes.has_key?(:'deliveryAddress')
|
97
|
-
self.delivery_address = attributes[:'deliveryAddress']
|
98
|
-
end
|
99
|
-
|
100
91
|
if attributes.has_key?(:'id')
|
101
92
|
self.id = attributes[:'id']
|
102
93
|
end
|
@@ -157,7 +148,6 @@ module Wallee
|
|
157
148
|
self.class == o.class &&
|
158
149
|
contact_address == o.contact_address &&
|
159
150
|
default_configuration == o.default_configuration &&
|
160
|
-
delivery_address == o.delivery_address &&
|
161
151
|
id == o.id &&
|
162
152
|
linked_space_id == o.linked_space_id &&
|
163
153
|
name == o.name &&
|
@@ -175,7 +165,7 @@ module Wallee
|
|
175
165
|
# Calculates hash code according to all attributes.
|
176
166
|
# @return [Fixnum] Hash code
|
177
167
|
def hash
|
178
|
-
[contact_address, default_configuration,
|
168
|
+
[contact_address, default_configuration, id, linked_space_id, name, planned_purge_date, state, version].hash
|
179
169
|
end
|
180
170
|
|
181
171
|
# Builds the object from hash
|