connectwise-ruby-sdk 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -18
  3. data/connectwise-ruby-sdk.gemspec +2 -1
  4. data/lib/connectwise-ruby-sdk/api/documents_api.rb +8 -8
  5. data/lib/connectwise-ruby-sdk/api_client.rb +1 -1
  6. data/lib/connectwise-ruby-sdk/models/activity.rb +27 -15
  7. data/lib/connectwise-ruby-sdk/models/activity_status.rb +11 -3
  8. data/lib/connectwise-ruby-sdk/models/activity_type.rb +11 -3
  9. data/lib/connectwise-ruby-sdk/models/addition.rb +16 -12
  10. data/lib/connectwise-ruby-sdk/models/adjustment.rb +8 -6
  11. data/lib/connectwise-ruby-sdk/models/agreement.rb +43 -27
  12. data/lib/connectwise-ruby-sdk/models/agreement_type.rb +27 -15
  13. data/lib/connectwise-ruby-sdk/models/audit_trail_entry_insert_request.rb +11 -3
  14. data/lib/connectwise-ruby-sdk/models/batch.rb +11 -3
  15. data/lib/connectwise-ruby-sdk/models/board.rb +11 -3
  16. data/lib/connectwise-ruby-sdk/models/callback_entry.rb +8 -6
  17. data/lib/connectwise-ruby-sdk/models/campaign.rb +11 -3
  18. data/lib/connectwise-ruby-sdk/models/campaign_audit.rb +46 -20
  19. data/lib/connectwise-ruby-sdk/models/campaign_status.rb +11 -3
  20. data/lib/connectwise-ruby-sdk/models/campaign_sub_type.rb +11 -3
  21. data/lib/connectwise-ruby-sdk/models/campaign_type.rb +11 -3
  22. data/lib/connectwise-ruby-sdk/models/catalog_item.rb +57 -27
  23. data/lib/connectwise-ruby-sdk/models/category.rb +27 -15
  24. data/lib/connectwise-ruby-sdk/models/code.rb +11 -3
  25. data/lib/connectwise-ruby-sdk/models/company.rb +185 -123
  26. data/lib/connectwise-ruby-sdk/models/company_management_summary.rb +11 -3
  27. data/lib/connectwise-ruby-sdk/models/company_site.rb +67 -45
  28. data/lib/connectwise-ruby-sdk/models/company_status.rb +19 -9
  29. data/lib/connectwise-ruby-sdk/models/company_type.rb +11 -3
  30. data/lib/connectwise-ruby-sdk/models/configuration.rb +131 -93
  31. data/lib/connectwise-ruby-sdk/models/configuration_status.rb +11 -3
  32. data/lib/connectwise-ruby-sdk/models/configuration_type.rb +11 -3
  33. data/lib/connectwise-ruby-sdk/models/configuration_type_question.rb +24 -10
  34. data/lib/connectwise-ruby-sdk/models/connect_wise_hosted_setup.rb +30 -12
  35. data/lib/connectwise-ruby-sdk/models/contact.rb +128 -88
  36. data/lib/connectwise-ruby-sdk/models/contact_communication.rb +19 -9
  37. data/lib/connectwise-ruby-sdk/models/contact_communication_item.rb +19 -9
  38. data/lib/connectwise-ruby-sdk/models/contact_department.rb +11 -3
  39. data/lib/connectwise-ruby-sdk/models/contact_relationship.rb +11 -3
  40. data/lib/connectwise-ruby-sdk/models/contact_type.rb +11 -3
  41. data/lib/connectwise-ruby-sdk/models/currency.rb +35 -21
  42. data/lib/connectwise-ruby-sdk/models/expense_type.rb +11 -3
  43. data/lib/connectwise-ruby-sdk/models/forecast.rb +8 -6
  44. data/lib/connectwise-ruby-sdk/models/form_submitted.rb +11 -3
  45. data/lib/connectwise-ruby-sdk/models/group.rb +8 -6
  46. data/lib/connectwise-ruby-sdk/models/integrator_login.rb +118 -78
  47. data/lib/connectwise-ruby-sdk/models/invoice.rb +32 -24
  48. data/lib/connectwise-ruby-sdk/models/item.rb +11 -3
  49. data/lib/connectwise-ruby-sdk/models/link.rb +19 -9
  50. data/lib/connectwise-ruby-sdk/models/link_clicked.rb +11 -3
  51. data/lib/connectwise-ruby-sdk/models/location.rb +11 -3
  52. data/lib/connectwise-ruby-sdk/models/manufacturer.rb +11 -3
  53. data/lib/connectwise-ruby-sdk/models/marketing_contact.rb +8 -6
  54. data/lib/connectwise-ruby-sdk/models/member.rb +129 -81
  55. data/lib/connectwise-ruby-sdk/models/menu_entry.rb +30 -12
  56. data/lib/connectwise-ruby-sdk/models/opportunity.rb +27 -15
  57. data/lib/connectwise-ruby-sdk/models/opportunity_rating.rb +11 -3
  58. data/lib/connectwise-ruby-sdk/models/opportunity_status.rb +11 -3
  59. data/lib/connectwise-ruby-sdk/models/opportunity_type.rb +11 -3
  60. data/lib/connectwise-ruby-sdk/models/order.rb +8 -6
  61. data/lib/connectwise-ruby-sdk/models/order_status.rb +11 -3
  62. data/lib/connectwise-ruby-sdk/models/pricing_schedule.rb +11 -3
  63. data/lib/connectwise-ruby-sdk/models/priority.rb +22 -6
  64. data/lib/connectwise-ruby-sdk/models/product_item.rb +40 -30
  65. data/lib/connectwise-ruby-sdk/models/product_type.rb +11 -3
  66. data/lib/connectwise-ruby-sdk/models/project.rb +27 -15
  67. data/lib/connectwise-ruby-sdk/models/project_phase.rb +19 -9
  68. data/lib/connectwise-ruby-sdk/models/purchase_order.rb +32 -24
  69. data/lib/connectwise-ruby-sdk/models/purchase_order_line_item.rb +59 -39
  70. data/lib/connectwise-ruby-sdk/models/schedule_entry.rb +8 -6
  71. data/lib/connectwise-ruby-sdk/models/schedule_status.rb +11 -3
  72. data/lib/connectwise-ruby-sdk/models/schedule_type.rb +22 -6
  73. data/lib/connectwise-ruby-sdk/models/shipment_method.rb +11 -3
  74. data/lib/connectwise-ruby-sdk/models/source.rb +11 -3
  75. data/lib/connectwise-ruby-sdk/models/status.rb +11 -3
  76. data/lib/connectwise-ruby-sdk/models/sub_category.rb +11 -3
  77. data/lib/connectwise-ruby-sdk/models/sub_type.rb +11 -3
  78. data/lib/connectwise-ruby-sdk/models/survey.rb +35 -21
  79. data/lib/connectwise-ruby-sdk/models/survey_question.rb +11 -3
  80. data/lib/connectwise-ruby-sdk/models/survey_question_option.rb +11 -3
  81. data/lib/connectwise-ruby-sdk/models/task.rb +13 -7
  82. data/lib/connectwise-ruby-sdk/models/team.rb +11 -3
  83. data/lib/connectwise-ruby-sdk/models/ticket.rb +115 -81
  84. data/lib/connectwise-ruby-sdk/models/type.rb +11 -3
  85. data/lib/connectwise-ruby-sdk/models/unit_of_measure.rb +19 -9
  86. data/lib/connectwise-ruby-sdk/models/user_defined_field.rb +52 -22
  87. data/lib/connectwise-ruby-sdk/models/user_defined_field_option.rb +11 -3
  88. data/lib/connectwise-ruby-sdk/version.rb +1 -1
  89. data/spec/api_client_spec.rb +3 -2
  90. data/spec/configuration_spec.rb +1 -0
  91. data/spec/spec_helper.rb +1 -0
  92. metadata +2 -3
  93. data/git_push.sh +0 -67
