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
@@ -93,6 +93,14 @@ module Connectwise
93
93
  # @return Array for valid properies with the reasons
94
94
  def list_invalid_properties
95
95
  invalid_properties = Array.new
96
+ if @option_value.nil?
97
+ invalid_properties.push("invalid value for 'option_value', option_value cannot be nil.")
98
+ end
99
+
100
+ if @option_value.to_s.length > 1000
101
+ invalid_properties.push("invalid value for 'option_value', the character length must be smaller than or equal to 1000.")
102
+ end
103
+
96
104
  return invalid_properties
97
105
  end
98
106
 
@@ -100,7 +108,7 @@ module Connectwise
100
108
  # @return true if the model is valid
101
109
  def valid?
102
110
  return false if @option_value.nil?
103
- return false if @option_value.to_s.length <
111
+ return false if @option_value.to_s.length > 1000
104
112
  return true
105
113
  end
106
114
 
@@ -111,8 +119,8 @@ module Connectwise
111
119
  fail ArgumentError, "option_value cannot be nil"
112
120
  end
113
121
 
114
- if option_value.to_s.length <
115
- fail ArgumentError, "invalid value for 'option_value', the character length must be great than or equal to ."
122
+ if option_value.to_s.length > 1000
123
+ fail ArgumentError, "invalid value for 'option_value', the character length must be smaller than or equal to 1000."
116
124
  end
117
125
 
118
126
  @option_value = option_value
@@ -22,5 +22,5 @@ limitations under the License.
22
22
  =end
23
23
 
24
24
  module Connectwise
25
- VERSION = "1.0.1"
25
+ VERSION = "1.0.2"
26
26
  end
@@ -5,6 +5,7 @@
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: platform@connectwise.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
8
9
 
9
10
  Licensed under the Apache License, Version 2.0 (the "License");
10
11
  you may not use this file except in compliance with the License.
@@ -79,7 +80,7 @@ describe Connectwise::ApiClient do
79
80
  expect(request.options[:params_encoding]).to eq(:multi)
80
81
  end
81
82
  end
82
-
83
+ =begin
83
84
  describe "timeout in #build_request" do
84
85
  let(:config) { Connectwise::Configuration.new }
85
86
  let(:api_client) { Connectwise::ApiClient.new(config) }
@@ -98,7 +99,7 @@ describe Connectwise::ApiClient do
98
99
  expect(request.options[:timeout]).to eq(100)
99
100
  end
100
101
  end
101
-
102
+ =end
102
103
  describe "#deserialize" do
103
104
  it "handles Array<Integer>" do
104
105
  api_client = Connectwise::ApiClient.new
@@ -5,6 +5,7 @@
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: platform@connectwise.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
8
9
 
9
10
  Licensed under the Apache License, Version 2.0 (the "License");
10
11
  you may not use this file except in compliance with the License.
@@ -5,6 +5,7 @@
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: platform@connectwise.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
8
9
 
9
10
  Licensed under the Apache License, Version 2.0 (the "License");
10
11
  you may not use this file except in compliance with the License.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: connectwise-ruby-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Sowder
@@ -190,7 +190,7 @@ dependencies:
190
190
  - - ">="
191
191
  - !ruby/object:Gem::Version
192
192
  version: 0.2.11
193
- description: A ruby client to interact with the Connectwise REST API&#39;s
193
+ description: A ruby client to interact with the Connectwise REST API
194
194
  email:
195
195
  - cameron@sowder.io
196
196
  executables: []
@@ -564,7 +564,6 @@ files:
564
564
  - docs/WarehouseReference.md
565
565
  - docs/WorkRoleReference.md
566
566
  - docs/WorkTypeReference.md
567
- - git_push.sh
568
567
  - lib/connectwise-ruby-sdk.rb
569
568
  - lib/connectwise-ruby-sdk/api/accounting_batch_transactions_api.rb
570
569
  - lib/connectwise-ruby-sdk/api/accounting_batches_api.rb
@@ -1,67 +0,0 @@
1
- #!/bin/sh
2
- #
3
- # Generated by: https://github.com/swagger-api/swagger-codegen.git
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
- #
17
- # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
18
- #
19
- # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
20
-
21
- git_user_id=$1
22
- git_repo_id=$2
23
- release_note=$3
24
-
25
- if [ "$git_user_id" = "" ]; then
26
- git_user_id="GIT_USER_ID"
27
- echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
28
- fi
29
-
30
- if [ "$git_repo_id" = "" ]; then
31
- git_repo_id="GIT_REPO_ID"
32
- echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
33
- fi
34
-
35
- if [ "$release_note" = "" ]; then
36
- release_note="Minor update"
37
- echo "[INFO] No command line input provided. Set \$release_note to $release_note"
38
- fi
39
-
40
- # Initialize the local directory as a Git repository
41
- git init
42
-
43
- # Adds the files in the local repository and stages them for commit.
44
- git add .
45
-
46
- # Commits the tracked changes and prepares them to be pushed to a remote repository.
47
- git commit -m "$release_note"
48
-
49
- # Sets the new remote
50
- git_remote=`git remote`
51
- if [ "$git_remote" = "" ]; then # git remote not defined
52
-
53
- if [ "$GIT_TOKEN" = "" ]; then
54
- echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment."
55
- git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
56
- else
57
- git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
58
- fi
59
-
60
- fi
61
-
62
- git pull origin master
63
-
64
- # Pushes (Forces) the changes in the local repository up to the remote repository
65
- echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
66
- git push origin master 2>&1 | grep -v 'To https'
67
-