merge_ticketing_client 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -6
  3. data/docs/Account.md +11 -10
  4. data/docs/AccountIntegration.md +1 -1
  5. data/docs/Attachment.md +15 -14
  6. data/docs/AttachmentRequest.md +11 -12
  7. data/docs/Collection.md +33 -0
  8. data/docs/CollectionTypeEnum.md +15 -0
  9. data/docs/CollectionsApi.md +193 -0
  10. data/docs/Comment.md +16 -15
  11. data/docs/CommentRequest.md +12 -13
  12. data/docs/ConditionSchema.md +30 -0
  13. data/docs/ConditionTypeEnum.md +15 -0
  14. data/docs/Contact.md +14 -13
  15. data/docs/DataPassthroughRequest.md +10 -11
  16. data/docs/EndUserDetailsRequest.md +2 -2
  17. data/docs/FieldFormatEnum.md +15 -0
  18. data/docs/FieldTypeEnum.md +15 -0
  19. data/docs/Issue.md +18 -17
  20. data/docs/LinkToken.md +1 -1
  21. data/docs/LinkedAccountCondition.md +27 -0
  22. data/docs/LinkedAccountConditionRequest.md +21 -0
  23. data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
  24. data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
  25. data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
  26. data/docs/MetaResponse.md +6 -7
  27. data/docs/OperatorSchema.md +20 -0
  28. data/docs/PaginatedCollectionList.md +22 -0
  29. data/docs/PaginatedConditionSchemaList.md +22 -0
  30. data/docs/PaginatedRemoteFieldClassList.md +22 -0
  31. data/docs/PatchedTicketRequest.md +25 -22
  32. data/docs/Project.md +11 -10
  33. data/docs/ProjectsApi.md +10 -8
  34. data/docs/RemoteData.md +4 -5
  35. data/docs/RemoteField.md +19 -0
  36. data/docs/RemoteFieldClass.md +38 -0
  37. data/docs/RemoteFieldClassItemSchema.md +22 -0
  38. data/docs/RemoteResponse.md +9 -10
  39. data/docs/SelectiveSyncApi.md +233 -0
  40. data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
  41. data/docs/SyncStatus.md +5 -3
  42. data/docs/Tag.md +9 -8
  43. data/docs/Team.md +11 -10
  44. data/docs/Ticket.md +32 -25
  45. data/docs/TicketRequest.md +26 -25
  46. data/docs/TicketsApi.md +141 -13
  47. data/docs/User.md +14 -13
  48. data/docs/UsersApi.md +2 -0
  49. data/lib/merge_ticketing_client/api/collections_api.rb +234 -0
  50. data/lib/merge_ticketing_client/api/linked_accounts_api.rb +1 -1
  51. data/lib/merge_ticketing_client/api/projects_api.rb +14 -11
  52. data/lib/merge_ticketing_client/api/selective_sync_api.rb +225 -0
  53. data/lib/merge_ticketing_client/api/tickets_api.rb +177 -19
  54. data/lib/merge_ticketing_client/api/users_api.rb +3 -0
  55. data/lib/merge_ticketing_client/models/account.rb +16 -4
  56. data/lib/merge_ticketing_client/models/account_details_and_actions_status_enum.rb +1 -1
  57. data/lib/merge_ticketing_client/models/account_integration.rb +1 -1
  58. data/lib/merge_ticketing_client/models/attachment.rb +18 -4
  59. data/lib/merge_ticketing_client/models/attachment_request.rb +24 -20
  60. data/lib/merge_ticketing_client/models/categories_enum.rb +3 -2
  61. data/lib/merge_ticketing_client/models/category_enum.rb +3 -2
  62. data/lib/merge_ticketing_client/models/collection.rb +308 -0
  63. data/lib/merge_ticketing_client/models/collection_type_enum.rb +45 -0
  64. data/lib/merge_ticketing_client/models/comment.rb +19 -4
  65. data/lib/merge_ticketing_client/models/comment_request.rb +25 -20
  66. data/lib/merge_ticketing_client/models/condition_schema.rb +297 -0
  67. data/lib/merge_ticketing_client/models/condition_type_enum.rb +50 -0
  68. data/lib/merge_ticketing_client/models/contact.rb +16 -4
  69. data/lib/merge_ticketing_client/models/data_passthrough_request.rb +1 -0
  70. data/lib/merge_ticketing_client/models/encoding_enum.rb +1 -1
  71. data/lib/merge_ticketing_client/models/end_user_details_request.rb +2 -2
  72. data/lib/merge_ticketing_client/models/field_format_enum.rb +49 -0
  73. data/lib/merge_ticketing_client/models/field_type_enum.rb +49 -0
  74. data/lib/merge_ticketing_client/models/issue.rb +15 -4
  75. data/lib/merge_ticketing_client/models/link_token.rb +0 -5
  76. data/lib/merge_ticketing_client/models/linked_account_condition.rb +282 -0
  77. data/lib/merge_ticketing_client/models/linked_account_condition_request.rb +269 -0
  78. data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration.rb +221 -0
  79. data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
  80. data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
  81. data/lib/merge_ticketing_client/models/method_enum.rb +1 -1
  82. data/lib/merge_ticketing_client/models/operator_schema.rb +229 -0
  83. data/lib/merge_ticketing_client/models/paginated_collection_list.rb +240 -0
  84. data/lib/merge_ticketing_client/models/paginated_condition_schema_list.rb +240 -0
  85. data/lib/merge_ticketing_client/models/paginated_remote_field_class_list.rb +240 -0
  86. data/lib/merge_ticketing_client/models/patched_ticket_request.rb +57 -29
  87. data/lib/merge_ticketing_client/models/priority_enum.rb +1 -1
  88. data/lib/merge_ticketing_client/models/project.rb +16 -4
  89. data/lib/merge_ticketing_client/models/remote_data.rb +9 -7
  90. data/lib/merge_ticketing_client/models/remote_field.rb +231 -0
  91. data/lib/merge_ticketing_client/models/remote_field_class.rb +318 -0
  92. data/lib/merge_ticketing_client/models/remote_field_class_item_schema.rb +241 -0
  93. data/lib/merge_ticketing_client/models/request_format_enum.rb +1 -1
  94. data/lib/merge_ticketing_client/models/response_type_enum.rb +1 -1
  95. data/lib/merge_ticketing_client/models/selective_sync_configurations_usage_enum.rb +45 -0
  96. data/lib/merge_ticketing_client/models/sync_status.rb +13 -4
  97. data/lib/merge_ticketing_client/models/sync_status_status_enum.rb +1 -1
  98. data/lib/merge_ticketing_client/models/tag.rb +16 -4
  99. data/lib/merge_ticketing_client/models/team.rb +16 -4
  100. data/lib/merge_ticketing_client/models/ticket.rb +56 -7
  101. data/lib/merge_ticketing_client/models/ticket_request.rb +57 -40
  102. data/lib/merge_ticketing_client/models/ticket_status_enum.rb +1 -1
  103. data/lib/merge_ticketing_client/models/user.rb +16 -4
  104. data/lib/merge_ticketing_client/version.rb +1 -1
  105. data/lib/merge_ticketing_client.rb +21 -0
  106. data/spec/api/collections_api_spec.rb +76 -0
  107. data/spec/api/projects_api_spec.rb +3 -2
  108. data/spec/api/selective_sync_api_spec.rb +72 -0
  109. data/spec/api/tickets_api_spec.rb +24 -4
  110. data/spec/api/users_api_spec.rb +1 -0
  111. data/spec/models/account_spec.rb +6 -0
  112. data/spec/models/attachment_request_spec.rb +12 -0
  113. data/spec/models/attachment_spec.rb +6 -0
  114. data/spec/models/collection_spec.rb +82 -0
  115. data/spec/models/collection_type_enum_spec.rb +28 -0
  116. data/spec/models/comment_request_spec.rb +12 -0
  117. data/spec/models/comment_spec.rb +6 -0
  118. data/spec/models/condition_schema_spec.rb +70 -0
  119. data/spec/models/condition_type_enum_spec.rb +28 -0
  120. data/spec/models/contact_spec.rb +6 -0
  121. data/spec/models/issue_spec.rb +6 -0
  122. data/spec/models/linked_account_condition_request_spec.rb +46 -0
  123. data/spec/models/linked_account_condition_spec.rb +64 -0
  124. data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
  125. data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
  126. data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
  127. data/spec/models/operator_schema_spec.rb +40 -0
  128. data/spec/models/paginated_collection_list_spec.rb +46 -0
  129. data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
  130. data/spec/models/patched_ticket_request_spec.rb +24 -0
  131. data/spec/models/project_spec.rb +6 -0
  132. data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
  133. data/spec/models/sync_status_spec.rb +6 -0
  134. data/spec/models/tag_spec.rb +6 -0
  135. data/spec/models/team_spec.rb +6 -0
  136. data/spec/models/ticket_request_spec.rb +24 -0
  137. data/spec/models/ticket_spec.rb +18 -0
  138. data/spec/models/user_spec.rb +6 -0
  139. metadata +144 -72