@@ -507,6 +507,24 @@ module Connectwise
507
507
  # @return Array for valid properies with the reasons
508
508
  def list_invalid_properties
509
509
  invalid_properties = Array.new
510
+ if @name.nil?
511
+ invalid_properties.push("invalid value for 'name', name cannot be nil.")
512
+ end
513
+
514
+ if @name.to_s.length > 50
515
+ invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 50.")
516
+ end
517
+
518
+
519
+ if !@invoice_pre_suffix.nil? && @invoice_pre_suffix.to_s.length > 5
520
+ invalid_properties.push("invalid value for 'invoice_pre_suffix', the character length must be smaller than or equal to 5.")
521
+ end
522
+
523
+
524
+ if !@invoice_description.nil? && @invoice_description.to_s.length > 4000
525
+ invalid_properties.push("invalid value for 'invoice_description', the character length must be smaller than or equal to 4000.")
526
+ end
527
+
510
528
  return invalid_properties
511
529
  end
512
530
 
@@ -514,11 +532,11 @@ module Connectwise
514
532
  # @return true if the model is valid
515
533
  def valid?
516
534
  return false if @name.nil?
517
- return false if @name.to_s.length < 50
535
+ return false if @name.to_s.length > 50
518
536
  return false if @prefix_suffix_option.nil?
