merge_ticketing_client 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -7
  3. data/docs/Account.md +3 -1
  4. data/docs/AccountIntegration.md +1 -1
  5. data/docs/Attachment.md +5 -3
  6. data/docs/AttachmentRequest.md +7 -3
  7. data/docs/Collection.md +34 -0
  8. data/docs/CollectionTypeEnum.md +15 -0
  9. data/docs/CollectionsApi.md +193 -0
  10. data/docs/Comment.md +6 -4
  11. data/docs/CommentRequest.md +8 -4
  12. data/docs/ConditionSchema.md +30 -0
  13. data/docs/ConditionTypeEnum.md +15 -0
  14. data/docs/Contact.md +3 -1
  15. data/docs/DataPassthroughRequest.md +1 -1
  16. data/docs/EndUserDetailsRequest.md +2 -2
  17. data/docs/Issue.md +9 -7
  18. data/docs/LinkToken.md +1 -1
  19. data/docs/LinkedAccountCondition.md +28 -0
  20. data/docs/LinkedAccountConditionRequest.md +22 -0
  21. data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
  22. data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
  23. data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
  24. data/docs/OperatorSchema.md +20 -0
  25. data/docs/PaginatedCollectionList.md +22 -0
  26. data/docs/PaginatedConditionSchemaList.md +22 -0
  27. data/docs/PatchedTicketEndpointRequest.md +18 -0
  28. data/docs/PatchedTicketRequest.md +56 -0
  29. data/docs/PriorityEnum.md +15 -0
  30. data/docs/Project.md +3 -1
  31. data/docs/ProjectsApi.md +10 -8
  32. data/docs/RemoteResponse.md +3 -1
  33. data/docs/ResponseTypeEnum.md +15 -0
  34. data/docs/SelectiveSyncApi.md +233 -0
  35. data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
  36. data/docs/SyncStatus.md +7 -5
  37. data/docs/Tag.md +3 -1
  38. data/docs/Team.md +3 -1
  39. data/docs/Ticket.md +18 -6
  40. data/docs/TicketRequest.md +20 -6
  41. data/docs/TicketsApi.md +207 -13
  42. data/docs/User.md +5 -1
  43. data/docs/UsersApi.md +2 -0
  44. data/lib/merge_ticketing_client/api/collections_api.rb +234 -0
  45. data/lib/merge_ticketing_client/api/linked_accounts_api.rb +1 -1
  46. data/lib/merge_ticketing_client/api/projects_api.rb +14 -11
  47. data/lib/merge_ticketing_client/api/selective_sync_api.rb +225 -0
  48. data/lib/merge_ticketing_client/api/tickets_api.rb +242 -19
  49. data/lib/merge_ticketing_client/api/users_api.rb +3 -0
  50. data/lib/merge_ticketing_client/models/account.rb +16 -4
  51. data/lib/merge_ticketing_client/models/account_details_and_actions_status_enum.rb +1 -1
  52. data/lib/merge_ticketing_client/models/account_integration.rb +1 -1
  53. data/lib/merge_ticketing_client/models/attachment.rb +18 -4
  54. data/lib/merge_ticketing_client/models/attachment_request.rb +31 -5
  55. data/lib/merge_ticketing_client/models/categories_enum.rb +1 -1
  56. data/lib/merge_ticketing_client/models/category_enum.rb +1 -1
  57. data/lib/merge_ticketing_client/models/collection.rb +308 -0
  58. data/lib/merge_ticketing_client/models/collection_type_enum.rb +45 -0
  59. data/lib/merge_ticketing_client/models/comment.rb +19 -4
  60. data/lib/merge_ticketing_client/models/comment_request.rb +32 -5
  61. data/lib/merge_ticketing_client/models/condition_schema.rb +297 -0
  62. data/lib/merge_ticketing_client/models/condition_type_enum.rb +50 -0
  63. data/lib/merge_ticketing_client/models/contact.rb +16 -4
  64. data/lib/merge_ticketing_client/models/data_passthrough_request.rb +2 -1
  65. data/lib/merge_ticketing_client/models/encoding_enum.rb +1 -1
  66. data/lib/merge_ticketing_client/models/end_user_details_request.rb +2 -2
  67. data/lib/merge_ticketing_client/models/issue.rb +16 -5
  68. data/lib/merge_ticketing_client/models/link_token.rb +0 -5
  69. data/lib/merge_ticketing_client/models/linked_account_condition.rb +282 -0
  70. data/lib/merge_ticketing_client/models/linked_account_condition_request.rb +269 -0
  71. data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration.rb +221 -0
  72. data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
  73. data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
  74. data/lib/merge_ticketing_client/models/meta_response.rb +1 -1
  75. data/lib/merge_ticketing_client/models/method_enum.rb +1 -1
  76. data/lib/merge_ticketing_client/models/operator_schema.rb +229 -0
  77. data/lib/merge_ticketing_client/models/paginated_collection_list.rb +240 -0
  78. data/lib/merge_ticketing_client/models/paginated_condition_schema_list.rb +240 -0
  79. data/lib/merge_ticketing_client/models/patched_ticket_endpoint_request.rb +223 -0
  80. data/lib/merge_ticketing_client/models/patched_ticket_request.rb +447 -0
  81. data/lib/merge_ticketing_client/models/priority_enum.rb +47 -0
  82. data/lib/merge_ticketing_client/models/project.rb +16 -4
  83. data/lib/merge_ticketing_client/models/remote_response.rb +14 -11
  84. data/lib/merge_ticketing_client/models/request_format_enum.rb +1 -1
  85. data/lib/merge_ticketing_client/models/response_type_enum.rb +45 -0
  86. data/lib/merge_ticketing_client/models/selective_sync_configurations_usage_enum.rb +45 -0
  87. data/lib/merge_ticketing_client/models/sync_status.rb +13 -14
  88. data/lib/merge_ticketing_client/models/sync_status_status_enum.rb +1 -1
  89. data/lib/merge_ticketing_client/models/tag.rb +16 -4
  90. data/lib/merge_ticketing_client/models/team.rb +16 -4
  91. data/lib/merge_ticketing_client/models/ticket.rb +91 -5
  92. data/lib/merge_ticketing_client/models/ticket_request.rb +104 -6
  93. data/lib/merge_ticketing_client/models/ticket_status_enum.rb +4 -2
  94. data/lib/merge_ticketing_client/models/user.rb +27 -4
  95. data/lib/merge_ticketing_client/version.rb +1 -1
  96. data/lib/merge_ticketing_client.rb +19 -0
  97. data/spec/api/collections_api_spec.rb +76 -0
  98. data/spec/api/projects_api_spec.rb +3 -2
  99. data/spec/api/selective_sync_api_spec.rb +72 -0
  100. data/spec/api/tickets_api_spec.rb +50 -4
  101. data/spec/api/users_api_spec.rb +1 -0
  102. data/spec/models/account_spec.rb +6 -0
  103. data/spec/models/attachment_request_spec.rb +12 -0
  104. data/spec/models/attachment_spec.rb +6 -0
  105. data/spec/models/collection_spec.rb +82 -0
  106. data/spec/models/collection_type_enum_spec.rb +28 -0
  107. data/spec/models/comment_request_spec.rb +12 -0
  108. data/spec/models/comment_spec.rb +6 -0
  109. data/spec/models/condition_schema_spec.rb +70 -0
  110. data/spec/models/condition_type_enum_spec.rb +28 -0
  111. data/spec/models/contact_spec.rb +6 -0
  112. data/spec/models/issue_spec.rb +6 -0
  113. data/spec/models/linked_account_condition_request_spec.rb +46 -0
  114. data/spec/models/linked_account_condition_spec.rb +64 -0
  115. data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
  116. data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
  117. data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
  118. data/spec/models/operator_schema_spec.rb +40 -0
  119. data/spec/models/paginated_collection_list_spec.rb +46 -0
  120. data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
  121. data/spec/models/patched_ticket_endpoint_request_spec.rb +34 -0
  122. data/spec/models/patched_ticket_request_spec.rb +148 -0
  123. data/spec/models/priority_enum_spec.rb +28 -0
  124. data/spec/models/project_spec.rb +6 -0
  125. data/spec/models/remote_response_spec.rb +6 -0
  126. data/spec/models/response_type_enum_spec.rb +28 -0
  127. data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
  128. data/spec/models/sync_status_spec.rb +6 -0
  129. data/spec/models/tag_spec.rb +6 -0
  130. data/spec/models/team_spec.rb +6 -0
  131. data/spec/models/ticket_request_spec.rb +42 -0
  132. data/spec/models/ticket_spec.rb +36 -0
  133. data/spec/models/user_spec.rb +12 -0
  134. metadata +144 -68
