merge_ticketing_client 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -6
  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/PatchedTicketRequest.md +15 -7
  28. data/docs/Project.md +3 -1
  29. data/docs/ProjectsApi.md +10 -8
  30. data/docs/SelectiveSyncApi.md +233 -0
  31. data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
  32. data/docs/SyncStatus.md +5 -3
  33. data/docs/Tag.md +3 -1
  34. data/docs/Team.md +3 -1
  35. data/docs/Ticket.md +13 -7
  36. data/docs/TicketRequest.md +15 -7
  37. data/docs/TicketsApi.md +53 -13
  38. data/docs/User.md +3 -1
  39. data/docs/UsersApi.md +2 -0
  40. data/lib/merge_ticketing_client/api/collections_api.rb +234 -0
  41. data/lib/merge_ticketing_client/api/linked_accounts_api.rb +1 -1
  42. data/lib/merge_ticketing_client/api/projects_api.rb +14 -11
  43. data/lib/merge_ticketing_client/api/selective_sync_api.rb +225 -0
  44. data/lib/merge_ticketing_client/api/tickets_api.rb +94 -19
  45. data/lib/merge_ticketing_client/api/users_api.rb +3 -0
  46. data/lib/merge_ticketing_client/models/account.rb +16 -4
  47. data/lib/merge_ticketing_client/models/account_details_and_actions_status_enum.rb +1 -1
  48. data/lib/merge_ticketing_client/models/account_integration.rb +1 -1
  49. data/lib/merge_ticketing_client/models/attachment.rb +18 -4
  50. data/lib/merge_ticketing_client/models/attachment_request.rb +31 -5
  51. data/lib/merge_ticketing_client/models/categories_enum.rb +1 -1
  52. data/lib/merge_ticketing_client/models/category_enum.rb +1 -1
  53. data/lib/merge_ticketing_client/models/collection.rb +308 -0
  54. data/lib/merge_ticketing_client/models/collection_type_enum.rb +45 -0
  55. data/lib/merge_ticketing_client/models/comment.rb +19 -4
  56. data/lib/merge_ticketing_client/models/comment_request.rb +32 -5
  57. data/lib/merge_ticketing_client/models/condition_schema.rb +297 -0
  58. data/lib/merge_ticketing_client/models/condition_type_enum.rb +50 -0
  59. data/lib/merge_ticketing_client/models/contact.rb +16 -4
  60. data/lib/merge_ticketing_client/models/data_passthrough_request.rb +1 -0
  61. data/lib/merge_ticketing_client/models/encoding_enum.rb +1 -1
  62. data/lib/merge_ticketing_client/models/end_user_details_request.rb +2 -2
  63. data/lib/merge_ticketing_client/models/issue.rb +15 -4
  64. data/lib/merge_ticketing_client/models/link_token.rb +0 -5
  65. data/lib/merge_ticketing_client/models/linked_account_condition.rb +282 -0
  66. data/lib/merge_ticketing_client/models/linked_account_condition_request.rb +269 -0
  67. data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration.rb +221 -0
  68. data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
  69. data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
  70. data/lib/merge_ticketing_client/models/method_enum.rb +1 -1
  71. data/lib/merge_ticketing_client/models/operator_schema.rb +229 -0
  72. data/lib/merge_ticketing_client/models/paginated_collection_list.rb +240 -0
  73. data/lib/merge_ticketing_client/models/paginated_condition_schema_list.rb +240 -0
  74. data/lib/merge_ticketing_client/models/patched_ticket_request.rb +57 -7
  75. data/lib/merge_ticketing_client/models/priority_enum.rb +1 -1
  76. data/lib/merge_ticketing_client/models/project.rb +16 -4
  77. data/lib/merge_ticketing_client/models/request_format_enum.rb +1 -1
  78. data/lib/merge_ticketing_client/models/response_type_enum.rb +1 -1
  79. data/lib/merge_ticketing_client/models/selective_sync_configurations_usage_enum.rb +45 -0
  80. data/lib/merge_ticketing_client/models/sync_status.rb +13 -4
  81. data/lib/merge_ticketing_client/models/sync_status_status_enum.rb +1 -1
  82. data/lib/merge_ticketing_client/models/tag.rb +16 -4
  83. data/lib/merge_ticketing_client/models/team.rb +16 -4
  84. data/lib/merge_ticketing_client/models/ticket.rb +45 -7
  85. data/lib/merge_ticketing_client/models/ticket_request.rb +57 -7
  86. data/lib/merge_ticketing_client/models/ticket_status_enum.rb +1 -1
  87. data/lib/merge_ticketing_client/models/user.rb +16 -4
  88. data/lib/merge_ticketing_client/version.rb +1 -1
  89. data/lib/merge_ticketing_client.rb +15 -0
  90. data/spec/api/collections_api_spec.rb +76 -0
  91. data/spec/api/projects_api_spec.rb +3 -2
  92. data/spec/api/selective_sync_api_spec.rb +72 -0
  93. data/spec/api/tickets_api_spec.rb +24 -4
  94. data/spec/api/users_api_spec.rb +1 -0
  95. data/spec/models/account_spec.rb +6 -0
  96. data/spec/models/attachment_request_spec.rb +12 -0
  97. data/spec/models/attachment_spec.rb +6 -0
  98. data/spec/models/collection_spec.rb +82 -0
  99. data/spec/models/collection_type_enum_spec.rb +28 -0
  100. data/spec/models/comment_request_spec.rb +12 -0
  101. data/spec/models/comment_spec.rb +6 -0
  102. data/spec/models/condition_schema_spec.rb +70 -0
  103. data/spec/models/condition_type_enum_spec.rb +28 -0
  104. data/spec/models/contact_spec.rb +6 -0
  105. data/spec/models/issue_spec.rb +6 -0
  106. data/spec/models/linked_account_condition_request_spec.rb +46 -0
  107. data/spec/models/linked_account_condition_spec.rb +64 -0
  108. data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
  109. data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
  110. data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
  111. data/spec/models/operator_schema_spec.rb +40 -0
  112. data/spec/models/paginated_collection_list_spec.rb +46 -0
  113. data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
  114. data/spec/models/patched_ticket_request_spec.rb +24 -0
  115. data/spec/models/project_spec.rb +6 -0
  116. data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
  117. data/spec/models/sync_status_spec.rb +6 -0
  118. data/spec/models/tag_spec.rb +6 -0
  119. data/spec/models/team_spec.rb +6 -0
  120. data/spec/models/ticket_request_spec.rb +24 -0
  121. data/spec/models/ticket_spec.rb +18 -0
  122. data/spec/models/user_spec.rb +6 -0
  123. metadata +132 -72
