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
|
@@ -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 > 30
|
|
102
|
+
invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 30.")
|
|
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
|
|
112
|
+
return false if @name.to_s.length > 30
|
|
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
|
|
116
|
-
fail ArgumentError, "invalid value for 'name', the character length must be
|
|
123
|
+
if name.to_s.length > 30
|
|
124
|
+
fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 30."
|
|
117
125
|
end
|
|
118
126
|
|
|
119
127
|
@name = name
|
|
@@ -110,6 +110,22 @@ 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
|
+
|
|
121
|
+
if @identifier.nil?
|
|
122
|
+
invalid_properties.push("invalid value for 'identifier', identifier cannot be nil.")
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if @identifier.to_s.length > 1
|
|
126
|
+
invalid_properties.push("invalid value for 'identifier', the character length must be smaller than or equal to 1.")
|
|
127
|
+
end
|
|
128
|
+
|
|
113
129
|
return invalid_properties
|
|
114
130
|
end
|
|
115
131
|
|
|
@@ -117,9 +133,9 @@ module Connectwise
|
|
|
117
133
|
# @return true if the model is valid
|
|
118
134
|
def valid?
|
|
119
135
|
return false if @name.nil?
|
|
120
|
-
return false if @name.to_s.length
|
|
136
|
+
return false if @name.to_s.length > 50
|
|
121
137
|
return false if @identifier.nil?
|
|
122
|
-
return false if @identifier.to_s.length
|
|
138
|
+
return false if @identifier.to_s.length > 1
|
|
123
139
|
return true
|
|
124
140
|
end
|
|
125
141
|
|
|
@@ -130,8 +146,8 @@ module Connectwise
|
|
|
130
146
|
fail ArgumentError, "name cannot be nil"
|
|
131
147
|
end
|
|
132
148
|
|
|
133
|
-
if name.to_s.length
|
|
134
|
-
fail ArgumentError, "invalid value for 'name', the character length must be
|
|
149
|
+
if name.to_s.length > 50
|
|
150
|
+
fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 50."
|
|
135
151
|
end
|
|
136
152
|
|
|
137
153
|
@name = name
|
|
@@ -144,8 +160,8 @@ module Connectwise
|
|
|
144
160
|
fail ArgumentError, "identifier cannot be nil"
|
|
145
161
|
end
|
|
146
162
|
|
|
147
|
-
if identifier.to_s.length
|
|
148
|
-
fail ArgumentError, "invalid value for 'identifier', the character length must be
|
|
163
|
+
if identifier.to_s.length > 1
|
|
164
|
+
fail ArgumentError, "invalid value for 'identifier', the character length must be smaller than or equal to 1."
|
|
149
165
|
end
|
|
150
166
|
|
|
151
167
|
@identifier = identifier
|
|
@@ -123,6 +123,14 @@ module Connectwise
|
|
|
123
123
|
# @return Array for valid properies with the reasons
|
|
124
124
|
def list_invalid_properties
|
|
125
125
|
invalid_properties = Array.new
|
|
126
|
+
if @name.nil?
|
|
127
|
+
invalid_properties.push("invalid value for 'name', name cannot be nil.")
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if @name.to_s.length > 50
|
|
131
|
+
invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 50.")
|
|
132
|
+
end
|
|
133
|
+
|
|
126
134
|
return invalid_properties
|
|
127
135
|
end
|
|
128
136
|
|
|
@@ -130,7 +138,7 @@ module Connectwise
|
|
|
130
138
|
# @return true if the model is valid
|
|
131
139
|
def valid?
|
|
132
140
|
return false if @name.nil?
|
|
133
|
-
return false if @name.to_s.length
|
|
141
|
+
return false if @name.to_s.length > 50
|
|
134
142
|
shipping_type_validator = EnumAttributeValidator.new('String', ["None", "FedExTwoDay", "FedExPriority", "FedExGround", "UpsNextDay", "UpsSecondDay", "UpsGround", "CourierService", "UspsPriority", "UspsExpress"])
|
|
135
143
|
return false unless shipping_type_validator.valid?(@shipping_type)
|
|
136
144
|
return true
|
|
@@ -143,8 +151,8 @@ module Connectwise
|
|
|
143
151
|
fail ArgumentError, "name cannot be nil"
|
|
144
152
|
end
|
|
145
153
|
|
|
146
|
-
if name.to_s.length
|
|
147
|
-
fail ArgumentError, "invalid value for 'name', the character length must be
|
|
154
|
+
if name.to_s.length > 50
|
|
155
|
+
fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 50."
|
|
148
156
|
end
|
|
149
157
|
|
|
150
158
|
@name = name
|
|
@@ -102,6 +102,14 @@ module Connectwise
|
|
|
102
102
|
# @return Array for valid properies with the reasons
|
|
103
103
|
def list_invalid_properties
|
|
104
104
|
invalid_properties = Array.new
|
|
105
|
+
if @name.nil?
|
|
106
|
+
invalid_properties.push("invalid value for 'name', name cannot be nil.")
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
if @name.to_s.length > 50
|
|
110
|
+
invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 50.")
|
|
111
|
+
end
|
|
112
|
+
|
|
105
113
|
return invalid_properties
|
|
106
114
|
end
|
|
107
115
|
|
|
@@ -109,7 +117,7 @@ module Connectwise
|
|
|
109
117
|
# @return true if the model is valid
|
|
110
118
|
def valid?
|
|
111
119
|
return false if @name.nil?
|
|
112
|
-
return false if @name.to_s.length
|
|
120
|
+
return false if @name.to_s.length > 50
|
|
113
121
|
return true
|
|
114
122
|
end
|
|
115
123
|
|
|
@@ -120,8 +128,8 @@ module Connectwise
|
|
|
120
128
|
fail ArgumentError, "name cannot be nil"
|
|
121
129
|
end
|
|
122
130
|
|
|
123
|
-
if name.to_s.length
|
|
124
|
-
fail ArgumentError, "invalid value for 'name', the character length must be
|
|
131
|
+
if name.to_s.length > 50
|
|
132
|
+
fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 50."
|
|
125
133
|
end
|
|
126
134
|
|
|
127
135
|
@name = name
|
|
@@ -163,6 +163,14 @@ module Connectwise
|
|
|
163
163
|
# @return Array for valid properies with the reasons
|
|
164
164
|
def list_invalid_properties
|
|
165
165
|
invalid_properties = Array.new
|
|
166
|
+
if @name.nil?
|
|
167
|
+
invalid_properties.push("invalid value for 'name', name cannot be nil.")
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
if @name.to_s.length > 50
|
|
171
|
+
invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 50.")
|
|
172
|
+
end
|
|
173
|
+
|
|
166
174
|
return invalid_properties
|
|
167
175
|
end
|
|
168
176
|
|
|
@@ -170,7 +178,7 @@ module Connectwise
|
|
|
170
178
|
# @return true if the model is valid
|
|
171
179
|
def valid?
|
|
172
180
|
return false if @name.nil?
|
|
173
|
-
return false if @name.to_s.length
|
|
181
|
+
return false if @name.to_s.length > 50
|
|
174
182
|
escalation_status_validator = EnumAttributeValidator.new('String', ["NotResponded", "Responded", "ResolutionPlan", "Resolved", "NoEscalation"])
|
|
175
183
|
return false unless escalation_status_validator.valid?(@escalation_status)
|
|
176
184
|
return true
|
|
@@ -183,8 +191,8 @@ module Connectwise
|
|
|
183
191
|
fail ArgumentError, "name cannot be nil"
|
|
184
192
|
end
|
|
185
193
|
|
|
186
|
-
if name.to_s.length
|
|
187
|
-
fail ArgumentError, "invalid value for 'name', the character length must be
|
|
194
|
+
if name.to_s.length > 50
|
|
195
|
+
fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 50."
|
|
188
196
|
end
|
|
189
197
|
|
|
190
198
|
@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 > 50
|
|
94
|
+
invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 50.")
|
|
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
|
|
104
|
+
return false if @name.to_s.length > 50
|
|
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
|
|
108
|
-
fail ArgumentError, "invalid value for 'name', the character length must be
|
|
115
|
+
if name.to_s.length > 50
|
|
116
|
+
fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 50."
|
|
109
117
|
end
|
|
110
118
|
|
|
111
119
|
@name = name
|
|
@@ -120,6 +120,14 @@ module Connectwise
|
|
|
120
120
|
# @return Array for valid properies with the reasons
|
|
121
121
|
def list_invalid_properties
|
|
122
122
|
invalid_properties = Array.new
|
|
123
|
+
if @name.nil?
|
|
124
|
+
invalid_properties.push("invalid value for 'name', name cannot be nil.")
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
if @name.to_s.length > 50
|
|
128
|
+
invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 50.")
|
|
129
|
+
end
|
|
130
|
+
|
|
123
131
|
return invalid_properties
|
|
124
132
|
end
|
|
125
133
|
|
|
@@ -127,7 +135,7 @@ module Connectwise
|
|
|
127
135
|
# @return true if the model is valid
|
|
128
136
|
def valid?
|
|
129
137
|
return false if @name.nil?
|
|
130
|
-
return false if @name.to_s.length
|
|
138
|
+
return false if @name.to_s.length > 50
|
|
131
139
|
return true
|
|
132
140
|
end
|
|
133
141
|
|
|
@@ -138,8 +146,8 @@ module Connectwise
|
|
|
138
146
|
fail ArgumentError, "name cannot be nil"
|
|
139
147
|
end
|
|
140
148
|
|
|
141
|
-
if name.to_s.length
|
|
142
|
-
fail ArgumentError, "invalid value for 'name', the character length must be
|
|
149
|
+
if name.to_s.length > 50
|
|
150
|
+
fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 50."
|
|
143
151
|
end
|
|
144
152
|
|
|
145
153
|
@name = name
|
|
@@ -158,6 +158,29 @@ module Connectwise
|
|
|
158
158
|
# @return Array for valid properies with the reasons
|
|
159
159
|
def list_invalid_properties
|
|
160
160
|
invalid_properties = Array.new
|
|
161
|
+
if @name.nil?
|
|
162
|
+
invalid_properties.push("invalid value for 'name', name cannot be nil.")
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if @name.to_s.length > 50
|
|
166
|
+
invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 50.")
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
if !@header_text.nil? && @header_text.to_s.length > 4000
|
|
171
|
+
invalid_properties.push("invalid value for 'header_text', the character length must be smaller than or equal to 4000.")
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
if !@footer_text.nil? && @footer_text.to_s.length > 500
|
|
176
|
+
invalid_properties.push("invalid value for 'footer_text', the character length must be smaller than or equal to 500.")
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
if !@thank_you_text.nil? && @thank_you_text.to_s.length > 4000
|
|
181
|
+
invalid_properties.push("invalid value for 'thank_you_text', the character length must be smaller than or equal to 4000.")
|
|
182
|
+
end
|
|
183
|
+
|
|
161
184
|
return invalid_properties
|
|
162
185
|
end
|
|
163
186
|
|
|
@@ -165,10 +188,10 @@ module Connectwise
|
|
|
165
188
|
# @return true if the model is valid
|
|
166
189
|
def valid?
|
|
167
190
|
return false if @name.nil?
|
|
168
|
-
return false if @name.to_s.length
|
|
169
|
-
return false if @header_text.to_s.length
|
|
170
|
-
return false if @footer_text.to_s.length
|
|
171
|
-
return false if @thank_you_text.to_s.length
|
|
191
|
+
return false if @name.to_s.length > 50
|
|
192
|
+
return false if !@header_text.nil? && @header_text.to_s.length > 4000
|
|
193
|
+
return false if !@footer_text.nil? && @footer_text.to_s.length > 500
|
|
194
|
+
return false if !@thank_you_text.nil? && @thank_you_text.to_s.length > 4000
|
|
172
195
|
return true
|
|
173
196
|
end
|
|
174
197
|
|
|
@@ -179,8 +202,8 @@ module Connectwise
|
|
|
179
202
|
fail ArgumentError, "name cannot be nil"
|
|
180
203
|
end
|
|
181
204
|
|
|
182
|
-
if name.to_s.length
|
|
183
|
-
fail ArgumentError, "invalid value for 'name', the character length must be
|
|
205
|
+
if name.to_s.length > 50
|
|
206
|
+
fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 50."
|
|
184
207
|
end
|
|
185
208
|
|
|
186
209
|
@name = name
|
|
@@ -189,12 +212,9 @@ module Connectwise
|
|
|
189
212
|
# Custom attribute writer method with validation
|
|
190
213
|
# @param [Object] header_text Value to be assigned
|
|
191
214
|
def header_text=(header_text)
|
|
192
|
-
if header_text.nil?
|
|
193
|
-
fail ArgumentError, "header_text cannot be nil"
|
|
194
|
-
end
|
|
195
215
|
|
|
196
|
-
if header_text.to_s.length
|
|
197
|
-
fail ArgumentError, "invalid value for 'header_text', the character length must be
|
|
216
|
+
if !header_text.nil? && header_text.to_s.length > 4000
|
|
217
|
+
fail ArgumentError, "invalid value for 'header_text', the character length must be smaller than or equal to 4000."
|
|
198
218
|
end
|
|
199
219
|
|
|
200
220
|
@header_text = header_text
|
|
@@ -203,12 +223,9 @@ module Connectwise
|
|
|
203
223
|
# Custom attribute writer method with validation
|
|
204
224
|
# @param [Object] footer_text Value to be assigned
|
|
205
225
|
def footer_text=(footer_text)
|
|
206
|
-
if footer_text.nil?
|
|
207
|
-
fail ArgumentError, "footer_text cannot be nil"
|
|
208
|
-
end
|
|
209
226
|
|
|
210
|
-
if footer_text.to_s.length
|
|
211
|
-
fail ArgumentError, "invalid value for 'footer_text', the character length must be
|
|
227
|
+
if !footer_text.nil? && footer_text.to_s.length > 500
|
|
228
|
+
fail ArgumentError, "invalid value for 'footer_text', the character length must be smaller than or equal to 500."
|
|
212
229
|
end
|
|
213
230
|
|
|
214
231
|
@footer_text = footer_text
|
|
@@ -217,12 +234,9 @@ module Connectwise
|
|
|
217
234
|
# Custom attribute writer method with validation
|
|
218
235
|
# @param [Object] thank_you_text Value to be assigned
|
|
219
236
|
def thank_you_text=(thank_you_text)
|
|
220
|
-
if thank_you_text.nil?
|
|
221
|
-
fail ArgumentError, "thank_you_text cannot be nil"
|
|
222
|
-
end
|
|
223
237
|
|
|
224
|
-
if thank_you_text.to_s.length
|
|
225
|
-
fail ArgumentError, "invalid value for 'thank_you_text', the character length must be
|
|
238
|
+
if !thank_you_text.nil? && thank_you_text.to_s.length > 4000
|
|
239
|
+
fail ArgumentError, "invalid value for 'thank_you_text', the character length must be smaller than or equal to 4000."
|
|
226
240
|
end
|
|
227
241
|
|
|
228
242
|
@thank_you_text = thank_you_text
|
|
@@ -157,6 +157,14 @@ module Connectwise
|
|
|
157
157
|
# @return Array for valid properies with the reasons
|
|
158
158
|
def list_invalid_properties
|
|
159
159
|
invalid_properties = Array.new
|
|
160
|
+
if @question.nil?
|
|
161
|
+
invalid_properties.push("invalid value for 'question', question cannot be nil.")
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if @question.to_s.length > 1000
|
|
165
|
+
invalid_properties.push("invalid value for 'question', the character length must be smaller than or equal to 1000.")
|
|
166
|
+
end
|
|
167
|
+
|
|
160
168
|
return invalid_properties
|
|
161
169
|
end
|
|
162
170
|
|
|
@@ -167,7 +175,7 @@ module Connectwise
|
|
|
167
175
|
type_validator = EnumAttributeValidator.new('String', ["OpenEnded", "Selection"])
|
|
168
176
|
return false unless type_validator.valid?(@type)
|
|
169
177
|
return false if @question.nil?
|
|
170
|
-
return false if @question.to_s.length
|
|
178
|
+
return false if @question.to_s.length > 1000
|
|
171
179
|
return true
|
|
172
180
|
end
|
|
173
181
|
|
|
@@ -188,8 +196,8 @@ module Connectwise
|
|
|
188
196
|
fail ArgumentError, "question cannot be nil"
|
|
189
197
|
end
|
|
190
198
|
|
|
191
|
-
if question.to_s.length
|
|
192
|
-
fail ArgumentError, "invalid value for 'question', the character length must be
|
|
199
|
+
if question.to_s.length > 1000
|
|
200
|
+
fail ArgumentError, "invalid value for 'question', the character length must be smaller than or equal to 1000."
|
|
193
201
|
end
|
|
194
202
|
|
|
195
203
|
@question = question
|
|
@@ -77,6 +77,14 @@ module Connectwise
|
|
|
77
77
|
# @return Array for valid properies with the reasons
|
|
78
78
|
def list_invalid_properties
|
|
79
79
|
invalid_properties = Array.new
|
|
80
|
+
if @caption.nil?
|
|
81
|
+
invalid_properties.push("invalid value for 'caption', caption cannot be nil.")
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if @caption.to_s.length > 100
|
|
85
|
+
invalid_properties.push("invalid value for 'caption', the character length must be smaller than or equal to 100.")
|
|
86
|
+
end
|
|
87
|
+
|
|
80
88
|
return invalid_properties
|
|
81
89
|
end
|
|
82
90
|
|
|
@@ -84,7 +92,7 @@ module Connectwise
|
|
|
84
92
|
# @return true if the model is valid
|
|
85
93
|
def valid?
|
|
86
94
|
return false if @caption.nil?
|
|
87
|
-
return false if @caption.to_s.length
|
|
95
|
+
return false if @caption.to_s.length > 100
|
|
88
96
|
return true
|
|
89
97
|
end
|
|
90
98
|
|
|
@@ -95,8 +103,8 @@ module Connectwise
|
|
|
95
103
|
fail ArgumentError, "caption cannot be nil"
|
|
96
104
|
end
|
|
97
105
|
|
|
98
|
-
if caption.to_s.length
|
|
99
|
-
fail ArgumentError, "invalid value for 'caption', the character length must be
|
|
106
|
+
if caption.to_s.length > 100
|
|
107
|
+
fail ArgumentError, "invalid value for 'caption', the character length must be smaller than or equal to 100."
|
|
100
108
|
end
|
|
101
109
|
|
|
102
110
|
@caption = caption
|
|
@@ -163,14 +163,23 @@ module Connectwise
|
|
|
163
163
|
# @return Array for valid properies with the reasons
|
|
164
164
|
def list_invalid_properties
|
|
165
165
|
invalid_properties = Array.new
|
|
166
|
+
|
|
167
|
+
if !@priority.nil? && @priority > 2.147483647E9
|
|
168
|
+
invalid_properties.push("invalid value for 'priority', must be smaller than or equal to 2.147483647E9.")
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
if !@priority.nil? && @priority < 1.0
|
|
172
|
+
invalid_properties.push("invalid value for 'priority', must be greater than or equal to 1.0.")
|
|
173
|
+
end
|
|
174
|
+
|
|
166
175
|
return invalid_properties
|
|
167
176
|
end
|
|
168
177
|
|
|
169
178
|
# Check to see if the all the properties in the model are valid
|
|
170
179
|
# @return true if the model is valid
|
|
171
180
|
def valid?
|
|
172
|
-
return false if @priority > 2.147483647E9
|
|
173
|
-
return false if @priority < 1.0
|
|
181
|
+
return false if !@priority.nil? && @priority > 2.147483647E9
|
|
182
|
+
return false if !@priority.nil? && @priority < 1.0
|
|
174
183
|
child_schedule_action_validator = EnumAttributeValidator.new('String', ["Transfer", "Delete", "Done"])
|
|
175
184
|
return false unless child_schedule_action_validator.valid?(@child_schedule_action)
|
|
176
185
|
return true
|
|
@@ -179,15 +188,12 @@ module Connectwise
|
|
|
179
188
|
# Custom attribute writer method with validation
|
|
180
189
|
# @param [Object] priority Value to be assigned
|
|
181
190
|
def priority=(priority)
|
|
182
|
-
if priority.nil?
|
|
183
|
-
fail ArgumentError, "priority cannot be nil"
|
|
184
|
-
end
|
|
185
191
|
|
|
186
|
-
if priority > 2.147483647E9
|
|
192
|
+
if !priority.nil? && priority > 2.147483647E9
|
|
187
193
|
fail ArgumentError, "invalid value for 'priority', must be smaller than or equal to 2.147483647E9."
|
|
188
194
|
end
|
|
189
195
|
|
|
190
|
-
if priority < 1.0
|
|
196
|
+
if !priority.nil? && priority < 1.0
|
|
191
197
|
fail ArgumentError, "invalid value for 'priority', must be greater than or equal to 1.0."
|
|
192
198
|
end
|
|
193
199
|
|