merge_ticketing_client 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +24 -6
- data/docs/Account.md +3 -1
- data/docs/AccountIntegration.md +1 -1
- data/docs/Attachment.md +5 -3
- data/docs/AttachmentRequest.md +7 -3
- data/docs/Collection.md +34 -0
- data/docs/CollectionTypeEnum.md +15 -0
- data/docs/CollectionsApi.md +193 -0
- data/docs/Comment.md +6 -4
- data/docs/CommentRequest.md +8 -4
- data/docs/ConditionSchema.md +30 -0
- data/docs/ConditionTypeEnum.md +15 -0
- data/docs/Contact.md +3 -1
- data/docs/DataPassthroughRequest.md +1 -1
- data/docs/EndUserDetailsRequest.md +2 -2
- data/docs/Issue.md +9 -7
- data/docs/LinkToken.md +1 -1
- data/docs/LinkedAccountCondition.md +28 -0
- data/docs/LinkedAccountConditionRequest.md +22 -0
- data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
- data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
- data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
- data/docs/OperatorSchema.md +20 -0
- data/docs/PaginatedCollectionList.md +22 -0
- data/docs/PaginatedConditionSchemaList.md +22 -0
- data/docs/PatchedTicketRequest.md +15 -7
- data/docs/Project.md +3 -1
- data/docs/ProjectsApi.md +10 -8
- data/docs/SelectiveSyncApi.md +233 -0
- data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
- data/docs/SyncStatus.md +5 -3
- data/docs/Tag.md +3 -1
- data/docs/Team.md +3 -1
- data/docs/Ticket.md +13 -7
- data/docs/TicketRequest.md +15 -7
- data/docs/TicketsApi.md +53 -13
- data/docs/User.md +3 -1
- data/docs/UsersApi.md +2 -0
- data/lib/merge_ticketing_client/api/collections_api.rb +234 -0
- data/lib/merge_ticketing_client/api/linked_accounts_api.rb +1 -1
- data/lib/merge_ticketing_client/api/projects_api.rb +14 -11
- data/lib/merge_ticketing_client/api/selective_sync_api.rb +225 -0
- data/lib/merge_ticketing_client/api/tickets_api.rb +94 -19
- data/lib/merge_ticketing_client/api/users_api.rb +3 -0
- data/lib/merge_ticketing_client/models/account.rb +16 -4
- data/lib/merge_ticketing_client/models/account_details_and_actions_status_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/account_integration.rb +1 -1
- data/lib/merge_ticketing_client/models/attachment.rb +18 -4
- data/lib/merge_ticketing_client/models/attachment_request.rb +31 -5
- data/lib/merge_ticketing_client/models/categories_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/category_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/collection.rb +308 -0
- data/lib/merge_ticketing_client/models/collection_type_enum.rb +45 -0
- data/lib/merge_ticketing_client/models/comment.rb +19 -4
- data/lib/merge_ticketing_client/models/comment_request.rb +32 -5
- data/lib/merge_ticketing_client/models/condition_schema.rb +297 -0
- data/lib/merge_ticketing_client/models/condition_type_enum.rb +50 -0
- data/lib/merge_ticketing_client/models/contact.rb +16 -4
- data/lib/merge_ticketing_client/models/data_passthrough_request.rb +1 -0
- data/lib/merge_ticketing_client/models/encoding_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/end_user_details_request.rb +2 -2
- data/lib/merge_ticketing_client/models/issue.rb +15 -4
- data/lib/merge_ticketing_client/models/link_token.rb +0 -5
- data/lib/merge_ticketing_client/models/linked_account_condition.rb +282 -0
- data/lib/merge_ticketing_client/models/linked_account_condition_request.rb +269 -0
- data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration.rb +221 -0
- data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
- data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
- data/lib/merge_ticketing_client/models/method_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/operator_schema.rb +229 -0
- data/lib/merge_ticketing_client/models/paginated_collection_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_condition_schema_list.rb +240 -0
- data/lib/merge_ticketing_client/models/patched_ticket_request.rb +57 -7
- data/lib/merge_ticketing_client/models/priority_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/project.rb +16 -4
- data/lib/merge_ticketing_client/models/request_format_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/response_type_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/selective_sync_configurations_usage_enum.rb +45 -0
- data/lib/merge_ticketing_client/models/sync_status.rb +13 -4
- data/lib/merge_ticketing_client/models/sync_status_status_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/tag.rb +16 -4
- data/lib/merge_ticketing_client/models/team.rb +16 -4
- data/lib/merge_ticketing_client/models/ticket.rb +45 -7
- data/lib/merge_ticketing_client/models/ticket_request.rb +57 -7
- data/lib/merge_ticketing_client/models/ticket_status_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/user.rb +16 -4
- data/lib/merge_ticketing_client/version.rb +1 -1
- data/lib/merge_ticketing_client.rb +15 -0
- data/spec/api/collections_api_spec.rb +76 -0
- data/spec/api/projects_api_spec.rb +3 -2
- data/spec/api/selective_sync_api_spec.rb +72 -0
- data/spec/api/tickets_api_spec.rb +24 -4
- data/spec/api/users_api_spec.rb +1 -0
- data/spec/models/account_spec.rb +6 -0
- data/spec/models/attachment_request_spec.rb +12 -0
- data/spec/models/attachment_spec.rb +6 -0
- data/spec/models/collection_spec.rb +82 -0
- data/spec/models/collection_type_enum_spec.rb +28 -0
- data/spec/models/comment_request_spec.rb +12 -0
- data/spec/models/comment_spec.rb +6 -0
- data/spec/models/condition_schema_spec.rb +70 -0
- data/spec/models/condition_type_enum_spec.rb +28 -0
- data/spec/models/contact_spec.rb +6 -0
- data/spec/models/issue_spec.rb +6 -0
- data/spec/models/linked_account_condition_request_spec.rb +46 -0
- data/spec/models/linked_account_condition_spec.rb +64 -0
- data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
- data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
- data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
- data/spec/models/operator_schema_spec.rb +40 -0
- data/spec/models/paginated_collection_list_spec.rb +46 -0
- data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
- data/spec/models/patched_ticket_request_spec.rb +24 -0
- data/spec/models/project_spec.rb +6 -0
- data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
- data/spec/models/sync_status_spec.rb +6 -0
- data/spec/models/tag_spec.rb +6 -0
- data/spec/models/team_spec.rb +6 -0
- data/spec/models/ticket_request_spec.rb +24 -0
- data/spec/models/ticket_spec.rb +18 -0
- data/spec/models/user_spec.rb +6 -0
- metadata +132 -72
@@ -0,0 +1,225 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge Ticketing API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple Ticketing platforms.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: hello@merge.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module MergeTicketingClient
|
16
|
+
class SelectiveSyncApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Get a linked account's selective syncs.
|
23
|
+
# @param x_account_token [String] Token identifying the end user.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [Array<LinkedAccountSelectiveSyncConfiguration>]
|
26
|
+
def selective_sync_configurations_list(x_account_token, opts = {})
|
27
|
+
data, _status_code, _headers = selective_sync_configurations_list_with_http_info(x_account_token, opts)
|
28
|
+
data
|
29
|
+
end
|
30
|
+
|
31
|
+
# Get a linked account's selective syncs.
|
32
|
+
# @param x_account_token [String] Token identifying the end user.
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(Array<LinkedAccountSelectiveSyncConfiguration>, Integer, Hash)>] Array<LinkedAccountSelectiveSyncConfiguration> data, response status code and response headers
|
35
|
+
def selective_sync_configurations_list_with_http_info(x_account_token, opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: SelectiveSyncApi.selective_sync_configurations_list ...'
|
38
|
+
end
|
39
|
+
# verify the required parameter 'x_account_token' is set
|
40
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling SelectiveSyncApi.selective_sync_configurations_list"
|
42
|
+
end
|
43
|
+
# resource path
|
44
|
+
local_var_path = '/selective-sync/configurations'
|
45
|
+
|
46
|
+
# query parameters
|
47
|
+
query_params = opts[:query_params] || {}
|
48
|
+
|
49
|
+
# header parameters
|
50
|
+
header_params = opts[:header_params] || {}
|
51
|
+
# HTTP header 'Accept' (if needed)
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
|
+
header_params[:'X-Account-Token'] = x_account_token
|
54
|
+
|
55
|
+
# form parameters
|
56
|
+
form_params = opts[:form_params] || {}
|
57
|
+
|
58
|
+
# http body (model)
|
59
|
+
post_body = opts[:debug_body]
|
60
|
+
|
61
|
+
# return_type
|
62
|
+
return_type = opts[:debug_return_type] || 'Array<LinkedAccountSelectiveSyncConfiguration>'
|
63
|
+
|
64
|
+
# auth_names
|
65
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
66
|
+
|
67
|
+
new_options = opts.merge(
|
68
|
+
:operation => :"SelectiveSyncApi.selective_sync_configurations_list",
|
69
|
+
:header_params => header_params,
|
70
|
+
:query_params => query_params,
|
71
|
+
:form_params => form_params,
|
72
|
+
:body => post_body,
|
73
|
+
:auth_names => auth_names,
|
74
|
+
:return_type => return_type
|
75
|
+
)
|
76
|
+
|
77
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
78
|
+
if @api_client.config.debugging
|
79
|
+
@api_client.config.logger.debug "API called: SelectiveSyncApi#selective_sync_configurations_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
80
|
+
end
|
81
|
+
return data, status_code, headers
|
82
|
+
end
|
83
|
+
|
84
|
+
# Replace a linked account's selective syncs.
|
85
|
+
# @param x_account_token [String] Token identifying the end user.
|
86
|
+
# @param linked_account_selective_sync_configuration_list_request [LinkedAccountSelectiveSyncConfigurationListRequest]
|
87
|
+
# @param [Hash] opts the optional parameters
|
88
|
+
# @return [Array<LinkedAccountSelectiveSyncConfiguration>]
|
89
|
+
def selective_sync_configurations_update(x_account_token, linked_account_selective_sync_configuration_list_request, opts = {})
|
90
|
+
data, _status_code, _headers = selective_sync_configurations_update_with_http_info(x_account_token, linked_account_selective_sync_configuration_list_request, opts)
|
91
|
+
data
|
92
|
+
end
|
93
|
+
|
94
|
+
# Replace a linked account's selective syncs.
|
95
|
+
# @param x_account_token [String] Token identifying the end user.
|
96
|
+
# @param linked_account_selective_sync_configuration_list_request [LinkedAccountSelectiveSyncConfigurationListRequest]
|
97
|
+
# @param [Hash] opts the optional parameters
|
98
|
+
# @return [Array<(Array<LinkedAccountSelectiveSyncConfiguration>, Integer, Hash)>] Array<LinkedAccountSelectiveSyncConfiguration> data, response status code and response headers
|
99
|
+
def selective_sync_configurations_update_with_http_info(x_account_token, linked_account_selective_sync_configuration_list_request, opts = {})
|
100
|
+
if @api_client.config.debugging
|
101
|
+
@api_client.config.logger.debug 'Calling API: SelectiveSyncApi.selective_sync_configurations_update ...'
|
102
|
+
end
|
103
|
+
# verify the required parameter 'x_account_token' is set
|
104
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
105
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling SelectiveSyncApi.selective_sync_configurations_update"
|
106
|
+
end
|
107
|
+
# verify the required parameter 'linked_account_selective_sync_configuration_list_request' is set
|
108
|
+
if @api_client.config.client_side_validation && linked_account_selective_sync_configuration_list_request.nil?
|
109
|
+
fail ArgumentError, "Missing the required parameter 'linked_account_selective_sync_configuration_list_request' when calling SelectiveSyncApi.selective_sync_configurations_update"
|
110
|
+
end
|
111
|
+
# resource path
|
112
|
+
local_var_path = '/selective-sync/configurations'
|
113
|
+
|
114
|
+
# query parameters
|
115
|
+
query_params = opts[:query_params] || {}
|
116
|
+
|
117
|
+
# header parameters
|
118
|
+
header_params = opts[:header_params] || {}
|
119
|
+
# HTTP header 'Accept' (if needed)
|
120
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
121
|
+
# HTTP header 'Content-Type'
|
122
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
123
|
+
header_params[:'X-Account-Token'] = x_account_token
|
124
|
+
|
125
|
+
# form parameters
|
126
|
+
form_params = opts[:form_params] || {}
|
127
|
+
|
128
|
+
# http body (model)
|
129
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(linked_account_selective_sync_configuration_list_request)
|
130
|
+
|
131
|
+
# return_type
|
132
|
+
return_type = opts[:debug_return_type] || 'Array<LinkedAccountSelectiveSyncConfiguration>'
|
133
|
+
|
134
|
+
# auth_names
|
135
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
136
|
+
|
137
|
+
new_options = opts.merge(
|
138
|
+
:operation => :"SelectiveSyncApi.selective_sync_configurations_update",
|
139
|
+
:header_params => header_params,
|
140
|
+
:query_params => query_params,
|
141
|
+
:form_params => form_params,
|
142
|
+
:body => post_body,
|
143
|
+
:auth_names => auth_names,
|
144
|
+
:return_type => return_type
|
145
|
+
)
|
146
|
+
|
147
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
148
|
+
if @api_client.config.debugging
|
149
|
+
@api_client.config.logger.debug "API called: SelectiveSyncApi#selective_sync_configurations_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
150
|
+
end
|
151
|
+
return data, status_code, headers
|
152
|
+
end
|
153
|
+
|
154
|
+
# Get metadata for the conditions available to a linked account.
|
155
|
+
# @param x_account_token [String] Token identifying the end user.
|
156
|
+
# @param [Hash] opts the optional parameters
|
157
|
+
# @option opts [String] :common_model
|
158
|
+
# @option opts [String] :cursor The pagination cursor value.
|
159
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
160
|
+
# @return [PaginatedConditionSchemaList]
|
161
|
+
def selective_sync_meta_list(x_account_token, opts = {})
|
162
|
+
data, _status_code, _headers = selective_sync_meta_list_with_http_info(x_account_token, opts)
|
163
|
+
data
|
164
|
+
end
|
165
|
+
|
166
|
+
# Get metadata for the conditions available to a linked account.
|
167
|
+
# @param x_account_token [String] Token identifying the end user.
|
168
|
+
# @param [Hash] opts the optional parameters
|
169
|
+
# @option opts [String] :common_model
|
170
|
+
# @option opts [String] :cursor The pagination cursor value.
|
171
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
172
|
+
# @return [Array<(PaginatedConditionSchemaList, Integer, Hash)>] PaginatedConditionSchemaList data, response status code and response headers
|
173
|
+
def selective_sync_meta_list_with_http_info(x_account_token, opts = {})
|
174
|
+
if @api_client.config.debugging
|
175
|
+
@api_client.config.logger.debug 'Calling API: SelectiveSyncApi.selective_sync_meta_list ...'
|
176
|
+
end
|
177
|
+
# verify the required parameter 'x_account_token' is set
|
178
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
179
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling SelectiveSyncApi.selective_sync_meta_list"
|
180
|
+
end
|
181
|
+
# resource path
|
182
|
+
local_var_path = '/selective-sync/meta'
|
183
|
+
|
184
|
+
# query parameters
|
185
|
+
query_params = opts[:query_params] || {}
|
186
|
+
query_params[:'common_model'] = opts[:'common_model'] if !opts[:'common_model'].nil?
|
187
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
188
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
189
|
+
|
190
|
+
# header parameters
|
191
|
+
header_params = opts[:header_params] || {}
|
192
|
+
# HTTP header 'Accept' (if needed)
|
193
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
194
|
+
header_params[:'X-Account-Token'] = x_account_token
|
195
|
+
|
196
|
+
# form parameters
|
197
|
+
form_params = opts[:form_params] || {}
|
198
|
+
|
199
|
+
# http body (model)
|
200
|
+
post_body = opts[:debug_body]
|
201
|
+
|
202
|
+
# return_type
|
203
|
+
return_type = opts[:debug_return_type] || 'PaginatedConditionSchemaList'
|
204
|
+
|
205
|
+
# auth_names
|
206
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
207
|
+
|
208
|
+
new_options = opts.merge(
|
209
|
+
:operation => :"SelectiveSyncApi.selective_sync_meta_list",
|
210
|
+
:header_params => header_params,
|
211
|
+
:query_params => query_params,
|
212
|
+
:form_params => form_params,
|
213
|
+
:body => post_body,
|
214
|
+
:auth_names => auth_names,
|
215
|
+
:return_type => return_type
|
216
|
+
)
|
217
|
+
|
218
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
219
|
+
if @api_client.config.debugging
|
220
|
+
@api_client.config.logger.debug "API called: SelectiveSyncApi#selective_sync_meta_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
221
|
+
end
|
222
|
+
return data, status_code, headers
|
223
|
+
end
|
224
|
+
end
|
225
|
+
end
|
@@ -19,30 +19,32 @@ module MergeTicketingClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Returns a `User`
|
22
|
+
# Returns a list of `User` objects.
|
23
23
|
# @param x_account_token [String] Token identifying the end user.
|
24
|
-
# @param
|
24
|
+
# @param parent_id [String]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @option opts [String] :cursor The pagination cursor value.
|
27
27
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
28
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
28
29
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
29
30
|
# @option opts [Integer] :page_size Number of results to return per page.
|
30
31
|
# @return [PaginatedUserList]
|
31
|
-
def tickets_collaborators_list(x_account_token,
|
32
|
-
data, _status_code, _headers = tickets_collaborators_list_with_http_info(x_account_token,
|
32
|
+
def tickets_collaborators_list(x_account_token, parent_id, opts = {})
|
33
|
+
data, _status_code, _headers = tickets_collaborators_list_with_http_info(x_account_token, parent_id, opts)
|
33
34
|
data
|
34
35
|
end
|
35
36
|
|
36
|
-
# Returns a `User`
|
37
|
+
# Returns a list of `User` objects.
|
37
38
|
# @param x_account_token [String] Token identifying the end user.
|
38
|
-
# @param
|
39
|
+
# @param parent_id [String]
|
39
40
|
# @param [Hash] opts the optional parameters
|
40
41
|
# @option opts [String] :cursor The pagination cursor value.
|
41
42
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
43
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
42
44
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
43
45
|
# @option opts [Integer] :page_size Number of results to return per page.
|
44
46
|
# @return [Array<(PaginatedUserList, Integer, Hash)>] PaginatedUserList data, response status code and response headers
|
45
|
-
def tickets_collaborators_list_with_http_info(x_account_token,
|
47
|
+
def tickets_collaborators_list_with_http_info(x_account_token, parent_id, opts = {})
|
46
48
|
if @api_client.config.debugging
|
47
49
|
@api_client.config.logger.debug 'Calling API: TicketsApi.tickets_collaborators_list ...'
|
48
50
|
end
|
@@ -50,21 +52,22 @@ module MergeTicketingClient
|
|
50
52
|
if @api_client.config.client_side_validation && x_account_token.nil?
|
51
53
|
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling TicketsApi.tickets_collaborators_list"
|
52
54
|
end
|
53
|
-
# verify the required parameter '
|
54
|
-
if @api_client.config.client_side_validation &&
|
55
|
-
fail ArgumentError, "Missing the required parameter '
|
55
|
+
# verify the required parameter 'parent_id' is set
|
56
|
+
if @api_client.config.client_side_validation && parent_id.nil?
|
57
|
+
fail ArgumentError, "Missing the required parameter 'parent_id' when calling TicketsApi.tickets_collaborators_list"
|
56
58
|
end
|
57
59
|
allowable_values = ["teams"]
|
58
60
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
59
61
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
60
62
|
end
|
61
63
|
# resource path
|
62
|
-
local_var_path = '/tickets/{
|
64
|
+
local_var_path = '/tickets/{parent_id}/collaborators'.sub('{' + 'parent_id' + '}', CGI.escape(parent_id.to_s))
|
63
65
|
|
64
66
|
# query parameters
|
65
67
|
query_params = opts[:query_params] || {}
|
66
68
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
67
69
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
70
|
+
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
68
71
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
69
72
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
70
73
|
|
@@ -183,18 +186,35 @@ module MergeTicketingClient
|
|
183
186
|
# @param x_account_token [String] Token identifying the end user.
|
184
187
|
# @param [Hash] opts the optional parameters
|
185
188
|
# @option opts [String] :account_id If provided, will only return tickets for this account.
|
189
|
+
# @option opts [String] :assignee_ids If provided, will only return tickets assigned to the assignee_ids; multiple assignee_ids can be separated by commas.
|
190
|
+
# @option opts [String] :collection_ids If provided, will only return tickets assigned to the collection_ids; multiple collection_ids can be separated by commas.
|
191
|
+
# @option opts [Time] :completed_after If provided, will only return tickets completed after this datetime.
|
192
|
+
# @option opts [Time] :completed_before If provided, will only return tickets completed before this datetime.
|
193
|
+
# @option opts [String] :contact_id If provided, will only return tickets for this contact.
|
186
194
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
187
195
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
188
196
|
# @option opts [String] :cursor The pagination cursor value.
|
197
|
+
# @option opts [Time] :due_after If provided, will only return tickets due after this datetime.
|
198
|
+
# @option opts [Time] :due_before If provided, will only return tickets due before this datetime.
|
189
199
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
190
200
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
191
201
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
192
202
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
193
203
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
194
204
|
# @option opts [Integer] :page_size Number of results to return per page.
|
205
|
+
# @option opts [String] :parent_ticket_id If provided, will only return sub tickets of the parent_ticket_id.
|
206
|
+
# @option opts [String] :priority If provided, will only return tickets of this priority.
|
195
207
|
# @option opts [String] :project_id If provided, will only return tickets for this project.
|
196
|
-
# @option opts [
|
208
|
+
# @option opts [Time] :remote_created_after If provided, will only return tickets created in the third party platform after this datetime.
|
209
|
+
# @option opts [Time] :remote_created_before If provided, will only return tickets created in the third party platform before this datetime.
|
210
|
+
# @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
|
197
211
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
212
|
+
# @option opts [Time] :remote_updated_after If provided, will only return tickets updated in the third party platform after this datetime.
|
213
|
+
# @option opts [Time] :remote_updated_before If provided, will only return tickets updated in the third party platform before this datetime.
|
214
|
+
# @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
|
215
|
+
# @option opts [String] :status If provided, will only return tickets of this status.
|
216
|
+
# @option opts [String] :tags If provided, will only return tickets matching the tags; multiple tags can be separated by commas.
|
217
|
+
# @option opts [String] :ticket_type If provided, will only return tickets of this type.
|
198
218
|
# @return [PaginatedTicketList]
|
199
219
|
def tickets_list(x_account_token, opts = {})
|
200
220
|
data, _status_code, _headers = tickets_list_with_http_info(x_account_token, opts)
|
@@ -205,18 +225,35 @@ module MergeTicketingClient
|
|
205
225
|
# @param x_account_token [String] Token identifying the end user.
|
206
226
|
# @param [Hash] opts the optional parameters
|
207
227
|
# @option opts [String] :account_id If provided, will only return tickets for this account.
|
228
|
+
# @option opts [String] :assignee_ids If provided, will only return tickets assigned to the assignee_ids; multiple assignee_ids can be separated by commas.
|
229
|
+
# @option opts [String] :collection_ids If provided, will only return tickets assigned to the collection_ids; multiple collection_ids can be separated by commas.
|
230
|
+
# @option opts [Time] :completed_after If provided, will only return tickets completed after this datetime.
|
231
|
+
# @option opts [Time] :completed_before If provided, will only return tickets completed before this datetime.
|
232
|
+
# @option opts [String] :contact_id If provided, will only return tickets for this contact.
|
208
233
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
209
234
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
210
235
|
# @option opts [String] :cursor The pagination cursor value.
|
236
|
+
# @option opts [Time] :due_after If provided, will only return tickets due after this datetime.
|
237
|
+
# @option opts [Time] :due_before If provided, will only return tickets due before this datetime.
|
211
238
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
212
239
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
213
240
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
214
241
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
215
242
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
216
243
|
# @option opts [Integer] :page_size Number of results to return per page.
|
244
|
+
# @option opts [String] :parent_ticket_id If provided, will only return sub tickets of the parent_ticket_id.
|
245
|
+
# @option opts [String] :priority If provided, will only return tickets of this priority.
|
217
246
|
# @option opts [String] :project_id If provided, will only return tickets for this project.
|
218
|
-
# @option opts [
|
247
|
+
# @option opts [Time] :remote_created_after If provided, will only return tickets created in the third party platform after this datetime.
|
248
|
+
# @option opts [Time] :remote_created_before If provided, will only return tickets created in the third party platform before this datetime.
|
249
|
+
# @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
|
219
250
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
251
|
+
# @option opts [Time] :remote_updated_after If provided, will only return tickets updated in the third party platform after this datetime.
|
252
|
+
# @option opts [Time] :remote_updated_before If provided, will only return tickets updated in the third party platform before this datetime.
|
253
|
+
# @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
|
254
|
+
# @option opts [String] :status If provided, will only return tickets of this status.
|
255
|
+
# @option opts [String] :tags If provided, will only return tickets matching the tags; multiple tags can be separated by commas.
|
256
|
+
# @option opts [String] :ticket_type If provided, will only return tickets of this type.
|
220
257
|
# @return [Array<(PaginatedTicketList, Integer, Hash)>] PaginatedTicketList data, response status code and response headers
|
221
258
|
def tickets_list_with_http_info(x_account_token, opts = {})
|
222
259
|
if @api_client.config.debugging
|
@@ -226,32 +263,61 @@ module MergeTicketingClient
|
|
226
263
|
if @api_client.config.client_side_validation && x_account_token.nil?
|
227
264
|
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling TicketsApi.tickets_list"
|
228
265
|
end
|
229
|
-
allowable_values = ["account", "account,contact", "account,contact,parent_ticket", "account,parent_ticket", "assignees", "assignees,account", "assignees,account,contact", "assignees,account,contact,parent_ticket", "assignees,account,parent_ticket", "assignees,contact", "assignees,contact,parent_ticket", "assignees,parent_ticket", "assignees,project", "assignees,project,account", "assignees,project,account,contact", "assignees,project,account,contact,parent_ticket", "assignees,project,account,parent_ticket", "assignees,project,contact", "assignees,project,contact,parent_ticket", "assignees,project,parent_ticket", "attachments", "attachments,account", "attachments,account,contact", "attachments,account,contact,parent_ticket", "attachments,account,parent_ticket", "attachments,assignees", "attachments,assignees,account", "attachments,assignees,account,contact", "attachments,assignees,account,contact,parent_ticket", "attachments,assignees,account,parent_ticket", "attachments,assignees,contact", "attachments,assignees,contact,parent_ticket", "attachments,assignees,parent_ticket", "attachments,assignees,project", "attachments,assignees,project,account", "attachments,assignees,project,account,contact", "attachments,assignees,project,account,contact,parent_ticket", "attachments,assignees,project,account,parent_ticket", "attachments,assignees,project,contact", "attachments,assignees,project,contact,parent_ticket", "attachments,assignees,project,parent_ticket", "attachments,contact", "attachments,contact,parent_ticket", "attachments,parent_ticket", "attachments,project", "attachments,project,account", "attachments,project,account,contact", "attachments,project,account,contact,parent_ticket", "attachments,project,account,parent_ticket", "attachments,project,contact", "attachments,project,contact,parent_ticket", "attachments,project,parent_ticket", "contact", "contact,parent_ticket", "parent_ticket", "project", "project,account", "project,account,contact", "project,account,contact,parent_ticket", "project,account,parent_ticket", "project,contact", "project,contact,parent_ticket", "project,parent_ticket"]
|
266
|
+
allowable_values = ["account", "account,contact", "account,contact,creator", "account,contact,creator,parent_ticket", "account,contact,parent_ticket", "account,creator", "account,creator,parent_ticket", "account,parent_ticket", "assignees", "assignees,account", "assignees,account,contact", "assignees,account,contact,creator", "assignees,account,contact,creator,parent_ticket", "assignees,account,contact,parent_ticket", "assignees,account,creator", "assignees,account,creator,parent_ticket", "assignees,account,parent_ticket", "assignees,collections", "assignees,collections,account", "assignees,collections,account,contact", "assignees,collections,account,contact,creator", "assignees,collections,account,contact,creator,parent_ticket", "assignees,collections,account,contact,parent_ticket", "assignees,collections,account,creator", "assignees,collections,account,creator,parent_ticket", "assignees,collections,account,parent_ticket", "assignees,collections,contact", "assignees,collections,contact,creator", "assignees,collections,contact,creator,parent_ticket", "assignees,collections,contact,parent_ticket", "assignees,collections,creator", "assignees,collections,creator,parent_ticket", "assignees,collections,parent_ticket", "assignees,collections,project", "assignees,collections,project,account", "assignees,collections,project,account,contact", "assignees,collections,project,account,contact,creator", "assignees,collections,project,account,contact,creator,parent_ticket", "assignees,collections,project,account,contact,parent_ticket", "assignees,collections,project,account,creator", "assignees,collections,project,account,creator,parent_ticket", "assignees,collections,project,account,parent_ticket", "assignees,collections,project,contact", "assignees,collections,project,contact,creator", "assignees,collections,project,contact,creator,parent_ticket", "assignees,collections,project,contact,parent_ticket", "assignees,collections,project,creator", "assignees,collections,project,creator,parent_ticket", "assignees,collections,project,parent_ticket", "assignees,contact", "assignees,contact,creator", "assignees,contact,creator,parent_ticket", "assignees,contact,parent_ticket", "assignees,creator", "assignees,creator,parent_ticket", "assignees,parent_ticket", "assignees,project", "assignees,project,account", "assignees,project,account,contact", "assignees,project,account,contact,creator", "assignees,project,account,contact,creator,parent_ticket", "assignees,project,account,contact,parent_ticket", "assignees,project,account,creator", "assignees,project,account,creator,parent_ticket", "assignees,project,account,parent_ticket", "assignees,project,contact", "assignees,project,contact,creator", "assignees,project,contact,creator,parent_ticket", "assignees,project,contact,parent_ticket", "assignees,project,creator", "assignees,project,creator,parent_ticket", "assignees,project,parent_ticket", "attachments", "attachments,account", "attachments,account,contact", "attachments,account,contact,creator", "attachments,account,contact,creator,parent_ticket", "attachments,account,contact,parent_ticket", "attachments,account,creator", "attachments,account,creator,parent_ticket", "attachments,account,parent_ticket", "attachments,assignees", "attachments,assignees,account", "attachments,assignees,account,contact", "attachments,assignees,account,contact,creator", "attachments,assignees,account,contact,creator,parent_ticket", "attachments,assignees,account,contact,parent_ticket", "attachments,assignees,account,creator", "attachments,assignees,account,creator,parent_ticket", "attachments,assignees,account,parent_ticket", "attachments,assignees,collections", "attachments,assignees,collections,account", "attachments,assignees,collections,account,contact", "attachments,assignees,collections,account,contact,creator", "attachments,assignees,collections,account,contact,creator,parent_ticket", "attachments,assignees,collections,account,contact,parent_ticket", "attachments,assignees,collections,account,creator", "attachments,assignees,collections,account,creator,parent_ticket", "attachments,assignees,collections,account,parent_ticket", "attachments,assignees,collections,contact", "attachments,assignees,collections,contact,creator", "attachments,assignees,collections,contact,creator,parent_ticket", "attachments,assignees,collections,contact,parent_ticket", "attachments,assignees,collections,creator", "attachments,assignees,collections,creator,parent_ticket", "attachments,assignees,collections,parent_ticket", "attachments,assignees,collections,project", "attachments,assignees,collections,project,account", "attachments,assignees,collections,project,account,contact", "attachments,assignees,collections,project,account,contact,creator", "attachments,assignees,collections,project,account,contact,creator,parent_ticket", "attachments,assignees,collections,project,account,contact,parent_ticket", "attachments,assignees,collections,project,account,creator", "attachments,assignees,collections,project,account,creator,parent_ticket", "attachments,assignees,collections,project,account,parent_ticket", "attachments,assignees,collections,project,contact", "attachments,assignees,collections,project,contact,creator", "attachments,assignees,collections,project,contact,creator,parent_ticket", "attachments,assignees,collections,project,contact,parent_ticket", "attachments,assignees,collections,project,creator", "attachments,assignees,collections,project,creator,parent_ticket", "attachments,assignees,collections,project,parent_ticket", "attachments,assignees,contact", "attachments,assignees,contact,creator", "attachments,assignees,contact,creator,parent_ticket", "attachments,assignees,contact,parent_ticket", "attachments,assignees,creator", "attachments,assignees,creator,parent_ticket", "attachments,assignees,parent_ticket", "attachments,assignees,project", "attachments,assignees,project,account", "attachments,assignees,project,account,contact", "attachments,assignees,project,account,contact,creator", "attachments,assignees,project,account,contact,creator,parent_ticket", "attachments,assignees,project,account,contact,parent_ticket", "attachments,assignees,project,account,creator", "attachments,assignees,project,account,creator,parent_ticket", "attachments,assignees,project,account,parent_ticket", "attachments,assignees,project,contact", "attachments,assignees,project,contact,creator", "attachments,assignees,project,contact,creator,parent_ticket", "attachments,assignees,project,contact,parent_ticket", "attachments,assignees,project,creator", "attachments,assignees,project,creator,parent_ticket", "attachments,assignees,project,parent_ticket", "attachments,collections", "attachments,collections,account", "attachments,collections,account,contact", "attachments,collections,account,contact,creator", "attachments,collections,account,contact,creator,parent_ticket", "attachments,collections,account,contact,parent_ticket", "attachments,collections,account,creator", "attachments,collections,account,creator,parent_ticket", "attachments,collections,account,parent_ticket", "attachments,collections,contact", "attachments,collections,contact,creator", "attachments,collections,contact,creator,parent_ticket", "attachments,collections,contact,parent_ticket", "attachments,collections,creator", "attachments,collections,creator,parent_ticket", "attachments,collections,parent_ticket", "attachments,collections,project", "attachments,collections,project,account", "attachments,collections,project,account,contact", "attachments,collections,project,account,contact,creator", "attachments,collections,project,account,contact,creator,parent_ticket", "attachments,collections,project,account,contact,parent_ticket", "attachments,collections,project,account,creator", "attachments,collections,project,account,creator,parent_ticket", "attachments,collections,project,account,parent_ticket", "attachments,collections,project,contact", "attachments,collections,project,contact,creator", "attachments,collections,project,contact,creator,parent_ticket", "attachments,collections,project,contact,parent_ticket", "attachments,collections,project,creator", "attachments,collections,project,creator,parent_ticket", "attachments,collections,project,parent_ticket", "attachments,contact", "attachments,contact,creator", "attachments,contact,creator,parent_ticket", "attachments,contact,parent_ticket", "attachments,creator", "attachments,creator,parent_ticket", "attachments,parent_ticket", "attachments,project", "attachments,project,account", "attachments,project,account,contact", "attachments,project,account,contact,creator", "attachments,project,account,contact,creator,parent_ticket", "attachments,project,account,contact,parent_ticket", "attachments,project,account,creator", "attachments,project,account,creator,parent_ticket", "attachments,project,account,parent_ticket", "attachments,project,contact", "attachments,project,contact,creator", "attachments,project,contact,creator,parent_ticket", "attachments,project,contact,parent_ticket", "attachments,project,creator", "attachments,project,creator,parent_ticket", "attachments,project,parent_ticket", "collections", "collections,account", "collections,account,contact", "collections,account,contact,creator", "collections,account,contact,creator,parent_ticket", "collections,account,contact,parent_ticket", "collections,account,creator", "collections,account,creator,parent_ticket", "collections,account,parent_ticket", "collections,contact", "collections,contact,creator", "collections,contact,creator,parent_ticket", "collections,contact,parent_ticket", "collections,creator", "collections,creator,parent_ticket", "collections,parent_ticket", "collections,project", "collections,project,account", "collections,project,account,contact", "collections,project,account,contact,creator", "collections,project,account,contact,creator,parent_ticket", "collections,project,account,contact,parent_ticket", "collections,project,account,creator", "collections,project,account,creator,parent_ticket", "collections,project,account,parent_ticket", "collections,project,contact", "collections,project,contact,creator", "collections,project,contact,creator,parent_ticket", "collections,project,contact,parent_ticket", "collections,project,creator", "collections,project,creator,parent_ticket", "collections,project,parent_ticket", "contact", "contact,creator", "contact,creator,parent_ticket", "contact,parent_ticket", "creator", "creator,parent_ticket", "parent_ticket", "project", "project,account", "project,account,contact", "project,account,contact,creator", "project,account,contact,creator,parent_ticket", "project,account,contact,parent_ticket", "project,account,creator", "project,account,creator,parent_ticket", "project,account,parent_ticket", "project,contact", "project,contact,creator", "project,contact,creator,parent_ticket", "project,contact,parent_ticket", "project,creator", "project,creator,parent_ticket", "project,parent_ticket"]
|
230
267
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
231
268
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
232
269
|
end
|
233
|
-
allowable_values = ["
|
270
|
+
allowable_values = ["HIGH", "LOW", "NORMAL", "URGENT"]
|
271
|
+
if @api_client.config.client_side_validation && opts[:'priority'] && !allowable_values.include?(opts[:'priority'])
|
272
|
+
fail ArgumentError, "invalid value for \"priority\", must be one of #{allowable_values}"
|
273
|
+
end
|
274
|
+
allowable_values = ["priority", "priority,status", "priority,status,ticket_type", "priority,ticket_type", "status", "status,ticket_type", "ticket_type"]
|
234
275
|
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
235
276
|
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
236
277
|
end
|
278
|
+
allowable_values = ["priority", "priority,status", "priority,status,ticket_type", "priority,ticket_type", "status", "status,ticket_type", "ticket_type"]
|
279
|
+
if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
|
280
|
+
fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
|
281
|
+
end
|
282
|
+
allowable_values = ["CLOSED", "IN_PROGRESS", "ON_HOLD", "OPEN"]
|
283
|
+
if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
|
284
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
285
|
+
end
|
237
286
|
# resource path
|
238
287
|
local_var_path = '/tickets'
|
239
288
|
|
240
289
|
# query parameters
|
241
290
|
query_params = opts[:query_params] || {}
|
242
291
|
query_params[:'account_id'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
292
|
+
query_params[:'assignee_ids'] = opts[:'assignee_ids'] if !opts[:'assignee_ids'].nil?
|
293
|
+
query_params[:'collection_ids'] = opts[:'collection_ids'] if !opts[:'collection_ids'].nil?
|
294
|
+
query_params[:'completed_after'] = opts[:'completed_after'] if !opts[:'completed_after'].nil?
|
295
|
+
query_params[:'completed_before'] = opts[:'completed_before'] if !opts[:'completed_before'].nil?
|
296
|
+
query_params[:'contact_id'] = opts[:'contact_id'] if !opts[:'contact_id'].nil?
|
243
297
|
query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
|
244
298
|
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
245
299
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
300
|
+
query_params[:'due_after'] = opts[:'due_after'] if !opts[:'due_after'].nil?
|
301
|
+
query_params[:'due_before'] = opts[:'due_before'] if !opts[:'due_before'].nil?
|
246
302
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
247
303
|
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
248
304
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
249
305
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
250
306
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
251
307
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
308
|
+
query_params[:'parent_ticket_id'] = opts[:'parent_ticket_id'] if !opts[:'parent_ticket_id'].nil?
|
309
|
+
query_params[:'priority'] = opts[:'priority'] if !opts[:'priority'].nil?
|
252
310
|
query_params[:'project_id'] = opts[:'project_id'] if !opts[:'project_id'].nil?
|
311
|
+
query_params[:'remote_created_after'] = opts[:'remote_created_after'] if !opts[:'remote_created_after'].nil?
|
312
|
+
query_params[:'remote_created_before'] = opts[:'remote_created_before'] if !opts[:'remote_created_before'].nil?
|
253
313
|
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
254
314
|
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
315
|
+
query_params[:'remote_updated_after'] = opts[:'remote_updated_after'] if !opts[:'remote_updated_after'].nil?
|
316
|
+
query_params[:'remote_updated_before'] = opts[:'remote_updated_before'] if !opts[:'remote_updated_before'].nil?
|
317
|
+
query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
|
318
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
319
|
+
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
|
320
|
+
query_params[:'ticket_type'] = opts[:'ticket_type'] if !opts[:'ticket_type'].nil?
|
255
321
|
|
256
322
|
# header parameters
|
257
323
|
header_params = opts[:header_params] || {}
|
@@ -418,6 +484,7 @@ module MergeTicketingClient
|
|
418
484
|
return data, status_code, headers
|
419
485
|
end
|
420
486
|
|
487
|
+
# Updates a `Ticket` object with the given `id`.
|
421
488
|
# @param x_account_token [String] Token identifying the end user.
|
422
489
|
# @param id [String]
|
423
490
|
# @param patched_ticket_endpoint_request [PatchedTicketEndpointRequest]
|
@@ -430,6 +497,7 @@ module MergeTicketingClient
|
|
430
497
|
data
|
431
498
|
end
|
432
499
|
|
500
|
+
# Updates a `Ticket` object with the given `id`.
|
433
501
|
# @param x_account_token [String] Token identifying the end user.
|
434
502
|
# @param id [String]
|
435
503
|
# @param patched_ticket_endpoint_request [PatchedTicketEndpointRequest]
|
@@ -504,7 +572,8 @@ module MergeTicketingClient
|
|
504
572
|
# @param [Hash] opts the optional parameters
|
505
573
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
506
574
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
507
|
-
# @option opts [String] :remote_fields
|
575
|
+
# @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
|
576
|
+
# @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
|
508
577
|
# @return [Ticket]
|
509
578
|
def tickets_retrieve(x_account_token, id, opts = {})
|
510
579
|
data, _status_code, _headers = tickets_retrieve_with_http_info(x_account_token, id, opts)
|
@@ -517,7 +586,8 @@ module MergeTicketingClient
|
|
517
586
|
# @param [Hash] opts the optional parameters
|
518
587
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
519
588
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
520
|
-
# @option opts [String] :remote_fields
|
589
|
+
# @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
|
590
|
+
# @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
|
521
591
|
# @return [Array<(Ticket, Integer, Hash)>] Ticket data, response status code and response headers
|
522
592
|
def tickets_retrieve_with_http_info(x_account_token, id, opts = {})
|
523
593
|
if @api_client.config.debugging
|
@@ -531,14 +601,18 @@ module MergeTicketingClient
|
|
531
601
|
if @api_client.config.client_side_validation && id.nil?
|
532
602
|
fail ArgumentError, "Missing the required parameter 'id' when calling TicketsApi.tickets_retrieve"
|
533
603
|
end
|
534
|
-
allowable_values = ["account", "account,contact", "account,contact,parent_ticket", "account,parent_ticket", "assignees", "assignees,account", "assignees,account,contact", "assignees,account,contact,parent_ticket", "assignees,account,parent_ticket", "assignees,contact", "assignees,contact,parent_ticket", "assignees,parent_ticket", "assignees,project", "assignees,project,account", "assignees,project,account,contact", "assignees,project,account,contact,parent_ticket", "assignees,project,account,parent_ticket", "assignees,project,contact", "assignees,project,contact,parent_ticket", "assignees,project,parent_ticket", "attachments", "attachments,account", "attachments,account,contact", "attachments,account,contact,parent_ticket", "attachments,account,parent_ticket", "attachments,assignees", "attachments,assignees,account", "attachments,assignees,account,contact", "attachments,assignees,account,contact,parent_ticket", "attachments,assignees,account,parent_ticket", "attachments,assignees,contact", "attachments,assignees,contact,parent_ticket", "attachments,assignees,parent_ticket", "attachments,assignees,project", "attachments,assignees,project,account", "attachments,assignees,project,account,contact", "attachments,assignees,project,account,contact,parent_ticket", "attachments,assignees,project,account,parent_ticket", "attachments,assignees,project,contact", "attachments,assignees,project,contact,parent_ticket", "attachments,assignees,project,parent_ticket", "attachments,contact", "attachments,contact,parent_ticket", "attachments,parent_ticket", "attachments,project", "attachments,project,account", "attachments,project,account,contact", "attachments,project,account,contact,parent_ticket", "attachments,project,account,parent_ticket", "attachments,project,contact", "attachments,project,contact,parent_ticket", "attachments,project,parent_ticket", "contact", "contact,parent_ticket", "parent_ticket", "project", "project,account", "project,account,contact", "project,account,contact,parent_ticket", "project,account,parent_ticket", "project,contact", "project,contact,parent_ticket", "project,parent_ticket"]
|
604
|
+
allowable_values = ["account", "account,contact", "account,contact,creator", "account,contact,creator,parent_ticket", "account,contact,parent_ticket", "account,creator", "account,creator,parent_ticket", "account,parent_ticket", "assignees", "assignees,account", "assignees,account,contact", "assignees,account,contact,creator", "assignees,account,contact,creator,parent_ticket", "assignees,account,contact,parent_ticket", "assignees,account,creator", "assignees,account,creator,parent_ticket", "assignees,account,parent_ticket", "assignees,collections", "assignees,collections,account", "assignees,collections,account,contact", "assignees,collections,account,contact,creator", "assignees,collections,account,contact,creator,parent_ticket", "assignees,collections,account,contact,parent_ticket", "assignees,collections,account,creator", "assignees,collections,account,creator,parent_ticket", "assignees,collections,account,parent_ticket", "assignees,collections,contact", "assignees,collections,contact,creator", "assignees,collections,contact,creator,parent_ticket", "assignees,collections,contact,parent_ticket", "assignees,collections,creator", "assignees,collections,creator,parent_ticket", "assignees,collections,parent_ticket", "assignees,collections,project", "assignees,collections,project,account", "assignees,collections,project,account,contact", "assignees,collections,project,account,contact,creator", "assignees,collections,project,account,contact,creator,parent_ticket", "assignees,collections,project,account,contact,parent_ticket", "assignees,collections,project,account,creator", "assignees,collections,project,account,creator,parent_ticket", "assignees,collections,project,account,parent_ticket", "assignees,collections,project,contact", "assignees,collections,project,contact,creator", "assignees,collections,project,contact,creator,parent_ticket", "assignees,collections,project,contact,parent_ticket", "assignees,collections,project,creator", "assignees,collections,project,creator,parent_ticket", "assignees,collections,project,parent_ticket", "assignees,contact", "assignees,contact,creator", "assignees,contact,creator,parent_ticket", "assignees,contact,parent_ticket", "assignees,creator", "assignees,creator,parent_ticket", "assignees,parent_ticket", "assignees,project", "assignees,project,account", "assignees,project,account,contact", "assignees,project,account,contact,creator", "assignees,project,account,contact,creator,parent_ticket", "assignees,project,account,contact,parent_ticket", "assignees,project,account,creator", "assignees,project,account,creator,parent_ticket", "assignees,project,account,parent_ticket", "assignees,project,contact", "assignees,project,contact,creator", "assignees,project,contact,creator,parent_ticket", "assignees,project,contact,parent_ticket", "assignees,project,creator", "assignees,project,creator,parent_ticket", "assignees,project,parent_ticket", "attachments", "attachments,account", "attachments,account,contact", "attachments,account,contact,creator", "attachments,account,contact,creator,parent_ticket", "attachments,account,contact,parent_ticket", "attachments,account,creator", "attachments,account,creator,parent_ticket", "attachments,account,parent_ticket", "attachments,assignees", "attachments,assignees,account", "attachments,assignees,account,contact", "attachments,assignees,account,contact,creator", "attachments,assignees,account,contact,creator,parent_ticket", "attachments,assignees,account,contact,parent_ticket", "attachments,assignees,account,creator", "attachments,assignees,account,creator,parent_ticket", "attachments,assignees,account,parent_ticket", "attachments,assignees,collections", "attachments,assignees,collections,account", "attachments,assignees,collections,account,contact", "attachments,assignees,collections,account,contact,creator", "attachments,assignees,collections,account,contact,creator,parent_ticket", "attachments,assignees,collections,account,contact,parent_ticket", "attachments,assignees,collections,account,creator", "attachments,assignees,collections,account,creator,parent_ticket", "attachments,assignees,collections,account,parent_ticket", "attachments,assignees,collections,contact", "attachments,assignees,collections,contact,creator", "attachments,assignees,collections,contact,creator,parent_ticket", "attachments,assignees,collections,contact,parent_ticket", "attachments,assignees,collections,creator", "attachments,assignees,collections,creator,parent_ticket", "attachments,assignees,collections,parent_ticket", "attachments,assignees,collections,project", "attachments,assignees,collections,project,account", "attachments,assignees,collections,project,account,contact", "attachments,assignees,collections,project,account,contact,creator", "attachments,assignees,collections,project,account,contact,creator,parent_ticket", "attachments,assignees,collections,project,account,contact,parent_ticket", "attachments,assignees,collections,project,account,creator", "attachments,assignees,collections,project,account,creator,parent_ticket", "attachments,assignees,collections,project,account,parent_ticket", "attachments,assignees,collections,project,contact", "attachments,assignees,collections,project,contact,creator", "attachments,assignees,collections,project,contact,creator,parent_ticket", "attachments,assignees,collections,project,contact,parent_ticket", "attachments,assignees,collections,project,creator", "attachments,assignees,collections,project,creator,parent_ticket", "attachments,assignees,collections,project,parent_ticket", "attachments,assignees,contact", "attachments,assignees,contact,creator", "attachments,assignees,contact,creator,parent_ticket", "attachments,assignees,contact,parent_ticket", "attachments,assignees,creator", "attachments,assignees,creator,parent_ticket", "attachments,assignees,parent_ticket", "attachments,assignees,project", "attachments,assignees,project,account", "attachments,assignees,project,account,contact", "attachments,assignees,project,account,contact,creator", "attachments,assignees,project,account,contact,creator,parent_ticket", "attachments,assignees,project,account,contact,parent_ticket", "attachments,assignees,project,account,creator", "attachments,assignees,project,account,creator,parent_ticket", "attachments,assignees,project,account,parent_ticket", "attachments,assignees,project,contact", "attachments,assignees,project,contact,creator", "attachments,assignees,project,contact,creator,parent_ticket", "attachments,assignees,project,contact,parent_ticket", "attachments,assignees,project,creator", "attachments,assignees,project,creator,parent_ticket", "attachments,assignees,project,parent_ticket", "attachments,collections", "attachments,collections,account", "attachments,collections,account,contact", "attachments,collections,account,contact,creator", "attachments,collections,account,contact,creator,parent_ticket", "attachments,collections,account,contact,parent_ticket", "attachments,collections,account,creator", "attachments,collections,account,creator,parent_ticket", "attachments,collections,account,parent_ticket", "attachments,collections,contact", "attachments,collections,contact,creator", "attachments,collections,contact,creator,parent_ticket", "attachments,collections,contact,parent_ticket", "attachments,collections,creator", "attachments,collections,creator,parent_ticket", "attachments,collections,parent_ticket", "attachments,collections,project", "attachments,collections,project,account", "attachments,collections,project,account,contact", "attachments,collections,project,account,contact,creator", "attachments,collections,project,account,contact,creator,parent_ticket", "attachments,collections,project,account,contact,parent_ticket", "attachments,collections,project,account,creator", "attachments,collections,project,account,creator,parent_ticket", "attachments,collections,project,account,parent_ticket", "attachments,collections,project,contact", "attachments,collections,project,contact,creator", "attachments,collections,project,contact,creator,parent_ticket", "attachments,collections,project,contact,parent_ticket", "attachments,collections,project,creator", "attachments,collections,project,creator,parent_ticket", "attachments,collections,project,parent_ticket", "attachments,contact", "attachments,contact,creator", "attachments,contact,creator,parent_ticket", "attachments,contact,parent_ticket", "attachments,creator", "attachments,creator,parent_ticket", "attachments,parent_ticket", "attachments,project", "attachments,project,account", "attachments,project,account,contact", "attachments,project,account,contact,creator", "attachments,project,account,contact,creator,parent_ticket", "attachments,project,account,contact,parent_ticket", "attachments,project,account,creator", "attachments,project,account,creator,parent_ticket", "attachments,project,account,parent_ticket", "attachments,project,contact", "attachments,project,contact,creator", "attachments,project,contact,creator,parent_ticket", "attachments,project,contact,parent_ticket", "attachments,project,creator", "attachments,project,creator,parent_ticket", "attachments,project,parent_ticket", "collections", "collections,account", "collections,account,contact", "collections,account,contact,creator", "collections,account,contact,creator,parent_ticket", "collections,account,contact,parent_ticket", "collections,account,creator", "collections,account,creator,parent_ticket", "collections,account,parent_ticket", "collections,contact", "collections,contact,creator", "collections,contact,creator,parent_ticket", "collections,contact,parent_ticket", "collections,creator", "collections,creator,parent_ticket", "collections,parent_ticket", "collections,project", "collections,project,account", "collections,project,account,contact", "collections,project,account,contact,creator", "collections,project,account,contact,creator,parent_ticket", "collections,project,account,contact,parent_ticket", "collections,project,account,creator", "collections,project,account,creator,parent_ticket", "collections,project,account,parent_ticket", "collections,project,contact", "collections,project,contact,creator", "collections,project,contact,creator,parent_ticket", "collections,project,contact,parent_ticket", "collections,project,creator", "collections,project,creator,parent_ticket", "collections,project,parent_ticket", "contact", "contact,creator", "contact,creator,parent_ticket", "contact,parent_ticket", "creator", "creator,parent_ticket", "parent_ticket", "project", "project,account", "project,account,contact", "project,account,contact,creator", "project,account,contact,creator,parent_ticket", "project,account,contact,parent_ticket", "project,account,creator", "project,account,creator,parent_ticket", "project,account,parent_ticket", "project,contact", "project,contact,creator", "project,contact,creator,parent_ticket", "project,contact,parent_ticket", "project,creator", "project,creator,parent_ticket", "project,parent_ticket"]
|
535
605
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
536
606
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
537
607
|
end
|
538
|
-
allowable_values = ["status"]
|
608
|
+
allowable_values = ["priority", "priority,status", "priority,status,ticket_type", "priority,ticket_type", "status", "status,ticket_type", "ticket_type"]
|
539
609
|
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
540
610
|
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
541
611
|
end
|
612
|
+
allowable_values = ["priority", "priority,status", "priority,status,ticket_type", "priority,ticket_type", "status", "status,ticket_type", "ticket_type"]
|
613
|
+
if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
|
614
|
+
fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
|
615
|
+
end
|
542
616
|
# resource path
|
543
617
|
local_var_path = '/tickets/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
544
618
|
|
@@ -547,6 +621,7 @@ module MergeTicketingClient
|
|
547
621
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
548
622
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
549
623
|
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
624
|
+
query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
|
550
625
|
|
551
626
|
# header parameters
|
552
627
|
header_params = opts[:header_params] || {}
|
@@ -25,6 +25,7 @@ module MergeTicketingClient
|
|
25
25
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
26
26
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
27
27
|
# @option opts [String] :cursor The pagination cursor value.
|
28
|
+
# @option opts [String] :email_address If provided, will only return users with emails equal to this value (case insensitive).
|
28
29
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
29
30
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
30
31
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
@@ -44,6 +45,7 @@ module MergeTicketingClient
|
|
44
45
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
45
46
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
46
47
|
# @option opts [String] :cursor The pagination cursor value.
|
48
|
+
# @option opts [String] :email_address If provided, will only return users with emails equal to this value (case insensitive).
|
47
49
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
48
50
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
49
51
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
@@ -72,6 +74,7 @@ module MergeTicketingClient
|
|
72
74
|
query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
|
73
75
|
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
74
76
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
77
|
+
query_params[:'email_address'] = opts[:'email_address'] if !opts[:'email_address'].nil?
|
75
78
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
76
79
|
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
77
80
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|