data/docs/Ticket.md CHANGED
@@ -8,14 +8,16 @@
8
8
  | **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
9
9
  | **name** | **String** | The ticket's name. | [optional] |
10
10
  | **assignees** | **Array<String>** | | [optional] |
11
+ | **creator** | **String** | The user who created this ticket. | [optional] |
11
12
  | **due_date** | **Time** | The ticket's due date. | [optional] |
12
13
  | **status** | [**TicketStatusEnum**](TicketStatusEnum.md) | The current status of the ticket. | [optional] |
13
- | **description** | **String** | The ticket's description. | [optional] |
14
- | **project** | **String** | | [optional] |
14
+ | **description** | **String** | The tickets description. HTML version of description is mapped if supported by the third-party platform. | [optional] |
15
+ | **project** | **String** | The project the ticket belongs to. | [optional] |
16
+ | **collections** | **Array<String>** | | [optional] |
15
17
  | **ticket_type** | **String** | The ticket's type. | [optional] |
16
- | **account** | **String** | | [optional] |
17
- | **contact** | **String** | | [optional] |
18
- | **parent_ticket** | **String** | | [optional] |
18
+ | **account** | **String** | The account associated with the ticket. | [optional] |
19
+ | **contact** | **String** | The contact associated with the ticket. | [optional] |
20
+ | **parent_ticket** | **String** | The ticket's parent ticket. | [optional] |
19
21
  | **attachments** | **Array<String>** | | [optional] |
20
22
  | **tags** | **Array<String>** | | [optional] |
21
23
  | **remote_created_at** | **Time** | When the third party's ticket was created. | [optional] |
@@ -24,7 +26,8 @@
24
26
  | **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
25
27
  | **remote_was_deleted** | **Boolean** | | [optional][readonly] |
26
28
  | **ticket_url** | **String** | The 3rd party url of the Ticket. | [optional] |
27
- | **priority** | [**PriorityEnum**](PriorityEnum.md) | The priority or urgency of the Ticket. Possible values include: URGENT, HIGH, NORMAL, LOW - in cases where there is no clear mapping - the original value passed through. | [optional] |
29
+ | **priority** | [**PriorityEnum**](PriorityEnum.md) | The priority or urgency of the Ticket. | [optional] |
30
+ | **field_mappings** | [**Hash<String, AnyType>**](AnyType.md) | | [optional][readonly] |
28
31
 
29
32
  ## Example
30
33
 