@@ -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` object with the given `id`.
22
+ # Returns a list of `User` objects.
23
23
  # @param x_account_token [String] Token identifying the end user.
24
- # @param id [String]
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, id, opts = {})
32
- data, _status_code, _headers = tickets_collaborators_list_with_http_info(x_account_token, id, opts)
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` object with the given `id`.
37
+ # Returns a list of `User` objects.
37
38
  # @param x_account_token [String] Token identifying the end user.
38
- # @param id [String]
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, id, opts = {})
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 'id' is set
54
- if @api_client.config.client_side_validation && id.nil?
55
- fail ArgumentError, "Missing the required parameter 'id' when calling TicketsApi.tickets_collaborators_list"
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/{id}/collaborators'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
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 [String] :remote_fields Which fields should be returned in non-normalized form.
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&#39;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 [String] :remote_fields Which fields should be returned in non-normalized form.
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&#39;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 = ["status"]
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] || {}
@@ -288,6 +354,74 @@ module MergeTicketingClient
288
354
  return data, status_code, headers
289
355
  end
290
356
 
357
+ # Returns metadata for `Ticket` PATCHs.
358
+ # @param x_account_token [String] Token identifying the end user.
359
+ # @param id [String]
360
+ # @param [Hash] opts the optional parameters
361
+ # @return [MetaResponse]
362
+ def tickets_meta_patch_retrieve(x_account_token, id, opts = {})
363
+ data, _status_code, _headers = tickets_meta_patch_retrieve_with_http_info(x_account_token, id, opts)
364
+ data
365
+ end
366
+
367
+ # Returns metadata for &#x60;Ticket&#x60; PATCHs.
368
+ # @param x_account_token [String] Token identifying the end user.
369
+ # @param id [String]
370
+ # @param [Hash] opts the optional parameters
371
+ # @return [Array<(MetaResponse, Integer, Hash)>] MetaResponse data, response status code and response headers
372
+ def tickets_meta_patch_retrieve_with_http_info(x_account_token, id, opts = {})
373
+ if @api_client.config.debugging
374
+ @api_client.config.logger.debug 'Calling API: TicketsApi.tickets_meta_patch_retrieve ...'
375
+ end
376
+ # verify the required parameter 'x_account_token' is set
377
+ if @api_client.config.client_side_validation && x_account_token.nil?
378
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling TicketsApi.tickets_meta_patch_retrieve"
379
+ end
380
+ # verify the required parameter 'id' is set
381
+ if @api_client.config.client_side_validation && id.nil?
382
+ fail ArgumentError, "Missing the required parameter 'id' when calling TicketsApi.tickets_meta_patch_retrieve"
383
+ end
384
+ # resource path
385
+ local_var_path = '/tickets/meta/patch/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
386
+
387
+ # query parameters
388
+ query_params = opts[:query_params] || {}
389
+
390
+ # header parameters
391
+ header_params = opts[:header_params] || {}
392
+ # HTTP header 'Accept' (if needed)
393
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
394
+ header_params[:'X-Account-Token'] = x_account_token
395
+
396
+ # form parameters
397
+ form_params = opts[:form_params] || {}
398
+
399
+ # http body (model)
400
+ post_body = opts[:debug_body]
401
+
402
+ # return_type
403
+ return_type = opts[:debug_return_type] || 'MetaResponse'
404
+
405
+ # auth_names
406
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
407
+
408
+ new_options = opts.merge(
409
+ :operation => :"TicketsApi.tickets_meta_patch_retrieve",
410
+ :header_params => header_params,
411
+ :query_params => query_params,
412
+ :form_params => form_params,
413
+ :body => post_body,
414
+ :auth_names => auth_names,
415
+ :return_type => return_type
416
+ )
417
+
418
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
419
+ if @api_client.config.debugging
420
+ @api_client.config.logger.debug "API called: TicketsApi#tickets_meta_patch_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
421
+ end
422
+ return data, status_code, headers
423
+ end
424
+
291
425
  # Returns metadata for `Ticket` POSTs.
