connectwise-ruby-sdk 1.0.1 → 1.0.2
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.
- checksums.yaml +4 -4
- data/README.md +13 -18
- data/connectwise-ruby-sdk.gemspec +2 -1
- data/lib/connectwise-ruby-sdk/api/documents_api.rb +8 -8
- data/lib/connectwise-ruby-sdk/api_client.rb +1 -1
- data/lib/connectwise-ruby-sdk/models/activity.rb +27 -15
- data/lib/connectwise-ruby-sdk/models/activity_status.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/activity_type.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/addition.rb +16 -12
- data/lib/connectwise-ruby-sdk/models/adjustment.rb +8 -6
- data/lib/connectwise-ruby-sdk/models/agreement.rb +43 -27
- data/lib/connectwise-ruby-sdk/models/agreement_type.rb +27 -15
- data/lib/connectwise-ruby-sdk/models/audit_trail_entry_insert_request.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/batch.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/board.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/callback_entry.rb +8 -6
- data/lib/connectwise-ruby-sdk/models/campaign.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/campaign_audit.rb +46 -20
- data/lib/connectwise-ruby-sdk/models/campaign_status.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/campaign_sub_type.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/campaign_type.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/catalog_item.rb +57 -27
- data/lib/connectwise-ruby-sdk/models/category.rb +27 -15
- data/lib/connectwise-ruby-sdk/models/code.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/company.rb +185 -123
- data/lib/connectwise-ruby-sdk/models/company_management_summary.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/company_site.rb +67 -45
- data/lib/connectwise-ruby-sdk/models/company_status.rb +19 -9
- data/lib/connectwise-ruby-sdk/models/company_type.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/configuration.rb +131 -93
- data/lib/connectwise-ruby-sdk/models/configuration_status.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/configuration_type.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/configuration_type_question.rb +24 -10
- data/lib/connectwise-ruby-sdk/models/connect_wise_hosted_setup.rb +30 -12
- data/lib/connectwise-ruby-sdk/models/contact.rb +128 -88
- data/lib/connectwise-ruby-sdk/models/contact_communication.rb +19 -9
- data/lib/connectwise-ruby-sdk/models/contact_communication_item.rb +19 -9
- data/lib/connectwise-ruby-sdk/models/contact_department.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/contact_relationship.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/contact_type.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/currency.rb +35 -21
- data/lib/connectwise-ruby-sdk/models/expense_type.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/forecast.rb +8 -6
- data/lib/connectwise-ruby-sdk/models/form_submitted.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/group.rb +8 -6
- data/lib/connectwise-ruby-sdk/models/integrator_login.rb +118 -78
- data/lib/connectwise-ruby-sdk/models/invoice.rb +32 -24
- data/lib/connectwise-ruby-sdk/models/item.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/link.rb +19 -9
- data/lib/connectwise-ruby-sdk/models/link_clicked.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/location.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/manufacturer.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/marketing_contact.rb +8 -6
- data/lib/connectwise-ruby-sdk/models/member.rb +129 -81
- data/lib/connectwise-ruby-sdk/models/menu_entry.rb +30 -12
- data/lib/connectwise-ruby-sdk/models/opportunity.rb +27 -15
- data/lib/connectwise-ruby-sdk/models/opportunity_rating.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/opportunity_status.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/opportunity_type.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/order.rb +8 -6
- data/lib/connectwise-ruby-sdk/models/order_status.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/pricing_schedule.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/priority.rb +22 -6
- data/lib/connectwise-ruby-sdk/models/product_item.rb +40 -30
- data/lib/connectwise-ruby-sdk/models/product_type.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/project.rb +27 -15
- data/lib/connectwise-ruby-sdk/models/project_phase.rb +19 -9
- data/lib/connectwise-ruby-sdk/models/purchase_order.rb +32 -24
- data/lib/connectwise-ruby-sdk/models/purchase_order_line_item.rb +59 -39
- data/lib/connectwise-ruby-sdk/models/schedule_entry.rb +8 -6
- data/lib/connectwise-ruby-sdk/models/schedule_status.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/schedule_type.rb +22 -6
- data/lib/connectwise-ruby-sdk/models/shipment_method.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/source.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/status.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/sub_category.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/sub_type.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/survey.rb +35 -21
- data/lib/connectwise-ruby-sdk/models/survey_question.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/survey_question_option.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/task.rb +13 -7
- data/lib/connectwise-ruby-sdk/models/team.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/ticket.rb +115 -81
- data/lib/connectwise-ruby-sdk/models/type.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/unit_of_measure.rb +19 -9
- data/lib/connectwise-ruby-sdk/models/user_defined_field.rb +52 -22
- data/lib/connectwise-ruby-sdk/models/user_defined_field_option.rb +11 -3
- data/lib/connectwise-ruby-sdk/version.rb +1 -1
- data/spec/api_client_spec.rb +3 -2
- data/spec/configuration_spec.rb +1 -0
- data/spec/spec_helper.rb +1 -0
- metadata +2 -3
- data/git_push.sh +0 -67
|
@@ -283,6 +283,45 @@ module Connectwise
|
|
|
283
283
|
# @return Array for valid properies with the reasons
|
|
284
284
|
def list_invalid_properties
|
|
285
285
|
invalid_properties = Array.new
|
|
286
|
+
if @identifier.nil?
|
|
287
|
+
invalid_properties.push("invalid value for 'identifier', identifier cannot be nil.")
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
if @identifier.to_s.length > 30
|
|
291
|
+
invalid_properties.push("invalid value for 'identifier', the character length must be smaller than or equal to 30.")
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
if @description.nil?
|
|
295
|
+
invalid_properties.push("invalid value for 'description', description cannot be nil.")
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
if @description.to_s.length > 50
|
|
299
|
+
invalid_properties.push("invalid value for 'description', the character length must be smaller than or equal to 50.")
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
if @customer_description.nil?
|
|
303
|
+
invalid_properties.push("invalid value for 'customer_description', customer_description cannot be nil.")
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
if @customer_description.to_s.length > 6000
|
|
307
|
+
invalid_properties.push("invalid value for 'customer_description', the character length must be smaller than or equal to 6000.")
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
if !@manufacturer_part_number.nil? && @manufacturer_part_number.to_s.length > 50
|
|
312
|
+
invalid_properties.push("invalid value for 'manufacturer_part_number', the character length must be smaller than or equal to 50.")
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
if !@vendor_sku.nil? && @vendor_sku.to_s.length > 50
|
|
317
|
+
invalid_properties.push("invalid value for 'vendor_sku', the character length must be smaller than or equal to 50.")
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
if !@integration_x_ref.nil? && @integration_x_ref.to_s.length > 50
|
|
322
|
+
invalid_properties.push("invalid value for 'integration_x_ref', the character length must be smaller than or equal to 50.")
|
|
323
|
+
end
|
|
324
|
+
|
|
286
325
|
return invalid_properties
|
|
287
326
|
end
|
|
288
327
|
|
|
@@ -290,9 +329,9 @@ module Connectwise
|
|
|
290
329
|
# @return true if the model is valid
|
|
291
330
|
def valid?
|
|
292
331
|
return false if @identifier.nil?
|
|
293
|
-
return false if @identifier.to_s.length
|
|
332
|
+
return false if @identifier.to_s.length > 30
|
|
294
333
|
return false if @description.nil?
|
|
295
|
-
return false if @description.to_s.length
|
|
334
|
+
return false if @description.to_s.length > 50
|
|
296
335
|
return false if @subcategory.nil?
|
|
297
336
|
return false if @type.nil?
|
|
298
337
|
return false if @product_class.nil?
|
|
@@ -301,10 +340,10 @@ module Connectwise
|
|
|
301
340
|
price_attribute_validator = EnumAttributeValidator.new('String', ["FixedFee", "NotToExceed", "TimeAndMaterials", "OverrideRate"])
|
|
302
341
|
return false unless price_attribute_validator.valid?(@price_attribute)
|
|
303
342
|
return false if @customer_description.nil?
|
|
304
|
-
return false if @customer_description.to_s.length
|
|
305
|
-
return false if @manufacturer_part_number.to_s.length
|
|
306
|
-
return false if @vendor_sku.to_s.length
|
|
307
|
-
return false if @integration_x_ref.to_s.length
|
|
343
|
+
return false if @customer_description.to_s.length > 6000
|
|
344
|
+
return false if !@manufacturer_part_number.nil? && @manufacturer_part_number.to_s.length > 50
|
|
345
|
+
return false if !@vendor_sku.nil? && @vendor_sku.to_s.length > 50
|
|
346
|
+
return false if !@integration_x_ref.nil? && @integration_x_ref.to_s.length > 50
|
|
308
347
|
return true
|
|
309
348
|
end
|
|
310
349
|
|
|
@@ -315,8 +354,8 @@ module Connectwise
|
|
|
315
354
|
fail ArgumentError, "identifier cannot be nil"
|
|
316
355
|
end
|
|
317
356
|
|
|
318
|
-
if identifier.to_s.length
|
|
319
|
-
fail ArgumentError, "invalid value for 'identifier', the character length must be
|
|
357
|
+
if identifier.to_s.length > 30
|
|
358
|
+
fail ArgumentError, "invalid value for 'identifier', the character length must be smaller than or equal to 30."
|
|
320
359
|
end
|
|
321
360
|
|
|
322
361
|
@identifier = identifier
|
|
@@ -329,8 +368,8 @@ module Connectwise
|
|
|
329
368
|
fail ArgumentError, "description cannot be nil"
|
|
330
369
|
end
|
|
331
370
|
|
|
332
|
-
if description.to_s.length
|
|
333
|
-
fail ArgumentError, "invalid value for 'description', the character length must be
|
|
371
|
+
if description.to_s.length > 50
|
|
372
|
+
fail ArgumentError, "invalid value for 'description', the character length must be smaller than or equal to 50."
|
|
334
373
|
end
|
|
335
374
|
|
|
336
375
|
@description = description
|
|
@@ -363,8 +402,8 @@ module Connectwise
|
|
|
363
402
|
fail ArgumentError, "customer_description cannot be nil"
|
|
364
403
|
end
|
|
365
404
|
|
|
366
|
-
if customer_description.to_s.length
|
|
367
|
-
fail ArgumentError, "invalid value for 'customer_description', the character length must be
|
|
405
|
+
if customer_description.to_s.length > 6000
|
|
406
|
+
fail ArgumentError, "invalid value for 'customer_description', the character length must be smaller than or equal to 6000."
|
|
368
407
|
end
|
|
369
408
|
|
|
370
409
|
@customer_description = customer_description
|
|
@@ -373,12 +412,9 @@ module Connectwise
|
|
|
373
412
|
# Custom attribute writer method with validation
|
|
374
413
|
# @param [Object] manufacturer_part_number Value to be assigned
|
|
375
414
|
def manufacturer_part_number=(manufacturer_part_number)
|
|
376
|
-
if manufacturer_part_number.nil?
|
|
377
|
-
fail ArgumentError, "manufacturer_part_number cannot be nil"
|
|
378
|
-
end
|
|
379
415
|
|
|
380
|
-
if manufacturer_part_number.to_s.length
|
|
381
|
-
fail ArgumentError, "invalid value for 'manufacturer_part_number', the character length must be
|
|
416
|
+
if !manufacturer_part_number.nil? && manufacturer_part_number.to_s.length > 50
|
|
417
|
+
fail ArgumentError, "invalid value for 'manufacturer_part_number', the character length must be smaller than or equal to 50."
|
|
382
418
|
end
|
|
383
419
|
|
|
384
420
|
@manufacturer_part_number = manufacturer_part_number
|
|
@@ -387,12 +423,9 @@ module Connectwise
|
|
|
387
423
|
# Custom attribute writer method with validation
|
|
388
424
|
# @param [Object] vendor_sku Value to be assigned
|
|
389
425
|
def vendor_sku=(vendor_sku)
|
|
390
|
-
if vendor_sku.nil?
|
|
391
|
-
fail ArgumentError, "vendor_sku cannot be nil"
|
|
392
|
-
end
|
|
393
426
|
|
|
394
|
-
if vendor_sku.to_s.length
|
|
395
|
-
fail ArgumentError, "invalid value for 'vendor_sku', the character length must be
|
|
427
|
+
if !vendor_sku.nil? && vendor_sku.to_s.length > 50
|
|
428
|
+
fail ArgumentError, "invalid value for 'vendor_sku', the character length must be smaller than or equal to 50."
|
|
396
429
|
end
|
|
397
430
|
|
|
398
431
|
@vendor_sku = vendor_sku
|
|
@@ -401,12 +434,9 @@ module Connectwise
|
|
|
401
434
|
# Custom attribute writer method with validation
|
|
402
435
|
# @param [Object] integration_x_ref Value to be assigned
|
|
403
436
|
def integration_x_ref=(integration_x_ref)
|
|
404
|
-
if integration_x_ref.nil?
|
|
405
|
-
fail ArgumentError, "integration_x_ref cannot be nil"
|
|
406
|
-
end
|
|
407
437
|
|
|
408
|
-
if integration_x_ref.to_s.length
|
|
409
|
-
fail ArgumentError, "invalid value for 'integration_x_ref', the character length must be
|
|
438
|
+
if !integration_x_ref.nil? && integration_x_ref.to_s.length > 50
|
|
439
|
+
fail ArgumentError, "invalid value for 'integration_x_ref', the character length must be smaller than or equal to 50."
|
|
410
440
|
end
|
|
411
441
|
|
|
412
442
|
@integration_x_ref = integration_x_ref
|
|
@@ -128,6 +128,24 @@ module Connectwise
|
|
|
128
128
|
# @return Array for valid properies with the reasons
|
|
129
129
|
def list_invalid_properties
|
|
130
130
|
invalid_properties = Array.new
|
|
131
|
+
if @name.nil?
|
|
132
|
+
invalid_properties.push("invalid value for 'name', name cannot be nil.")
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if @name.to_s.length > 50
|
|
136
|
+
invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 50.")
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
if !@price_level_xref.nil? && @price_level_xref.to_s.length > 10
|
|
141
|
+
invalid_properties.push("invalid value for 'price_level_xref', the character length must be smaller than or equal to 10.")
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
if !@integration_xref.nil? && @integration_xref.to_s.length > 100
|
|
146
|
+
invalid_properties.push("invalid value for 'integration_xref', the character length must be smaller than or equal to 100.")
|
|
147
|
+
end
|
|
148
|
+
|
|
131
149
|
return invalid_properties
|
|
132
150
|
end
|
|
133
151
|
|
|
@@ -135,9 +153,9 @@ module Connectwise
|
|
|
135
153
|
# @return true if the model is valid
|
|
136
154
|
def valid?
|
|
137
155
|
return false if @name.nil?
|
|
138
|
-
return false if @name.to_s.length
|
|
139
|
-
return false if @price_level_xref.to_s.length
|
|
140
|
-
return false if @integration_xref.to_s.length
|
|
156
|
+
return false if @name.to_s.length > 50
|
|
157
|
+
return false if !@price_level_xref.nil? && @price_level_xref.to_s.length > 10
|
|
158
|
+
return false if !@integration_xref.nil? && @integration_xref.to_s.length > 100
|
|
141
159
|
return true
|
|
142
160
|
end
|
|
143
161
|
|
|
@@ -148,8 +166,8 @@ module Connectwise
|
|
|
148
166
|
fail ArgumentError, "name cannot be nil"
|
|
149
167
|
end
|
|
150
168
|
|
|
151
|
-
if name.to_s.length
|
|
152
|
-
fail ArgumentError, "invalid value for 'name', the character length must be
|
|
169
|
+
if name.to_s.length > 50
|
|
170
|
+
fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 50."
|
|
153
171
|
end
|
|
154
172
|
|
|
155
173
|
@name = name
|
|
@@ -158,12 +176,9 @@ module Connectwise
|
|
|
158
176
|
# Custom attribute writer method with validation
|
|
159
177
|
# @param [Object] price_level_xref Value to be assigned
|
|
160
178
|
def price_level_xref=(price_level_xref)
|
|
161
|
-
if price_level_xref.nil?
|
|
162
|
-
fail ArgumentError, "price_level_xref cannot be nil"
|
|
163
|
-
end
|
|
164
179
|
|
|
165
|
-
if price_level_xref.to_s.length
|
|
166
|
-
fail ArgumentError, "invalid value for 'price_level_xref', the character length must be
|
|
180
|
+
if !price_level_xref.nil? && price_level_xref.to_s.length > 10
|
|
181
|
+
fail ArgumentError, "invalid value for 'price_level_xref', the character length must be smaller than or equal to 10."
|
|
167
182
|
end
|
|
168
183
|
|
|
169
184
|
@price_level_xref = price_level_xref
|
|
@@ -172,12 +187,9 @@ module Connectwise
|
|
|
172
187
|
# Custom attribute writer method with validation
|
|
173
188
|
# @param [Object] integration_xref Value to be assigned
|
|
174
189
|
def integration_xref=(integration_xref)
|
|
175
|
-
if integration_xref.nil?
|
|
176
|
-
fail ArgumentError, "integration_xref cannot be nil"
|
|
177
|
-
end
|
|
178
190
|
|
|
179
|
-
if integration_xref.to_s.length
|
|
180
|
-
fail ArgumentError, "invalid value for 'integration_xref', the character length must be
|
|
191
|
+
if !integration_xref.nil? && integration_xref.to_s.length > 100
|
|
192
|
+
fail ArgumentError, "invalid value for 'integration_xref', the character length must be smaller than or equal to 100."
|
|
181
193
|
end
|
|
182
194
|
|
|
183
195
|
@integration_xref = integration_xref
|
|
@@ -110,6 +110,14 @@ module Connectwise
|
|
|
110
110
|
# @return Array for valid properies with the reasons
|
|
111
111
|
def list_invalid_properties
|
|
112
112
|
invalid_properties = Array.new
|
|
113
|
+
if @name.nil?
|
|
114
|
+
invalid_properties.push("invalid value for 'name', name cannot be nil.")
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
if @name.to_s.length > 50
|
|
118
|
+
invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 50.")
|
|
119
|
+
end
|
|
120
|
+
|
|
113
121
|
return invalid_properties
|
|
114
122
|
end
|
|
115
123
|
|
|
@@ -117,7 +125,7 @@ module Connectwise
|
|
|
117
125
|
# @return true if the model is valid
|
|
118
126
|
def valid?
|
|
119
127
|
return false if @name.nil?
|
|
120
|
-
return false if @name.to_s.length
|
|
128
|
+
return false if @name.to_s.length > 50
|
|
121
129
|
return false if @description.nil?
|
|
122
130
|
return true
|
|
123
131
|
end
|
|
@@ -129,8 +137,8 @@ module Connectwise
|
|
|
129
137
|
fail ArgumentError, "name cannot be nil"
|
|
130
138
|
end
|
|
131
139
|
|
|
132
|
-
if name.to_s.length
|
|
133
|
-
fail ArgumentError, "invalid value for 'name', the character length must be
|
|
140
|
+
if name.to_s.length > 50
|
|
141
|
+
fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 50."
|
|
134
142
|
end
|
|
135
143
|
|
|
136
144
|
@name = name
|
|
@@ -424,6 +424,125 @@ module Connectwise
|
|
|
424
424
|
# @return Array for valid properies with the reasons
|
|
425
425
|
def list_invalid_properties
|
|
426
426
|
invalid_properties = Array.new
|
|
427
|
+
if @identifier.nil?
|
|
428
|
+
invalid_properties.push("invalid value for 'identifier', identifier cannot be nil.")
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
if @identifier.to_s.length > 25
|
|
432
|
+
invalid_properties.push("invalid value for 'identifier', the character length must be smaller than or equal to 25.")
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
if @name.nil?
|
|
436
|
+
invalid_properties.push("invalid value for 'name', name cannot be nil.")
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
if @name.to_s.length > 50
|
|
440
|
+
invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 50.")
|
|
441
|
+
end
|
|
442
|
+
|
|
443
|
+
if @address_line1.nil?
|
|
444
|
+
invalid_properties.push("invalid value for 'address_line1', address_line1 cannot be nil.")
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
if @address_line1.to_s.length > 50
|
|
448
|
+
invalid_properties.push("invalid value for 'address_line1', the character length must be smaller than or equal to 50.")
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
if !@address_line2.nil? && @address_line2.to_s.length > 50
|
|
453
|
+
invalid_properties.push("invalid value for 'address_line2', the character length must be smaller than or equal to 50.")
|
|
454
|
+
end
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
if !@city.nil? && @city.to_s.length > 50
|
|
458
|
+
invalid_properties.push("invalid value for 'city', the character length must be smaller than or equal to 50.")
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
if !@state.nil? && @state.to_s.length > 50
|
|
463
|
+
invalid_properties.push("invalid value for 'state', the character length must be smaller than or equal to 50.")
|
|
464
|
+
end
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
if !@zip.nil? && @zip.to_s.length > 12
|
|
468
|
+
invalid_properties.push("invalid value for 'zip', the character length must be smaller than or equal to 12.")
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
if !@phone_number.nil? && @phone_number.to_s.length > 30
|
|
473
|
+
invalid_properties.push("invalid value for 'phone_number', the character length must be smaller than or equal to 30.")
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
if !@fax_number.nil? && @fax_number.to_s.length > 30
|
|
478
|
+
invalid_properties.push("invalid value for 'fax_number', the character length must be smaller than or equal to 30.")
|
|
479
|
+
end
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
if !@website.nil? && @website.to_s.length > 255
|
|
483
|
+
invalid_properties.push("invalid value for 'website', the character length must be smaller than or equal to 255.")
|
|
484
|
+
end
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
if !@account_number.nil? && @account_number.to_s.length > 100
|
|
488
|
+
invalid_properties.push("invalid value for 'account_number', the character length must be smaller than or equal to 100.")
|
|
489
|
+
end
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
if !@lead_source.nil? && @lead_source.to_s.length > 50
|
|
493
|
+
invalid_properties.push("invalid value for 'lead_source', the character length must be smaller than or equal to 50.")
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
if !@user_defined_field1.nil? && @user_defined_field1.to_s.length > 50
|
|
498
|
+
invalid_properties.push("invalid value for 'user_defined_field1', the character length must be smaller than or equal to 50.")
|
|
499
|
+
end
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
if !@user_defined_field2.nil? && @user_defined_field2.to_s.length > 50
|
|
503
|
+
invalid_properties.push("invalid value for 'user_defined_field2', the character length must be smaller than or equal to 50.")
|
|
504
|
+
end
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
if !@user_defined_field3.nil? && @user_defined_field3.to_s.length > 50
|
|
508
|
+
invalid_properties.push("invalid value for 'user_defined_field3', the character length must be smaller than or equal to 50.")
|
|
509
|
+
end
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
if !@user_defined_field4.nil? && @user_defined_field4.to_s.length > 50
|
|
513
|
+
invalid_properties.push("invalid value for 'user_defined_field4', the character length must be smaller than or equal to 50.")
|
|
514
|
+
end
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
if !@user_defined_field5.nil? && @user_defined_field5.to_s.length > 50
|
|
518
|
+
invalid_properties.push("invalid value for 'user_defined_field5', the character length must be smaller than or equal to 50.")
|
|
519
|
+
end
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
if !@user_defined_field6.nil? && @user_defined_field6.to_s.length > 50
|
|
523
|
+
invalid_properties.push("invalid value for 'user_defined_field6', the character length must be smaller than or equal to 50.")
|
|
524
|
+
end
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
if !@user_defined_field7.nil? && @user_defined_field7.to_s.length > 50
|
|
528
|
+
invalid_properties.push("invalid value for 'user_defined_field7', the character length must be smaller than or equal to 50.")
|
|
529
|
+
end
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
if !@user_defined_field8.nil? && @user_defined_field8.to_s.length > 50
|
|
533
|
+
invalid_properties.push("invalid value for 'user_defined_field8', the character length must be smaller than or equal to 50.")
|
|
534
|
+
end
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
if !@user_defined_field9.nil? && @user_defined_field9.to_s.length > 50
|
|
538
|
+
invalid_properties.push("invalid value for 'user_defined_field9', the character length must be smaller than or equal to 50.")
|
|
539
|
+
end
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
if !@user_defined_field10.nil? && @user_defined_field10.to_s.length > 50
|
|
543
|
+
invalid_properties.push("invalid value for 'user_defined_field10', the character length must be smaller than or equal to 50.")
|
|
544
|
+
end
|
|
545
|
+
|
|
427
546
|
return invalid_properties
|
|
428
547
|
end
|
|
429
548
|
|
|
@@ -431,32 +550,32 @@ module Connectwise
|
|
|
431
550
|
# @return true if the model is valid
|
|
432
551
|
def valid?
|
|
433
552
|
return false if @identifier.nil?
|
|
434
|
-
return false if @identifier.to_s.length
|
|
553
|
+
return false if @identifier.to_s.length > 25
|
|
435
554
|
return false if @name.nil?
|
|
436
|
-
return false if @name.to_s.length
|
|
555
|
+
return false if @name.to_s.length > 50
|
|
437
556
|
return false if @status.nil?
|
|
438
557
|
return false if @type.nil?
|
|
439
558
|
return false if @address_line1.nil?
|
|
440
|
-
return false if @address_line1.to_s.length
|
|
441
|
-
return false if @address_line2.to_s.length
|
|
442
|
-
return false if @city.to_s.length
|
|
443
|
-
return false if @state.to_s.length
|
|
444
|
-
return false if @zip.to_s.length
|
|
445
|
-
return false if @phone_number.to_s.length
|
|
446
|
-
return false if @fax_number.to_s.length
|
|
447
|
-
return false if @website.to_s.length
|
|
448
|
-
return false if @account_number.to_s.length
|
|
449
|
-
return false if @lead_source.to_s.length
|
|
450
|
-
return false if @user_defined_field1.to_s.length
|
|
451
|
-
return false if @user_defined_field2.to_s.length
|
|
452
|
-
return false if @user_defined_field3.to_s.length
|
|
453
|
-
return false if @user_defined_field4.to_s.length
|
|
454
|
-
return false if @user_defined_field5.to_s.length
|
|
455
|
-
return false if @user_defined_field6.to_s.length
|
|
456
|
-
return false if @user_defined_field7.to_s.length
|
|
457
|
-
return false if @user_defined_field8.to_s.length
|
|
458
|
-
return false if @user_defined_field9.to_s.length
|
|
459
|
-
return false if @user_defined_field10.to_s.length
|
|
559
|
+
return false if @address_line1.to_s.length > 50
|
|
560
|
+
return false if !@address_line2.nil? && @address_line2.to_s.length > 50
|
|
561
|
+
return false if !@city.nil? && @city.to_s.length > 50
|
|
562
|
+
return false if !@state.nil? && @state.to_s.length > 50
|
|
563
|
+
return false if !@zip.nil? && @zip.to_s.length > 12
|
|
564
|
+
return false if !@phone_number.nil? && @phone_number.to_s.length > 30
|
|
565
|
+
return false if !@fax_number.nil? && @fax_number.to_s.length > 30
|
|
566
|
+
return false if !@website.nil? && @website.to_s.length > 255
|
|
567
|
+
return false if !@account_number.nil? && @account_number.to_s.length > 100
|
|
568
|
+
return false if !@lead_source.nil? && @lead_source.to_s.length > 50
|
|
569
|
+
return false if !@user_defined_field1.nil? && @user_defined_field1.to_s.length > 50
|
|
570
|
+
return false if !@user_defined_field2.nil? && @user_defined_field2.to_s.length > 50
|
|
571
|
+
return false if !@user_defined_field3.nil? && @user_defined_field3.to_s.length > 50
|
|
572
|
+
return false if !@user_defined_field4.nil? && @user_defined_field4.to_s.length > 50
|
|
573
|
+
return false if !@user_defined_field5.nil? && @user_defined_field5.to_s.length > 50
|
|
574
|
+
return false if !@user_defined_field6.nil? && @user_defined_field6.to_s.length > 50
|
|
575
|
+
return false if !@user_defined_field7.nil? && @user_defined_field7.to_s.length > 50
|
|
576
|
+
return false if !@user_defined_field8.nil? && @user_defined_field8.to_s.length > 50
|
|
577
|
+
return false if !@user_defined_field9.nil? && @user_defined_field9.to_s.length > 50
|
|
578
|
+
return false if !@user_defined_field10.nil? && @user_defined_field10.to_s.length > 50
|
|
460
579
|
return true
|
|
461
580
|
end
|
|
462
581
|
|
|
@@ -467,8 +586,8 @@ module Connectwise
|
|
|
467
586
|
fail ArgumentError, "identifier cannot be nil"
|
|
468
587
|
end
|
|
469
588
|
|
|
470
|
-
if identifier.to_s.length
|
|
471
|
-
fail ArgumentError, "invalid value for 'identifier', the character length must be
|
|
589
|
+
if identifier.to_s.length > 25
|
|
590
|
+
fail ArgumentError, "invalid value for 'identifier', the character length must be smaller than or equal to 25."
|
|
472
591
|
end
|
|
473
592
|
|
|
474
593
|
@identifier = identifier
|
|
@@ -481,8 +600,8 @@ module Connectwise
|
|
|
481
600
|
fail ArgumentError, "name cannot be nil"
|
|
482
601
|
end
|
|
483
602
|
|
|
484
|
-
if name.to_s.length
|
|
485
|
-
fail ArgumentError, "invalid value for 'name', the character length must be
|
|
603
|
+
if name.to_s.length > 50
|
|
604
|
+
fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 50."
|
|
486
605
|
end
|
|
487
606
|
|
|
488
607
|
@name = name
|
|
@@ -495,8 +614,8 @@ module Connectwise
|
|
|
495
614
|
fail ArgumentError, "address_line1 cannot be nil"
|
|
496
615
|
end
|
|
497
616
|
|
|
498
|
-
if address_line1.to_s.length
|
|
499
|
-
fail ArgumentError, "invalid value for 'address_line1', the character length must be
|
|
617
|
+
if address_line1.to_s.length > 50
|
|
618
|
+
fail ArgumentError, "invalid value for 'address_line1', the character length must be smaller than or equal to 50."
|
|
500
619
|
end
|
|
501
620
|
|
|
502
621
|
@address_line1 = address_line1
|
|
@@ -505,12 +624,9 @@ module Connectwise
|
|
|
505
624
|
# Custom attribute writer method with validation
|
|
506
625
|
# @param [Object] address_line2 Value to be assigned
|
|
507
626
|
def address_line2=(address_line2)
|
|
508
|
-
if address_line2.nil?
|
|
509
|
-
fail ArgumentError, "address_line2 cannot be nil"
|
|
510
|
-
end
|
|
511
627
|
|
|
512
|
-
if address_line2.to_s.length
|
|
513
|
-
fail ArgumentError, "invalid value for 'address_line2', the character length must be
|
|
628
|
+
if !address_line2.nil? && address_line2.to_s.length > 50
|
|
629
|
+
fail ArgumentError, "invalid value for 'address_line2', the character length must be smaller than or equal to 50."
|
|
514
630
|
end
|
|
515
631
|
|
|
516
632
|
@address_line2 = address_line2
|
|
@@ -519,12 +635,9 @@ module Connectwise
|
|
|
519
635
|
# Custom attribute writer method with validation
|
|
520
636
|
# @param [Object] city Value to be assigned
|
|
521
637
|
def city=(city)
|
|
522
|
-
if city.nil?
|
|
523
|
-
fail ArgumentError, "city cannot be nil"
|
|
524
|
-
end
|
|
525
638
|
|
|
526
|
-
if city.to_s.length
|
|
527
|
-
fail ArgumentError, "invalid value for 'city', the character length must be
|
|
639
|
+
if !city.nil? && city.to_s.length > 50
|
|
640
|
+
fail ArgumentError, "invalid value for 'city', the character length must be smaller than or equal to 50."
|
|
528
641
|
end
|
|
529
642
|
|
|
530
643
|
@city = city
|
|
@@ -533,12 +646,9 @@ module Connectwise
|
|
|
533
646
|
# Custom attribute writer method with validation
|
|
534
647
|
# @param [Object] state Value to be assigned
|
|
535
648
|
def state=(state)
|
|
536
|
-
if state.nil?
|
|
537
|
-
fail ArgumentError, "state cannot be nil"
|
|
538
|
-
end
|
|
539
649
|
|
|
540
|
-
if state.to_s.length
|
|
541
|
-
fail ArgumentError, "invalid value for 'state', the character length must be
|
|
650
|
+
if !state.nil? && state.to_s.length > 50
|
|
651
|
+
fail ArgumentError, "invalid value for 'state', the character length must be smaller than or equal to 50."
|
|
542
652
|
end
|
|
543
653
|
|
|
544
654
|
@state = state
|
|
@@ -547,12 +657,9 @@ module Connectwise
|
|
|
547
657
|
# Custom attribute writer method with validation
|
|
548
658
|
# @param [Object] zip Value to be assigned
|
|
549
659
|
def zip=(zip)
|
|
550
|
-
if zip.nil?
|
|
551
|
-
fail ArgumentError, "zip cannot be nil"
|
|
552
|
-
end
|
|
553
660
|
|
|
554
|
-
if zip.to_s.length
|
|
555
|
-
fail ArgumentError, "invalid value for 'zip', the character length must be
|
|
661
|
+
if !zip.nil? && zip.to_s.length > 12
|
|
662
|
+
fail ArgumentError, "invalid value for 'zip', the character length must be smaller than or equal to 12."
|
|
556
663
|
end
|
|
557
664
|
|
|
558
665
|
@zip = zip
|
|
@@ -561,12 +668,9 @@ module Connectwise
|
|
|
561
668
|
# Custom attribute writer method with validation
|
|
562
669
|
# @param [Object] phone_number Value to be assigned
|
|
563
670
|
def phone_number=(phone_number)
|
|
564
|
-
if phone_number.nil?
|
|
565
|
-
fail ArgumentError, "phone_number cannot be nil"
|
|
566
|
-
end
|
|
567
671
|
|
|
568
|
-
if phone_number.to_s.length
|
|
569
|
-
fail ArgumentError, "invalid value for 'phone_number', the character length must be
|
|
672
|
+
if !phone_number.nil? && phone_number.to_s.length > 30
|
|
673
|
+
fail ArgumentError, "invalid value for 'phone_number', the character length must be smaller than or equal to 30."
|
|
570
674
|
end
|
|
571
675
|
|
|
572
676
|
@phone_number = phone_number
|
|
@@ -575,12 +679,9 @@ module Connectwise
|
|
|
575
679
|
# Custom attribute writer method with validation
|
|
576
680
|
# @param [Object] fax_number Value to be assigned
|
|
577
681
|
def fax_number=(fax_number)
|
|
578
|
-
if fax_number.nil?
|
|
579
|
-
fail ArgumentError, "fax_number cannot be nil"
|
|
580
|
-
end
|
|
581
682
|
|
|
582
|
-
if fax_number.to_s.length
|
|
583
|
-
fail ArgumentError, "invalid value for 'fax_number', the character length must be
|
|
683
|
+
if !fax_number.nil? && fax_number.to_s.length > 30
|
|
684
|
+
fail ArgumentError, "invalid value for 'fax_number', the character length must be smaller than or equal to 30."
|
|
584
685
|
end
|
|
585
686
|
|
|
586
687
|
@fax_number = fax_number
|
|
@@ -589,12 +690,9 @@ module Connectwise
|
|
|
589
690
|
# Custom attribute writer method with validation
|
|
590
691
|
# @param [Object] website Value to be assigned
|
|
591
692
|
def website=(website)
|
|
592
|
-
if website.nil?
|
|
593
|
-
fail ArgumentError, "website cannot be nil"
|
|
594
|
-
end
|
|
595
693
|
|
|
596
|
-
if website.to_s.length
|
|
597
|
-
fail ArgumentError, "invalid value for 'website', the character length must be
|
|
694
|
+
if !website.nil? && website.to_s.length > 255
|
|
695
|
+
fail ArgumentError, "invalid value for 'website', the character length must be smaller than or equal to 255."
|
|
598
696
|
end
|
|
599
697
|
|
|
600
698
|
@website = website
|
|
@@ -603,12 +701,9 @@ module Connectwise
|
|
|
603
701
|
# Custom attribute writer method with validation
|
|
604
702
|
# @param [Object] account_number Value to be assigned
|
|
605
703
|
def account_number=(account_number)
|
|
606
|
-
if account_number.nil?
|
|
607
|
-
fail ArgumentError, "account_number cannot be nil"
|
|
608
|
-
end
|
|
609
704
|
|
|
610
|
-
if account_number.to_s.length
|
|
611
|
-
fail ArgumentError, "invalid value for 'account_number', the character length must be
|
|
705
|
+
if !account_number.nil? && account_number.to_s.length > 100
|
|
706
|
+
fail ArgumentError, "invalid value for 'account_number', the character length must be smaller than or equal to 100."
|
|
612
707
|
end
|
|
613
708
|
|
|
614
709
|
@account_number = account_number
|
|
@@ -617,12 +712,9 @@ module Connectwise
|
|
|
617
712
|
# Custom attribute writer method with validation
|
|
618
713
|
# @param [Object] lead_source Value to be assigned
|
|
619
714
|
def lead_source=(lead_source)
|
|
620
|
-
if lead_source.nil?
|
|
621
|
-
fail ArgumentError, "lead_source cannot be nil"
|
|
622
|
-
end
|
|
623
715
|
|
|
624
|
-
if lead_source.to_s.length
|
|
625
|
-
fail ArgumentError, "invalid value for 'lead_source', the character length must be
|
|
716
|
+
if !lead_source.nil? && lead_source.to_s.length > 50
|
|
717
|
+
fail ArgumentError, "invalid value for 'lead_source', the character length must be smaller than or equal to 50."
|
|
626
718
|
end
|
|
627
719
|
|
|
628
720
|
@lead_source = lead_source
|
|
@@ -631,12 +723,9 @@ module Connectwise
|
|
|
631
723
|
# Custom attribute writer method with validation
|
|
632
724
|
# @param [Object] user_defined_field1 Value to be assigned
|
|
633
725
|
def user_defined_field1=(user_defined_field1)
|
|
634
|
-
if user_defined_field1.nil?
|
|
635
|
-
fail ArgumentError, "user_defined_field1 cannot be nil"
|
|
636
|
-
end
|
|
637
726
|
|
|
638
|
-
if user_defined_field1.to_s.length
|
|
639
|
-
fail ArgumentError, "invalid value for 'user_defined_field1', the character length must be
|
|
727
|
+
if !user_defined_field1.nil? && user_defined_field1.to_s.length > 50
|
|
728
|
+
fail ArgumentError, "invalid value for 'user_defined_field1', the character length must be smaller than or equal to 50."
|
|
640
729
|
end
|
|
641
730
|
|
|
642
731
|
@user_defined_field1 = user_defined_field1
|
|
@@ -645,12 +734,9 @@ module Connectwise
|
|
|
645
734
|
# Custom attribute writer method with validation
|
|
646
735
|
# @param [Object] user_defined_field2 Value to be assigned
|
|
647
736
|
def user_defined_field2=(user_defined_field2)
|
|
648
|
-
if user_defined_field2.nil?
|
|
649
|
-
fail ArgumentError, "user_defined_field2 cannot be nil"
|
|
650
|
-
end
|
|
651
737
|
|
|
652
|
-
if user_defined_field2.to_s.length
|
|
653
|
-
fail ArgumentError, "invalid value for 'user_defined_field2', the character length must be
|
|
738
|
+
if !user_defined_field2.nil? && user_defined_field2.to_s.length > 50
|
|
739
|
+
fail ArgumentError, "invalid value for 'user_defined_field2', the character length must be smaller than or equal to 50."
|
|
654
740
|
end
|
|
655
741
|
|
|
656
742
|
@user_defined_field2 = user_defined_field2
|
|
@@ -659,12 +745,9 @@ module Connectwise
|
|
|
659
745
|
# Custom attribute writer method with validation
|
|
660
746
|
# @param [Object] user_defined_field3 Value to be assigned
|
|
661
747
|
def user_defined_field3=(user_defined_field3)
|
|
662
|
-
if user_defined_field3.nil?
|
|
663
|
-
fail ArgumentError, "user_defined_field3 cannot be nil"
|
|
664
|
-
end
|
|
665
748
|
|
|
666
|
-
if user_defined_field3.to_s.length
|
|
667
|
-
fail ArgumentError, "invalid value for 'user_defined_field3', the character length must be
|
|
749
|
+
if !user_defined_field3.nil? && user_defined_field3.to_s.length > 50
|
|
750
|
+
fail ArgumentError, "invalid value for 'user_defined_field3', the character length must be smaller than or equal to 50."
|
|
668
751
|
end
|
|
669
752
|
|
|
670
753
|
@user_defined_field3 = user_defined_field3
|
|
@@ -673,12 +756,9 @@ module Connectwise
|
|
|
673
756
|
# Custom attribute writer method with validation
|
|
674
757
|
# @param [Object] user_defined_field4 Value to be assigned
|
|
675
758
|
def user_defined_field4=(user_defined_field4)
|
|
676
|
-
if user_defined_field4.nil?
|
|
677
|
-
fail ArgumentError, "user_defined_field4 cannot be nil"
|
|
678
|
-
end
|
|
679
759
|
|
|
680
|
-
if user_defined_field4.to_s.length
|
|
681
|
-
fail ArgumentError, "invalid value for 'user_defined_field4', the character length must be
|
|
760
|
+
if !user_defined_field4.nil? && user_defined_field4.to_s.length > 50
|
|
761
|
+
fail ArgumentError, "invalid value for 'user_defined_field4', the character length must be smaller than or equal to 50."
|
|
682
762
|
end
|
|
683
763
|
|
|
684
764
|
@user_defined_field4 = user_defined_field4
|
|
@@ -687,12 +767,9 @@ module Connectwise
|
|
|
687
767
|
# Custom attribute writer method with validation
|
|
688
768
|
# @param [Object] user_defined_field5 Value to be assigned
|
|
689
769
|
def user_defined_field5=(user_defined_field5)
|
|
690
|
-
if user_defined_field5.nil?
|
|
691
|
-
fail ArgumentError, "user_defined_field5 cannot be nil"
|
|
692
|
-
end
|
|
693
770
|
|
|
694
|
-
if user_defined_field5.to_s.length
|
|
695
|
-
fail ArgumentError, "invalid value for 'user_defined_field5', the character length must be
|
|
771
|
+
if !user_defined_field5.nil? && user_defined_field5.to_s.length > 50
|
|
772
|
+
fail ArgumentError, "invalid value for 'user_defined_field5', the character length must be smaller than or equal to 50."
|
|
696
773
|
end
|
|
697
774
|
|
|
698
775
|
@user_defined_field5 = user_defined_field5
|
|
@@ -701,12 +778,9 @@ module Connectwise
|
|
|
701
778
|
# Custom attribute writer method with validation
|
|
702
779
|
# @param [Object] user_defined_field6 Value to be assigned
|
|
703
780
|
def user_defined_field6=(user_defined_field6)
|
|
704
|
-
if user_defined_field6.nil?
|
|
705
|
-
fail ArgumentError, "user_defined_field6 cannot be nil"
|
|
706
|
-
end
|
|
707
781
|
|
|
708
|
-
if user_defined_field6.to_s.length
|
|
709
|
-
fail ArgumentError, "invalid value for 'user_defined_field6', the character length must be
|
|
782
|
+
if !user_defined_field6.nil? && user_defined_field6.to_s.length > 50
|
|
783
|
+
fail ArgumentError, "invalid value for 'user_defined_field6', the character length must be smaller than or equal to 50."
|
|
710
784
|
end
|
|
711
785
|
|
|
712
786
|
@user_defined_field6 = user_defined_field6
|
|
@@ -715,12 +789,9 @@ module Connectwise
|
|
|
715
789
|
# Custom attribute writer method with validation
|
|
716
790
|
# @param [Object] user_defined_field7 Value to be assigned
|
|
717
791
|
def user_defined_field7=(user_defined_field7)
|
|
718
|
-
if user_defined_field7.nil?
|
|
719
|
-
fail ArgumentError, "user_defined_field7 cannot be nil"
|
|
720
|
-
end
|
|
721
792
|
|
|
722
|
-
if user_defined_field7.to_s.length
|
|
723
|
-
fail ArgumentError, "invalid value for 'user_defined_field7', the character length must be
|
|
793
|
+
if !user_defined_field7.nil? && user_defined_field7.to_s.length > 50
|
|
794
|
+
fail ArgumentError, "invalid value for 'user_defined_field7', the character length must be smaller than or equal to 50."
|
|
724
795
|
end
|
|
725
796
|
|
|
726
797
|
@user_defined_field7 = user_defined_field7
|
|
@@ -729,12 +800,9 @@ module Connectwise
|
|
|
729
800
|
# Custom attribute writer method with validation
|
|
730
801
|
# @param [Object] user_defined_field8 Value to be assigned
|
|
731
802
|
def user_defined_field8=(user_defined_field8)
|
|
732
|
-
if user_defined_field8.nil?
|
|
733
|
-
fail ArgumentError, "user_defined_field8 cannot be nil"
|
|
734
|
-
end
|
|
735
803
|
|
|
736
|
-
if user_defined_field8.to_s.length
|
|
737
|
-
fail ArgumentError, "invalid value for 'user_defined_field8', the character length must be
|
|
804
|
+
if !user_defined_field8.nil? && user_defined_field8.to_s.length > 50
|
|
805
|
+
fail ArgumentError, "invalid value for 'user_defined_field8', the character length must be smaller than or equal to 50."
|
|
738
806
|
end
|
|
739
807
|
|
|
740
808
|
@user_defined_field8 = user_defined_field8
|
|
@@ -743,12 +811,9 @@ module Connectwise
|
|
|
743
811
|
# Custom attribute writer method with validation
|
|
744
812
|
# @param [Object] user_defined_field9 Value to be assigned
|
|
745
813
|
def user_defined_field9=(user_defined_field9)
|
|
746
|
-
if user_defined_field9.nil?
|
|
747
|
-
fail ArgumentError, "user_defined_field9 cannot be nil"
|
|
748
|
-
end
|
|
749
814
|
|
|
750
|
-
if user_defined_field9.to_s.length
|
|
751
|
-
fail ArgumentError, "invalid value for 'user_defined_field9', the character length must be
|
|
815
|
+
if !user_defined_field9.nil? && user_defined_field9.to_s.length > 50
|
|
816
|
+
fail ArgumentError, "invalid value for 'user_defined_field9', the character length must be smaller than or equal to 50."
|
|
752
817
|
end
|
|
753
818
|
|
|
754
819
|
@user_defined_field9 = user_defined_field9
|
|
@@ -757,12 +822,9 @@ module Connectwise
|
|
|
757
822
|
# Custom attribute writer method with validation
|
|
758
823
|
# @param [Object] user_defined_field10 Value to be assigned
|
|
759
824
|
def user_defined_field10=(user_defined_field10)
|
|
760
|
-
if user_defined_field10.nil?
|
|
761
|
-
fail ArgumentError, "user_defined_field10 cannot be nil"
|
|
762
|
-
end
|
|
763
825
|
|
|
764
|
-
if user_defined_field10.to_s.length
|
|
765
|
-
fail ArgumentError, "invalid value for 'user_defined_field10', the character length must be
|
|
826
|
+
if !user_defined_field10.nil? && user_defined_field10.to_s.length > 50
|
|
827
|
+
fail ArgumentError, "invalid value for 'user_defined_field10', the character length must be smaller than or equal to 50."
|
|
766
828
|
end
|
|
767
829
|
|
|
768
830
|
@user_defined_field10 = user_defined_field10
|