@@ -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,36 @@ 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.
202
+ # @option opts [Boolean] :include_remote_fields Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
192
203
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
193
204
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
194
205
  # @option opts [Integer] :page_size Number of results to return per page.
206
+ # @option opts [String] :parent_ticket_id If provided, will only return sub tickets of the parent_ticket_id.
207
+ # @option opts [String] :priority If provided, will only return tickets of this priority.
195
208
  # @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.
209
+ # @option opts [Time] :remote_created_after If provided, will only return tickets created in the third party platform after this datetime.
210
+ # @option opts [Time] :remote_created_before If provided, will only return tickets created in the third party platform before this datetime.
211
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
197
212
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
213
+ # @option opts [Time] :remote_updated_after If provided, will only return tickets updated in the third party platform after this datetime.
214
+ # @option opts [Time] :remote_updated_before If provided, will only return tickets updated in the third party platform before this datetime.
215
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
216
+ # @option opts [String] :status If provided, will only return tickets of this status.
217
+ # @option opts [String] :tags If provided, will only return tickets matching the tags; multiple tags can be separated by commas.
218
+ # @option opts [String] :ticket_type If provided, will only return tickets of this type.
198
219
  # @return [PaginatedTicketList]
199
220
  def tickets_list(x_account_token, opts = {})