292
426
  # @param x_account_token [String] Token identifying the end user.
293
427
  # @param [Hash] opts the optional parameters
@@ -350,13 +484,96 @@ module MergeTicketingClient
350
484
  return data, status_code, headers
351
485
  end
352
486
 
487
+ # Updates a `Ticket` object with the given `id`.
488
+ # @param x_account_token [String] Token identifying the end user.
489
+ # @param id [String]
490
+ # @param patched_ticket_endpoint_request [PatchedTicketEndpointRequest]
491
+ # @param [Hash] opts the optional parameters
492
+ # @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
493
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
494
+ # @return [TicketResponse]
495
+ def tickets_partial_update(x_account_token, id, patched_ticket_endpoint_request, opts = {})
496
+ data, _status_code, _headers = tickets_partial_update_with_http_info(x_account_token, id, patched_ticket_endpoint_request, opts)
497
+ data
498
+ end
499
+
500
+ # Updates a &#x60;Ticket&#x60; object with the given &#x60;id&#x60;.
501
+ # @param x_account_token [String] Token identifying the end user.
502
+ # @param id [String]
503
+ # @param patched_ticket_endpoint_request [PatchedTicketEndpointRequest]
504
+ # @param [Hash] opts the optional parameters
505
+ # @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
506
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
507
+ # @return [Array<(TicketResponse, Integer, Hash)>] TicketResponse data, response status code and response headers
508
+ def tickets_partial_update_with_http_info(x_account_token, id, patched_ticket_endpoint_request, opts = {})
509
+ if @api_client.config.debugging
510
+ @api_client.config.logger.debug 'Calling API: TicketsApi.tickets_partial_update ...'
511
+ end
512
+ # verify the required parameter 'x_account_token' is set
513
+ if @api_client.config.client_side_validation && x_account_token.nil?
514
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling TicketsApi.tickets_partial_update"
515
+ end
516
+ # verify the required parameter 'id' is set
517
+ if @api_client.config.client_side_validation && id.nil?
518
+ fail ArgumentError, "Missing the required parameter 'id' when calling TicketsApi.tickets_partial_update"
519
+ end
520
+ # verify the required parameter 'patched_ticket_endpoint_request' is set
521
+ if @api_client.config.client_side_validation && patched_ticket_endpoint_request.nil?
522
+ fail ArgumentError, "Missing the required parameter 'patched_ticket_endpoint_request' when calling TicketsApi.tickets_partial_update"
523
+ end
524
+ # resource path
525
+ local_var_path = '/tickets/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
526
+
527
+ # query parameters
528
+ query_params = opts[:query_params] || {}
529
+ query_params[:'is_debug_mode'] = opts[:'is_debug_mode'] if !opts[:'is_debug_mode'].nil?
530
+ query_params[:'run_async'] = opts[:'run_async'] if !opts[:'run_async'].nil?
531
+
532
+ # header parameters
533
+ header_params = opts[:header_params] || {}
534
+ # HTTP header 'Accept' (if needed)
535
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
536
+ # HTTP header 'Content-Type'
537
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
538
+ header_params[:'X-Account-Token'] = x_account_token
539
+
540
+ # form parameters
541
+ form_params = opts[:form_params] || {}
542
+
543
+ # http body (model)
544
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(patched_ticket_endpoint_request)
545
+
546
+ # return_type
547
+ return_type = opts[:debug_return_type] || 'TicketResponse'
548
+
549
+ # auth_names
550
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
551
+
552
+ new_options = opts.merge(
553
+ :operation => :"TicketsApi.tickets_partial_update",
554
+ :header_params => header_params,
555
+ :query_params => query_params,
556
+ :form_params => form_params,
557
+ :body => post_body,
558
+ :auth_names => auth_names,
559
+ :return_type => return_type
560
+ )
561
+
562
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
563
+ if @api_client.config.debugging
564
+ @api_client.config.logger.debug "API called: TicketsApi#tickets_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
565
+ end
566
+ return data, status_code, headers
567
+ end
568
+
353
569
  # Returns a `Ticket` object with the given `id`.
