merge_ticketing_client 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -5
  3. data/docs/PatchedTicketEndpointRequest.md +18 -0
  4. data/docs/PatchedTicketRequest.md +48 -0
  5. data/docs/PriorityEnum.md +15 -0
  6. data/docs/RemoteResponse.md +3 -1
  7. data/docs/ResponseTypeEnum.md +15 -0
  8. data/docs/SyncStatus.md +2 -2
  9. data/docs/Ticket.md +7 -1
  10. data/docs/TicketRequest.md +7 -1
  11. data/docs/TicketsApi.md +154 -0
  12. data/docs/User.md +2 -0
  13. data/lib/merge_ticketing_client/api/tickets_api.rb +148 -0
  14. data/lib/merge_ticketing_client/models/data_passthrough_request.rb +1 -1
  15. data/lib/merge_ticketing_client/models/issue.rb +1 -1
  16. data/lib/merge_ticketing_client/models/meta_response.rb +1 -1
  17. data/lib/merge_ticketing_client/models/patched_ticket_endpoint_request.rb +223 -0
  18. data/lib/merge_ticketing_client/models/patched_ticket_request.rb +397 -0
  19. data/lib/merge_ticketing_client/models/priority_enum.rb +47 -0
  20. data/lib/merge_ticketing_client/models/remote_response.rb +14 -11
  21. data/lib/merge_ticketing_client/models/response_type_enum.rb +45 -0
  22. data/lib/merge_ticketing_client/models/sync_status.rb +0 -10
  23. data/lib/merge_ticketing_client/models/ticket.rb +52 -4
  24. data/lib/merge_ticketing_client/models/ticket_request.rb +53 -5
  25. data/lib/merge_ticketing_client/models/ticket_status_enum.rb +3 -1
  26. data/lib/merge_ticketing_client/models/user.rb +12 -1
  27. data/lib/merge_ticketing_client/version.rb +1 -1
  28. data/lib/merge_ticketing_client.rb +4 -0
  29. data/spec/api/tickets_api_spec.rb +26 -0
  30. data/spec/models/patched_ticket_endpoint_request_spec.rb +34 -0
  31. data/spec/models/patched_ticket_request_spec.rb +124 -0
  32. data/spec/models/priority_enum_spec.rb +28 -0
  33. data/spec/models/remote_response_spec.rb +6 -0
  34. data/spec/models/response_type_enum_spec.rb +28 -0
  35. data/spec/models/ticket_request_spec.rb +18 -0
  36. data/spec/models/ticket_spec.rb +18 -0
  37. data/spec/models/user_spec.rb +6 -0
  38. metadata +82 -66
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a36195ac6b62eacf6fe53c9fcce7d442d0d16b2be2ad09ac8b8ed97d9d2cb44a
4
- data.tar.gz: 1675e0ffed075c931cf1171075ba16e39b02932db1233027dbfa3bc3fc6911ef
3
+ metadata.gz: 6048c40482d19d9bc544758517fdbefb5534645f835fd3a13432115cc21afb92
4
+ data.tar.gz: 340d3ef51cbfbd09818fd4fc9e7ef0629d3a5c4dd8935c3e3351aeb8c46ab9cb
5
5
  SHA512:
6
- metadata.gz: 3fd75f39ee97b5ed0275c6ebfa9c6dd5ebd214886db07e2ce05929be243d2a0bc240711cd167d79f6d17415d182108583aaf8f656cc80441b1357f9af97559a4
7
- data.tar.gz: 1be7f5d2803f996a540e0366dce32f8f2ab5d25f065cd67250d6f5f6c5e2d646f02b0149b8a5ce7b457c84d1064e70f8c64244d020d70ccf4a9fe695dce14935
6
+ metadata.gz: cd6a23f8cd26ccf8343c5d9661a8cd96d9681c45bd6f2294be3d86ef8d1ad87693a9c89296459c66f9b527634aa3016e3c0c9bfb30d3e8a6e5c0dccf72eff5b7
7
+ data.tar.gz: 9542026e9e2ff9d876c567a26e8d814e994945a2cf87c5f2d3cf56355cecb64d6fde34c0ffe17f6498e0d9be1674f21585b80c51df9c78c9d8c2ea2eec02ac9e
data/README.md CHANGED
@@ -7,7 +7,7 @@ The unified API for building rich integrations with multiple Ticketing platforms
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 1.0
10
- - Package version: 1.0.0
10
+ - Package version: 1.0.1
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://www.merge.dev/](https://www.merge.dev/)
13
13
 