@@ -36,10 +39,12 @@ instance = MergeTicketingClient::Ticket.new(
36
39
  remote_id: 19202938,
37
40
  name: Please add more integrations,
38
41
  assignees: ["17a54124-287f-494d-965e-3c5b330c9a68"],
42
+ creator: null,
39
43
  due_date: 2022-10-11T00:00Z,
40
44
  status: OPEN,
41
45
  description: Can you please add more integrations? It'll make syncing data much easier!,
42
46
  project: fb8c55b6-1cb8-4b4c-9fb6-17924231619d,
47
+ collections: ["fb8c55b6-1cb8-4b4c-9fb6-17924231619d"],
43
48
  ticket_type: incident,
44
49
  account: 0958cbc6-6040-430a-848e-aafacbadf4ae,
45
50
  contact: 65c345ba-6870-4974-87ba-dd31509c367a,
@@ -52,7 +57,8 @@ instance = MergeTicketingClient::Ticket.new(
52
57
  remote_data: null,
53
58
  remote_was_deleted: null,
54
59
  ticket_url: https://thirdpartysoftware.com/project/3/issue/1,
55
- priority: HIGH
60
+ priority: HIGH,
61
+ field_mappings: {"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}}
56
62
  )
57
63
  ```
58
64
 
@@ -7,21 +7,25 @@
7
7
  | **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
8
8
  | **name** | **String** | The ticket's name. | [optional] |
9
9
  | **assignees** | **Array<String>** | | [optional] |
10
+ | **creator** | **String** | The user who created this ticket. | [optional] |
10
11
  | **due_date** | **Time** | The ticket's due date. | [optional] |
11
12
  | **status** | [**TicketStatusEnum**](TicketStatusEnum.md) | The current status of the ticket. | [optional] |
12
- | **description** | **String** | The ticket's description. | [optional] |
13
- | **project** | **String** | | [optional] |
13
+ | **description** | **String** | The tickets description. HTML version of description is mapped if supported by the third-party platform. | [optional] |
14
+ | **project** | **String** | The project the ticket belongs to. | [optional] |
15
+ | **collections** | **Array<String>** | | [optional] |
14
16
  | **ticket_type** | **String** | The ticket's type. | [optional] |
15
- | **account** | **String** | | [optional] |
16
- | **contact** | **String** | | [optional] |
17
- | **parent_ticket** | **String** | | [optional] |
17
+ | **account** | **String** | The account associated with the ticket. | [optional] |
18
+ | **contact** | **String** | The contact associated with the ticket. | [optional] |
19
+ | **parent_ticket** | **String** | The ticket's parent ticket. | [optional] |
18
20
  | **attachments** | **Array<String>** | | [optional] |
19
21
  | **tags** | **Array<String>** | | [optional] |
20
22
  | **remote_created_at** | **Time** | When the third party's ticket was created. | [optional] |
21
23
  | **remote_updated_at** | **Time** | When the third party's ticket was updated. | [optional] |
22
24
  | **completed_at** | **Time** | When the ticket was completed. | [optional] |
23
25
  | **ticket_url** | **String** | The 3rd party url of the Ticket. | [optional] |
24
- | **priority** | [**PriorityEnum**](PriorityEnum.md) | The priority or urgency of the Ticket. Possible values include: URGENT, HIGH, NORMAL, LOW - in cases where there is no clear mapping - the original value passed through. | [optional] |
26
+ | **priority** | [**PriorityEnum**](PriorityEnum.md) | The priority or urgency of the Ticket. | [optional] |
27
+ | **integration_params** | [**Hash<String, AnyType>**](AnyType.md) | | [optional] |
28
+ | **linked_account_params** | [**Hash<String, AnyType>**](AnyType.md) | | [optional] |
25
29
 
26
30
  ## Example
27
31
 
@@ -32,10 +36,12 @@ instance = MergeTicketingClient::TicketRequest.new(
32
36
  remote_id: 19202938,
33
37
  name: Please add more integrations,
34
38
  assignees: ["17a54124-287f-494d-965e-3c5b330c9a68"],
39
+ creator: null,
35
40
  due_date: 2022-10-11T00:00Z,
36
41
  status: OPEN,
37
42
  description: Can you please add more integrations? It'll make syncing data much easier!,
38
43
  project: fb8c55b6-1cb8-4b4c-9fb6-17924231619d,
44
+ collections: ["fb8c55b6-1cb8-4b4c-9fb6-17924231619d"],
39
45
  ticket_type: incident,
40
46
  account: 0958cbc6-6040-430a-848e-aafacbadf4ae,
41
47
  contact: 65c345ba-6870-4974-87ba-dd31509c367a,
@@ -46,7 +52,9 @@ instance = MergeTicketingClient::TicketRequest.new(
46
52
  remote_updated_at: 2021-12-09T00:00Z,
47
53
  completed_at: 2021-12-09T00:00Z,
48
54
  ticket_url: https://thirdpartysoftware.com/project/3/issue/1,
49
- priority: HIGH
55
+ priority: HIGH,
56
+ integration_params: {"unique_integration_field":"unique_integration_field_value"},
57
+ linked_account_params: {"unique_linked_account_field":"unique_linked_account_field_value"}
50
58
  )
51
59
  ```
52
60
 
data/docs/TicketsApi.md CHANGED
@@ -4,7 +4,7 @@ All URIs are relative to *https://api.merge.dev/api/ticketing/v1*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
- | [**tickets_collaborators_list**](TicketsApi.md#tickets_collaborators_list) | **GET** /tickets/{id}/collaborators | |
7
+ | [**tickets_collaborators_list**](TicketsApi.md#tickets_collaborators_list) | **GET** /tickets/{parent_id}/collaborators | |
8
8
  | [**tickets_create**](TicketsApi.md#tickets_create) | **POST** /tickets | |
9
9
  | [**tickets_list**](TicketsApi.md#tickets_list) | **GET** /tickets | |
10
10
  | [**tickets_meta_patch_retrieve**](TicketsApi.md#tickets_meta_patch_retrieve) | **GET** /tickets/meta/patch/{id} | |
@@ -15,11 +15,11 @@ All URIs are relative to *https://api.merge.dev/api/ticketing/v1*
15
15
 
16
16
  ## tickets_collaborators_list
17
17
 
18
- > <PaginatedUserList> tickets_collaborators_list(x_account_token, id, opts)
18
+ > <PaginatedUserList> tickets_collaborators_list(x_account_token, parent_id, opts)
19
19
 
20
20
 
21
21
 
22
- Returns a `User` object with the given `id`.
22
+ Returns a list of `User` objects.
23
23
 
24
24
  ### Examples
25
25
 
@@ -36,17 +36,18 @@ end
36
36
 
37
37
  api_instance = MergeTicketingClient::TicketsApi.new
38
38
  x_account_token = 'x_account_token_example' # String | Token identifying the end user.
39
- id = TODO # String |
39
+ parent_id = TODO # String |
40
40
  opts = {
41
41
  cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
42
42
  expand: 'teams', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
43
+ include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
43
44
  include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
44
45
  page_size: 56 # Integer | Number of results to return per page.
45
46
  }
46
47
 
47
48
  begin
48
49
 
49
- result = api_instance.tickets_collaborators_list(x_account_token, id, opts)
50
+ result = api_instance.tickets_collaborators_list(x_account_token, parent_id, opts)
50
51
  p result
51
52
  rescue MergeTicketingClient::ApiError => e
52
53
  puts "Error when calling TicketsApi->tickets_collaborators_list: #{e}"
@@ -57,12 +58,12 @@ end
57
58
 
58
59
  This returns an Array which contains the response data, status code and headers.
59
60
 
60
- > <Array(<PaginatedUserList>, Integer, Hash)> tickets_collaborators_list_with_http_info(x_account_token, id, opts)
61
+ > <Array(<PaginatedUserList>, Integer, Hash)> tickets_collaborators_list_with_http_info(x_account_token, parent_id, opts)
61
62
 
62
63
  ```ruby
63
64
  begin
64
65
 
65
- data, status_code, headers = api_instance.tickets_collaborators_list_with_http_info(x_account_token, id, opts)
66
+ data, status_code, headers = api_instance.tickets_collaborators_list_with_http_info(x_account_token, parent_id, opts)
66
67
  p status_code # => 2xx
67
68
  p headers # => { ... }
68
69
  p data # => <PaginatedUserList>
@@ -76,9 +77,10 @@ end
76
77
  | Name | Type | Description | Notes |
77
78
  | ---- | ---- | ----------- | ----- |
78
79
  | **x_account_token** | **String** | Token identifying the end user. | |
79
- | **id** | [**String**](.md) | | |
80
+ | **parent_id** | [**String**](.md) | | |
80
81
  | **cursor** | **String** | The pagination cursor value. | [optional] |
81
82
  | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
83
+ | **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
82
84
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
83
85
  | **page_size** | **Integer** | Number of results to return per page. | [optional] |
84
86
 
@@ -200,18 +202,35 @@ api_instance = MergeTicketingClient::TicketsApi.new
200
202
  x_account_token = 'x_account_token_example' # String | Token identifying the end user.
201
203
  opts = {
202
204
  account_id: 'account_id_example', # String | If provided, will only return tickets for this account.
205
+ assignee_ids: 'assignee_ids_example', # String | If provided, will only return tickets assigned to the assignee_ids; multiple assignee_ids can be separated by commas.
206
+ collection_ids: 'collection_ids_example', # String | If provided, will only return tickets assigned to the collection_ids; multiple collection_ids can be separated by commas.
207
+ completed_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return tickets completed after this datetime.
208
+ completed_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return tickets completed before this datetime.
209
+ contact_id: 'contact_id_example', # String | If provided, will only return tickets for this contact.
203
210
  created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
204
211
  created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
205
212
  cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
213
+ due_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return tickets due after this datetime.
214
+ due_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return tickets due before this datetime.
206
215
  expand: 'account', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
207
216
  include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
208
217
  include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
209
218
  modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
210
219
  modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
211
220
  page_size: 56, # Integer | Number of results to return per page.
221
+ parent_ticket_id: 'parent_ticket_id_example', # String | If provided, will only return sub tickets of the parent_ticket_id.
222
+ priority: 'HIGH', # String | If provided, will only return tickets of this priority.
212
223
  project_id: 'project_id_example', # String | If provided, will only return tickets for this project.
213
- remote_fields: 'status', # String | Which fields should be returned in non-normalized form.
214
- remote_id: 'remote_id_example' # String | The API provider's ID for the given object.
224
+ remote_created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return tickets created in the third party platform after this datetime.
225
+ remote_created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return tickets created in the third party platform before this datetime.
226
+ remote_fields: 'priority', # String | Deprecated. Use show_enum_origins.
227
+ remote_id: 'remote_id_example', # String | The API provider's ID for the given object.
228
+ remote_updated_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return tickets updated in the third party platform after this datetime.
229
+ remote_updated_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return tickets updated in the third party platform before this datetime.
230
+ show_enum_origins: 'priority', # String | Which fields should be returned in non-normalized form.
231
+ status: 'CLOSED', # String | If provided, will only return tickets of this status.
232
+ tags: 'tags_example', # String | If provided, will only return tickets matching the tags; multiple tags can be separated by commas.
233
+ ticket_type: 'ticket_type_example' # String | If provided, will only return tickets of this type.
215
234
  }
216
235
 
217
236
  begin
@@ -247,18 +266,35 @@ end
247
266
  | ---- | ---- | ----------- | ----- |
248
267
  | **x_account_token** | **String** | Token identifying the end user. | |
249
268
  | **account_id** | **String** | If provided, will only return tickets for this account. | [optional] |
269
+ | **assignee_ids** | **String** | If provided, will only return tickets assigned to the assignee_ids; multiple assignee_ids can be separated by commas. | [optional] |
270
+ | **collection_ids** | **String** | If provided, will only return tickets assigned to the collection_ids; multiple collection_ids can be separated by commas. | [optional] |
271
+ | **completed_after** | **Time** | If provided, will only return tickets completed after this datetime. | [optional] |
272
+ | **completed_before** | **Time** | If provided, will only return tickets completed before this datetime. | [optional] |
273
+ | **contact_id** | **String** | If provided, will only return tickets for this contact. | [optional] |
250
274
  | **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
251
275
  | **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
252
276
  | **cursor** | **String** | The pagination cursor value. | [optional] |
277
+ | **due_after** | **Time** | If provided, will only return tickets due after this datetime. | [optional] |
278
+ | **due_before** | **Time** | If provided, will only return tickets due before this datetime. | [optional] |
253
279
  | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
254
280
  | **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
255
281
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
256
282
  | **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
257
283
  | **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
258
284
  | **page_size** | **Integer** | Number of results to return per page. | [optional] |
285
+ | **parent_ticket_id** | **String** | If provided, will only return sub tickets of the parent_ticket_id. | [optional] |
286
+ | **priority** | **String** | If provided, will only return tickets of this priority. | [optional] |
259
287
  | **project_id** | **String** | If provided, will only return tickets for this project. | [optional] |
260
- | **remote_fields** | **String** | Which fields should be returned in non-normalized form. | [optional] |
288
+ | **remote_created_after** | **Time** | If provided, will only return tickets created in the third party platform after this datetime. | [optional] |
289
+ | **remote_created_before** | **Time** | If provided, will only return tickets created in the third party platform before this datetime. | [optional] |
290
+ | **remote_fields** | **String** | Deprecated. Use show_enum_origins. | [optional] |
261
291
  | **remote_id** | **String** | The API provider&#39;s ID for the given object. | [optional] |
292
+ | **remote_updated_after** | **Time** | If provided, will only return tickets updated in the third party platform after this datetime. | [optional] |
293
+ | **remote_updated_before** | **Time** | If provided, will only return tickets updated in the third party platform before this datetime. | [optional] |
294
+ | **show_enum_origins** | **String** | Which fields should be returned in non-normalized form. | [optional] |
295
+ | **status** | **String** | If provided, will only return tickets of this status. | [optional] |
296
+ | **tags** | **String** | If provided, will only return tickets matching the tags; multiple tags can be separated by commas. | [optional] |
297
+ | **ticket_type** | **String** | If provided, will only return tickets of this type. | [optional] |
262
298
 
263
299
  ### Return type
264
300
 
@@ -424,6 +460,8 @@ end
424
460
 
425
461
 
426
462
 
463
+ Updates a `Ticket` object with the given `id`.
464
+
427
465
  ### Examples
428
466
 
429
467
  ```ruby
@@ -524,7 +562,8 @@ id = TODO # String |
524
562
  opts = {
525
563
  expand: 'account', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
526
564
  include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
527
- remote_fields: 'status' # String | Which fields should be returned in non-normalized form.
565
+ remote_fields: 'priority', # String | Deprecated. Use show_enum_origins.
566
+ show_enum_origins: 'priority' # String | Which fields should be returned in non-normalized form.
528
567
  }
529
568
 
530
569
  begin
@@ -562,7 +601,8 @@ end
562
601
  | **id** | [**String**](.md) | | |
563
602
  | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
564
603
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
565
- | **remote_fields** | **String** | Which fields should be returned in non-normalized form. | [optional] |
604
+ | **remote_fields** | **String** | Deprecated. Use show_enum_origins. | [optional] |
605
+ | **show_enum_origins** | **String** | Which fields should be returned in non-normalized form. | [optional] |
566
606
 
567
607
  ### Return type
568
608
 
data/docs/User.md CHANGED
@@ -13,6 +13,7 @@
13
13
  | **avatar** | **String** | The user&#39;s avatar picture. | [optional] |
14
14
  | **remote_data** | [**Array&lt;RemoteData&gt;**](RemoteData.md) | | [optional][readonly] |
15
15
  | **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional][readonly] |
16
+ | **field_mappings** | [**Hash&lt;String, AnyType&gt;**](AnyType.md) | | [optional][readonly] |
16
17
 
17
18
  ## Example
18
19
 
@@ -28,7 +29,8 @@ instance = MergeTicketingClient::User.new(
28
29
  teams: [&quot;28b54125-287f-494d-965e-3c5b330c9a68&quot;,&quot;17a54124-287f-494d-965e-3c5b330c9a68&quot;],
29
30
  avatar: https://merge.dev/user_profile_pic.png,
30
31
  remote_data: null,
31
- remote_was_deleted: null
32
+ remote_was_deleted: null,
33
+ field_mappings: {&quot;organization_defined_targets&quot;:{&quot;custom_key&quot;:&quot;custom_value&quot;},&quot;linked_account_defined_targets&quot;:{&quot;custom_key&quot;:&quot;custom_value&quot;}}
32
34
  )
33
35
  ```
34
36
 
data/docs/UsersApi.md CHANGED
@@ -35,6 +35,7 @@ opts = {
35
35
  created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
36
36
  created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
37
37
  cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
38
+ email_address: 'email_address_example', # String | If provided, will only return users with emails equal to this value (case insensitive).
38
39
  expand: 'teams', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
39
40
  include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
40
41
  include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
@@ -79,6 +80,7 @@ end
79
80
  | **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
80
81
  | **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
81
82
  | **cursor** | **String** | The pagination cursor value. | [optional] |
83
+ | **email_address** | **String** | If provided, will only return users with emails equal to this value (case insensitive). | [optional] |
82
84
  | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
83
85
  | **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
84
86
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
@@ -0,0 +1,234 @@
1
+ =begin
2
+ #Merge Ticketing API
3
+
4
+ #The unified API for building rich integrations with multiple Ticketing platforms.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: hello@merge.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module MergeTicketingClient
16
+ class CollectionsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Returns a list of `Collection` objects.
23
+ # @param x_account_token [String] Token identifying the end user.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :collection_type If provided, will only return collections of the given type.
26
+ # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
27
+ # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
28
+ # @option opts [String] :cursor The pagination cursor value.
29
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
30
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
31
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
32
+ # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
33
+ # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
34
+ # @option opts [Integer] :page_size Number of results to return per page.
35
+ # @option opts [String] :parent_collection_id If provided, will only return collections whose parent collection matches the given id.
36
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
37
+ # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
38
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
39
+ # @return [PaginatedCollectionList]
40
+ def collections_list(x_account_token, opts = {})
41
+ data, _status_code, _headers = collections_list_with_http_info(x_account_token, opts)
42
+ data
43
+ end
44
+
45
+ # Returns a list of &#x60;Collection&#x60; objects.
46
+ # @param x_account_token [String] Token identifying the end user.
47
+ # @param [Hash] opts the optional parameters
48
+ # @option opts [String] :collection_type If provided, will only return collections of the given type.
49
+ # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
50
+ # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
51
+ # @option opts [String] :cursor The pagination cursor value.
52
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
53
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
54
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
55
+ # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
56
+ # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
57
+ # @option opts [Integer] :page_size Number of results to return per page.
58
+ # @option opts [String] :parent_collection_id If provided, will only return collections whose parent collection matches the given id.
59
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
60
+ # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
61
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
62
+ # @return [Array<(PaginatedCollectionList, Integer, Hash)>] PaginatedCollectionList data, response status code and response headers
63
+ def collections_list_with_http_info(x_account_token, opts = {})
64
+ if @api_client.config.debugging
65
+ @api_client.config.logger.debug 'Calling API: CollectionsApi.collections_list ...'
66
+ end
67
+ # verify the required parameter 'x_account_token' is set
68
+ if @api_client.config.client_side_validation && x_account_token.nil?
69
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling CollectionsApi.collections_list"
70
+ end
71
+ allowable_values = ["LIST", "PROJECT"]
72
+ if @api_client.config.client_side_validation && opts[:'collection_type'] && !allowable_values.include?(opts[:'collection_type'])
73
+ fail ArgumentError, "invalid value for \"collection_type\", must be one of #{allowable_values}"
74
+ end
75
+ allowable_values = ["parent_collection"]
76
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
77
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
78
+ end
79
+ allowable_values = ["collection_type"]
80
+ if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
81
+ fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
82
+ end
83
+ allowable_values = ["collection_type"]
84
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
85
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
86
+ end
87
+ # resource path
88
+ local_var_path = '/collections'
89
+
90
+ # query parameters
91
+ query_params = opts[:query_params] || {}
92
+ query_params[:'collection_type'] = opts[:'collection_type'] if !opts[:'collection_type'].nil?
93
+ query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
94
+ query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
95
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
96
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
97
+ query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
98
+ query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
99
+ query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
100
+ query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
101
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
102
+ query_params[:'parent_collection_id'] = opts[:'parent_collection_id'] if !opts[:'parent_collection_id'].nil?
103
+ query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
104
+ query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
105
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
106
+
107
+ # header parameters
108
+ header_params = opts[:header_params] || {}
109
+ # HTTP header 'Accept' (if needed)
110
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
111
+ header_params[:'X-Account-Token'] = x_account_token
112
+
113
+ # form parameters
114
+ form_params = opts[:form_params] || {}
115
+
116
+ # http body (model)
117
+ post_body = opts[:debug_body]
118
+
119
+ # return_type
120
+ return_type = opts[:debug_return_type] || 'PaginatedCollectionList'
121
+
122
+ # auth_names
123
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
124
+
125
+ new_options = opts.merge(
126
+ :operation => :"CollectionsApi.collections_list",
127
+ :header_params => header_params,
128
+ :query_params => query_params,
129
+ :form_params => form_params,
130
+ :body => post_body,
131
+ :auth_names => auth_names,
132
+ :return_type => return_type
133
+ )
134
+
135
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
136
+ if @api_client.config.debugging
137
+ @api_client.config.logger.debug "API called: CollectionsApi#collections_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
138
+ end
139
+ return data, status_code, headers
140
+ end
141
+
142
+ # Returns a `Collection` object with the given `id`.
143
+ # @param x_account_token [String] Token identifying the end user.
144
+ # @param id [String]
145
+ # @param [Hash] opts the optional parameters
146
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
147
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
148
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
149
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
150
+ # @return [Collection]
151
+ def collections_retrieve(x_account_token, id, opts = {})
152
+ data, _status_code, _headers = collections_retrieve_with_http_info(x_account_token, id, opts)
153
+ data
154
+ end
155
+
156
+ # Returns a &#x60;Collection&#x60; object with the given &#x60;id&#x60;.
157
+ # @param x_account_token [String] Token identifying the end user.
158
+ # @param id [String]
159
+ # @param [Hash] opts the optional parameters
160
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
161
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
162
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
163
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
164
+ # @return [Array<(Collection, Integer, Hash)>] Collection data, response status code and response headers
165
+ def collections_retrieve_with_http_info(x_account_token, id, opts = {})
166
+ if @api_client.config.debugging
167
+ @api_client.config.logger.debug 'Calling API: CollectionsApi.collections_retrieve ...'
168
+ end
169
+ # verify the required parameter 'x_account_token' is set
170
+ if @api_client.config.client_side_validation && x_account_token.nil?
171
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling CollectionsApi.collections_retrieve"
172
+ end
173
+ # verify the required parameter 'id' is set
174
+ if @api_client.config.client_side_validation && id.nil?
175
+ fail ArgumentError, "Missing the required parameter 'id' when calling CollectionsApi.collections_retrieve"
176
+ end
177
+ allowable_values = ["parent_collection"]
178
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
179
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
180
+ end
181
+ allowable_values = ["collection_type"]
182
+ if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
183
+ fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
184
+ end
185
+ allowable_values = ["collection_type"]
186
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
187
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
188
+ end
189
+ # resource path
190
+ local_var_path = '/collections/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
191
+
192
+ # query parameters
193
+ query_params = opts[:query_params] || {}
194
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
195
+ query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
196
+ query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
197
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
198
+
199
+ # header parameters
200
+ header_params = opts[:header_params] || {}
201
+ # HTTP header 'Accept' (if needed)
202
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
203
+ header_params[:'X-Account-Token'] = x_account_token
204
+
205
+ # form parameters
206
+ form_params = opts[:form_params] || {}
207
+
208
+ # http body (model)
209
+ post_body = opts[:debug_body]
210
+
211
+ # return_type
212
+ return_type = opts[:debug_return_type] || 'Collection'
213
+
214
+ # auth_names
215
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
216
+
217
+ new_options = opts.merge(
218
+ :operation => :"CollectionsApi.collections_retrieve",
219
+ :header_params => header_params,
220
+ :query_params => query_params,
221
+ :form_params => form_params,
222
+ :body => post_body,
223
+ :auth_names => auth_names,
224
+ :return_type => return_type
225
+ )
226
+
227
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
228
+ if @api_client.config.debugging
229
+ @api_client.config.logger.debug "API called: CollectionsApi#collections_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
230
+ end
231
+ return data, status_code, headers
232
+ end
233
+ end
234
+ end
@@ -60,7 +60,7 @@ module MergeTicketingClient
60
60
  if @api_client.config.debugging
61
61
  @api_client.config.logger.debug 'Calling API: LinkedAccountsApi.linked_accounts_list ...'
62
62
  end
63
- allowable_values = ["accounting", "ats", "crm", "hris", "ticketing"]
63
+ allowable_values = ["accounting", "ats", "crm", "hris", "mktg", "ticketing"]
64
64
  if @api_client.config.client_side_validation && opts[:'category'] && !allowable_values.include?(opts[:'category'])
65
65
  fail ArgumentError, "invalid value for \"category\", must be one of #{allowable_values}"
66
66
  end
@@ -179,30 +179,32 @@ module MergeTicketingClient
179
179
  return data, status_code, headers
180
180
  end
181
181
 
182
- # Returns a `User` object with the given `id`.
182
+ # Returns a list of `User` objects.
183
183
  # @param x_account_token [String] Token identifying the end user.
184
- # @param id [String]
184
+ # @param parent_id [String]
185
185
  # @param [Hash] opts the optional parameters
186
186
  # @option opts [String] :cursor The pagination cursor value.
187
187
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
188
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
188
189
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
189
190
  # @option opts [Integer] :page_size Number of results to return per page.
190
191
  # @return [PaginatedUserList]
191
- def projects_users_list(x_account_token, id, opts = {})
192
- data, _status_code, _headers = projects_users_list_with_http_info(x_account_token, id, opts)
192
+ def projects_users_list(x_account_token, parent_id, opts = {})
193
+ data, _status_code, _headers = projects_users_list_with_http_info(x_account_token, parent_id, opts)
193
194
  data
194
195
  end
195
196
 
196
- # Returns a &#x60;User&#x60; object with the given &#x60;id&#x60;.
197
+ # Returns a list of &#x60;User&#x60; objects.
197
198
  # @param x_account_token [String] Token identifying the end user.
198
- # @param id [String]
199
+ # @param parent_id [String]
199
200
  # @param [Hash] opts the optional parameters
200
201
  # @option opts [String] :cursor The pagination cursor value.
201
202
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
203
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
202
204
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
203
205
  # @option opts [Integer] :page_size Number of results to return per page.
204
206
  # @return [Array<(PaginatedUserList, Integer, Hash)>] PaginatedUserList data, response status code and response headers
205
- def projects_users_list_with_http_info(x_account_token, id, opts = {})
207
+ def projects_users_list_with_http_info(x_account_token, parent_id, opts = {})
206
208
  if @api_client.config.debugging
207
209
  @api_client.config.logger.debug 'Calling API: ProjectsApi.projects_users_list ...'
208
210
  end
@@ -210,21 +212,22 @@ module MergeTicketingClient
210
212
  if @api_client.config.client_side_validation && x_account_token.nil?
211
213
  fail ArgumentError, "Missing the required parameter 'x_account_token' when calling ProjectsApi.projects_users_list"
212
214
  end
213
- # verify the required parameter 'id' is set
214
- if @api_client.config.client_side_validation && id.nil?
215
- fail ArgumentError, "Missing the required parameter 'id' when calling ProjectsApi.projects_users_list"
215
+ # verify the required parameter 'parent_id' is set
216
+ if @api_client.config.client_side_validation && parent_id.nil?
217
+ fail ArgumentError, "Missing the required parameter 'parent_id' when calling ProjectsApi.projects_users_list"
216
218
  end
217
219
  allowable_values = ["teams"]
218
220
  if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
219
221
  fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
220
222
  end
221
223
  # resource path
222
- local_var_path = '/projects/{id}/users'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
224
+ local_var_path = '/projects/{parent_id}/users'.sub('{' + 'parent_id' + '}', CGI.escape(parent_id.to_s))
223
225
 
224
226
  # query parameters
225
227
  query_params = opts[:query_params] || {}
226
228
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
227
229
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
230
+ query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
228
231
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
229
232
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
230
233