519
537
  prefix_suffix_option_validator = EnumAttributeValidator.new('String', ["Prefix", "Suffix"])
520
538
  return false unless prefix_suffix_option_validator.valid?(@prefix_suffix_option)
521
- return false if @invoice_pre_suffix.to_s.length < 5
539
+ return false if !@invoice_pre_suffix.nil? && @invoice_pre_suffix.to_s.length > 5
522
540
  application_units_validator = EnumAttributeValidator.new('String', ["Amount", "Hours", "Incidents"])
523
541
  return false unless application_units_validator.valid?(@application_units)
524
542
  application_cycle_validator = EnumAttributeValidator.new('String', ["Contract2Weeks", "Contract4Weeks", "ContractYear", "CalendarMonth", "CalendarQuarter", "CalendarWeek", "ContractQuarter", "CalendarYear"])
@@ -532,7 +550,7 @@ module Connectwise
532
550
  return false if @invoicing_cycle.nil?
533
551
  invoicing_cycle_validator = EnumAttributeValidator.new('String', ["CalendarYear", "ContractYear"])
534
552
  return false unless invoicing_cycle_validator.valid?(@invoicing_cycle)
535
- return false if @invoice_description.to_s.length < 4000
553
+ return false if !@invoice_description.nil? && @invoice_description.to_s.length > 4000
536
554
  return false if @bill_time.nil?
537
555
  bill_time_validator = EnumAttributeValidator.new('String', ["Billable", "DoNotBill", "NoCharge", "NoDefault"])
538
556
  return false unless bill_time_validator.valid?(@bill_time)
@@ -552,8 +570,8 @@ module Connectwise
552
570
  fail ArgumentError, "name cannot be nil"
553
571
  end
554
572
 
555
- if name.to_s.length < 100
556
- fail ArgumentError, "invalid value for 'name', the character length must be great than or equal to ."
573
+ if name.to_s.length > 50
574
+ fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 50."
557
575
  end
558
576
 
559
577
  @name = name
@@ -572,12 +590,9 @@ module Connectwise
572
590
  # Custom attribute writer method with validation
573
591
  # @param [Object] invoice_pre_suffix Value to be assigned
574
592
  def invoice_pre_suffix=(invoice_pre_suffix)
575
- if invoice_pre_suffix.nil?
576
- fail ArgumentError, "invoice_pre_suffix cannot be nil"
577
- end
578
593
 
579
- if invoice_pre_suffix.to_s.length < 5
580
- fail ArgumentError, "invalid value for 'invoice_pre_suffix', the character length must be great than or equal to ."
594
+ if !invoice_pre_suffix.nil? && invoice_pre_suffix.to_s.length > 5
595
+ fail ArgumentError, "invalid value for 'invoice_pre_suffix', the character length must be smaller than or equal to 5."
581
596
  end
582
597
 
583
598
  @invoice_pre_suffix = invoice_pre_suffix
@@ -636,12 +651,9 @@ module Connectwise
636
651
  # Custom attribute writer method with validation
