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,19 @@ 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 > 50
|
|
102
|
+
invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 50.")
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
if !@url.nil? && @url.to_s.length > 1000
|
|
107
|
+
invalid_properties.push("invalid value for 'url', the character length must be smaller than or equal to 1000.")
|
|
108
|
+
end
|
|
109
|
+
|
|
97
110
|
return invalid_properties
|
|
98
111
|
end
|
|
99
112
|
|
|
@@ -101,9 +114,9 @@ module Connectwise
|
|
|
101
114
|
# @return true if the model is valid
|
|
102
115
|
def valid?
|
|
103
116
|
return false if @name.nil?
|
|
104
|
-
return false if @name.to_s.length
|
|
117
|
+
return false if @name.to_s.length > 50
|
|
105
118
|
return false if @table_reference_id.nil?
|
|
106
|
-
return false if @url.to_s.length
|
|
119
|
+
return false if !@url.nil? && @url.to_s.length > 1000
|
|
107
120
|
return true
|
|
108
121
|
end
|
|
109
122
|
|
|
@@ -114,8 +127,8 @@ module Connectwise
|
|
|
114
127
|
fail ArgumentError, "name cannot be nil"
|
|
115
128
|
end
|
|
116
129
|
|
|
117
|
-
if name.to_s.length
|
|
118
|
-
fail ArgumentError, "invalid value for 'name', the character length must be
|
|
130
|
+
if name.to_s.length > 50
|
|
131
|
+
fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 50."
|
|
119
132
|
end
|
|
120
133
|
|
|
121
134
|
@name = name
|
|
@@ -124,12 +137,9 @@ module Connectwise
|
|
|
124
137
|
# Custom attribute writer method with validation
|
|
125
138
|
# @param [Object] url Value to be assigned
|
|
126
139
|
def url=(url)
|
|
127
|
-
if url.nil?
|
|
128
|
-
fail ArgumentError, "url cannot be nil"
|
|
129
|
-
end
|
|
130
140
|
|
|
131
|
-
if url.to_s.length
|
|
132
|
-
fail ArgumentError, "invalid value for 'url', the character length must be
|
|
141
|
+
if !url.nil? && url.to_s.length > 1000
|
|
142
|
+
fail ArgumentError, "invalid value for 'url', the character length must be smaller than or equal to 1000."
|
|
133
143
|
end
|
|
134
144
|
|
|
135
145
|
@url = url
|
|
@@ -101,6 +101,14 @@ module Connectwise
|
|
|
101
101
|
# @return Array for valid properies with the reasons
|
|
102
102
|
def list_invalid_properties
|
|
103
103
|
invalid_properties = Array.new
|
|
104
|
+
if @url.nil?
|
|
105
|
+
invalid_properties.push("invalid value for 'url', url cannot be nil.")
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if @url.to_s.length > 2083
|
|
109
|
+
invalid_properties.push("invalid value for 'url', the character length must be smaller than or equal to 2083.")
|
|
110
|
+
end
|
|
111
|
+
|
|
104
112
|
return invalid_properties
|
|
105
113
|
end
|
|
106
114
|
|
|
@@ -109,7 +117,7 @@ module Connectwise
|
|
|
109
117
|
def valid?
|
|
110
118
|
return false if @contact_id.nil?
|
|
111
119
|
return false if @url.nil?
|
|
112
|
-
return false if @url.to_s.length
|
|
120
|
+
return false if @url.to_s.length > 2083
|
|
113
121
|
return true
|
|
114
122
|
end
|
|
115
123
|
|
|
@@ -120,8 +128,8 @@ module Connectwise
|
|
|
120
128
|
fail ArgumentError, "url cannot be nil"
|
|
121
129
|
end
|
|
122
130
|
|
|
123
|
-
if url.to_s.length
|
|
124
|
-
fail ArgumentError, "invalid value for 'url', the character length must be
|
|
131
|
+
if url.to_s.length > 2083
|
|
132
|
+
fail ArgumentError, "invalid value for 'url', the character length must be smaller than or equal to 2083."
|
|
125
133
|
end
|
|
126
134
|
|
|
127
135
|
@url = url
|
|
@@ -115,6 +115,14 @@ module Connectwise
|
|
|
115
115
|
# @return Array for valid properies with the reasons
|
|
116
116
|
def list_invalid_properties
|
|
117
117
|
invalid_properties = Array.new
|
|
118
|
+
if @name.nil?
|
|
119
|
+
invalid_properties.push("invalid value for 'name', name cannot be nil.")
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if @name.to_s.length > 30
|
|
123
|
+
invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 30.")
|
|
124
|
+
end
|
|
125
|
+
|
|
118
126
|
return invalid_properties
|
|
119
127
|
end
|
|
120
128
|
|
|
@@ -122,7 +130,7 @@ module Connectwise
|
|
|
122
130
|
# @return true if the model is valid
|
|
123
131
|
def valid?
|
|
124
132
|
return false if @name.nil?
|
|
125
|
-
return false if @name.to_s.length
|
|
133
|
+
return false if @name.to_s.length > 30
|
|
126
134
|
return false if @where.nil?
|
|
127
135
|
where_validator = EnumAttributeValidator.new('String', ["OnSite", "Remote", "InHouse"])
|
|
128
136
|
return false unless where_validator.valid?(@where)
|
|
@@ -136,8 +144,8 @@ module Connectwise
|
|
|
136
144
|
fail ArgumentError, "name cannot be nil"
|
|
137
145
|
end
|
|
138
146
|
|
|
139
|
-
if name.to_s.length
|
|
140
|
-
fail ArgumentError, "invalid value for 'name', the character length must be
|
|
147
|
+
if name.to_s.length > 30
|
|
148
|
+
fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 30."
|
|
141
149
|
end
|
|
142
150
|
|
|
143
151
|
@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
|
|
@@ -94,6 +94,11 @@ 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
|
+
|
|
98
|
+
if !@note.nil? && @note.to_s.length > 50
|
|
99
|
+
invalid_properties.push("invalid value for 'note', the character length must be smaller than or equal to 50.")
|
|
100
|
+
end
|
|
101
|
+
|
|
97
102
|
return invalid_properties
|
|
98
103
|
end
|
|
99
104
|
|
|
@@ -101,19 +106,16 @@ module Connectwise
|
|
|
101
106
|
# @return true if the model is valid
|
|
102
107
|
def valid?
|
|
103
108
|
return false if @id.nil?
|
|
104
|
-
return false if @note.to_s.length
|
|
109
|
+
return false if !@note.nil? && @note.to_s.length > 50
|
|
105
110
|
return true
|
|
106
111
|
end
|
|
107
112
|
|
|
108
113
|
# Custom attribute writer method with validation
|
|
109
114
|
# @param [Object] note Value to be assigned
|
|
110
115
|
def note=(note)
|
|
111
|
-
if note.nil?
|
|
112
|
-
fail ArgumentError, "note cannot be nil"
|
|
113
|
-
end
|
|
114
116
|
|
|
115
|
-
if note.to_s.length
|
|
116
|
-
fail ArgumentError, "invalid value for 'note', the character length must be
|
|
117
|
+
if !note.nil? && note.to_s.length > 50
|
|
118
|
+
fail ArgumentError, "invalid value for 'note', the character length must be smaller than or equal to 50."
|
|
117
119
|
end
|
|
118
120
|
|
|
119
121
|
@note = note
|
|
@@ -773,6 +773,90 @@ module Connectwise
|
|
|
773
773
|
# @return Array for valid properies with the reasons
|
|
774
774
|
def list_invalid_properties
|
|
775
775
|
invalid_properties = Array.new
|
|
776
|
+
|
|
777
|
+
if !@default_email.nil? && @default_email.to_s.length > 250
|
|
778
|
+
invalid_properties.push("invalid value for 'default_email', the character length must be smaller than or equal to 250.")
|
|
779
|
+
end
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
if !@default_phone.nil? && @default_phone.to_s.length > 15
|
|
783
|
+
invalid_properties.push("invalid value for 'default_phone', the character length must be smaller than or equal to 15.")
|
|
784
|
+
end
|
|
785
|
+
|
|
786
|
+
if @first_name.nil?
|
|
787
|
+
invalid_properties.push("invalid value for 'first_name', first_name cannot be nil.")
|
|
788
|
+
end
|
|
789
|
+
|
|
790
|
+
if @first_name.to_s.length > 30
|
|
791
|
+
invalid_properties.push("invalid value for 'first_name', the character length must be smaller than or equal to 30.")
|
|
792
|
+
end
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
if !@home_email.nil? && @home_email.to_s.length > 250
|
|
796
|
+
invalid_properties.push("invalid value for 'home_email', the character length must be smaller than or equal to 250.")
|
|
797
|
+
end
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
if !@home_extension.nil? && @home_extension.to_s.length > 10
|
|
801
|
+
invalid_properties.push("invalid value for 'home_extension', the character length must be smaller than or equal to 10.")
|
|
802
|
+
end
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
if !@home_phone.nil? && @home_phone.to_s.length > 15
|
|
806
|
+
invalid_properties.push("invalid value for 'home_phone', the character length must be smaller than or equal to 15.")
|
|
807
|
+
end
|
|
808
|
+
|
|
809
|
+
if @identifier.nil?
|
|
810
|
+
invalid_properties.push("invalid value for 'identifier', identifier cannot be nil.")
|
|
811
|
+
end
|
|
812
|
+
|
|
813
|
+
if @identifier.to_s.length > 15
|
|
814
|
+
invalid_properties.push("invalid value for 'identifier', the character length must be smaller than or equal to 15.")
|
|
815
|
+
end
|
|
816
|
+
|
|
817
|
+
if @last_name.nil?
|
|
818
|
+
invalid_properties.push("invalid value for 'last_name', last_name cannot be nil.")
|
|
819
|
+
end
|
|
820
|
+
|
|
821
|
+
if @last_name.to_s.length > 30
|
|
822
|
+
invalid_properties.push("invalid value for 'last_name', the character length must be smaller than or equal to 30.")
|
|
823
|
+
end
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
if !@mobile_email.nil? && @mobile_email.to_s.length > 250
|
|
827
|
+
invalid_properties.push("invalid value for 'mobile_email', the character length must be smaller than or equal to 250.")
|
|
828
|
+
end
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
if !@mobile_extension.nil? && @mobile_extension.to_s.length > 10
|
|
832
|
+
invalid_properties.push("invalid value for 'mobile_extension', the character length must be smaller than or equal to 10.")
|
|
833
|
+
end
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
if !@mobile_phone.nil? && @mobile_phone.to_s.length > 15
|
|
837
|
+
invalid_properties.push("invalid value for 'mobile_phone', the character length must be smaller than or equal to 15.")
|
|
838
|
+
end
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
if !@office_email.nil? && @office_email.to_s.length > 250
|
|
842
|
+
invalid_properties.push("invalid value for 'office_email', the character length must be smaller than or equal to 250.")
|
|
843
|
+
end
|
|
844
|
+
|
|
845
|
+
|
|
846
|
+
if !@office_extension.nil? && @office_extension.to_s.length > 10
|
|
847
|
+
invalid_properties.push("invalid value for 'office_extension', the character length must be smaller than or equal to 10.")
|
|
848
|
+
end
|
|
849
|
+
|
|
850
|
+
|
|
851
|
+
if !@office_phone.nil? && @office_phone.to_s.length > 15
|
|
852
|
+
invalid_properties.push("invalid value for 'office_phone', the character length must be smaller than or equal to 15.")
|
|
853
|
+
end
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
if !@title.nil? && @title.to_s.length > 50
|
|
857
|
+
invalid_properties.push("invalid value for 'title', the character length must be smaller than or equal to 50.")
|
|
858
|
+
end
|
|
859
|
+
|
|
776
860
|
return invalid_properties
|
|
777
861
|
end
|
|
778
862
|
|
|
@@ -780,32 +864,32 @@ module Connectwise
|
|
|
780
864
|
# @return true if the model is valid
|
|
781
865
|
def valid?
|
|
782
866
|
return false if @default_department_id.nil?
|
|
783
|
-
return false if @default_email.to_s.length
|
|
867
|
+
return false if !@default_email.nil? && @default_email.to_s.length > 250
|
|
784
868
|
return false if @default_location_id.nil?
|
|
785
|
-
return false if @default_phone.to_s.length
|
|
869
|
+
return false if !@default_phone.nil? && @default_phone.to_s.length > 15
|
|
786
870
|
return false if @expense_approver.nil?
|
|
787
871
|
return false if @first_name.nil?
|
|
788
|
-
return false if @first_name.to_s.length
|
|
789
|
-
return false if @home_email.to_s.length
|
|
790
|
-
return false if @home_extension.to_s.length
|
|
791
|
-
return false if @home_phone.to_s.length
|
|
872
|
+
return false if @first_name.to_s.length > 30
|
|
873
|
+
return false if !@home_email.nil? && @home_email.to_s.length > 250
|
|
874
|
+
return false if !@home_extension.nil? && @home_extension.to_s.length > 10
|
|
875
|
+
return false if !@home_phone.nil? && @home_phone.to_s.length > 15
|
|
792
876
|
return false if @identifier.nil?
|
|
793
|
-
return false if @identifier.to_s.length
|
|
877
|
+
return false if @identifier.to_s.length > 15
|
|
794
878
|
return false if @last_name.nil?
|
|
795
|
-
return false if @last_name.to_s.length
|
|
879
|
+
return false if @last_name.to_s.length > 30
|
|
796
880
|
return false if @license_class.nil?
|
|
797
881
|
license_class_validator = EnumAttributeValidator.new('String', ["F", "A", "C", "X"])
|
|
798
882
|
return false unless license_class_validator.valid?(@license_class)
|
|
799
|
-
return false if @mobile_email.to_s.length
|
|
800
|
-
return false if @mobile_extension.to_s.length
|
|
801
|
-
return false if @mobile_phone.to_s.length
|
|
802
|
-
return false if @office_email.to_s.length
|
|
803
|
-
return false if @office_extension.to_s.length
|
|
804
|
-
return false if @office_phone.to_s.length
|
|
883
|
+
return false if !@mobile_email.nil? && @mobile_email.to_s.length > 250
|
|
884
|
+
return false if !@mobile_extension.nil? && @mobile_extension.to_s.length > 10
|
|
885
|
+
return false if !@mobile_phone.nil? && @mobile_phone.to_s.length > 15
|
|
886
|
+
return false if !@office_email.nil? && @office_email.to_s.length > 250
|
|
887
|
+
return false if !@office_extension.nil? && @office_extension.to_s.length > 10
|
|
888
|
+
return false if !@office_phone.nil? && @office_phone.to_s.length > 15
|
|
805
889
|
return false if @sales_default_location_id.nil?
|
|
806
890
|
return false if @time_approver.nil?
|
|
807
891
|
return false if @time_zone.nil?
|
|
808
|
-
return false if @title.to_s.length
|
|
892
|
+
return false if !@title.nil? && @title.to_s.length > 50
|
|
809
893
|
return false if @work_role.nil?
|
|
810
894
|
return true
|
|
811
895
|
end
|
|
@@ -813,12 +897,9 @@ module Connectwise
|
|
|
813
897
|
# Custom attribute writer method with validation
|
|
814
898
|
# @param [Object] default_email Value to be assigned
|
|
815
899
|
def default_email=(default_email)
|
|
816
|
-
if default_email.nil?
|
|
817
|
-
fail ArgumentError, "default_email cannot be nil"
|
|
818
|
-
end
|
|
819
900
|
|
|
820
|
-
if default_email.to_s.length
|
|
821
|
-
fail ArgumentError, "invalid value for 'default_email', the character length must be
|
|
901
|
+
if !default_email.nil? && default_email.to_s.length > 250
|
|
902
|
+
fail ArgumentError, "invalid value for 'default_email', the character length must be smaller than or equal to 250."
|
|
822
903
|
end
|
|
823
904
|
|
|
824
905
|
@default_email = default_email
|
|
@@ -827,12 +908,9 @@ module Connectwise
|
|
|
827
908
|
# Custom attribute writer method with validation
|
|
828
909
|
# @param [Object] default_phone Value to be assigned
|
|
829
910
|
def default_phone=(default_phone)
|
|
830
|
-
if default_phone.nil?
|
|
831
|
-
fail ArgumentError, "default_phone cannot be nil"
|
|
832
|
-
end
|
|
833
911
|
|
|
834
|
-
if default_phone.to_s.length
|
|
835
|
-
fail ArgumentError, "invalid value for 'default_phone', the character length must be
|
|
912
|
+
if !default_phone.nil? && default_phone.to_s.length > 15
|
|
913
|
+
fail ArgumentError, "invalid value for 'default_phone', the character length must be smaller than or equal to 15."
|
|
836
914
|
end
|
|
837
915
|
|
|
838
916
|
@default_phone = default_phone
|
|
@@ -845,8 +923,8 @@ module Connectwise
|
|
|
845
923
|
fail ArgumentError, "first_name cannot be nil"
|
|
846
924
|
end
|
|
847
925
|
|
|
848
|
-
if first_name.to_s.length
|
|
849
|
-
fail ArgumentError, "invalid value for 'first_name', the character length must be
|
|
926
|
+
if first_name.to_s.length > 30
|
|
927
|
+
fail ArgumentError, "invalid value for 'first_name', the character length must be smaller than or equal to 30."
|
|
850
928
|
end
|
|
851
929
|
|
|
852
930
|
@first_name = first_name
|
|
@@ -855,12 +933,9 @@ module Connectwise
|
|
|
855
933
|
# Custom attribute writer method with validation
|
|
856
934
|
# @param [Object] home_email Value to be assigned
|
|
857
935
|
def home_email=(home_email)
|
|
858
|
-
if home_email.nil?
|
|
859
|
-
fail ArgumentError, "home_email cannot be nil"
|
|
860
|
-
end
|
|
861
936
|
|
|
862
|
-
if home_email.to_s.length
|
|
863
|
-
fail ArgumentError, "invalid value for 'home_email', the character length must be
|
|
937
|
+
if !home_email.nil? && home_email.to_s.length > 250
|
|
938
|
+
fail ArgumentError, "invalid value for 'home_email', the character length must be smaller than or equal to 250."
|
|
864
939
|
end
|
|
865
940
|
|
|
866
941
|
@home_email = home_email
|
|
@@ -869,12 +944,9 @@ module Connectwise
|
|
|
869
944
|
# Custom attribute writer method with validation
|
|
870
945
|
# @param [Object] home_extension Value to be assigned
|
|
871
946
|
def home_extension=(home_extension)
|
|
872
|
-
if home_extension.nil?
|
|
873
|
-
fail ArgumentError, "home_extension cannot be nil"
|
|
874
|
-
end
|
|
875
947
|
|
|
876
|
-
if home_extension.to_s.length
|
|
877
|
-
fail ArgumentError, "invalid value for 'home_extension', the character length must be
|
|
948
|
+
if !home_extension.nil? && home_extension.to_s.length > 10
|
|
949
|
+
fail ArgumentError, "invalid value for 'home_extension', the character length must be smaller than or equal to 10."
|
|
878
950
|
end
|
|
879
951
|
|
|
880
952
|
@home_extension = home_extension
|
|
@@ -883,12 +955,9 @@ module Connectwise
|
|
|
883
955
|
# Custom attribute writer method with validation
|
|
884
956
|
# @param [Object] home_phone Value to be assigned
|
|
885
957
|
def home_phone=(home_phone)
|
|
886
|
-
if home_phone.nil?
|
|
887
|
-
fail ArgumentError, "home_phone cannot be nil"
|
|
888
|
-
end
|
|
889
958
|
|
|
890
|
-
if home_phone.to_s.length
|
|
891
|
-
fail ArgumentError, "invalid value for 'home_phone', the character length must be
|
|
959
|
+
if !home_phone.nil? && home_phone.to_s.length > 15
|
|
960
|
+
fail ArgumentError, "invalid value for 'home_phone', the character length must be smaller than or equal to 15."
|
|
892
961
|
end
|
|
893
962
|
|
|
894
963
|
@home_phone = home_phone
|
|
@@ -901,8 +970,8 @@ module Connectwise
|
|
|
901
970
|
fail ArgumentError, "identifier cannot be nil"
|
|
902
971
|
end
|
|
903
972
|
|
|
904
|
-
if identifier.to_s.length
|
|
905
|
-
fail ArgumentError, "invalid value for 'identifier', the character length must be
|
|
973
|
+
if identifier.to_s.length > 15
|
|
974
|
+
fail ArgumentError, "invalid value for 'identifier', the character length must be smaller than or equal to 15."
|
|
906
975
|
end
|
|
907
976
|
|
|
908
977
|
@identifier = identifier
|
|
@@ -915,8 +984,8 @@ module Connectwise
|
|
|
915
984
|
fail ArgumentError, "last_name cannot be nil"
|
|
916
985
|
end
|
|
917
986
|
|
|
918
|
-
if last_name.to_s.length
|
|
919
|
-
fail ArgumentError, "invalid value for 'last_name', the character length must be
|
|
987
|
+
if last_name.to_s.length > 30
|
|
988
|
+
fail ArgumentError, "invalid value for 'last_name', the character length must be smaller than or equal to 30."
|
|
920
989
|
end
|
|
921
990
|
|
|
922
991
|
@last_name = last_name
|
|
@@ -935,12 +1004,9 @@ module Connectwise
|
|
|
935
1004
|
# Custom attribute writer method with validation
|
|
936
1005
|
# @param [Object] mobile_email Value to be assigned
|
|
937
1006
|
def mobile_email=(mobile_email)
|
|
938
|
-
if mobile_email.nil?
|
|
939
|
-
fail ArgumentError, "mobile_email cannot be nil"
|
|
940
|
-
end
|
|
941
1007
|
|
|
942
|
-
if mobile_email.to_s.length
|
|
943
|
-
fail ArgumentError, "invalid value for 'mobile_email', the character length must be
|
|
1008
|
+
if !mobile_email.nil? && mobile_email.to_s.length > 250
|
|
1009
|
+
fail ArgumentError, "invalid value for 'mobile_email', the character length must be smaller than or equal to 250."
|
|
944
1010
|
end
|
|
945
1011
|
|
|
946
1012
|
@mobile_email = mobile_email
|
|
@@ -949,12 +1015,9 @@ module Connectwise
|
|
|
949
1015
|
# Custom attribute writer method with validation
|
|
950
1016
|
# @param [Object] mobile_extension Value to be assigned
|
|
951
1017
|
def mobile_extension=(mobile_extension)
|
|
952
|
-
if mobile_extension.nil?
|
|
953
|
-
fail ArgumentError, "mobile_extension cannot be nil"
|
|
954
|
-
end
|
|
955
1018
|
|
|
956
|
-
if mobile_extension.to_s.length
|
|
957
|
-
fail ArgumentError, "invalid value for 'mobile_extension', the character length must be
|
|
1019
|
+
if !mobile_extension.nil? && mobile_extension.to_s.length > 10
|
|
1020
|
+
fail ArgumentError, "invalid value for 'mobile_extension', the character length must be smaller than or equal to 10."
|
|
958
1021
|
end
|
|
959
1022
|
|
|
960
1023
|
@mobile_extension = mobile_extension
|
|
@@ -963,12 +1026,9 @@ module Connectwise
|
|
|
963
1026
|
# Custom attribute writer method with validation
|
|
964
1027
|
# @param [Object] mobile_phone Value to be assigned
|
|
965
1028
|
def mobile_phone=(mobile_phone)
|
|
966
|
-
if mobile_phone.nil?
|
|
967
|
-
fail ArgumentError, "mobile_phone cannot be nil"
|
|
968
|
-
end
|
|
969
1029
|
|
|
970
|
-
if mobile_phone.to_s.length
|
|
971
|
-
fail ArgumentError, "invalid value for 'mobile_phone', the character length must be
|
|
1030
|
+
if !mobile_phone.nil? && mobile_phone.to_s.length > 15
|
|
1031
|
+
fail ArgumentError, "invalid value for 'mobile_phone', the character length must be smaller than or equal to 15."
|
|
972
1032
|
end
|
|
973
1033
|
|
|
974
1034
|
@mobile_phone = mobile_phone
|
|
@@ -977,12 +1037,9 @@ module Connectwise
|
|
|
977
1037
|
# Custom attribute writer method with validation
|
|
978
1038
|
# @param [Object] office_email Value to be assigned
|
|
979
1039
|
def office_email=(office_email)
|
|
980
|
-
if office_email.nil?
|
|
981
|
-
fail ArgumentError, "office_email cannot be nil"
|
|
982
|
-
end
|
|
983
1040
|
|
|
984
|
-
if office_email.to_s.length
|
|
985
|
-
fail ArgumentError, "invalid value for 'office_email', the character length must be
|
|
1041
|
+
if !office_email.nil? && office_email.to_s.length > 250
|
|
1042
|
+
fail ArgumentError, "invalid value for 'office_email', the character length must be smaller than or equal to 250."
|
|
986
1043
|
end
|
|
987
1044
|
|
|
988
1045
|
@office_email = office_email
|
|
@@ -991,12 +1048,9 @@ module Connectwise
|
|
|
991
1048
|
# Custom attribute writer method with validation
|
|
992
1049
|
# @param [Object] office_extension Value to be assigned
|
|
993
1050
|
def office_extension=(office_extension)
|
|
994
|
-
if office_extension.nil?
|
|
995
|
-
fail ArgumentError, "office_extension cannot be nil"
|
|
996
|
-
end
|
|
997
1051
|
|
|
998
|
-
if office_extension.to_s.length
|
|
999
|
-
fail ArgumentError, "invalid value for 'office_extension', the character length must be
|
|
1052
|
+
if !office_extension.nil? && office_extension.to_s.length > 10
|
|
1053
|
+
fail ArgumentError, "invalid value for 'office_extension', the character length must be smaller than or equal to 10."
|
|
1000
1054
|
end
|
|
1001
1055
|
|
|
1002
1056
|
@office_extension = office_extension
|
|
@@ -1005,12 +1059,9 @@ module Connectwise
|
|
|
1005
1059
|
# Custom attribute writer method with validation
|
|
1006
1060
|
# @param [Object] office_phone Value to be assigned
|
|
1007
1061
|
def office_phone=(office_phone)
|
|
1008
|
-
if office_phone.nil?
|
|
1009
|
-
fail ArgumentError, "office_phone cannot be nil"
|
|
1010
|
-
end
|
|
1011
1062
|
|
|
1012
|
-
if office_phone.to_s.length
|
|
1013
|
-
fail ArgumentError, "invalid value for 'office_phone', the character length must be
|
|
1063
|
+
if !office_phone.nil? && office_phone.to_s.length > 15
|
|
1064
|
+
fail ArgumentError, "invalid value for 'office_phone', the character length must be smaller than or equal to 15."
|
|
1014
1065
|
end
|
|
1015
1066
|
|
|
1016
1067
|
@office_phone = office_phone
|
|
@@ -1019,12 +1070,9 @@ module Connectwise
|
|
|
1019
1070
|
# Custom attribute writer method with validation
|
|
1020
1071
|
# @param [Object] title Value to be assigned
|
|
1021
1072
|
def title=(title)
|
|
1022
|
-
if title.nil?
|
|
1023
|
-
fail ArgumentError, "title cannot be nil"
|
|
1024
|
-
end
|
|
1025
1073
|
|
|
1026
|
-
if title.to_s.length
|
|
1027
|
-
fail ArgumentError, "invalid value for 'title', the character length must be
|
|
1074
|
+
if !title.nil? && title.to_s.length > 50
|
|
1075
|
+
fail ArgumentError, "invalid value for 'title', the character length must be smaller than or equal to 50."
|
|
1028
1076
|
end
|
|
1029
1077
|
|
|
1030
1078
|
@title = title
|