200
221
  data, _status_code, _headers = tickets_list_with_http_info(x_account_token, opts)
@@ -205,18 +226,36 @@ module MergeTicketingClient
205
226
  # @param x_account_token [String] Token identifying the end user.
206
227
  # @param [Hash] opts the optional parameters
207
228
  # @option opts [String] :account_id If provided, will only return tickets for this account.
229
+ # @option opts [String] :assignee_ids If provided, will only return tickets assigned to the assignee_ids; multiple assignee_ids can be separated by commas.
230
+ # @option opts [String] :collection_ids If provided, will only return tickets assigned to the collection_ids; multiple collection_ids can be separated by commas.
231
+ # @option opts [Time] :completed_after If provided, will only return tickets completed after this datetime.
232
+ # @option opts [Time] :completed_before If provided, will only return tickets completed before this datetime.
233
+ # @option opts [String] :contact_id If provided, will only return tickets for this contact.
208
234
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
209
235
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
210
236
  # @option opts [String] :cursor The pagination cursor value.
237
+ # @option opts [Time] :due_after If provided, will only return tickets due after this datetime.
238
+ # @option opts [Time] :due_before If provided, will only return tickets due before this datetime.
211
239
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
212
240
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
213
241
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
242
+ # @option opts [Boolean] :include_remote_fields Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
214
243
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
215
244
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
216
245
  # @option opts [Integer] :page_size Number of results to return per page.