637
652
  # @param [Object] invoice_description Value to be assigned
638
653
  def invoice_description=(invoice_description)
639
- if invoice_description.nil?
640
- fail ArgumentError, "invoice_description cannot be nil"
641
- end
642
654
 
643
- if invoice_description.to_s.length < 4000
644
- fail ArgumentError, "invalid value for 'invoice_description', the character length must be great than or equal to ."
655
+ if !invoice_description.nil? && invoice_description.to_s.length > 4000
656
+ fail ArgumentError, "invalid value for 'invoice_description', the character length must be smaller than or equal to 4000."
645
657
  end
646
658
 
647
659
  @invoice_description = invoice_description
@@ -71,6 +71,14 @@ module Connectwise
71
71
  # @return Array for valid properies with the reasons
72
72
  def list_invalid_properties
73
73
  invalid_properties = Array.new
74
+ if @text.nil?
75
+ invalid_properties.push("invalid value for 'text', text cannot be nil.")
76
+ end
77
+
78
+ if @text.to_s.length > 1024
79
+ invalid_properties.push("invalid value for 'text', the character length must be smaller than or equal to 1024.")
80
+ end
81
+
74
82
  return invalid_properties
75
83
  end
76
84
 
@@ -78,7 +86,7 @@ module Connectwise
78
86
  # @return true if the model is valid
79
87
  def valid?
80
88
  return false if @text.nil?
81
- return false if @text.to_s.length < 1024
89
+ return false if @text.to_s.length > 1024
82
90
  return true
83
91
  end
84
92
 
@@ -89,8 +97,8 @@ module Connectwise
89
97
  fail ArgumentError, "text cannot be nil"
90
98
  end
91
99
 
92
- if text.to_s.length < 1024
93
- fail ArgumentError, "invalid value for 'text', the character length must be great than or equal to ."
100
+ if text.to_s.length > 1024
101
+ fail ArgumentError, "invalid value for 'text', the character length must be smaller than or equal to 1024."
94
102
  end
95
103
 
96
104
  @text = text
@@ -202,6 +202,14 @@ module Connectwise
202
202
  # @return Array for valid properies with the reasons
203
203
  def list_invalid_properties
204
204
  invalid_properties = Array.new
205
+ if @batch_identifier.nil?
206
+ invalid_properties.push("invalid value for 'batch_identifier', batch_identifier cannot be nil.")
207
+ end
208
+
209
+ if @batch_identifier.to_s.length > 50
210
+ invalid_properties.push("invalid value for 'batch_identifier', the character length must be smaller than or equal to 50.")
211
+ end
212
+
205
213
  return invalid_properties
206
214
  end
207
215
 
@@ -209,7 +217,7 @@ module Connectwise
209
217
  # @return true if the model is valid
210
218
  def valid?
211
219
  return false if @batch_identifier.nil?
212
- return false if @batch_identifier.to_s.length < 50
220
+ return false if @batch_identifier.to_s.length > 50
213
221
  return true
214
222
  end
215
223
 
@@ -220,8 +228,8 @@ module Connectwise
220
228
  fail ArgumentError, "batch_identifier cannot be nil"
221
229
  end
222
230
 
223
- if batch_identifier.to_s.length < 50
224
- fail ArgumentError, "invalid value for 'batch_identifier', the character length must be great than or equal to ."
231
+ if batch_identifier.to_s.length > 50
232
+ fail ArgumentError, "invalid value for 'batch_identifier', the character length must be smaller than or equal to 50."
225
233
  end
226
234
 
227
235
  @batch_identifier = batch_identifier
@@ -168,6 +168,14 @@ module Connectwise
168
168
  # @return Array for valid properies with the reasons
169
169
  def list_invalid_properties
170
170
  invalid_properties = Array.new
171
+ if @name.nil?
172
+ invalid_properties.push("invalid value for 'name', name cannot be nil.")
173
+ end
174
+
175
+ if @name.to_s.length > 50
176
+ invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 50.")
177
+ end
178
+
171
179
  return invalid_properties
172
180
  end
173
181
 
@@ -175,7 +183,7 @@ module Connectwise
175
183
  # @return true if the model is valid