354
570
  # @param x_account_token [String] Token identifying the end user.
355
571
  # @param id [String]
356
572
  # @param [Hash] opts the optional parameters
357
573
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
358
574
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
359
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
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.
360
577
  # @return [Ticket]
361
578
  def tickets_retrieve(x_account_token, id, opts = {})
362
579
  data, _status_code, _headers = tickets_retrieve_with_http_info(x_account_token, id, opts)
@@ -369,7 +586,8 @@ module MergeTicketingClient
369
586
  # @param [Hash] opts the optional parameters
370
587
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
371
588
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
372
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
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.
373
591
  # @return [Array<(Ticket, Integer, Hash)>] Ticket data, response status code and response headers
374
592
  def tickets_retrieve_with_http_info(x_account_token, id, opts = {})
375
593
  if @api_client.config.debugging
@@ -383,14 +601,18 @@ module MergeTicketingClient
383
601
  if @api_client.config.client_side_validation && id.nil?
384
602
  fail ArgumentError, "Missing the required parameter 'id' when calling TicketsApi.tickets_retrieve"
385
603
  end
386
- 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"]
387
605
  if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
388
606
  fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
389
607
  end
390
- allowable_values = ["status"]
608
+ allowable_values = ["priority", "priority,status", "priority,status,ticket_type", "priority,ticket_type", "status", "status,ticket_type", "ticket_type"]
391
609
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
392
610
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
393
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
394
616
  # resource path