246
+ # @option opts [String] :parent_ticket_id If provided, will only return sub tickets of the parent_ticket_id.
247
+ # @option opts [String] :priority If provided, will only return tickets of this priority.
217
248
  # @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.
249
+ # @option opts [Time] :remote_created_after If provided, will only return tickets created in the third party platform after this datetime.
250
+ # @option opts [Time] :remote_created_before If provided, will only return tickets created in the third party platform before this datetime.
251
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
219
252
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
253
+ # @option opts [Time] :remote_updated_after If provided, will only return tickets updated in the third party platform after this datetime.
254
+ # @option opts [Time] :remote_updated_before If provided, will only return tickets updated in the third party platform before this datetime.
255
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
256
+ # @option opts [String] :status If provided, will only return tickets of this status.
257
+ # @option opts [String] :tags If provided, will only return tickets matching the tags; multiple tags can be separated by commas.
258
+ # @option opts [String] :ticket_type If provided, will only return tickets of this type.
220
259
  # @return [Array<(PaginatedTicketList, Integer, Hash)>] PaginatedTicketList data, response status code and response headers
221
260
  def tickets_list_with_http_info(x_account_token, opts = {})
222
261
  if @api_client.config.debugging
@@ -226,32 +265,62 @@ module MergeTicketingClient
226
265
  if @api_client.config.client_side_validation && x_account_token.nil?
227
266
  fail ArgumentError, "Missing the required parameter 'x_account_token' when calling TicketsApi.tickets_list"
228
267
  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"]
268
+ 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
269
  if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
231
270
  fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
232
271
  end
233
- allowable_values = ["status"]
272
+ allowable_values = ["HIGH", "LOW", "NORMAL", "URGENT"]
273
+ if @api_client.config.client_side_validation && opts[:'priority'] && !allowable_values.include?(opts[:'priority'])
274
+ fail ArgumentError, "invalid value for \"priority\", must be one of #{allowable_values}"
275
+ end
276
+ allowable_values = ["priority", "priority,status", "priority,status,ticket_type", "priority,ticket_type", "status", "status,ticket_type", "ticket_type"]
234
277
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
235
278
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
236
279
  end
280
+ allowable_values = ["priority", "priority,status", "priority,status,ticket_type", "priority,ticket_type", "status", "status,ticket_type", "ticket_type"]
281
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
282
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
283
+ end
284
+ allowable_values = ["CLOSED", "IN_PROGRESS", "ON_HOLD", "OPEN"]
285
+ if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
286
+ fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
287
+ end
237
288
  # resource path
238
289
  local_var_path = '/tickets'
239
290
 
240
291
  # query parameters
241
292
  query_params = opts[:query_params] || {}
242
293
  query_params[:'account_id'] = opts[:'account_id'] if !opts[:'account_id'].nil?
294
+ query_params[:'assignee_ids'] = opts[:'assignee_ids'] if !opts[:'assignee_ids'].nil?
295
+ query_params[:'collection_ids'] = opts[:'collection_ids'] if !opts[:'collection_ids'].nil?
296
+ query_params[:'completed_after'] = opts[:'completed_after'] if !opts[:'completed_after'].nil?
297
+ query_params[:'completed_before'] = opts[:'completed_before'] if !opts[:'completed_before'].nil?
298
+ query_params[:'contact_id'] = opts[:'contact_id'] if !opts[:'contact_id'].nil?
243
299
  query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
244
300
  query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
245
301
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
302
+ query_params[:'due_after'] = opts[:'due_after'] if !opts[:'due_after'].nil?
303
+ query_params[:'due_before'] = opts[:'due_before'] if !opts[:'due_before'].nil?
246
304
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
247
305
  query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