176
184
  def valid?
177
185
  return false if @name.nil?
178
- return false if @name.to_s.length < 50
186
+ return false if @name.to_s.length > 50
179
187
  return false if @location_id.nil?
180
188
  return false if @business_unit_id.nil?
181
189
  return true
@@ -188,8 +196,8 @@ module Connectwise
188
196
  fail ArgumentError, "name cannot be nil"
189
197
  end
190
198
 
191
- if name.to_s.length < 50
192
- fail ArgumentError, "invalid value for 'name', the character length must be great than or equal to ."
199
+ if name.to_s.length > 50
200
+ fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 50."
193
201
  end
194
202
 
195
203
  @name = name
@@ -118,13 +118,18 @@ module Connectwise
118
118
  # @return Array for valid properies with the reasons
119
119
  def list_invalid_properties
120
120
  invalid_properties = Array.new
121
+
122
+ if !@description.nil? && @description.to_s.length > 100
123
+ invalid_properties.push("invalid value for 'description', the character length must be smaller than or equal to 100.")
124
+ end
125
+
121
126
  return invalid_properties
122
127
  end
123
128
 
124
129
  # Check to see if the all the properties in the model are valid
125
130
  # @return true if the model is valid
126
131
  def valid?
127
- return false if @description.to_s.length < 100
132
+ return false if !@description.nil? && @description.to_s.length > 100
128
133
  return false if @url.nil?
129
134
  return false if @object_id.nil?
130
135
  return false if @type.nil?
@@ -135,12 +140,9 @@ module Connectwise
135
140
  # Custom attribute writer method with validation
136
141
  # @param [Object] description Value to be assigned
137
142
  def description=(description)
138
- if description.nil?
139
- fail ArgumentError, "description cannot be nil"
140
- end
141
143
 
142
- if description.to_s.length < 100
143
- fail ArgumentError, "invalid value for 'description', the character length must be great than or equal to ."
144
+ if !description.nil? && description.to_s.length > 100
145
+ fail ArgumentError, "invalid value for 'description', the character length must be smaller than or equal to 100."
144
146
  end
145
147
 
146
148
  @description = description
@@ -262,6 +262,14 @@ module Connectwise
262
262
  # @return Array for valid properies with the reasons
263
263
  def list_invalid_properties
264
264
  invalid_properties = Array.new
265
+ if @name.nil?
266
+ invalid_properties.push("invalid value for 'name', name cannot be nil.")
267
+ end
268
+
269
+ if @name.to_s.length > 50
270
+ invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 50.")
271
+ end
272
+
265
273
  return invalid_properties
266
274
  end
267
275
 
@@ -269,7 +277,7 @@ module Connectwise
269
277
  # @return true if the model is valid
270
278
  def valid?
271
279
  return false if @name.nil?
272
- return false if @name.to_s.length < 50
280
+ return false if @name.to_s.length > 50
273
281
  return false if @type.nil?
274
282
  return false if @sub_type.nil?
275
283
  return false if @start_date.nil?
@@ -283,8 +291,8 @@ module Connectwise
283
291
  fail ArgumentError, "name cannot be nil"
284
292
  end
285
293
 
286
- if name.to_s.length < 50
287
- fail ArgumentError, "invalid value for 'name', the character length must be great than or equal to ."
294
+ if name.to_s.length > 50
295
+ fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 50."
288
296
  end
289
297
 
290
298
  @name = name
@@ -125,6 +125,41 @@ module Connectwise
125
125
  # @return Array for valid properies with the reasons
126
126
  def list_invalid_properties
127
127
  invalid_properties = Array.new