395
617
  local_var_path = '/tickets/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
396
618
 
@@ -399,6 +621,7 @@ module MergeTicketingClient
399
621
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
400
622
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
401
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?
402
625
 
403
626
  # header parameters
404
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?
@@ -32,6 +32,8 @@ module MergeTicketingClient
32
32
  # Indicates whether or not this object has been deleted by third party webhooks.
33
33
  attr_accessor :remote_was_deleted
34
34
 
35
+ attr_accessor :field_mappings
36
+
35
37
  # Attribute mapping from ruby-style variable name to JSON key.
36
38
  def self.attribute_map
37
39
  {
@@ -40,7 +42,8 @@ module MergeTicketingClient
40
42
  :'name' => :'name',
41
43
  :'domains' => :'domains',
42
44
  :'remote_data' => :'remote_data',
43
- :'remote_was_deleted' => :'remote_was_deleted'
45
+ :'remote_was_deleted' => :'remote_was_deleted',
46
+ :'field_mappings' => :'field_mappings'
44
47
  }
45
48
  end
46
49
 
@@ -57,7 +60,8 @@ module MergeTicketingClient
57
60
  :'name' => :'String',
58
61
  :'domains' => :'Array<String>',
59
62
  :'remote_data' => :'Array<RemoteData>',
60
- :'remote_was_deleted' => :'Boolean'
63
+ :'remote_was_deleted' => :'Boolean',
64
+ :'field_mappings' => :'Hash<String, Object>'
61
65
  }
62
66
  end
63
67
 
@@ -68,6 +72,7 @@ module MergeTicketingClient
68
72
  :'name',
69
73
  :'domains',
70
74
  :'remote_data',
75
+ :'field_mappings'
71
76
  ])
72
77
  end
73
78
 
@@ -113,6 +118,12 @@ module MergeTicketingClient
113
118
  if attributes.key?(:'remote_was_deleted')
114
119
  self.remote_was_deleted = attributes[:'remote_was_deleted']
115
120
  end
121
+
122
+ if attributes.key?(:'field_mappings')
123
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
124
+ self.field_mappings = value
125
+ end
126
+ end
116
127
  end
117
128
 
118
129
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -138,7 +149,8 @@ module MergeTicketingClient
138
149
  name == o.name &&
139
150
  domains == o.domains &&
140
151
  remote_data == o.remote_data &&
141
- remote_was_deleted == o.remote_was_deleted
152
+ remote_was_deleted == o.remote_was_deleted &&
153
+ field_mappings == o.field_mappings
142
154
  end
143
155
 
144
156
  # @see the `==` method
@@ -150,7 +162,7 @@ module MergeTicketingClient
150
162
  # Calculates hash code according to all attributes.
151
163
  # @return [Integer] Hash code
152
164
  def hash
153
- [id, remote_id, name, domains, remote_data, remote_was_deleted].hash
165
+ [id, remote_id, name, domains, remote_data, remote_was_deleted, field_mappings].hash
154
166
  end
155
167
 
156
168
  # Builds the object from hash
@@ -39,7 +39,7 @@ module MergeTicketingClient
39
39
  end
40
40
 
41
41
  def self.build_from_hash(value)
42
- IssueStatusEnum.new.build_from_hash(value)
42
+ AccountDetailsAndActionsStatusEnum.new.build_from_hash(value)
43
43
  end
44
44
  end
45
45
 
@@ -18,7 +18,7 @@ module MergeTicketingClient
18
18
  # Company name.
19
19
  attr_accessor :name
20
20
 
21
- # Category or categories this integration belongs to. Multiple categories should be comma separated.<br/><br>Example: For [ats, hris], enter <i>ats,hris</i>
21
+ # Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris].
22
22
  attr_accessor :categories
23
23
 
24
24
  # Company logo in rectangular shape. <b>Upload an image with a clear background.</b>