248
306
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
307
+ query_params[:'include_remote_fields'] = opts[:'include_remote_fields'] if !opts[:'include_remote_fields'].nil?
249
308
  query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
250
309
  query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
251
310
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
311
+ query_params[:'parent_ticket_id'] = opts[:'parent_ticket_id'] if !opts[:'parent_ticket_id'].nil?
312
+ query_params[:'priority'] = opts[:'priority'] if !opts[:'priority'].nil?
252
313
  query_params[:'project_id'] = opts[:'project_id'] if !opts[:'project_id'].nil?
314
+ query_params[:'remote_created_after'] = opts[:'remote_created_after'] if !opts[:'remote_created_after'].nil?
315
+ query_params[:'remote_created_before'] = opts[:'remote_created_before'] if !opts[:'remote_created_before'].nil?
253
316
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
254
317
  query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
318
+ query_params[:'remote_updated_after'] = opts[:'remote_updated_after'] if !opts[:'remote_updated_after'].nil?
319
+ query_params[:'remote_updated_before'] = opts[:'remote_updated_before'] if !opts[:'remote_updated_before'].nil?
320
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
321
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
322
+ query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
323
+ query_params[:'ticket_type'] = opts[:'ticket_type'] if !opts[:'ticket_type'].nil?
255
324
 
256
325
  # header parameters
257
326
  header_params = opts[:header_params] || {}
@@ -418,6 +487,7 @@ module MergeTicketingClient
418
487
  return data, status_code, headers
419
488
  end
420
489
 
490
+ # Updates a `Ticket` object with the given `id`.
421
491
  # @param x_account_token [String] Token identifying the end user.
422
492
  # @param id [String]
423
493
  # @param patched_ticket_endpoint_request [PatchedTicketEndpointRequest]
@@ -430,6 +500,7 @@ module MergeTicketingClient
430
500
  data
431
501
  end
432
502
 
503
+ # Updates a &#x60;Ticket&#x60; object with the given &#x60;id&#x60;.
433
504
  # @param x_account_token [String] Token identifying the end user.
434
505
  # @param id [String]
435
506
  # @param patched_ticket_endpoint_request [PatchedTicketEndpointRequest]
@@ -498,13 +569,92 @@ module MergeTicketingClient
498
569
  return data, status_code, headers
499
570
  end
500
571
 