128
+ if @emails_sent.nil?
129
+ invalid_properties.push("invalid value for 'emails_sent', emails_sent cannot be nil.")
130
+ end
131
+
132
+ if @emails_sent > 2.147483647E9
133
+ invalid_properties.push("invalid value for 'emails_sent', must be smaller than or equal to 2.147483647E9.")
134
+ end
135
+
136
+ if @emails_sent < 0.0
137
+ invalid_properties.push("invalid value for 'emails_sent', must be greater than or equal to 0.0.")
138
+ end
139
+
140
+
141
+ if !@emails_unsent.nil? && @emails_unsent > 2.147483647E9
142
+ invalid_properties.push("invalid value for 'emails_unsent', must be smaller than or equal to 2.147483647E9.")
143
+ end
144
+
145
+ if !@emails_unsent.nil? && @emails_unsent < 0.0
146
+ invalid_properties.push("invalid value for 'emails_unsent', must be greater than or equal to 0.0.")
147
+ end
148
+
149
+
150
+ if !@documents_created.nil? && @documents_created > 2.147483647E9
151
+ invalid_properties.push("invalid value for 'documents_created', must be smaller than or equal to 2.147483647E9.")
152
+ end
153
+
154
+ if !@documents_created.nil? && @documents_created < 0.0
155
+ invalid_properties.push("invalid value for 'documents_created', must be greater than or equal to 0.0.")
156
+ end
157
+
158
+
159
+ if !@email_subject.nil? && @email_subject.to_s.length > 1000
160
+ invalid_properties.push("invalid value for 'email_subject', the character length must be smaller than or equal to 1000.")
161
+ end
162
+
128
163
  return invalid_properties
129
164
  end
130
165
 
@@ -134,11 +169,11 @@ module Connectwise
134
169
  return false if @emails_sent.nil?
135
170
  return false if @emails_sent > 2.147483647E9
136
171
  return false if @emails_sent < 0.0
137
- return false if @emails_unsent > 2.147483647E9
138
- return false if @emails_unsent < 0.0
139
- return false if @documents_created > 2.147483647E9
140
- return false if @documents_created < 0.0
141
- return false if @email_subject.to_s.length < 1000
172
+ return false if !@emails_unsent.nil? && @emails_unsent > 2.147483647E9
173
+ return false if !@emails_unsent.nil? && @emails_unsent < 0.0
174
+ return false if !@documents_created.nil? && @documents_created > 2.147483647E9
175
+ return false if !@documents_created.nil? && @documents_created < 0.0
176
+ return false if !@email_subject.nil? && @email_subject.to_s.length > 1000
142
177
  return true
143
178
  end
144
179
 
@@ -163,15 +198,12 @@ module Connectwise
163
198
  # Custom attribute writer method with validation
164
199
  # @param [Object] emails_unsent Value to be assigned
165
200
  def emails_unsent=(emails_unsent)
166
- if emails_unsent.nil?
167
- fail ArgumentError, "emails_unsent cannot be nil"
168
- end
169
201
 
170
- if emails_unsent > 2.147483647E9
202
+ if !emails_unsent.nil? && emails_unsent > 2.147483647E9
171
203
  fail ArgumentError, "invalid value for 'emails_unsent', must be smaller than or equal to 2.147483647E9."
172
204
  end
173
205
 
174
- if emails_unsent < 0.0
206
+ if !emails_unsent.nil? && emails_unsent < 0.0
175
207
  fail ArgumentError, "invalid value for 'emails_unsent', must be greater than or equal to 0.0."
176
208
  end
177
209
 
@@ -181,15 +213,12 @@ module Connectwise
181
213
  # Custom attribute writer method with validation
182
214
  # @param [Object] documents_created Value to be assigned
183
215
  def documents_created=(documents_created)
184
- if documents_created.nil?
185
- fail ArgumentError, "documents_created cannot be nil"
186
- end
187
216
 
188
- if documents_created > 2.147483647E9
217
+ if !documents_created.nil? && documents_created > 2.147483647E9
189
218
  fail ArgumentError, "invalid value for 'documents_created', must be smaller than or equal to 2.147483647E9."
190
219
  end
191
220
 
192
- if documents_created < 0.0
221
+ if !documents_created.nil? && documents_created < 0.0
193
222
  fail ArgumentError, "invalid value for 'documents_created', must be greater than or equal to 0.0."
194
223
  end
195
224
 
@@ -199,12 +228,9 @@ module Connectwise
199
228
  # Custom attribute writer method with validation
200
229
  # @param [Object] email_subject Value to be assigned
201
230
  def email_subject=(email_subject)