@@ -24,16 +24,16 @@ gem build merge_ticketing_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./merge_ticketing_client-1.0.0.gem
27
+ gem install ./merge_ticketing_client-1.0.1.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./merge_ticketing_client-1.0.0.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./merge_ticketing_client-1.0.1.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'merge_ticketing_client', '~> 1.0.0'
36
+ gem 'merge_ticketing_client', '~> 1.0.1'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -62,7 +62,7 @@ MergeTicketingClient.configure do |config|
62
62
  # Configure API key authorization: tokenAuth
63
63
  config.api_key['tokenAuth'] = 'YOUR API KEY'
64
64
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
65
- config.api_key_prefix['tokenAuth'] = 'Bearer'
65
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
66
66
  end
67
67
 
68
68
  api_instance = MergeTicketingClient::AccountDetailsApi.new
@@ -118,7 +118,9 @@ Class | Method | HTTP request | Description
118
118
  *MergeTicketingClient::TicketsApi* | [**tickets_collaborators_list**](docs/TicketsApi.md#tickets_collaborators_list) | **GET** /tickets/{id}/collaborators |
119
119
  *MergeTicketingClient::TicketsApi* | [**tickets_create**](docs/TicketsApi.md#tickets_create) | **POST** /tickets |
120
120
  *MergeTicketingClient::TicketsApi* | [**tickets_list**](docs/TicketsApi.md#tickets_list) | **GET** /tickets |
121
+ *MergeTicketingClient::TicketsApi* | [**tickets_meta_patch_retrieve**](docs/TicketsApi.md#tickets_meta_patch_retrieve) | **GET** /tickets/meta/patch/{id} |
121
122
  *MergeTicketingClient::TicketsApi* | [**tickets_meta_post_retrieve**](docs/TicketsApi.md#tickets_meta_post_retrieve) | **GET** /tickets/meta/post |
123
+ *MergeTicketingClient::TicketsApi* | [**tickets_partial_update**](docs/TicketsApi.md#tickets_partial_update) | **PATCH** /tickets/{id} |
122
124
  *MergeTicketingClient::TicketsApi* | [**tickets_retrieve**](docs/TicketsApi.md#tickets_retrieve) | **GET** /tickets/{id} |
123
125
  *MergeTicketingClient::UsersApi* | [**users_list**](docs/UsersApi.md#users_list) | **GET** /users |
124
126
  *MergeTicketingClient::UsersApi* | [**users_retrieve**](docs/UsersApi.md#users_retrieve) | **GET** /users/{id} |
@@ -172,12 +174,16 @@ Class | Method | HTTP request | Description
172
174
  - [MergeTicketingClient::PaginatedTeamList](docs/PaginatedTeamList.md)
173
175
  - [MergeTicketingClient::PaginatedTicketList](docs/PaginatedTicketList.md)
174
176
  - [MergeTicketingClient::PaginatedUserList](docs/PaginatedUserList.md)
177
+ - [MergeTicketingClient::PatchedTicketEndpointRequest](docs/PatchedTicketEndpointRequest.md)
178
+ - [MergeTicketingClient::PatchedTicketRequest](docs/PatchedTicketRequest.md)
179
+ - [MergeTicketingClient::PriorityEnum](docs/PriorityEnum.md)
175
180
  - [MergeTicketingClient::Project](docs/Project.md)
176
181
  - [MergeTicketingClient::RemoteData](docs/RemoteData.md)
177
182
  - [MergeTicketingClient::RemoteKey](docs/RemoteKey.md)
178
183
  - [MergeTicketingClient::RemoteKeyForRegenerationRequest](docs/RemoteKeyForRegenerationRequest.md)
179
184
  - [MergeTicketingClient::RemoteResponse](docs/RemoteResponse.md)
180
185
  - [MergeTicketingClient::RequestFormatEnum](docs/RequestFormatEnum.md)
186
+ - [MergeTicketingClient::ResponseTypeEnum](docs/ResponseTypeEnum.md)
181
187
  - [MergeTicketingClient::SyncStatus](docs/SyncStatus.md)
182
188
  - [MergeTicketingClient::SyncStatusStatusEnum](docs/SyncStatusStatusEnum.md)
183
189
  - [MergeTicketingClient::Tag](docs/Tag.md)
@@ -0,0 +1,18 @@
1
+ # MergeTicketingClient::PatchedTicketEndpointRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **model** | [**PatchedTicketRequest**](PatchedTicketRequest.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'merge_ticketing_client'
13
+
14
+ instance = MergeTicketingClient::PatchedTicketEndpointRequest.new(
15
+ model: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,48 @@
1
+ # MergeTicketingClient::PatchedTicketRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | The ticket's name. | [optional] |
8
+ | **assignees** | **Array<String>** | | [optional] |
9
+ | **due_date** | **Time** | The ticket's due date. | [optional] |
10
+ | **status** | [**TicketStatusEnum**](TicketStatusEnum.md) | The current status of the ticket. | [optional] |
11
+ | **description** | **String** | The ticket's description. | [optional] |
12
+ | **project** | **String** | | [optional] |
13
+ | **ticket_type** | **String** | The ticket's type. | [optional] |
14
+ | **account** | **String** | | [optional] |
15
+ | **contact** | **String** | | [optional] |
16
+ | **parent_ticket** | **String** | | [optional] |
17
+ | **tags** | **Array<String>** | | [optional] |
18
+ | **remote_created_at** | **Time** | When the third party's ticket was created. | [optional] |
19
+ | **remote_updated_at** | **Time** | When the third party's ticket was updated. | [optional] |
20
+ | **completed_at** | **Time** | When the ticket was completed. | [optional] |
21
+ | **ticket_url** | **String** | The 3rd party url of the Ticket. | [optional] |
22
+ | **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] |
23
+
24
+ ## Example
25
+
26
+ ```ruby
27
+ require 'merge_ticketing_client'
28
+
29
+ instance = MergeTicketingClient::PatchedTicketRequest.new(
30
+ name: Please add more integrations,
31
+ assignees: ["17a54124-287f-494d-965e-3c5b330c9a68"],
32
+ due_date: 2022-10-11T00:00Z,
33
+ status: OPEN,
34
+ description: Can you please add more integrations? It'll make syncing data much easier!,
35
+ project: fb8c55b6-1cb8-4b4c-9fb6-17924231619d,
36
+ ticket_type: incident,
37
+ account: 0958cbc6-6040-430a-848e-aafacbadf4ae,
38
+ contact: 65c345ba-6870-4974-87ba-dd31509c367a,
39
+ parent_ticket: 75b33d04-30d2-4f3e-be45-27838bc94342,
40
+ tags: ["enterprise","other-tag"],
41
+ remote_created_at: 2021-11-10T00:00Z,
42
+ remote_updated_at: 2021-12-09T00:00Z,
43
+ completed_at: 2021-12-09T00:00Z,
44
+ ticket_url: https://thirdpartysoftware.com/project/3/issue/1,
45
+ priority: HIGH
46
+ )
47
+ ```
48
+
@@ -0,0 +1,15 @@
1
+ # MergeTicketingClient::PriorityEnum
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'merge_ticketing_client'
12
+
13
+ instance = MergeTicketingClient::PriorityEnum.new()
14
+ ```
15
+
@@ -7,8 +7,9 @@
7
7
  | **method** | **String** | | |
8
8
  | **path** | **String** | | |
9
9
  | **status** | **Integer** | | |
10
- | **response** | [**Hash<String, AnyType>**](AnyType.md) | | |
10
+ | **response** | [**AnyType**](.md) | | |
11
11
  | **response_headers** | [**Hash<String, AnyType>**](AnyType.md) | | [optional] |
12
+ | **response_type** | [**ResponseTypeEnum**](ResponseTypeEnum.md) | | [optional] |
12
13
  | **headers** | [**Hash<String, AnyType>**](AnyType.md) | | [optional] |
13
14
 
14
15
  ## Example
@@ -22,6 +23,7 @@ instance = MergeTicketingClient::RemoteResponse.new(
22
23
  status: 200,
23
24
  response: {"scooters":[{"company":"Lime","model":"Gen 2.5"},{"company":"Bird","model":"Bird Zero"}]},
24
25
  response_headers: {"X-Page-Token":"value"},
26
+ response_type: JSON,
25
27
  headers: {"EXTRA-HEADER":"value","Authorization":"<redacted>"}
26
28
  )
27
29
  ```
@@ -0,0 +1,15 @@
1
+ # MergeTicketingClient::ResponseTypeEnum
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'merge_ticketing_client'
12
+
13
+ instance = MergeTicketingClient::ResponseTypeEnum.new()
14
+ ```
15
+
data/docs/SyncStatus.md CHANGED
@@ -6,8 +6,8 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **model_name** | **String** | | |
8
8
  | **model_id** | **String** | | |
9
- | **last_sync_start** | **Time** | | |
10
- | **next_sync_start** | **Time** | | |
9
+ | **last_sync_start** | **Time** | | [optional] |
10
+ | **next_sync_start** | **Time** | | [optional] |
11
11
  | **status** | [**SyncStatusStatusEnum**](SyncStatusStatusEnum.md) | | |
12
12
  | **is_initial_sync** | **Boolean** | | |
13
13
 
data/docs/Ticket.md CHANGED
@@ -20,8 +20,11 @@
20
20
  | **tags** | **Array<String>** | | [optional] |
21
21
  | **remote_created_at** | **Time** | When the third party's ticket was created. | [optional] |
22
22
  | **remote_updated_at** | **Time** | When the third party's ticket was updated. | [optional] |
23
+ | **completed_at** | **Time** | When the ticket was completed. | [optional] |
23
24
  | **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
24
25
  | **remote_was_deleted** | **Boolean** | | [optional][readonly] |
26
+ | **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] |
25
28
 
26
29
  ## Example
27
30
 
@@ -45,8 +48,11 @@ instance = MergeTicketingClient::Ticket.new(
45
48
  tags: ["enterprise","other-tag"],
46
49
  remote_created_at: 2021-11-10T00:00Z,
47
50
  remote_updated_at: 2021-12-09T00:00Z,
51
+ completed_at: 2021-12-09T00:00Z,
48
52
  remote_data: null,
49
- remote_was_deleted: null
53
+ remote_was_deleted: null,
54
+ ticket_url: https://thirdpartysoftware.com/project/3/issue/1,
55
+ priority: HIGH
50
56
  )
51
57
  ```
52
58
 
@@ -19,6 +19,9 @@
19
19
  | **tags** | **Array<String>** | | [optional] |
20
20
  | **remote_created_at** | **Time** | When the third party's ticket was created. | [optional] |
21
21
  | **remote_updated_at** | **Time** | When the third party's ticket was updated. | [optional] |
22
+ | **completed_at** | **Time** | When the ticket was completed. | [optional] |
23
+ | **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] |
22
25
 
23
26
  ## Example
24
27
 
@@ -40,7 +43,10 @@ instance = MergeTicketingClient::TicketRequest.new(
40
43
  attachments: ["42747df1-95e7-46e2-93cc-66f1191edca5","92f972d0-2526-434b-9409-4c3b468e08f0"],
41
44
  tags: ["enterprise","other-tag"],
42
45
  remote_created_at: 2021-11-10T00:00Z,
43
- remote_updated_at: 2021-12-09T00:00Z
46
+ remote_updated_at: 2021-12-09T00:00Z,
47
+ completed_at: 2021-12-09T00:00Z,
48
+ ticket_url: https://thirdpartysoftware.com/project/3/issue/1,
49
+ priority: HIGH
44
50
  )
45
51
  ```
46
52
 
data/docs/TicketsApi.md CHANGED
@@ -7,7 +7,9 @@ All URIs are relative to *https://api.merge.dev/api/ticketing/v1*
7
7
  | [**tickets_collaborators_list**](TicketsApi.md#tickets_collaborators_list) | **GET** /tickets/{id}/collaborators | |
8
8
  | [**tickets_create**](TicketsApi.md#tickets_create) | **POST** /tickets | |
9
9
  | [**tickets_list**](TicketsApi.md#tickets_list) | **GET** /tickets | |
10
+ | [**tickets_meta_patch_retrieve**](TicketsApi.md#tickets_meta_patch_retrieve) | **GET** /tickets/meta/patch/{id} | |
10
11
  | [**tickets_meta_post_retrieve**](TicketsApi.md#tickets_meta_post_retrieve) | **GET** /tickets/meta/post | |
12
+ | [**tickets_partial_update**](TicketsApi.md#tickets_partial_update) | **PATCH** /tickets/{id} | |
11
13
  | [**tickets_retrieve**](TicketsApi.md#tickets_retrieve) | **GET** /tickets/{id} | |
12
14
 
13
15
 
@@ -272,6 +274,79 @@ end
272
274
  - **Accept**: application/json
273
275
 
274
276
 
277
+ ## tickets_meta_patch_retrieve
278
+
279
+ > <MetaResponse> tickets_meta_patch_retrieve(x_account_token, id)
280
+
281
+
282
+
283
+ Returns metadata for `Ticket` PATCHs.
284
+
285
+ ### Examples
286
+
287
+ ```ruby
288
+ require 'time'
289
+ require 'merge_ticketing_client'
290
+ # setup authorization
291
+ MergeTicketingClient.configure do |config|
292
+ # Configure API key authorization: tokenAuth
293
+ config.api_key['tokenAuth'] = 'YOUR API KEY'
294
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
295
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
296
+ end
297
+
298
+ api_instance = MergeTicketingClient::TicketsApi.new
299
+ x_account_token = 'x_account_token_example' # String | Token identifying the end user.
300
+ id = TODO # String |
301
+
302
+ begin
303
+
304
+ result = api_instance.tickets_meta_patch_retrieve(x_account_token, id)
305
+ p result
306
+ rescue MergeTicketingClient::ApiError => e
307
+ puts "Error when calling TicketsApi->tickets_meta_patch_retrieve: #{e}"
308
+ end
309
+ ```
310
+
311
+ #### Using the tickets_meta_patch_retrieve_with_http_info variant
312
+
313
+ This returns an Array which contains the response data, status code and headers.
314
+
315
+ > <Array(<MetaResponse>, Integer, Hash)> tickets_meta_patch_retrieve_with_http_info(x_account_token, id)
316
+
317
+ ```ruby
318
+ begin
319
+
320
+ data, status_code, headers = api_instance.tickets_meta_patch_retrieve_with_http_info(x_account_token, id)
321
+ p status_code # => 2xx
322
+ p headers # => { ... }
323
+ p data # => <MetaResponse>
324
+ rescue MergeTicketingClient::ApiError => e
325
+ puts "Error when calling TicketsApi->tickets_meta_patch_retrieve_with_http_info: #{e}"
326
+ end
327
+ ```
328
+
329
+ ### Parameters
330
+
331
+ | Name | Type | Description | Notes |
332
+ | ---- | ---- | ----------- | ----- |
333
+ | **x_account_token** | **String** | Token identifying the end user. | |
334
+ | **id** | [**String**](.md) | | |
335
+
336
+ ### Return type
337
+
338
+ [**MetaResponse**](MetaResponse.md)
339
+
340
+ ### Authorization
341
+
342
+ [tokenAuth](../README.md#tokenAuth)
343
+
344
+ ### HTTP request headers
345
+
346
+ - **Content-Type**: Not defined
347
+ - **Accept**: application/json
348
+
349
+
275
350
  ## tickets_meta_post_retrieve
276
351
 
277
352
  > <MetaResponse> tickets_meta_post_retrieve(x_account_token)
@@ -343,6 +418,85 @@ end
343
418
  - **Accept**: application/json
344
419
 
345
420
 
421
+ ## tickets_partial_update
422
+
423
+ > <TicketResponse> tickets_partial_update(x_account_token, id, patched_ticket_endpoint_request, opts)
424
+
425
+
426
+
427
+ ### Examples
428
+
429
+ ```ruby
430
+ require 'time'
431
+ require 'merge_ticketing_client'
432
+ # setup authorization
433
+ MergeTicketingClient.configure do |config|
434
+ # Configure API key authorization: tokenAuth
435
+ config.api_key['tokenAuth'] = 'YOUR API KEY'
436
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
437
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
438
+ end
439
+
440
+ api_instance = MergeTicketingClient::TicketsApi.new
441
+ x_account_token = 'x_account_token_example' # String | Token identifying the end user.
442
+ id = TODO # String |
443
+ patched_ticket_endpoint_request = MergeTicketingClient::PatchedTicketEndpointRequest.new({model: MergeTicketingClient::PatchedTicketRequest.new}) # PatchedTicketEndpointRequest |
444
+ opts = {
445
+ is_debug_mode: true, # Boolean | Whether to include debug fields (such as log file links) in the response.
446
+ run_async: true # Boolean | Whether or not third-party updates should be run asynchronously.
447
+ }
448
+
449
+ begin
450
+
451
+ result = api_instance.tickets_partial_update(x_account_token, id, patched_ticket_endpoint_request, opts)
452
+ p result
453
+ rescue MergeTicketingClient::ApiError => e
454
+ puts "Error when calling TicketsApi->tickets_partial_update: #{e}"
455
+ end
456
+ ```
457
+
458
+ #### Using the tickets_partial_update_with_http_info variant
459
+
460
+ This returns an Array which contains the response data, status code and headers.
461
+
462
+ > <Array(<TicketResponse>, Integer, Hash)> tickets_partial_update_with_http_info(x_account_token, id, patched_ticket_endpoint_request, opts)
463
+
464
+ ```ruby
465
+ begin
466
+
467
+ data, status_code, headers = api_instance.tickets_partial_update_with_http_info(x_account_token, id, patched_ticket_endpoint_request, opts)
468
+ p status_code # => 2xx
469
+ p headers # => { ... }
470
+ p data # => <TicketResponse>
471
+ rescue MergeTicketingClient::ApiError => e
472
+ puts "Error when calling TicketsApi->tickets_partial_update_with_http_info: #{e}"
473
+ end
474
+ ```
475
+
476
+ ### Parameters
477
+
478
+ | Name | Type | Description | Notes |
479
+ | ---- | ---- | ----------- | ----- |
480
+ | **x_account_token** | **String** | Token identifying the end user. | |
481
+ | **id** | [**String**](.md) | | |
482
+ | **patched_ticket_endpoint_request** | [**PatchedTicketEndpointRequest**](PatchedTicketEndpointRequest.md) | | |
483
+ | **is_debug_mode** | **Boolean** | Whether to include debug fields (such as log file links) in the response. | [optional] |
484
+ | **run_async** | **Boolean** | Whether or not third-party updates should be run asynchronously. | [optional] |
485
+
486
+ ### Return type
487
+
488
+ [**TicketResponse**](TicketResponse.md)
489
+
490
+ ### Authorization
491
+
492
+ [tokenAuth](../README.md#tokenAuth)
493
+
494
+ ### HTTP request headers
495
+
496
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
497
+ - **Accept**: application/json
498
+
499
+
346
500
  ## tickets_retrieve
347
501
 
348
502
  > <Ticket> tickets_retrieve(x_account_token, id, opts)
data/docs/User.md CHANGED
@@ -10,6 +10,7 @@
10
10
  | **email_address** | **String** | The user&#39;s email address. | [optional] |
11
11
  | **is_active** | **Boolean** | Whether or not the user is active. | [optional] |
12
12
  | **teams** | **Array&lt;String&gt;** | | [optional] |
13
+ | **avatar** | **String** | The user&#39;s avatar picture. | [optional] |
13
14
  | **remote_data** | [**Array&lt;RemoteData&gt;**](RemoteData.md) | | [optional][readonly] |
14
15
  | **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional][readonly] |
15
16
 
@@ -25,6 +26,7 @@ instance = MergeTicketingClient::User.new(
25
26
  email_address: help@merge.dev,
26
27
  is_active: true,
27
28
  teams: [&quot;28b54125-287f-494d-965e-3c5b330c9a68&quot;,&quot;17a54124-287f-494d-965e-3c5b330c9a68&quot;],
29
+ avatar: https://merge.dev/user_profile_pic.png,
28
30
  remote_data: null,
29
31
  remote_was_deleted: null
30
32
  )
@@ -288,6 +288,74 @@ module MergeTicketingClient
288
288
  return data, status_code, headers
289
289
  end
290
290
 
291
+ # Returns metadata for `Ticket` PATCHs.
292
+ # @param x_account_token [String] Token identifying the end user.
293
+ # @param id [String]
294
+ # @param [Hash] opts the optional parameters
295
+ # @return [MetaResponse]
296
+ def tickets_meta_patch_retrieve(x_account_token, id, opts = {})
297
+ data, _status_code, _headers = tickets_meta_patch_retrieve_with_http_info(x_account_token, id, opts)
298
+ data
299
+ end
300
+
301
+ # Returns metadata for &#x60;Ticket&#x60; PATCHs.
302
+ # @param x_account_token [String] Token identifying the end user.
303
+ # @param id [String]
304
+ # @param [Hash] opts the optional parameters
305
+ # @return [Array<(MetaResponse, Integer, Hash)>] MetaResponse data, response status code and response headers
306
+ def tickets_meta_patch_retrieve_with_http_info(x_account_token, id, opts = {})
307
+ if @api_client.config.debugging
308
+ @api_client.config.logger.debug 'Calling API: TicketsApi.tickets_meta_patch_retrieve ...'
309
+ end
310
+ # verify the required parameter 'x_account_token' is set
311
+ if @api_client.config.client_side_validation && x_account_token.nil?
312
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling TicketsApi.tickets_meta_patch_retrieve"
313
+ end
314
+ # verify the required parameter 'id' is set
315
+ if @api_client.config.client_side_validation && id.nil?
316
+ fail ArgumentError, "Missing the required parameter 'id' when calling TicketsApi.tickets_meta_patch_retrieve"
317
+ end
318
+ # resource path
319
+ local_var_path = '/tickets/meta/patch/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
320
+
321
+ # query parameters
322
+ query_params = opts[:query_params] || {}
323
+
324
+ # header parameters
325
+ header_params = opts[:header_params] || {}
326
+ # HTTP header 'Accept' (if needed)
327
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
328
+ header_params[:'X-Account-Token'] = x_account_token
329
+
330
+ # form parameters
331
+ form_params = opts[:form_params] || {}
332
+
333
+ # http body (model)
334
+ post_body = opts[:debug_body]
335
+
336
+ # return_type
337
+ return_type = opts[:debug_return_type] || 'MetaResponse'
338
+
339
+ # auth_names
340
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
341
+
342
+ new_options = opts.merge(
343
+ :operation => :"TicketsApi.tickets_meta_patch_retrieve",
344
+ :header_params => header_params,
345
+ :query_params => query_params,
346
+ :form_params => form_params,
347
+ :body => post_body,
348
+ :auth_names => auth_names,
349
+ :return_type => return_type
350
+ )
351
+
352
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
353
+ if @api_client.config.debugging
354
+ @api_client.config.logger.debug "API called: TicketsApi#tickets_meta_patch_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
355
+ end
356
+ return data, status_code, headers
357
+ end
358
+
291
359
  # Returns metadata for `Ticket` POSTs.
292
360
  # @param x_account_token [String] Token identifying the end user.
293
361
  # @param [Hash] opts the optional parameters
@@ -350,6 +418,86 @@ module MergeTicketingClient
350
418
  return data, status_code, headers
351
419
  end
352
420
 
421
+ # @param x_account_token [String] Token identifying the end user.
422
+ # @param id [String]
423
+ # @param patched_ticket_endpoint_request [PatchedTicketEndpointRequest]
424
+ # @param [Hash] opts the optional parameters
425
+ # @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
426
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
427
+ # @return [TicketResponse]
428
+ def tickets_partial_update(x_account_token, id, patched_ticket_endpoint_request, opts = {})
429
+ data, _status_code, _headers = tickets_partial_update_with_http_info(x_account_token, id, patched_ticket_endpoint_request, opts)
430
+ data
431
+ end
432
+
433
+ # @param x_account_token [String] Token identifying the end user.
434
+ # @param id [String]
435
+ # @param patched_ticket_endpoint_request [PatchedTicketEndpointRequest]
436
+ # @param [Hash] opts the optional parameters
437
+ # @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
438
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
439
+ # @return [Array<(TicketResponse, Integer, Hash)>] TicketResponse data, response status code and response headers
440
+ def tickets_partial_update_with_http_info(x_account_token, id, patched_ticket_endpoint_request, opts = {})
441
+ if @api_client.config.debugging
442
+ @api_client.config.logger.debug 'Calling API: TicketsApi.tickets_partial_update ...'
443
+ end
444
+ # verify the required parameter 'x_account_token' is set
445
+ if @api_client.config.client_side_validation && x_account_token.nil?
446
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling TicketsApi.tickets_partial_update"
447
+ end
448
+ # verify the required parameter 'id' is set
449
+ if @api_client.config.client_side_validation && id.nil?
450
+ fail ArgumentError, "Missing the required parameter 'id' when calling TicketsApi.tickets_partial_update"
451
+ end
452
+ # verify the required parameter 'patched_ticket_endpoint_request' is set
453
+ if @api_client.config.client_side_validation && patched_ticket_endpoint_request.nil?
454
+ fail ArgumentError, "Missing the required parameter 'patched_ticket_endpoint_request' when calling TicketsApi.tickets_partial_update"
455
+ end
456
+ # resource path
457
+ local_var_path = '/tickets/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
458
+
459
+ # query parameters
460
+ query_params = opts[:query_params] || {}
461
+ query_params[:'is_debug_mode'] = opts[:'is_debug_mode'] if !opts[:'is_debug_mode'].nil?
462
+ query_params[:'run_async'] = opts[:'run_async'] if !opts[:'run_async'].nil?
463
+
464
+ # header parameters
465
+ header_params = opts[:header_params] || {}
466
+ # HTTP header 'Accept' (if needed)
467
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
468
+ # HTTP header 'Content-Type'
469
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
470
+ header_params[:'X-Account-Token'] = x_account_token
471
+
472
+ # form parameters
473
+ form_params = opts[:form_params] || {}
474
+
475
+ # http body (model)
476
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(patched_ticket_endpoint_request)
477
+
478
+ # return_type
479
+ return_type = opts[:debug_return_type] || 'TicketResponse'
480
+
481
+ # auth_names
482
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
483
+
484
+ new_options = opts.merge(
485
+ :operation => :"TicketsApi.tickets_partial_update",
486
+ :header_params => header_params,
487
+ :query_params => query_params,
488
+ :form_params => form_params,
489
+ :body => post_body,
490
+ :auth_names => auth_names,
491
+ :return_type => return_type
492
+ )
493
+
494
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
495
+ if @api_client.config.debugging
496
+ @api_client.config.logger.debug "API called: TicketsApi#tickets_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
497
+ end
498
+ return data, status_code, headers
499
+ end
500
+
353
501
  # Returns a `Ticket` object with the given `id`.
354
502
  # @param x_account_token [String] Token identifying the end user.
355
503
  # @param id [String]
@@ -61,7 +61,7 @@ module MergeTicketingClient
61
61
  :'base_url_override' => :'String',
62
62
  :'data' => :'String',
63
63
  :'multipart_form_data' => :'Array<MultipartFormFieldRequest>',
64
- :'headers' => :'Hash<String, AnyType>',
64
+ :'headers' => :'Hash<String, Object>',
65
65
  :'request_format' => :'RequestFormatEnum',
66
66
  :'normalize_response' => :'Boolean'
67
67
  }
@@ -53,7 +53,7 @@ module MergeTicketingClient
53
53
  :'id' => :'String',
54
54
  :'status' => :'IssueStatusEnum',
55
55
  :'error_description' => :'String',
56
- :'end_user' => :'Hash<String, AnyType>',
56
+ :'end_user' => :'Hash<String, Object>',
57
57
  :'first_incident_time' => :'Time',
58
58
  :'last_incident_time' => :'Time',
59
59
  :'is_muted' => :'Boolean'
@@ -41,7 +41,7 @@ module MergeTicketingClient
41
41
  # Attribute type mapping.
42
42
  def self.openapi_types
43
43
  {
44
- :'request_schema' => :'Hash<String, AnyType>',
44
+ :'request_schema' => :'Hash<String, Object>',
45
45
  :'status' => :'LinkedAccountStatus',
46
46
  :'has_conditional_params' => :'Boolean',
47
47
  :'has_required_linked_account_params' => :'Boolean'