wallee-ruby-sdk 2.2.3 → 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +1 -1
  4. data/lib/wallee-ruby-sdk.rb +63 -8
  5. data/lib/wallee-ruby-sdk/api/bank_account_service_api.rb +213 -0
  6. data/lib/wallee-ruby-sdk/api/bank_transaction_service_api.rb +213 -0
  7. data/lib/wallee-ruby-sdk/api/charge_bank_transaction_service_api.rb +213 -0
  8. data/lib/wallee-ruby-sdk/api/currency_bank_account_service_api.rb +213 -0
  9. data/lib/wallee-ruby-sdk/api/external_transfer_bank_transaction_service_api.rb +213 -0
  10. data/lib/wallee-ruby-sdk/api/internal_transfer_bank_transaction_service_api.rb +213 -0
  11. data/lib/wallee-ruby-sdk/api/payment_terminal_till_service_api.rb +170 -0
  12. data/lib/wallee-ruby-sdk/api/refund_bank_transaction_service_api.rb +213 -0
  13. data/lib/wallee-ruby-sdk/api/refund_recovery_bank_transaction_service_api.rb +213 -0
  14. data/lib/wallee-ruby-sdk/api/shopify_subscriber_service_api.rb +62 -0
  15. data/lib/wallee-ruby-sdk/api/shopify_subscription_service_api.rb +124 -0
  16. data/lib/wallee-ruby-sdk/api/shopify_transaction_service_api.rb +213 -0
  17. data/lib/wallee-ruby-sdk/api/subscriber_service_api.rb +3 -3
  18. data/lib/wallee-ruby-sdk/api/subscription_service_api.rb +67 -0
  19. data/lib/wallee-ruby-sdk/api/token_service_api.rb +189 -0
  20. data/lib/wallee-ruby-sdk/api/transaction_terminal_service_api.rb +21 -32
  21. data/lib/wallee-ruby-sdk/api/web_app_service_api.rb +200 -0
  22. data/lib/wallee-ruby-sdk/api_client.rb +7 -4
  23. data/lib/wallee-ruby-sdk/configuration.rb +2 -2
  24. data/lib/wallee-ruby-sdk/models/abstract_account_update.rb +11 -1
  25. data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +15 -15
  26. data/lib/wallee-ruby-sdk/models/{abstract_shopify_subscription_product_active.rb → abstract_shopify_subscription_product_update.rb} +2 -12
  27. data/lib/wallee-ruby-sdk/models/abstract_space_update.rb +11 -1
  28. data/lib/wallee-ruby-sdk/models/abstract_subscription_product_active.rb +11 -1
  29. data/lib/wallee-ruby-sdk/models/abstract_transaction_pending.rb +59 -1
  30. data/lib/wallee-ruby-sdk/models/abstract_webhook_url_update.rb +24 -0
  31. data/lib/wallee-ruby-sdk/models/account.rb +31 -1
  32. data/lib/wallee-ruby-sdk/models/account_create.rb +11 -1
  33. data/lib/wallee-ruby-sdk/models/account_update.rb +11 -1
  34. data/lib/wallee-ruby-sdk/models/authenticated_card_data.rb +221 -0
  35. data/lib/wallee-ruby-sdk/models/{unencrypted_card_data.rb → authenticated_card_data_create.rb} +86 -12
  36. data/lib/wallee-ruby-sdk/models/bank_account.rb +291 -0
  37. data/lib/wallee-ruby-sdk/models/bank_account_environment.rb +35 -0
  38. data/lib/wallee-ruby-sdk/models/bank_account_state.rb +37 -0
  39. data/lib/wallee-ruby-sdk/models/bank_account_type.rb +227 -0
  40. data/lib/wallee-ruby-sdk/models/bank_transaction.rb +387 -0
  41. data/lib/wallee-ruby-sdk/models/bank_transaction_flow_direction.rb +35 -0
  42. data/lib/wallee-ruby-sdk/models/bank_transaction_source.rb +215 -0
  43. data/lib/wallee-ruby-sdk/models/bank_transaction_state.rb +35 -0
  44. data/lib/wallee-ruby-sdk/models/bank_transaction_type.rb +215 -0
  45. data/lib/wallee-ruby-sdk/models/card_authentication_response.rb +38 -0
  46. data/lib/wallee-ruby-sdk/models/card_authentication_version.rb +35 -0
  47. data/lib/wallee-ruby-sdk/models/card_cryptogram.rb +201 -0
  48. data/lib/wallee-ruby-sdk/models/card_cryptogram_create.rb +211 -0
  49. data/lib/wallee-ruby-sdk/models/card_cryptogram_type.rb +34 -0
  50. data/lib/wallee-ruby-sdk/models/cardholder_authentication.rb +231 -0
  51. data/lib/wallee-ruby-sdk/models/cardholder_authentication_create.rb +241 -0
  52. data/lib/wallee-ruby-sdk/models/charge_attempt.rb +11 -1
  53. data/lib/wallee-ruby-sdk/models/charge_bank_transaction.rb +291 -0
  54. data/lib/wallee-ruby-sdk/models/currency_bank_account.rb +241 -0
  55. data/lib/wallee-ruby-sdk/models/debt_collection_case.rb +1 -1
  56. data/lib/wallee-ruby-sdk/models/debt_collection_case_create.rb +1 -1
  57. data/lib/wallee-ruby-sdk/models/external_transfer_bank_transaction.rb +251 -0
  58. data/lib/wallee-ruby-sdk/models/internal_transfer_bank_transaction.rb +231 -0
  59. data/lib/wallee-ruby-sdk/models/payment_adjustment.rb +231 -0
  60. data/lib/wallee-ruby-sdk/models/payment_adjustment_type.rb +215 -0
  61. data/lib/wallee-ruby-sdk/models/payment_connector_configuration.rb +13 -1
  62. data/lib/wallee-ruby-sdk/models/payment_contract.rb +1 -25
  63. data/lib/wallee-ruby-sdk/models/payment_link.rb +16 -40
  64. data/lib/wallee-ruby-sdk/models/payment_link_active.rb +15 -15
  65. data/lib/wallee-ruby-sdk/models/payment_link_address_handling_mode.rb +36 -0
  66. data/lib/wallee-ruby-sdk/models/payment_link_create.rb +16 -44
  67. data/lib/wallee-ruby-sdk/models/payment_link_update.rb +15 -15
  68. data/lib/wallee-ruby-sdk/models/payment_terminal.rb +11 -1
  69. data/lib/wallee-ruby-sdk/models/payment_terminal_address.rb +0 -60
  70. data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version.rb +11 -1
  71. data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +2 -22
  72. data/lib/wallee-ruby-sdk/models/payment_terminal_receipt_type.rb +215 -0
  73. data/lib/wallee-ruby-sdk/models/permission.rb +14 -4
  74. data/lib/wallee-ruby-sdk/models/recurring_indicator.rb +37 -0
  75. data/lib/wallee-ruby-sdk/models/refund_bank_transaction.rb +281 -0
  76. data/lib/wallee-ruby-sdk/models/refund_recovery_bank_transaction.rb +293 -0
  77. data/lib/wallee-ruby-sdk/models/rendered_terminal_receipt.rb +26 -6
  78. data/lib/wallee-ruby-sdk/models/role.rb +1 -1
  79. data/lib/wallee-ruby-sdk/models/role_state.rb +37 -0
  80. data/lib/wallee-ruby-sdk/models/sales_channel.rb +34 -4
  81. data/lib/wallee-ruby-sdk/models/shopify_additional_line_item_data.rb +35 -0
  82. data/lib/wallee-ruby-sdk/models/shopify_integration.rb +73 -31
  83. data/lib/wallee-ruby-sdk/models/shopify_integration_payment_app_version.rb +34 -0
  84. data/lib/wallee-ruby-sdk/models/{shopify_integration_app_version.rb → shopify_integration_subscription_app_version.rb} +3 -3
  85. data/lib/wallee-ruby-sdk/models/shopify_subscriber.rb +1 -1
  86. data/lib/wallee-ruby-sdk/models/shopify_subscriber_active.rb +241 -0
  87. data/lib/wallee-ruby-sdk/models/shopify_subscriber_creation.rb +216 -0
  88. data/lib/wallee-ruby-sdk/models/shopify_subscription.rb +61 -7
  89. data/lib/wallee-ruby-sdk/models/shopify_subscription_address.rb +0 -60
  90. data/lib/wallee-ruby-sdk/models/{payment_terminal_contact_address.rb → shopify_subscription_address_create.rb} +152 -2
  91. data/lib/wallee-ruby-sdk/models/shopify_subscription_creation_request.rb +363 -0
  92. data/lib/wallee-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +271 -0
  93. data/lib/wallee-ruby-sdk/models/{shopify_subscription_edit_model_item.rb → shopify_subscription_model_item.rb} +2 -2
  94. data/lib/wallee-ruby-sdk/models/{shopify_subscription_edit_model_tax_line.rb → shopify_subscription_model_tax_line.rb} +1 -1
  95. data/lib/wallee-ruby-sdk/models/shopify_subscription_product_create.rb +9 -14
  96. data/lib/wallee-ruby-sdk/models/{shopify_subscription_product_active.rb → shopify_subscription_product_update.rb} +2 -12
  97. data/lib/wallee-ruby-sdk/models/shopify_subscription_update_addresses_request.rb +211 -0
  98. data/lib/wallee-ruby-sdk/models/shopify_subscription_update_request.rb +11 -81
  99. data/lib/wallee-ruby-sdk/models/shopify_subscription_version.rb +11 -1
  100. data/lib/wallee-ruby-sdk/models/space.rb +31 -1
  101. data/lib/wallee-ruby-sdk/models/space_create.rb +11 -1
  102. data/lib/wallee-ruby-sdk/models/space_update.rb +11 -1
  103. data/lib/wallee-ruby-sdk/models/subscriber.rb +1 -1
  104. data/lib/wallee-ruby-sdk/models/subscriber_create.rb +1 -1
  105. data/lib/wallee-ruby-sdk/models/subscription.rb +11 -1
  106. data/lib/wallee-ruby-sdk/models/subscription_affiliate.rb +1 -25
  107. data/lib/wallee-ruby-sdk/models/subscription_affiliate_create.rb +1 -29
  108. data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleted.rb +1 -25
  109. data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleting.rb +1 -25
  110. data/lib/wallee-ruby-sdk/models/subscription_charge.rb +49 -1
  111. data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +49 -1
  112. data/lib/wallee-ruby-sdk/models/subscription_create_request.rb +1 -1
  113. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry.rb +12 -2
  114. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_create.rb +1 -1
  115. data/lib/wallee-ruby-sdk/models/subscription_product.rb +11 -1
  116. data/lib/wallee-ruby-sdk/models/subscription_product_active.rb +11 -1
  117. data/lib/wallee-ruby-sdk/models/subscription_product_component.rb +1 -1
  118. data/lib/wallee-ruby-sdk/models/subscription_product_component_update.rb +1 -1
  119. data/lib/wallee-ruby-sdk/models/subscription_product_create.rb +11 -1
  120. data/lib/wallee-ruby-sdk/models/subscription_product_version.rb +11 -1
  121. data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +14 -4
  122. data/lib/wallee-ruby-sdk/models/subscription_update_request.rb +206 -0
  123. data/lib/wallee-ruby-sdk/models/tax_calculation.rb +35 -0
  124. data/lib/wallee-ruby-sdk/models/terminal_receipt_fetch_request.rb +221 -0
  125. data/lib/wallee-ruby-sdk/models/terminal_receipt_format.rb +35 -0
  126. data/lib/wallee-ruby-sdk/models/token.rb +1 -25
  127. data/lib/wallee-ruby-sdk/models/token_create.rb +1 -29
  128. data/lib/wallee-ruby-sdk/models/tokenized_card_data.rb +211 -0
  129. data/lib/wallee-ruby-sdk/models/{unencrypted_card_data_create.rb → tokenized_card_data_create.rb} +60 -5
  130. data/lib/wallee-ruby-sdk/models/transaction.rb +132 -4
  131. data/lib/wallee-ruby-sdk/models/transaction_completion.rb +26 -1
  132. data/lib/wallee-ruby-sdk/models/transaction_completion_behavior.rb +36 -0
  133. data/lib/wallee-ruby-sdk/models/transaction_completion_request.rb +26 -1
  134. data/lib/wallee-ruby-sdk/models/transaction_create.rb +59 -1
  135. data/lib/wallee-ruby-sdk/models/transaction_pending.rb +59 -1
  136. data/lib/wallee-ruby-sdk/models/web_app_confirmation_request.rb +206 -0
  137. data/lib/wallee-ruby-sdk/models/web_app_confirmation_response.rb +231 -0
  138. data/lib/wallee-ruby-sdk/models/webhook_url.rb +35 -1
  139. data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +24 -0
  140. data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +24 -0
  141. data/lib/wallee-ruby-sdk/version.rb +1 -1
  142. data/test/condition_type_service_test.rb +22 -0
  143. data/wallee-ruby-sdk.gemspec +3 -2
  144. metadata +93 -17