202
- if email_subject.nil?
203
- fail ArgumentError, "email_subject cannot be nil"
204
- end
205
231
 
206
- if email_subject.to_s.length < 1000
207
- fail ArgumentError, "invalid value for 'email_subject', the character length must be great than or equal to ."
232
+ if !email_subject.nil? && email_subject.to_s.length > 1000
233
+ fail ArgumentError, "invalid value for 'email_subject', the character length must be smaller than or equal to 1000."
208
234
  end
209
235
 
210
236
  @email_subject = email_subject
@@ -94,6 +94,14 @@ module Connectwise
94
94
  # @return Array for valid properies with the reasons
95
95
  def list_invalid_properties
96
96
  invalid_properties = Array.new
97
+ if @name.nil?
98
+ invalid_properties.push("invalid value for 'name', name cannot be nil.")
99
+ end
100
+
101
+ if @name.to_s.length > 100
102
+ invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 100.")
103
+ end
104
+
97
105
  return invalid_properties
98
106
  end
99
107
 
@@ -101,7 +109,7 @@ module Connectwise
101
109
  # @return true if the model is valid
102
110
  def valid?
103
111
  return false if @name.nil?
104
- return false if @name.to_s.length < 100
112
+ return false if @name.to_s.length > 100
105
113
  return true
106
114
  end
107
115
 
@@ -112,8 +120,8 @@ module Connectwise
112
120
  fail ArgumentError, "name cannot be nil"
113
121
  end
114
122
 
115
- if name.to_s.length < 100
116
- fail ArgumentError, "invalid value for 'name', the character length must be great than or equal to ."
123
+ if name.to_s.length > 100
124
+ fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 100."
117
125
  end
118
126
 
119
127
  @name = name
@@ -86,6 +86,14 @@ module Connectwise
86
86
  # @return Array for valid properies with the reasons
87
87
  def list_invalid_properties
88
88
  invalid_properties = Array.new
89
+ if @name.nil?
90
+ invalid_properties.push("invalid value for 'name', name cannot be nil.")
91
+ end
92
+
93
+ if @name.to_s.length > 100
94
+ invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 100.")
95
+ end
96
+
89
97
  return invalid_properties
90
98
  end
91
99
 
@@ -93,7 +101,7 @@ module Connectwise
93
101
  # @return true if the model is valid
94
102
  def valid?
95
103
  return false if @name.nil?
96
- return false if @name.to_s.length < 100
104
+ return false if @name.to_s.length > 100
97
105
  return true
98
106
  end
99
107
 
@@ -104,8 +112,8 @@ module Connectwise
104
112
  fail ArgumentError, "name cannot be nil"
105
113
  end
106
114
 
107
- if name.to_s.length < 100
108
- fail ArgumentError, "invalid value for 'name', the character length must be great than or equal to ."
115
+ if name.to_s.length > 100
116
+ fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 100."
109
117
  end
110
118
 
111
119
  @name = name
@@ -86,6 +86,14 @@ module Connectwise
86
86
  # @return Array for valid properies with the reasons
87
87
  def list_invalid_properties
88
88
  invalid_properties = Array.new
89
+ if @name.nil?
90
+ invalid_properties.push("invalid value for 'name', name cannot be nil.")
91
+ end
92
+
93
+ if @name.to_s.length > 100
94
+ invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 100.")
95
+ end
96
+
89
97
  return invalid_properties
90
98
  end
91
99
 
@@ -93,7 +101,7 @@ module Connectwise
93
101
  # @return true if the model is valid
94
102
  def valid?
95
103
  return false if @name.nil?
96
- return false if @name.to_s.length < 100
104
+ return false if @name.to_s.length > 100
97
105
  return true
98
106
  end
99
107
 
@@ -104,8 +112,8 @@ module Connectwise
104
112
  fail ArgumentError, "name cannot be nil"
105
113
  end
106
114
 
107
- if name.to_s.length < 100
108
- fail ArgumentError, "invalid value for 'name', the character length must be great than or equal to ."
115
+ if name.to_s.length > 100
116
+ fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 100."
109
117
  end
110
118
 
111
119
  @name = name