572
+ # Returns a list of `RemoteFieldClass` objects.
573
+ # @param x_account_token [String] Token identifying the end user.
574
+ # @param [Hash] opts the optional parameters
575
+ # @option opts [String] :cursor The pagination cursor value.
576
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
577
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
578
+ # @option opts [Boolean] :include_remote_fields Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
579
+ # @option opts [Integer] :page_size Number of results to return per page.
580
+ # @return [PaginatedRemoteFieldClassList]
581
+ def tickets_remote_field_classes_list(x_account_token, opts = {})
582
+ data, _status_code, _headers = tickets_remote_field_classes_list_with_http_info(x_account_token, opts)
583
+ data
584
+ end
585
+
586
+ # Returns a list of &#x60;RemoteFieldClass&#x60; objects.
587
+ # @param x_account_token [String] Token identifying the end user.
588
+ # @param [Hash] opts the optional parameters
589
+ # @option opts [String] :cursor The pagination cursor value.
590
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
591
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
592
+ # @option opts [Boolean] :include_remote_fields Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
593
+ # @option opts [Integer] :page_size Number of results to return per page.
594
+ # @return [Array<(PaginatedRemoteFieldClassList, Integer, Hash)>] PaginatedRemoteFieldClassList data, response status code and response headers
595
+ def tickets_remote_field_classes_list_with_http_info(x_account_token, opts = {})
596
+ if @api_client.config.debugging
597
+ @api_client.config.logger.debug 'Calling API: TicketsApi.tickets_remote_field_classes_list ...'
598
+ end
599
+ # verify the required parameter 'x_account_token' is set
600
+ if @api_client.config.client_side_validation && x_account_token.nil?
601
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling TicketsApi.tickets_remote_field_classes_list"
602
+ end
603
+ # resource path
604
+ local_var_path = '/tickets/remote-field-classes'
605
+
606
+ # query parameters
607
+ query_params = opts[:query_params] || {}
608
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
609
+ query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
610
+ query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
611
+ query_params[:'include_remote_fields'] = opts[:'include_remote_fields'] if !opts[:'include_remote_fields'].nil?
612
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
613
+
614
+ # header parameters
615
+ header_params = opts[:header_params] || {}
616
+ # HTTP header 'Accept' (if needed)
617
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
618
+ header_params[:'X-Account-Token'] = x_account_token
619
+
620
+ # form parameters
621
+ form_params = opts[:form_params] || {}
622
+
623
+ # http body (model)
624
+ post_body = opts[:debug_body]
625
+
626
+ # return_type
627
+ return_type = opts[:debug_return_type] || 'PaginatedRemoteFieldClassList'
628
+
629
+ # auth_names
630
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
631
+
632
+ new_options = opts.merge(
633
+ :operation => :"TicketsApi.tickets_remote_field_classes_list",
634
+ :header_params => header_params,
635
+ :query_params => query_params,
636
+ :form_params => form_params,
637
+ :body => post_body,
638
+ :auth_names => auth_names,
639
+ :return_type => return_type
640
+ )
641
+
642
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
643
+ if @api_client.config.debugging
644
+ @api_client.config.logger.debug "API called: TicketsApi#tickets_remote_field_classes_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
645
+ end
646
+ return data, status_code, headers
647
+ end
648
+
501
649
  # Returns a `Ticket` object with the given `id`.
502
650
  # @param x_account_token [String] Token identifying the end user.
503
651
  # @param id [String]
504
652
  # @param [Hash] opts the optional parameters
505
653
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
506
654
  # @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 Which fields should be returned in non-normalized form.
655
+ # @option opts [Boolean] :include_remote_fields Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
656
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
657
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
508
658
  # @return [Ticket]
509
659
  def tickets_retrieve(x_account_token, id, opts = {})
510
660
  data, _status_code, _headers = tickets_retrieve_with_http_info(x_account_token, id, opts)
@@ -517,7 +667,9 @@ module MergeTicketingClient
517
667
  # @param [Hash] opts the optional parameters
518
668
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
519
669
  # @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 Which fields should be returned in non-normalized form.
670
+ # @option opts [Boolean] :include_remote_fields Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
671
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
672
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
521
673
  # @return [Array<(Ticket, Integer, Hash)>] Ticket data, response status code and response headers
522
674
  def tickets_retrieve_with_http_info(x_account_token, id, opts = {})
523
675
  if @api_client.config.debugging
@@ -531,14 +683,18 @@ module MergeTicketingClient
531
683
  if @api_client.config.client_side_validation && id.nil?
532
684
  fail ArgumentError, "Missing the required parameter 'id' when calling TicketsApi.tickets_retrieve"
533
685
  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"]
686
+ 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
687
  if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
536
688
  fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
537
689
  end
538
- allowable_values = ["status"]
690
+ allowable_values = ["priority", "priority,status", "priority,status,ticket_type", "priority,ticket_type", "status", "status,ticket_type", "ticket_type"]
539
691
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
540
692
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
541
693
  end
694
+ allowable_values = ["priority", "priority,status", "priority,status,ticket_type", "priority,ticket_type", "status", "status,ticket_type", "ticket_type"]
695
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
696
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
697
+ end
542
698
  # resource path
543
699
  local_var_path = '/tickets/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
544
700
 
@@ -546,7 +702,9 @@ module MergeTicketingClient
546
702
  query_params = opts[:query_params] || {}