@@ -26,11 +26,20 @@ module Wallee
26
26
  #
27
27
  attr_accessor :created_on
28
28
 
29
+ # The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity.
30
+ attr_accessor :external_id
31
+
29
32
  # The ID is the primary key of the entity. The ID identifies the entity uniquely.
30
33
  attr_accessor :id
31
34
 
32
35
  #
33
- attr_accessor :initial_transaction
36
+ attr_accessor :initial_execution_date
37
+
38
+ #
39
+ attr_accessor :initial_payment_transaction
40
+
41
+ #
42
+ attr_accessor :initial_shopify_transaction
34
43
 
35
44
  #
36
45
  attr_accessor :language
@@ -67,8 +76,11 @@ module Wallee
67
76
  {
68
77
  :'created_by' => :'createdBy',
69
78
  :'created_on' => :'createdOn',
79
+ :'external_id' => :'externalId',
70
80
  :'id' => :'id',
71
- :'initial_transaction' => :'initialTransaction',
81
+ :'initial_execution_date' => :'initialExecutionDate',
82
+ :'initial_payment_transaction' => :'initialPaymentTransaction',
83
+ :'initial_shopify_transaction' => :'initialShopifyTransaction',
72
84
  :'language' => :'language',
73
85
  :'linked_space_id' => :'linkedSpaceId',
74
86
  :'order_recurrence_number' => :'orderRecurrenceNumber',
@@ -87,8 +99,11 @@ module Wallee
87
99
  {
88
100
  :'created_by' => :'Integer',
89
101
  :'created_on' => :'DateTime',
102
+ :'external_id' => :'String',
90
103
  :'id' => :'Integer',
91
- :'initial_transaction' => :'Integer',
104
+ :'initial_execution_date' => :'DateTime',
105
+ :'initial_payment_transaction' => :'Integer',
106
+ :'initial_shopify_transaction' => :'Integer',
92
107
  :'language' => :'String',
93
108
  :'linked_space_id' => :'Integer',
94
109
  :'order_recurrence_number' => :'Integer',
@@ -118,12 +133,24 @@ module Wallee
118
133
  self.created_on = attributes[:'createdOn']
119
134
  end
120
135
 
136
+ if attributes.has_key?(:'externalId')
137
+ self.external_id = attributes[:'externalId']
138
+ end
139
+
121
140
  if attributes.has_key?(:'id')
122
141
  self.id = attributes[:'id']
123
142
  end
124
143
 
125
- if attributes.has_key?(:'initialTransaction')
126
- self.initial_transaction = attributes[:'initialTransaction']
144
+ if attributes.has_key?(:'initialExecutionDate')
145
+ self.initial_execution_date = attributes[:'initialExecutionDate']
146
+ end
147
+
148
+ if attributes.has_key?(:'initialPaymentTransaction')
149
+ self.initial_payment_transaction = attributes[:'initialPaymentTransaction']
150
+ end
151
+
152
+ if attributes.has_key?(:'initialShopifyTransaction')
153
+ self.initial_shopify_transaction = attributes[:'initialShopifyTransaction']
127
154
  end
128
155
 
129
156
  if attributes.has_key?(:'language')
@@ -171,15 +198,39 @@ module Wallee
171
198
  # @return Array for valid properties with the reasons
172
199
  def list_invalid_properties
173
200
  invalid_properties = Array.new
201
+ if !@external_id.nil? && @external_id.to_s.length > 100
202
+ invalid_properties.push('invalid value for "external_id", the character length must be smaller than or equal to 100.')
203
+ end
204
+
205
+ if !@external_id.nil? && @external_id.to_s.length < 1
206
+ invalid_properties.push('invalid value for "external_id", the character length must be great than or equal to 1.')
207
+ end
208
+
174
209
  invalid_properties
175
210
  end
176
211
 
177
212
  # Check to see if the all the properties in the model are valid
178
213
  # @return true if the model is valid
179
214
  def valid?
215
+ return false if !@external_id.nil? && @external_id.to_s.length > 100
216
+ return false if !@external_id.nil? && @external_id.to_s.length < 1
180
217
  true
181
218
  end
182
219
 
220
+ # Custom attribute writer method with validation
221
+ # @param [Object] external_id Value to be assigned
222
+ def external_id=(external_id)
223
+ if !external_id.nil? && external_id.to_s.length > 100
224
+ fail ArgumentError, 'invalid value for "external_id", the character length must be smaller than or equal to 100.'
225
+ end
226
+
227
+ if !external_id.nil? && external_id.to_s.length < 1
228
+ fail ArgumentError, 'invalid value for "external_id", the character length must be great than or equal to 1.'
229
+ end
230
+
231
+ @external_id = external_id
232
+ end
233
+
183
234
  # Checks equality by comparing each attribute.
184
235
  # @param [Object] Object to be compared
185
236
  def ==(o)
@@ -187,8 +238,11 @@ module Wallee
187
238
  self.class == o.class &&
188
239
  created_by == o.created_by &&
189
240
  created_on == o.created_on &&
241
+ external_id == o.external_id &&
190
242
  id == o.id &&
191
- initial_transaction == o.initial_transaction &&
243
+ initial_execution_date == o.initial_execution_date &&
244
+ initial_payment_transaction == o.initial_payment_transaction &&
245
+ initial_shopify_transaction == o.initial_shopify_transaction &&
192
246
  language == o.language &&
193
247
  linked_space_id == o.linked_space_id &&
194
248
  order_recurrence_number == o.order_recurrence_number &&
@@ -210,7 +264,7 @@ module Wallee
210
264
  # Calculates hash code according to all attributes.
211
265
  # @return [Fixnum] Hash code
212
266
  def hash
213
- [created_by, created_on, id, initial_transaction, language, linked_space_id, order_recurrence_number, shop, state, subscriber, terminated_by, terminated_on, termination_request_date, version].hash
267
+ [created_by, created_on, external_id, id, initial_execution_date, initial_payment_transaction, initial_shopify_transaction, language, linked_space_id, order_recurrence_number, shop, state, subscriber, terminated_by, terminated_on, termination_request_date, version].hash
214
268
  end
215
269
 
216
270
  # Builds the object from hash
@@ -225,10 +225,6 @@ module Wallee
225
225
  # @return Array for valid properties with the reasons
226
226
  def list_invalid_properties
227
227
  invalid_properties = Array.new
228
- if !@city.nil? && @city.to_s.length > 100
229
- invalid_properties.push('invalid value for "city", the character length must be smaller than or equal to 100.')
230
- end
231
-
232
228
  if !@commercial_register_number.nil? && @commercial_register_number.to_s.length > 100
233
229
  invalid_properties.push('invalid value for "commercial_register_number", the character length must be smaller than or equal to 100.')
234
230
  end
@@ -241,10 +237,6 @@ module Wallee
241
237
  invalid_properties.push('invalid value for "email_address", the character length must be smaller than or equal to 254.')
242
238
  end
243
239
 
244
- if !@family_name.nil? && @family_name.to_s.length > 100
245
- invalid_properties.push('invalid value for "family_name", the character length must be smaller than or equal to 100.')
246
- end
247
-
248
240
  if !@given_name.nil? && @given_name.to_s.length > 100
249
241
  invalid_properties.push('invalid value for "given_name", the character length must be smaller than or equal to 100.')
250
242
  end
@@ -261,10 +253,6 @@ module Wallee
261
253
  invalid_properties.push('invalid value for "phone_number", the character length must be smaller than or equal to 100.')
262
254
  end
263
255
 
264
- if !@postcode.nil? && @postcode.to_s.length > 40
265
- invalid_properties.push('invalid value for "postcode", the character length must be smaller than or equal to 40.')
266
- end
267
-
268
256
  if !@sales_tax_number.nil? && @sales_tax_number.to_s.length > 100
269
257
  invalid_properties.push('invalid value for "sales_tax_number", the character length must be smaller than or equal to 100.')
270
258
  end
@@ -281,44 +269,26 @@ module Wallee
281
269
  invalid_properties.push('invalid value for "sorting_code", the character length must be smaller than or equal to 100.')
282
270
  end
283
271
 
284
- if !@street.nil? && @street.to_s.length > 300
285
- invalid_properties.push('invalid value for "street", the character length must be smaller than or equal to 300.')
286
- end
287
-
288
272
  invalid_properties
289
273
  end
290
274
 
291
275
  # Check to see if the all the properties in the model are valid
292
276
  # @return true if the model is valid
293
277
  def valid?
294
- return false if !@city.nil? && @city.to_s.length > 100
295
278
  return false if !@commercial_register_number.nil? && @commercial_register_number.to_s.length > 100
296
279
  return false if !@dependent_locality.nil? && @dependent_locality.to_s.length > 100
297
280
  return false if !@email_address.nil? && @email_address.to_s.length > 254
298
- return false if !@family_name.nil? && @family_name.to_s.length > 100
299
281
  return false if !@given_name.nil? && @given_name.to_s.length > 100
300
282
  return false if !@mobile_phone_number.nil? && @mobile_phone_number.to_s.length > 100
301
283
  return false if !@organization_name.nil? && @organization_name.to_s.length > 100
302
284
  return false if !@phone_number.nil? && @phone_number.to_s.length > 100
303
- return false if !@postcode.nil? && @postcode.to_s.length > 40
304
285
  return false if !@sales_tax_number.nil? && @sales_tax_number.to_s.length > 100
305
286
  return false if !@salutation.nil? && @salutation.to_s.length > 20
306
287
  return false if !@social_security_number.nil? && @social_security_number.to_s.length > 100
307
288
  return false if !@sorting_code.nil? && @sorting_code.to_s.length > 100
308
- return false if !@street.nil? && @street.to_s.length > 300
309
289
  true
310
290
  end
311
291
 
312
- # Custom attribute writer method with validation
313
- # @param [Object] city Value to be assigned
314
- def city=(city)
315
- if !city.nil? && city.to_s.length > 100
316
- fail ArgumentError, 'invalid value for "city", the character length must be smaller than or equal to 100.'
317
- end
318
-
319
- @city = city
320
- end
321
-
322
292
  # Custom attribute writer method with validation
323
293
  # @param [Object] commercial_register_number Value to be assigned
324
294
  def commercial_register_number=(commercial_register_number)
@@ -349,16 +319,6 @@ module Wallee
349
319
  @email_address = email_address
350
320
  end
351
321
 
352
- # Custom attribute writer method with validation
353
- # @param [Object] family_name Value to be assigned
354
- def family_name=(family_name)
355
- if !family_name.nil? && family_name.to_s.length > 100
356
- fail ArgumentError, 'invalid value for "family_name", the character length must be smaller than or equal to 100.'
357
- end
358
-
359
- @family_name = family_name
360
- end
361
-
362
322
  # Custom attribute writer method with validation
363
323
  # @param [Object] given_name Value to be assigned
364
324
  def given_name=(given_name)
@@ -399,16 +359,6 @@ module Wallee
399
359
  @phone_number = phone_number
400
360
  end
401
361
 
402
- # Custom attribute writer method with validation
403
- # @param [Object] postcode Value to be assigned
404
- def postcode=(postcode)
405
- if !postcode.nil? && postcode.to_s.length > 40
406
- fail ArgumentError, 'invalid value for "postcode", the character length must be smaller than or equal to 40.'
407
- end
408
-
409
- @postcode = postcode
410
- end
411
-
412
362
  # Custom attribute writer method with validation
413
363
  # @param [Object] sales_tax_number Value to be assigned
414
364
  def sales_tax_number=(sales_tax_number)
@@ -449,16 +399,6 @@ module Wallee
449
399
  @sorting_code = sorting_code
450
400
  end
451
401
 
452
- # Custom attribute writer method with validation
453
- # @param [Object] street Value to be assigned
454
- def street=(street)
455
- if !street.nil? && street.to_s.length > 300
456
- fail ArgumentError, 'invalid value for "street", the character length must be smaller than or equal to 300.'
457
- end
458
-
459
- @street = street
460
- end
461
-
462
402
  # Checks equality by comparing each attribute.
463
403
  # @param [Object] Object to be compared
464
404
  def ==(o)
@@ -19,13 +19,19 @@ require 'date'
19
19
 
20
20
  module Wallee
21
21
  #
22
- class PaymentTerminalContactAddress
22
+ class ShopifySubscriptionAddressCreate
23
23
  #
24
24
  attr_accessor :city
25
25
 
26
+ #
27
+ attr_accessor :commercial_register_number
28
+
26
29
  #
27
30
  attr_accessor :country
28
31
 
32
+ #
33
+ attr_accessor :date_of_birth
34
+
29
35
  #
30
36
  attr_accessor :dependent_locality
31
37
 
@@ -35,9 +41,15 @@ module Wallee
35
41
  #
36
42
  attr_accessor :family_name
37
43
 
44
+ #
45
+ attr_accessor :gender
46
+
38
47
  #
39
48
  attr_accessor :given_name
40
49
 
50
+ #
51
+ attr_accessor :legal_organization_form
52
+
41
53
  #
42
54
  attr_accessor :mobile_phone_number
43
55
 
@@ -53,9 +65,15 @@ module Wallee
53
65
  #
54
66
  attr_accessor :postcode
55
67
 
68
+ #
69
+ attr_accessor :sales_tax_number
70
+
56
71
  #
57
72
  attr_accessor :salutation
58
73
 
74
+ #
75
+ attr_accessor :social_security_number
76
+
59
77
  # The sorting code identifies the post office at which the post box is located in.
60
78
  attr_accessor :sorting_code
61
79
 
@@ -66,17 +84,23 @@ module Wallee
66
84
  def self.attribute_map
67
85
  {
68
86
  :'city' => :'city',
87
+ :'commercial_register_number' => :'commercialRegisterNumber',
69
88
  :'country' => :'country',
89
+ :'date_of_birth' => :'dateOfBirth',
70
90
  :'dependent_locality' => :'dependentLocality',
71
91
  :'email_address' => :'emailAddress',
72
92
  :'family_name' => :'familyName',
93
+ :'gender' => :'gender',
73
94
  :'given_name' => :'givenName',
95
+ :'legal_organization_form' => :'legalOrganizationForm',
74
96
  :'mobile_phone_number' => :'mobilePhoneNumber',
75
97
  :'organization_name' => :'organizationName',
76
98
  :'phone_number' => :'phoneNumber',
77
99
  :'postal_state' => :'postalState',
78
100
  :'postcode' => :'postcode',
101
+ :'sales_tax_number' => :'salesTaxNumber',
79
102
  :'salutation' => :'salutation',
103
+ :'social_security_number' => :'socialSecurityNumber',
80
104
  :'sorting_code' => :'sortingCode',
81
105
  :'street' => :'street'
82
106
  }
@@ -86,17 +110,23 @@ module Wallee
86
110
  def self.swagger_types
87
111
  {
88
112
  :'city' => :'String',
113
+ :'commercial_register_number' => :'String',
89
114
  :'country' => :'String',
115
+ :'date_of_birth' => :'Date',
90
116
  :'dependent_locality' => :'String',
91
117
  :'email_address' => :'String',
92
118
  :'family_name' => :'String',
119
+ :'gender' => :'Gender',
93
120
  :'given_name' => :'String',
121
+ :'legal_organization_form' => :'Integer',
94
122
  :'mobile_phone_number' => :'String',
95
123
  :'organization_name' => :'String',
96
124
  :'phone_number' => :'String',
97
125
  :'postal_state' => :'String',
98
126
  :'postcode' => :'String',
127
+ :'sales_tax_number' => :'String',
99
128
  :'salutation' => :'String',
129
+ :'social_security_number' => :'String',
100
130
  :'sorting_code' => :'String',
101
131
  :'street' => :'String'
102
132
  }
@@ -114,10 +144,18 @@ module Wallee
114
144
  self.city = attributes[:'city']
115
145
  end
116
146
 
147
+ if attributes.has_key?(:'commercialRegisterNumber')
148
+ self.commercial_register_number = attributes[:'commercialRegisterNumber']
149
+ end
150
+
117
151
  if attributes.has_key?(:'country')
118
152
  self.country = attributes[:'country']
119
153
  end
120
154
 
155
+ if attributes.has_key?(:'dateOfBirth')
156
+ self.date_of_birth = attributes[:'dateOfBirth']
157
+ end
158
+
121
159
  if attributes.has_key?(:'dependentLocality')
122
160
  self.dependent_locality = attributes[:'dependentLocality']
123
161
  end
@@ -130,10 +168,18 @@ module Wallee
130
168
  self.family_name = attributes[:'familyName']
131
169
  end
132
170
 
171
+ if attributes.has_key?(:'gender')
172
+ self.gender = attributes[:'gender']
173
+ end
174
+
133
175
  if attributes.has_key?(:'givenName')
134
176
  self.given_name = attributes[:'givenName']
135
177
  end
136
178
 
179
+ if attributes.has_key?(:'legalOrganizationForm')
180
+ self.legal_organization_form = attributes[:'legalOrganizationForm']
181
+ end
182
+
137
183
  if attributes.has_key?(:'mobilePhoneNumber')
138
184
  self.mobile_phone_number = attributes[:'mobilePhoneNumber']
139
185
  end
@@ -154,10 +200,18 @@ module Wallee
154
200
  self.postcode = attributes[:'postcode']
155
201
  end
156
202
 
203
+ if attributes.has_key?(:'salesTaxNumber')
204
+ self.sales_tax_number = attributes[:'salesTaxNumber']
205
+ end
206
+
157
207
  if attributes.has_key?(:'salutation')
158
208
  self.salutation = attributes[:'salutation']
159
209
  end
160
210
 
211
+ if attributes.has_key?(:'socialSecurityNumber')
212
+ self.social_security_number = attributes[:'socialSecurityNumber']
213
+ end
214
+
161
215
  if attributes.has_key?(:'sortingCode')
162
216
  self.sorting_code = attributes[:'sortingCode']
163
217
  end
@@ -171,6 +225,10 @@ module Wallee
171
225
  # @return Array for valid properties with the reasons
172
226
  def list_invalid_properties
173
227
  invalid_properties = Array.new
228
+ if !@commercial_register_number.nil? && @commercial_register_number.to_s.length > 100
229
+ invalid_properties.push('invalid value for "commercial_register_number", the character length must be smaller than or equal to 100.')
230
+ end
231
+
174
232
  if !@dependent_locality.nil? && @dependent_locality.to_s.length > 100
175
233
  invalid_properties.push('invalid value for "dependent_locality", the character length must be smaller than or equal to 100.')
176
234
  end
@@ -179,14 +237,34 @@ module Wallee
179
237
  invalid_properties.push('invalid value for "email_address", the character length must be smaller than or equal to 254.')
180
238
  end
181
239
 
240
+ if !@given_name.nil? && @given_name.to_s.length > 100
241
+ invalid_properties.push('invalid value for "given_name", the character length must be smaller than or equal to 100.')
242
+ end
243
+
182
244
  if !@mobile_phone_number.nil? && @mobile_phone_number.to_s.length > 100
183
245
  invalid_properties.push('invalid value for "mobile_phone_number", the character length must be smaller than or equal to 100.')
184
246
  end
185
247
 
248
+ if !@organization_name.nil? && @organization_name.to_s.length > 100
249
+ invalid_properties.push('invalid value for "organization_name", the character length must be smaller than or equal to 100.')
250
+ end
251
+
252
+ if !@phone_number.nil? && @phone_number.to_s.length > 100
253
+ invalid_properties.push('invalid value for "phone_number", the character length must be smaller than or equal to 100.')
254
+ end
255
+
256
+ if !@sales_tax_number.nil? && @sales_tax_number.to_s.length > 100
257
+ invalid_properties.push('invalid value for "sales_tax_number", the character length must be smaller than or equal to 100.')
258
+ end
259
+
186
260
  if !@salutation.nil? && @salutation.to_s.length > 20
187
261
  invalid_properties.push('invalid value for "salutation", the character length must be smaller than or equal to 20.')
188
262
  end
189
263
 
264
+ if !@social_security_number.nil? && @social_security_number.to_s.length > 100
265
+ invalid_properties.push('invalid value for "social_security_number", the character length must be smaller than or equal to 100.')
266
+ end
267
+
190
268
  if !@sorting_code.nil? && @sorting_code.to_s.length > 100
191
269
  invalid_properties.push('invalid value for "sorting_code", the character length must be smaller than or equal to 100.')
192
270
  end
@@ -197,14 +275,30 @@ module Wallee
197
275
  # Check to see if the all the properties in the model are valid
198
276
  # @return true if the model is valid
199
277
  def valid?
278
+ return false if !@commercial_register_number.nil? && @commercial_register_number.to_s.length > 100
200
279
  return false if !@dependent_locality.nil? && @dependent_locality.to_s.length > 100
201
280
  return false if !@email_address.nil? && @email_address.to_s.length > 254
281
+ return false if !@given_name.nil? && @given_name.to_s.length > 100
202
282
  return false if !@mobile_phone_number.nil? && @mobile_phone_number.to_s.length > 100
283
+ return false if !@organization_name.nil? && @organization_name.to_s.length > 100
284
+ return false if !@phone_number.nil? && @phone_number.to_s.length > 100
285
+ return false if !@sales_tax_number.nil? && @sales_tax_number.to_s.length > 100
203
286
  return false if !@salutation.nil? && @salutation.to_s.length > 20
287
+ return false if !@social_security_number.nil? && @social_security_number.to_s.length > 100
204
288
  return false if !@sorting_code.nil? && @sorting_code.to_s.length > 100
205
289
  true
206
290
  end
207
291
 
292
+ # Custom attribute writer method with validation
293
+ # @param [Object] commercial_register_number Value to be assigned
294
+ def commercial_register_number=(commercial_register_number)
295
+ if !commercial_register_number.nil? && commercial_register_number.to_s.length > 100
296
+ fail ArgumentError, 'invalid value for "commercial_register_number", the character length must be smaller than or equal to 100.'
297
+ end
298
+
299
+ @commercial_register_number = commercial_register_number
300
+ end
301
+
208
302
  # Custom attribute writer method with validation
209
303
  # @param [Object] dependent_locality Value to be assigned
210
304
  def dependent_locality=(dependent_locality)
@@ -225,6 +319,16 @@ module Wallee
225
319
  @email_address = email_address
226
320
  end
227
321
 
322
+ # Custom attribute writer method with validation
323
+ # @param [Object] given_name Value to be assigned
324
+ def given_name=(given_name)
325
+ if !given_name.nil? && given_name.to_s.length > 100
326
+ fail ArgumentError, 'invalid value for "given_name", the character length must be smaller than or equal to 100.'
327
+ end
328
+
329
+ @given_name = given_name
330
+ end
331
+
228
332
  # Custom attribute writer method with validation
229
333
  # @param [Object] mobile_phone_number Value to be assigned
230
334
  def mobile_phone_number=(mobile_phone_number)
@@ -235,6 +339,36 @@ module Wallee
235
339
  @mobile_phone_number = mobile_phone_number
236
340
  end
237
341
 
342
+ # Custom attribute writer method with validation
343
+ # @param [Object] organization_name Value to be assigned
344
+ def organization_name=(organization_name)
345
+ if !organization_name.nil? && organization_name.to_s.length > 100
346
+ fail ArgumentError, 'invalid value for "organization_name", the character length must be smaller than or equal to 100.'
347
+ end
348
+
349
+ @organization_name = organization_name
350
+ end
351
+
352
+ # Custom attribute writer method with validation
353
+ # @param [Object] phone_number Value to be assigned
354
+ def phone_number=(phone_number)
355
+ if !phone_number.nil? && phone_number.to_s.length > 100
356
+ fail ArgumentError, 'invalid value for "phone_number", the character length must be smaller than or equal to 100.'
357
+ end
358
+
359
+ @phone_number = phone_number
360
+ end
361
+
362
+ # Custom attribute writer method with validation
363
+ # @param [Object] sales_tax_number Value to be assigned
364
+ def sales_tax_number=(sales_tax_number)
365
+ if !sales_tax_number.nil? && sales_tax_number.to_s.length > 100
366
+ fail ArgumentError, 'invalid value for "sales_tax_number", the character length must be smaller than or equal to 100.'
367
+ end
368
+
369
+ @sales_tax_number = sales_tax_number
370
+ end
371
+
238
372
  # Custom attribute writer method with validation
239
373
  # @param [Object] salutation Value to be assigned
240
374
  def salutation=(salutation)
@@ -245,6 +379,16 @@ module Wallee
245
379
  @salutation = salutation
246
380
  end
247
381
 
382
+ # Custom attribute writer method with validation
383
+ # @param [Object] social_security_number Value to be assigned
384
+ def social_security_number=(social_security_number)
385
+ if !social_security_number.nil? && social_security_number.to_s.length > 100
386
+ fail ArgumentError, 'invalid value for "social_security_number", the character length must be smaller than or equal to 100.'
387
+ end
388
+
389
+ @social_security_number = social_security_number
390
+ end
391
+
248
392
  # Custom attribute writer method with validation
249
393
  # @param [Object] sorting_code Value to be assigned
250
394
  def sorting_code=(sorting_code)
@@ -261,17 +405,23 @@ module Wallee
261
405
  return true if self.equal?(o)
262
406
  self.class == o.class &&
263
407
  city == o.city &&
408
+ commercial_register_number == o.commercial_register_number &&
264
409
  country == o.country &&
410
+ date_of_birth == o.date_of_birth &&
265
411
  dependent_locality == o.dependent_locality &&
266
412
  email_address == o.email_address &&
267
413
  family_name == o.family_name &&
414
+ gender == o.gender &&
268
415
  given_name == o.given_name &&
416
+ legal_organization_form == o.legal_organization_form &&
269
417
  mobile_phone_number == o.mobile_phone_number &&
270
418
  organization_name == o.organization_name &&
271
419
  phone_number == o.phone_number &&
272
420
  postal_state == o.postal_state &&
273
421
  postcode == o.postcode &&
422
+ sales_tax_number == o.sales_tax_number &&
274
423
  salutation == o.salutation &&
424
+ social_security_number == o.social_security_number &&
275
425
  sorting_code == o.sorting_code &&
276
426
  street == o.street
277
427
  end
@@ -285,7 +435,7 @@ module Wallee
285
435
  # Calculates hash code according to all attributes.
286
436
  # @return [Fixnum] Hash code
287
437
  def hash
288
- [city, country, dependent_locality, email_address, family_name, given_name, mobile_phone_number, organization_name, phone_number, postal_state, postcode, salutation, sorting_code, street].hash
438
+ [city, commercial_register_number, country, date_of_birth, dependent_locality, email_address, family_name, gender, given_name, legal_organization_form, mobile_phone_number, organization_name, phone_number, postal_state, postcode, sales_tax_number, salutation, social_security_number, sorting_code, street].hash
289
439
  end
290
440
 
291
441
  # Builds the object from hash