547
703
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
548
704
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
705
+ query_params[:'include_remote_fields'] = opts[:'include_remote_fields'] if !opts[:'include_remote_fields'].nil?
549
706
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
707
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
550
708
 
551
709
  # header parameters
552
710
  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>
@@ -24,6 +24,7 @@ module MergeTicketingClient
24
24
  # The attachment's name.
25
25
  attr_accessor :file_name
26
26
 
27
+ # The ticket associated with the attachment.
27
28
  attr_accessor :ticket
28
29
 
29
30
  # The attachment's url.
@@ -32,6 +33,7 @@ module MergeTicketingClient
32
33
  # The attachment's file format.
33
34
  attr_accessor :content_type
34
35
 
36
+ # The user who uploaded the attachment.
35
37
  attr_accessor :uploaded_by
36
38
 
37
39
  # When the third party's attachment was created.
@@ -41,6 +43,8 @@ module MergeTicketingClient
41
43
 
42
44
  attr_accessor :remote_was_deleted
43
45
 
46
+ attr_accessor :field_mappings
47
+
44
48
  # Attribute mapping from ruby-style variable name to JSON key.
45
49
  def self.attribute_map
46
50
  {
@@ -53,7 +57,8 @@ module MergeTicketingClient
53
57
  :'uploaded_by' => :'uploaded_by',
54
58
  :'remote_created_at' => :'remote_created_at',
55
59
  :'remote_data' => :'remote_data',
56
- :'remote_was_deleted' => :'remote_was_deleted'
60
+ :'remote_was_deleted' => :'remote_was_deleted',
61
+ :'field_mappings' => :'field_mappings'
57
62
  }
58
63
  end
59
64
 
@@ -74,7 +79,8 @@ module MergeTicketingClient
74
79
  :'uploaded_by' => :'String',
75
80
  :'remote_created_at' => :'Time',
76
81
  :'remote_data' => :'Array<RemoteData>',
77
- :'remote_was_deleted' => :'Boolean'
82
+ :'remote_was_deleted' => :'Boolean',
83
+ :'field_mappings' => :'Hash<String, Object>'
78
84
  }
79
85
  end
80
86
 
@@ -89,6 +95,7 @@ module MergeTicketingClient
89
95
  :'uploaded_by',
90
96
  :'remote_created_at',
91
97
  :'remote_data',
98
+ :'field_mappings'
92
99
  ])
93
100
  end
94
101
 
@@ -148,6 +155,12 @@ module MergeTicketingClient
148
155
  if attributes.key?(:'remote_was_deleted')
149
156
  self.remote_was_deleted = attributes[:'remote_was_deleted']
150
157
  end
158
+
159
+ if attributes.key?(:'field_mappings')
160
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
161
+ self.field_mappings = value
162
+ end
163
+ end
151
164
  end
152
165
 
153
166
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -177,7 +190,8 @@ module MergeTicketingClient
177
190
  uploaded_by == o.uploaded_by &&
178
191
  remote_created_at == o.remote_created_at &&
179
192
  remote_data == o.remote_data &&
180
- remote_was_deleted == o.remote_was_deleted
193
+ remote_was_deleted == o.remote_was_deleted &&
194
+ field_mappings == o.field_mappings
181
195
  end
182
196
 
183
197
  # @see the `==` method
@@ -189,7 +203,7 @@ module MergeTicketingClient
189
203
  # Calculates hash code according to all attributes.
190
204
  # @return [Integer] Hash code
191
205
  def hash
192
- [id, remote_id, file_name, ticket, file_url, content_type, uploaded_by, remote_created_at, remote_data, remote_was_deleted].hash
206
+ [id, remote_id, file_name, ticket, file_url, content_type, uploaded_by, remote_created_at, remote_data, remote_was_deleted, field_mappings].hash
193
207
  end
194
208
 
195
209
  # Builds the object from hash