merge_ticketing_client 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE.md +16 -0
- data/README.md +208 -0
- data/Rakefile +10 -0
- data/docs/Account.md +28 -0
- data/docs/AccountDetails.md +36 -0
- data/docs/AccountDetailsAndActions.md +36 -0
- data/docs/AccountDetailsAndActionsIntegration.md +32 -0
- data/docs/AccountDetailsAndActionsStatusEnum.md +15 -0
- data/docs/AccountDetailsApi.md +79 -0
- data/docs/AccountIntegration.md +28 -0
- data/docs/AccountToken.md +20 -0
- data/docs/AccountTokenApi.md +79 -0
- data/docs/AccountsApi.md +177 -0
- data/docs/Attachment.md +36 -0
- data/docs/AttachmentRequest.md +30 -0
- data/docs/AttachmentsApi.md +335 -0
- data/docs/AvailableActions.md +22 -0
- data/docs/AvailableActionsApi.md +79 -0
- data/docs/CategoriesEnum.md +15 -0
- data/docs/CategoryEnum.md +15 -0
- data/docs/Comment.md +38 -0
- data/docs/CommentEndpointRequest.md +18 -0
- data/docs/CommentRequest.md +32 -0
- data/docs/CommentResponse.md +24 -0
- data/docs/CommentsApi.md +335 -0
- data/docs/Contact.md +34 -0
- data/docs/ContactsApi.md +181 -0
- data/docs/DataPassthroughRequest.md +32 -0
- data/docs/DebugModeLog.md +22 -0
- data/docs/DebugModelLogSummary.md +22 -0
- data/docs/DeleteAccountApi.md +78 -0
- data/docs/EncodingEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +30 -0
- data/docs/ErrorValidationProblem.md +24 -0
- data/docs/ForceResyncApi.md +79 -0
- data/docs/GenerateKeyApi.md +79 -0
- data/docs/GenerateRemoteKeyRequest.md +18 -0
- data/docs/Issue.md +30 -0
- data/docs/IssueStatusEnum.md +15 -0
- data/docs/IssuesApi.md +177 -0
- data/docs/LinkToken.md +22 -0
- data/docs/LinkTokenApi.md +79 -0
- data/docs/LinkedAccountStatus.md +20 -0
- data/docs/LinkedAccountsApi.md +105 -0
- data/docs/MetaResponse.md +24 -0
- data/docs/MethodEnum.md +15 -0
- data/docs/ModelOperation.md +24 -0
- data/docs/MultipartFormFieldRequest.md +26 -0
- data/docs/PaginatedAccountDetailsAndActionsList.md +22 -0
- data/docs/PaginatedAccountList.md +22 -0
- data/docs/PaginatedAttachmentList.md +22 -0
- data/docs/PaginatedCommentList.md +22 -0
- data/docs/PaginatedContactList.md +22 -0
- data/docs/PaginatedIssueList.md +22 -0
- data/docs/PaginatedProjectList.md +22 -0
- data/docs/PaginatedSyncStatusList.md +22 -0
- data/docs/PaginatedTagList.md +22 -0
- data/docs/PaginatedTeamList.md +22 -0
- data/docs/PaginatedTicketList.md +22 -0
- data/docs/PaginatedUserList.md +22 -0
- data/docs/PassthroughApi.md +81 -0
- data/docs/Project.md +28 -0
- data/docs/ProjectsApi.md +261 -0
- data/docs/RegenerateKeyApi.md +79 -0
- data/docs/RemoteData.md +20 -0
- data/docs/RemoteKey.md +20 -0
- data/docs/RemoteKeyForRegenerationRequest.md +18 -0
- data/docs/RemoteResponse.md +28 -0
- data/docs/RequestFormatEnum.md +15 -0
- data/docs/SyncStatus.md +28 -0
- data/docs/SyncStatusApi.md +85 -0
- data/docs/SyncStatusStatusEnum.md +15 -0
- data/docs/Tag.md +24 -0
- data/docs/TagsApi.md +177 -0
- data/docs/Team.md +28 -0
- data/docs/TeamsApi.md +177 -0
- data/docs/Ticket.md +52 -0
- data/docs/TicketEndpointRequest.md +18 -0
- data/docs/TicketRequest.md +46 -0
- data/docs/TicketResponse.md +24 -0
- data/docs/TicketStatusEnum.md +15 -0
- data/docs/TicketingAttachmentEndpointRequest.md +18 -0
- data/docs/TicketingAttachmentResponse.md +24 -0
- data/docs/TicketsApi.md +425 -0
- data/docs/User.md +32 -0
- data/docs/UsersApi.md +181 -0
- data/docs/ValidationProblemSource.md +18 -0
- data/docs/WarningValidationProblem.md +24 -0
- data/docs/WebhookReceiver.md +22 -0
- data/docs/WebhookReceiverRequest.md +22 -0
- data/docs/WebhookReceiversApi.md +153 -0
- data/git_push.sh +58 -0
- data/lib/merge_ticketing_client/api/account_details_api.rb +84 -0
- data/lib/merge_ticketing_client/api/account_token_api.rb +83 -0
- data/lib/merge_ticketing_client/api/accounts_api.rb +182 -0
- data/lib/merge_ticketing_client/api/attachments_api.rb +337 -0
- data/lib/merge_ticketing_client/api/available_actions_api.rb +84 -0
- data/lib/merge_ticketing_client/api/comments_api.rb +337 -0
- data/lib/merge_ticketing_client/api/contacts_api.rb +196 -0
- data/lib/merge_ticketing_client/api/delete_account_api.rb +82 -0
- data/lib/merge_ticketing_client/api/force_resync_api.rb +84 -0
- data/lib/merge_ticketing_client/api/generate_key_api.rb +85 -0
- data/lib/merge_ticketing_client/api/issues_api.rb +181 -0
- data/lib/merge_ticketing_client/api/link_token_api.rb +85 -0
- data/lib/merge_ticketing_client/api/linked_accounts_api.rb +120 -0
- data/lib/merge_ticketing_client/api/passthrough_api.rb +92 -0
- data/lib/merge_ticketing_client/api/projects_api.rb +266 -0
- data/lib/merge_ticketing_client/api/regenerate_key_api.rb +85 -0
- data/lib/merge_ticketing_client/api/sync_status_api.rb +90 -0
- data/lib/merge_ticketing_client/api/tags_api.rb +182 -0
- data/lib/merge_ticketing_client/api/teams_api.rb +182 -0
- data/lib/merge_ticketing_client/api/tickets_api.rb +438 -0
- data/lib/merge_ticketing_client/api/users_api.rb +196 -0
- data/lib/merge_ticketing_client/api/webhook_receivers_api.rb +154 -0
- data/lib/merge_ticketing_client/api_client.rb +390 -0
- data/lib/merge_ticketing_client/api_error.rb +57 -0
- data/lib/merge_ticketing_client/configuration.rb +281 -0
- data/lib/merge_ticketing_client/models/account.rb +276 -0
- data/lib/merge_ticketing_client/models/account_details.rb +302 -0
- data/lib/merge_ticketing_client/models/account_details_and_actions.rb +327 -0
- data/lib/merge_ticketing_client/models/account_details_and_actions_integration.rb +310 -0
- data/lib/merge_ticketing_client/models/account_details_and_actions_status_enum.rb +46 -0
- data/lib/merge_ticketing_client/models/account_integration.rb +303 -0
- data/lib/merge_ticketing_client/models/account_token.rb +237 -0
- data/lib/merge_ticketing_client/models/attachment.rb +315 -0
- data/lib/merge_ticketing_client/models/attachment_request.rb +285 -0
- data/lib/merge_ticketing_client/models/available_actions.rb +249 -0
- data/lib/merge_ticketing_client/models/categories_enum.rb +48 -0
- data/lib/merge_ticketing_client/models/category_enum.rb +48 -0
- data/lib/merge_ticketing_client/models/comment.rb +325 -0
- data/lib/merge_ticketing_client/models/comment_endpoint_request.rb +223 -0
- data/lib/merge_ticketing_client/models/comment_request.rb +295 -0
- data/lib/merge_ticketing_client/models/comment_response.rb +266 -0
- data/lib/merge_ticketing_client/models/contact.rb +307 -0
- data/lib/merge_ticketing_client/models/data_passthrough_request.rb +352 -0
- data/lib/merge_ticketing_client/models/debug_mode_log.rb +251 -0
- data/lib/merge_ticketing_client/models/debug_model_log_summary.rb +251 -0
- data/lib/merge_ticketing_client/models/encoding_enum.rb +46 -0
- data/lib/merge_ticketing_client/models/end_user_details_request.rb +430 -0
- data/lib/merge_ticketing_client/models/error_validation_problem.rb +260 -0
- data/lib/merge_ticketing_client/models/generate_remote_key_request.rb +243 -0
- data/lib/merge_ticketing_client/models/issue.rb +281 -0
- data/lib/merge_ticketing_client/models/issue_status_enum.rb +45 -0
- data/lib/merge_ticketing_client/models/link_token.rb +246 -0
- data/lib/merge_ticketing_client/models/linked_account_status.rb +237 -0
- data/lib/merge_ticketing_client/models/meta_response.rb +262 -0
- data/lib/merge_ticketing_client/models/method_enum.rb +50 -0
- data/lib/merge_ticketing_client/models/model_operation.rb +272 -0
- data/lib/merge_ticketing_client/models/multipart_form_field_request.rb +341 -0
- data/lib/merge_ticketing_client/models/paginated_account_details_and_actions_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_account_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_attachment_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_comment_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_contact_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_issue_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_project_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_sync_status_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_tag_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_team_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_ticket_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_user_list.rb +240 -0
- data/lib/merge_ticketing_client/models/project.rb +274 -0
- data/lib/merge_ticketing_client/models/remote_data.rb +234 -0
- data/lib/merge_ticketing_client/models/remote_key.rb +238 -0
- data/lib/merge_ticketing_client/models/remote_key_for_regeneration_request.rb +243 -0
- data/lib/merge_ticketing_client/models/remote_response.rb +290 -0
- data/lib/merge_ticketing_client/models/request_format_enum.rb +46 -0
- data/lib/merge_ticketing_client/models/sync_status.rb +294 -0
- data/lib/merge_ticketing_client/models/sync_status_status_enum.rb +48 -0
- data/lib/merge_ticketing_client/models/tag.rb +254 -0
- data/lib/merge_ticketing_client/models/team.rb +274 -0
- data/lib/merge_ticketing_client/models/ticket.rb +401 -0
- data/lib/merge_ticketing_client/models/ticket_endpoint_request.rb +223 -0
- data/lib/merge_ticketing_client/models/ticket_request.rb +371 -0
- data/lib/merge_ticketing_client/models/ticket_response.rb +266 -0
- data/lib/merge_ticketing_client/models/ticket_status_enum.rb +45 -0
- data/lib/merge_ticketing_client/models/ticketing_attachment_endpoint_request.rb +223 -0
- data/lib/merge_ticketing_client/models/ticketing_attachment_response.rb +266 -0
- data/lib/merge_ticketing_client/models/user.rb +296 -0
- data/lib/merge_ticketing_client/models/validation_problem_source.rb +223 -0
- data/lib/merge_ticketing_client/models/warning_validation_problem.rb +260 -0
- data/lib/merge_ticketing_client/models/webhook_receiver.rb +246 -0
- data/lib/merge_ticketing_client/models/webhook_receiver_request.rb +280 -0
- data/lib/merge_ticketing_client/version.rb +15 -0
- data/lib/merge_ticketing_client.rb +127 -0
- data/merge_ticketing_client.gemspec +38 -0
- data/pull_request_template.md +20 -0
- data/spec/api/account_details_api_spec.rb +46 -0
- data/spec/api/account_token_api_spec.rb +46 -0
- data/spec/api/accounts_api_spec.rb +68 -0
- data/spec/api/attachments_api_spec.rb +96 -0
- data/spec/api/available_actions_api_spec.rb +46 -0
- data/spec/api/comments_api_spec.rb +96 -0
- data/spec/api/contacts_api_spec.rb +70 -0
- data/spec/api/delete_account_api_spec.rb +46 -0
- data/spec/api/force_resync_api_spec.rb +46 -0
- data/spec/api/generate_key_api_spec.rb +46 -0
- data/spec/api/issues_api_spec.rb +69 -0
- data/spec/api/link_token_api_spec.rb +46 -0
- data/spec/api/linked_accounts_api_spec.rb +58 -0
- data/spec/api/passthrough_api_spec.rb +47 -0
- data/spec/api/projects_api_spec.rb +84 -0
- data/spec/api/regenerate_key_api_spec.rb +46 -0
- data/spec/api/sync_status_api_spec.rb +48 -0
- data/spec/api/tags_api_spec.rb +68 -0
- data/spec/api/teams_api_spec.rb +68 -0
- data/spec/api/tickets_api_spec.rb +115 -0
- data/spec/api/users_api_spec.rb +70 -0
- data/spec/api/webhook_receivers_api_spec.rb +58 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_details_and_actions_integration_spec.rb +76 -0
- data/spec/models/account_details_and_actions_spec.rb +88 -0
- data/spec/models/account_details_and_actions_status_enum_spec.rb +28 -0
- data/spec/models/account_details_spec.rb +88 -0
- data/spec/models/account_integration_spec.rb +64 -0
- data/spec/models/account_spec.rb +64 -0
- data/spec/models/account_token_spec.rb +40 -0
- data/spec/models/attachment_request_spec.rb +70 -0
- data/spec/models/attachment_spec.rb +88 -0
- data/spec/models/available_actions_spec.rb +46 -0
- data/spec/models/categories_enum_spec.rb +28 -0
- data/spec/models/category_enum_spec.rb +28 -0
- data/spec/models/comment_endpoint_request_spec.rb +34 -0
- data/spec/models/comment_request_spec.rb +76 -0
- data/spec/models/comment_response_spec.rb +52 -0
- data/spec/models/comment_spec.rb +94 -0
- data/spec/models/contact_spec.rb +82 -0
- data/spec/models/data_passthrough_request_spec.rb +76 -0
- data/spec/models/debug_mode_log_spec.rb +46 -0
- data/spec/models/debug_model_log_summary_spec.rb +46 -0
- data/spec/models/encoding_enum_spec.rb +28 -0
- data/spec/models/end_user_details_request_spec.rb +70 -0
- data/spec/models/error_validation_problem_spec.rb +52 -0
- data/spec/models/generate_remote_key_request_spec.rb +34 -0
- data/spec/models/issue_spec.rb +70 -0
- data/spec/models/issue_status_enum_spec.rb +28 -0
- data/spec/models/link_token_spec.rb +46 -0
- data/spec/models/linked_account_status_spec.rb +40 -0
- data/spec/models/meta_response_spec.rb +52 -0
- data/spec/models/method_enum_spec.rb +28 -0
- data/spec/models/model_operation_spec.rb +52 -0
- data/spec/models/multipart_form_field_request_spec.rb +58 -0
- data/spec/models/paginated_account_details_and_actions_list_spec.rb +46 -0
- data/spec/models/paginated_account_list_spec.rb +46 -0
- data/spec/models/paginated_attachment_list_spec.rb +46 -0
- data/spec/models/paginated_comment_list_spec.rb +46 -0
- data/spec/models/paginated_contact_list_spec.rb +46 -0
- data/spec/models/paginated_issue_list_spec.rb +46 -0
- data/spec/models/paginated_project_list_spec.rb +46 -0
- data/spec/models/paginated_sync_status_list_spec.rb +46 -0
- data/spec/models/paginated_tag_list_spec.rb +46 -0
- data/spec/models/paginated_team_list_spec.rb +46 -0
- data/spec/models/paginated_ticket_list_spec.rb +46 -0
- data/spec/models/paginated_user_list_spec.rb +46 -0
- data/spec/models/project_spec.rb +64 -0
- data/spec/models/remote_data_spec.rb +40 -0
- data/spec/models/remote_key_for_regeneration_request_spec.rb +34 -0
- data/spec/models/remote_key_spec.rb +40 -0
- data/spec/models/remote_response_spec.rb +64 -0
- data/spec/models/request_format_enum_spec.rb +28 -0
- data/spec/models/sync_status_spec.rb +64 -0
- data/spec/models/sync_status_status_enum_spec.rb +28 -0
- data/spec/models/tag_spec.rb +52 -0
- data/spec/models/team_spec.rb +64 -0
- data/spec/models/ticket_endpoint_request_spec.rb +34 -0
- data/spec/models/ticket_request_spec.rb +118 -0
- data/spec/models/ticket_response_spec.rb +52 -0
- data/spec/models/ticket_spec.rb +136 -0
- data/spec/models/ticket_status_enum_spec.rb +28 -0
- data/spec/models/ticketing_attachment_endpoint_request_spec.rb +34 -0
- data/spec/models/ticketing_attachment_response_spec.rb +52 -0
- data/spec/models/user_spec.rb +76 -0
- data/spec/models/validation_problem_source_spec.rb +34 -0
- data/spec/models/warning_validation_problem_spec.rb +52 -0
- data/spec/models/webhook_receiver_request_spec.rb +46 -0
- data/spec/models/webhook_receiver_spec.rb +46 -0
- data/spec/spec_helper.rb +111 -0
- metadata +454 -0
data/docs/AccountsApi.md
ADDED
@@ -0,0 +1,177 @@
|
|
1
|
+
# MergeTicketingClient::AccountsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.merge.dev/api/ticketing/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**accounts_list**](AccountsApi.md#accounts_list) | **GET** /accounts | |
|
8
|
+
| [**accounts_retrieve**](AccountsApi.md#accounts_retrieve) | **GET** /accounts/{id} | |
|
9
|
+
|
10
|
+
|
11
|
+
## accounts_list
|
12
|
+
|
13
|
+
> <PaginatedAccountList> accounts_list(x_account_token, opts)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
Returns a list of `Account` objects.
|
18
|
+
|
19
|
+
### Examples
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'time'
|
23
|
+
require 'merge_ticketing_client'
|
24
|
+
# setup authorization
|
25
|
+
MergeTicketingClient.configure do |config|
|
26
|
+
# Configure API key authorization: tokenAuth
|
27
|
+
config.api_key['tokenAuth'] = 'YOUR API KEY'
|
28
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
29
|
+
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
30
|
+
end
|
31
|
+
|
32
|
+
api_instance = MergeTicketingClient::AccountsApi.new
|
33
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
34
|
+
opts = {
|
35
|
+
created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
|
36
|
+
created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
|
37
|
+
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
38
|
+
include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
|
39
|
+
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
40
|
+
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
|
41
|
+
modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
|
42
|
+
page_size: 56, # Integer | Number of results to return per page.
|
43
|
+
remote_id: 'remote_id_example' # String | The API provider's ID for the given object.
|
44
|
+
}
|
45
|
+
|
46
|
+
begin
|
47
|
+
|
48
|
+
result = api_instance.accounts_list(x_account_token, opts)
|
49
|
+
p result
|
50
|
+
rescue MergeTicketingClient::ApiError => e
|
51
|
+
puts "Error when calling AccountsApi->accounts_list: #{e}"
|
52
|
+
end
|
53
|
+
```
|
54
|
+
|
55
|
+
#### Using the accounts_list_with_http_info variant
|
56
|
+
|
57
|
+
This returns an Array which contains the response data, status code and headers.
|
58
|
+
|
59
|
+
> <Array(<PaginatedAccountList>, Integer, Hash)> accounts_list_with_http_info(x_account_token, opts)
|
60
|
+
|
61
|
+
```ruby
|
62
|
+
begin
|
63
|
+
|
64
|
+
data, status_code, headers = api_instance.accounts_list_with_http_info(x_account_token, opts)
|
65
|
+
p status_code # => 2xx
|
66
|
+
p headers # => { ... }
|
67
|
+
p data # => <PaginatedAccountList>
|
68
|
+
rescue MergeTicketingClient::ApiError => e
|
69
|
+
puts "Error when calling AccountsApi->accounts_list_with_http_info: #{e}"
|
70
|
+
end
|
71
|
+
```
|
72
|
+
|
73
|
+
### Parameters
|
74
|
+
|
75
|
+
| Name | Type | Description | Notes |
|
76
|
+
| ---- | ---- | ----------- | ----- |
|
77
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
78
|
+
| **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
|
79
|
+
| **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
|
80
|
+
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
81
|
+
| **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
|
82
|
+
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
83
|
+
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
84
|
+
| **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
|
85
|
+
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
86
|
+
| **remote_id** | **String** | The API provider's ID for the given object. | [optional] |
|
87
|
+
|
88
|
+
### Return type
|
89
|
+
|
90
|
+
[**PaginatedAccountList**](PaginatedAccountList.md)
|
91
|
+
|
92
|
+
### Authorization
|
93
|
+
|
94
|
+
[tokenAuth](../README.md#tokenAuth)
|
95
|
+
|
96
|
+
### HTTP request headers
|
97
|
+
|
98
|
+
- **Content-Type**: Not defined
|
99
|
+
- **Accept**: application/json
|
100
|
+
|
101
|
+
|
102
|
+
## accounts_retrieve
|
103
|
+
|
104
|
+
> <Account> accounts_retrieve(x_account_token, id, opts)
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
Returns an `Account` object with the given `id`.
|
109
|
+
|
110
|
+
### Examples
|
111
|
+
|
112
|
+
```ruby
|
113
|
+
require 'time'
|
114
|
+
require 'merge_ticketing_client'
|
115
|
+
# setup authorization
|
116
|
+
MergeTicketingClient.configure do |config|
|
117
|
+
# Configure API key authorization: tokenAuth
|
118
|
+
config.api_key['tokenAuth'] = 'YOUR API KEY'
|
119
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
120
|
+
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
121
|
+
end
|
122
|
+
|
123
|
+
api_instance = MergeTicketingClient::AccountsApi.new
|
124
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
125
|
+
id = TODO # String |
|
126
|
+
opts = {
|
127
|
+
include_remote_data: true # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
128
|
+
}
|
129
|
+
|
130
|
+
begin
|
131
|
+
|
132
|
+
result = api_instance.accounts_retrieve(x_account_token, id, opts)
|
133
|
+
p result
|
134
|
+
rescue MergeTicketingClient::ApiError => e
|
135
|
+
puts "Error when calling AccountsApi->accounts_retrieve: #{e}"
|
136
|
+
end
|
137
|
+
```
|
138
|
+
|
139
|
+
#### Using the accounts_retrieve_with_http_info variant
|
140
|
+
|
141
|
+
This returns an Array which contains the response data, status code and headers.
|
142
|
+
|
143
|
+
> <Array(<Account>, Integer, Hash)> accounts_retrieve_with_http_info(x_account_token, id, opts)
|
144
|
+
|
145
|
+
```ruby
|
146
|
+
begin
|
147
|
+
|
148
|
+
data, status_code, headers = api_instance.accounts_retrieve_with_http_info(x_account_token, id, opts)
|
149
|
+
p status_code # => 2xx
|
150
|
+
p headers # => { ... }
|
151
|
+
p data # => <Account>
|
152
|
+
rescue MergeTicketingClient::ApiError => e
|
153
|
+
puts "Error when calling AccountsApi->accounts_retrieve_with_http_info: #{e}"
|
154
|
+
end
|
155
|
+
```
|
156
|
+
|
157
|
+
### Parameters
|
158
|
+
|
159
|
+
| Name | Type | Description | Notes |
|
160
|
+
| ---- | ---- | ----------- | ----- |
|
161
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
162
|
+
| **id** | [**String**](.md) | | |
|
163
|
+
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
164
|
+
|
165
|
+
### Return type
|
166
|
+
|
167
|
+
[**Account**](Account.md)
|
168
|
+
|
169
|
+
### Authorization
|
170
|
+
|
171
|
+
[tokenAuth](../README.md#tokenAuth)
|
172
|
+
|
173
|
+
### HTTP request headers
|
174
|
+
|
175
|
+
- **Content-Type**: Not defined
|
176
|
+
- **Accept**: application/json
|
177
|
+
|
data/docs/Attachment.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# MergeTicketingClient::Attachment
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | | [optional][readonly] |
|
8
|
+
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
9
|
+
| **file_name** | **String** | The attachment's name. | [optional] |
|
10
|
+
| **ticket** | **String** | | [optional] |
|
11
|
+
| **file_url** | **String** | The attachment's url. | [optional] |
|
12
|
+
| **content_type** | **String** | The attachment's file format. | [optional] |
|
13
|
+
| **uploaded_by** | **String** | | [optional] |
|
14
|
+
| **remote_created_at** | **Time** | When the third party's attachment was created. | [optional] |
|
15
|
+
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
16
|
+
| **remote_was_deleted** | **Boolean** | | [optional][readonly] |
|
17
|
+
|
18
|
+
## Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'merge_ticketing_client'
|
22
|
+
|
23
|
+
instance = MergeTicketingClient::Attachment.new(
|
24
|
+
id: 17a54124-287f-494d-965e-3c5b330c9a68,
|
25
|
+
remote_id: 19202938,
|
26
|
+
file_name: Screenshot.png,
|
27
|
+
ticket: 0958cbc6-6040-430a-848e-aafacbadf4ae,
|
28
|
+
file_url: http://alturl.com/p749b,
|
29
|
+
content_type: jpeg,
|
30
|
+
uploaded_by: 28b54125-287f-494d-965e-3c5b330c9a68,
|
31
|
+
remote_created_at: 2022-11-10T00:00Z,
|
32
|
+
remote_data: null,
|
33
|
+
remote_was_deleted: null
|
34
|
+
)
|
35
|
+
```
|
36
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# MergeTicketingClient::AttachmentRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
8
|
+
| **file_name** | **String** | The attachment's name. | [optional] |
|
9
|
+
| **ticket** | **String** | | [optional] |
|
10
|
+
| **file_url** | **String** | The attachment's url. | [optional] |
|
11
|
+
| **content_type** | **String** | The attachment's file format. | [optional] |
|
12
|
+
| **uploaded_by** | **String** | | [optional] |
|
13
|
+
| **remote_created_at** | **Time** | When the third party's attachment was created. | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'merge_ticketing_client'
|
19
|
+
|
20
|
+
instance = MergeTicketingClient::AttachmentRequest.new(
|
21
|
+
remote_id: 19202938,
|
22
|
+
file_name: Screenshot.png,
|
23
|
+
ticket: 0958cbc6-6040-430a-848e-aafacbadf4ae,
|
24
|
+
file_url: http://alturl.com/p749b,
|
25
|
+
content_type: jpeg,
|
26
|
+
uploaded_by: 28b54125-287f-494d-965e-3c5b330c9a68,
|
27
|
+
remote_created_at: 2022-11-10T00:00Z
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,335 @@
|
|
1
|
+
# MergeTicketingClient::AttachmentsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.merge.dev/api/ticketing/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**attachments_create**](AttachmentsApi.md#attachments_create) | **POST** /attachments | |
|
8
|
+
| [**attachments_list**](AttachmentsApi.md#attachments_list) | **GET** /attachments | |
|
9
|
+
| [**attachments_meta_post_retrieve**](AttachmentsApi.md#attachments_meta_post_retrieve) | **GET** /attachments/meta/post | |
|
10
|
+
| [**attachments_retrieve**](AttachmentsApi.md#attachments_retrieve) | **GET** /attachments/{id} | |
|
11
|
+
|
12
|
+
|
13
|
+
## attachments_create
|
14
|
+
|
15
|
+
> <TicketingAttachmentResponse> attachments_create(x_account_token, ticketing_attachment_endpoint_request, opts)
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
Creates an `Attachment` object with the given values.
|
20
|
+
|
21
|
+
### Examples
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
require 'time'
|
25
|
+
require 'merge_ticketing_client'
|
26
|
+
# setup authorization
|
27
|
+
MergeTicketingClient.configure do |config|
|
28
|
+
# Configure API key authorization: tokenAuth
|
29
|
+
config.api_key['tokenAuth'] = 'YOUR API KEY'
|
30
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
31
|
+
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
32
|
+
end
|
33
|
+
|
34
|
+
api_instance = MergeTicketingClient::AttachmentsApi.new
|
35
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
36
|
+
ticketing_attachment_endpoint_request = MergeTicketingClient::TicketingAttachmentEndpointRequest.new({model: MergeTicketingClient::AttachmentRequest.new}) # TicketingAttachmentEndpointRequest |
|
37
|
+
opts = {
|
38
|
+
is_debug_mode: true, # Boolean | Whether to include debug fields (such as log file links) in the response.
|
39
|
+
run_async: true # Boolean | Whether or not third-party updates should be run asynchronously.
|
40
|
+
}
|
41
|
+
|
42
|
+
begin
|
43
|
+
|
44
|
+
result = api_instance.attachments_create(x_account_token, ticketing_attachment_endpoint_request, opts)
|
45
|
+
p result
|
46
|
+
rescue MergeTicketingClient::ApiError => e
|
47
|
+
puts "Error when calling AttachmentsApi->attachments_create: #{e}"
|
48
|
+
end
|
49
|
+
```
|
50
|
+
|
51
|
+
#### Using the attachments_create_with_http_info variant
|
52
|
+
|
53
|
+
This returns an Array which contains the response data, status code and headers.
|
54
|
+
|
55
|
+
> <Array(<TicketingAttachmentResponse>, Integer, Hash)> attachments_create_with_http_info(x_account_token, ticketing_attachment_endpoint_request, opts)
|
56
|
+
|
57
|
+
```ruby
|
58
|
+
begin
|
59
|
+
|
60
|
+
data, status_code, headers = api_instance.attachments_create_with_http_info(x_account_token, ticketing_attachment_endpoint_request, opts)
|
61
|
+
p status_code # => 2xx
|
62
|
+
p headers # => { ... }
|
63
|
+
p data # => <TicketingAttachmentResponse>
|
64
|
+
rescue MergeTicketingClient::ApiError => e
|
65
|
+
puts "Error when calling AttachmentsApi->attachments_create_with_http_info: #{e}"
|
66
|
+
end
|
67
|
+
```
|
68
|
+
|
69
|
+
### Parameters
|
70
|
+
|
71
|
+
| Name | Type | Description | Notes |
|
72
|
+
| ---- | ---- | ----------- | ----- |
|
73
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
74
|
+
| **ticketing_attachment_endpoint_request** | [**TicketingAttachmentEndpointRequest**](TicketingAttachmentEndpointRequest.md) | | |
|
75
|
+
| **is_debug_mode** | **Boolean** | Whether to include debug fields (such as log file links) in the response. | [optional] |
|
76
|
+
| **run_async** | **Boolean** | Whether or not third-party updates should be run asynchronously. | [optional] |
|
77
|
+
|
78
|
+
### Return type
|
79
|
+
|
80
|
+
[**TicketingAttachmentResponse**](TicketingAttachmentResponse.md)
|
81
|
+
|
82
|
+
### Authorization
|
83
|
+
|
84
|
+
[tokenAuth](../README.md#tokenAuth)
|
85
|
+
|
86
|
+
### HTTP request headers
|
87
|
+
|
88
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
89
|
+
- **Accept**: application/json
|
90
|
+
|
91
|
+
|
92
|
+
## attachments_list
|
93
|
+
|
94
|
+
> <PaginatedAttachmentList> attachments_list(x_account_token, opts)
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
Returns a list of `Attachment` objects.
|
99
|
+
|
100
|
+
### Examples
|
101
|
+
|
102
|
+
```ruby
|
103
|
+
require 'time'
|
104
|
+
require 'merge_ticketing_client'
|
105
|
+
# setup authorization
|
106
|
+
MergeTicketingClient.configure do |config|
|
107
|
+
# Configure API key authorization: tokenAuth
|
108
|
+
config.api_key['tokenAuth'] = 'YOUR API KEY'
|
109
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
110
|
+
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
111
|
+
end
|
112
|
+
|
113
|
+
api_instance = MergeTicketingClient::AttachmentsApi.new
|
114
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
115
|
+
opts = {
|
116
|
+
created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
|
117
|
+
created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
|
118
|
+
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
119
|
+
expand: 'ticket', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
120
|
+
include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
|
121
|
+
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
122
|
+
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
|
123
|
+
modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
|
124
|
+
page_size: 56, # Integer | Number of results to return per page.
|
125
|
+
remote_id: 'remote_id_example', # String | The API provider's ID for the given object.
|
126
|
+
ticket_id: 'ticket_id_example' # String | If provided, will only return comments for this ticket.
|
127
|
+
}
|
128
|
+
|
129
|
+
begin
|
130
|
+
|
131
|
+
result = api_instance.attachments_list(x_account_token, opts)
|
132
|
+
p result
|
133
|
+
rescue MergeTicketingClient::ApiError => e
|
134
|
+
puts "Error when calling AttachmentsApi->attachments_list: #{e}"
|
135
|
+
end
|
136
|
+
```
|
137
|
+
|
138
|
+
#### Using the attachments_list_with_http_info variant
|
139
|
+
|
140
|
+
This returns an Array which contains the response data, status code and headers.
|
141
|
+
|
142
|
+
> <Array(<PaginatedAttachmentList>, Integer, Hash)> attachments_list_with_http_info(x_account_token, opts)
|
143
|
+
|
144
|
+
```ruby
|
145
|
+
begin
|
146
|
+
|
147
|
+
data, status_code, headers = api_instance.attachments_list_with_http_info(x_account_token, opts)
|
148
|
+
p status_code # => 2xx
|
149
|
+
p headers # => { ... }
|
150
|
+
p data # => <PaginatedAttachmentList>
|
151
|
+
rescue MergeTicketingClient::ApiError => e
|
152
|
+
puts "Error when calling AttachmentsApi->attachments_list_with_http_info: #{e}"
|
153
|
+
end
|
154
|
+
```
|
155
|
+
|
156
|
+
### Parameters
|
157
|
+
|
158
|
+
| Name | Type | Description | Notes |
|
159
|
+
| ---- | ---- | ----------- | ----- |
|
160
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
161
|
+
| **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
|
162
|
+
| **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
|
163
|
+
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
164
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
165
|
+
| **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
|
166
|
+
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
167
|
+
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
168
|
+
| **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
|
169
|
+
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
170
|
+
| **remote_id** | **String** | The API provider's ID for the given object. | [optional] |
|
171
|
+
| **ticket_id** | **String** | If provided, will only return comments for this ticket. | [optional] |
|
172
|
+
|
173
|
+
### Return type
|
174
|
+
|
175
|
+
[**PaginatedAttachmentList**](PaginatedAttachmentList.md)
|
176
|
+
|
177
|
+
### Authorization
|
178
|
+
|
179
|
+
[tokenAuth](../README.md#tokenAuth)
|
180
|
+
|
181
|
+
### HTTP request headers
|
182
|
+
|
183
|
+
- **Content-Type**: Not defined
|
184
|
+
- **Accept**: application/json
|
185
|
+
|
186
|
+
|
187
|
+
## attachments_meta_post_retrieve
|
188
|
+
|
189
|
+
> <MetaResponse> attachments_meta_post_retrieve(x_account_token)
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
Returns metadata for `TicketingAttachment` POSTs.
|
194
|
+
|
195
|
+
### Examples
|
196
|
+
|
197
|
+
```ruby
|
198
|
+
require 'time'
|
199
|
+
require 'merge_ticketing_client'
|
200
|
+
# setup authorization
|
201
|
+
MergeTicketingClient.configure do |config|
|
202
|
+
# Configure API key authorization: tokenAuth
|
203
|
+
config.api_key['tokenAuth'] = 'YOUR API KEY'
|
204
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
205
|
+
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
206
|
+
end
|
207
|
+
|
208
|
+
api_instance = MergeTicketingClient::AttachmentsApi.new
|
209
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
210
|
+
|
211
|
+
begin
|
212
|
+
|
213
|
+
result = api_instance.attachments_meta_post_retrieve(x_account_token)
|
214
|
+
p result
|
215
|
+
rescue MergeTicketingClient::ApiError => e
|
216
|
+
puts "Error when calling AttachmentsApi->attachments_meta_post_retrieve: #{e}"
|
217
|
+
end
|
218
|
+
```
|
219
|
+
|
220
|
+
#### Using the attachments_meta_post_retrieve_with_http_info variant
|
221
|
+
|
222
|
+
This returns an Array which contains the response data, status code and headers.
|
223
|
+
|
224
|
+
> <Array(<MetaResponse>, Integer, Hash)> attachments_meta_post_retrieve_with_http_info(x_account_token)
|
225
|
+
|
226
|
+
```ruby
|
227
|
+
begin
|
228
|
+
|
229
|
+
data, status_code, headers = api_instance.attachments_meta_post_retrieve_with_http_info(x_account_token)
|
230
|
+
p status_code # => 2xx
|
231
|
+
p headers # => { ... }
|
232
|
+
p data # => <MetaResponse>
|
233
|
+
rescue MergeTicketingClient::ApiError => e
|
234
|
+
puts "Error when calling AttachmentsApi->attachments_meta_post_retrieve_with_http_info: #{e}"
|
235
|
+
end
|
236
|
+
```
|
237
|
+
|
238
|
+
### Parameters
|
239
|
+
|
240
|
+
| Name | Type | Description | Notes |
|
241
|
+
| ---- | ---- | ----------- | ----- |
|
242
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
243
|
+
|
244
|
+
### Return type
|
245
|
+
|
246
|
+
[**MetaResponse**](MetaResponse.md)
|
247
|
+
|
248
|
+
### Authorization
|
249
|
+
|
250
|
+
[tokenAuth](../README.md#tokenAuth)
|
251
|
+
|
252
|
+
### HTTP request headers
|
253
|
+
|
254
|
+
- **Content-Type**: Not defined
|
255
|
+
- **Accept**: application/json
|
256
|
+
|
257
|
+
|
258
|
+
## attachments_retrieve
|
259
|
+
|
260
|
+
> <Attachment> attachments_retrieve(x_account_token, id, opts)
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
Returns an `Attachment` object with the given `id`.
|
265
|
+
|
266
|
+
### Examples
|
267
|
+
|
268
|
+
```ruby
|
269
|
+
require 'time'
|
270
|
+
require 'merge_ticketing_client'
|
271
|
+
# setup authorization
|
272
|
+
MergeTicketingClient.configure do |config|
|
273
|
+
# Configure API key authorization: tokenAuth
|
274
|
+
config.api_key['tokenAuth'] = 'YOUR API KEY'
|
275
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
276
|
+
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
277
|
+
end
|
278
|
+
|
279
|
+
api_instance = MergeTicketingClient::AttachmentsApi.new
|
280
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
281
|
+
id = TODO # String |
|
282
|
+
opts = {
|
283
|
+
expand: 'ticket', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
284
|
+
include_remote_data: true # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
285
|
+
}
|
286
|
+
|
287
|
+
begin
|
288
|
+
|
289
|
+
result = api_instance.attachments_retrieve(x_account_token, id, opts)
|
290
|
+
p result
|
291
|
+
rescue MergeTicketingClient::ApiError => e
|
292
|
+
puts "Error when calling AttachmentsApi->attachments_retrieve: #{e}"
|
293
|
+
end
|
294
|
+
```
|
295
|
+
|
296
|
+
#### Using the attachments_retrieve_with_http_info variant
|
297
|
+
|
298
|
+
This returns an Array which contains the response data, status code and headers.
|
299
|
+
|
300
|
+
> <Array(<Attachment>, Integer, Hash)> attachments_retrieve_with_http_info(x_account_token, id, opts)
|
301
|
+
|
302
|
+
```ruby
|
303
|
+
begin
|
304
|
+
|
305
|
+
data, status_code, headers = api_instance.attachments_retrieve_with_http_info(x_account_token, id, opts)
|
306
|
+
p status_code # => 2xx
|
307
|
+
p headers # => { ... }
|
308
|
+
p data # => <Attachment>
|
309
|
+
rescue MergeTicketingClient::ApiError => e
|
310
|
+
puts "Error when calling AttachmentsApi->attachments_retrieve_with_http_info: #{e}"
|
311
|
+
end
|
312
|
+
```
|
313
|
+
|
314
|
+
### Parameters
|
315
|
+
|
316
|
+
| Name | Type | Description | Notes |
|
317
|
+
| ---- | ---- | ----------- | ----- |
|
318
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
319
|
+
| **id** | [**String**](.md) | | |
|
320
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
321
|
+
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
322
|
+
|
323
|
+
### Return type
|
324
|
+
|
325
|
+
[**Attachment**](Attachment.md)
|
326
|
+
|
327
|
+
### Authorization
|
328
|
+
|
329
|
+
[tokenAuth](../README.md#tokenAuth)
|
330
|
+
|
331
|
+
### HTTP request headers
|
332
|
+
|
333
|
+
- **Content-Type**: Not defined
|
334
|
+
- **Accept**: application/json
|
335
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# MergeTicketingClient::AvailableActions
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **integration** | [**AccountIntegration**](AccountIntegration.md) | | |
|
8
|
+
| **passthrough_available** | **Boolean** | | |
|
9
|
+
| **available_model_operations** | [**Array<ModelOperation>**](ModelOperation.md) | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'merge_ticketing_client'
|
15
|
+
|
16
|
+
instance = MergeTicketingClient::AvailableActions.new(
|
17
|
+
integration: null,
|
18
|
+
passthrough_available: true,
|
19
|
+
available_model_operations: [{"model_name":"Candidate","available_operations":["FETCH","CREATE"],"required_post_parameters":["remote_user_id"],"supported_fields":["first_name","last_name","company","title"]}]
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# MergeTicketingClient::AvailableActionsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.merge.dev/api/ticketing/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**available_actions_retrieve**](AvailableActionsApi.md#available_actions_retrieve) | **GET** /available-actions | |
|
8
|
+
|
9
|
+
|
10
|
+
## available_actions_retrieve
|
11
|
+
|
12
|
+
> <AvailableActions> available_actions_retrieve(x_account_token)
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
Returns a list of models and actions available for an account.
|
17
|
+
|
18
|
+
### Examples
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'time'
|
22
|
+
require 'merge_ticketing_client'
|
23
|
+
# setup authorization
|
24
|
+
MergeTicketingClient.configure do |config|
|
25
|
+
# Configure API key authorization: tokenAuth
|
26
|
+
config.api_key['tokenAuth'] = 'YOUR API KEY'
|
27
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
28
|
+
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
29
|
+
end
|
30
|
+
|
31
|
+
api_instance = MergeTicketingClient::AvailableActionsApi.new
|
32
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
33
|
+
|
34
|
+
begin
|
35
|
+
|
36
|
+
result = api_instance.available_actions_retrieve(x_account_token)
|
37
|
+
p result
|
38
|
+
rescue MergeTicketingClient::ApiError => e
|
39
|
+
puts "Error when calling AvailableActionsApi->available_actions_retrieve: #{e}"
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
#### Using the available_actions_retrieve_with_http_info variant
|
44
|
+
|
45
|
+
This returns an Array which contains the response data, status code and headers.
|
46
|
+
|
47
|
+
> <Array(<AvailableActions>, Integer, Hash)> available_actions_retrieve_with_http_info(x_account_token)
|
48
|
+
|
49
|
+
```ruby
|
50
|
+
begin
|
51
|
+
|
52
|
+
data, status_code, headers = api_instance.available_actions_retrieve_with_http_info(x_account_token)
|
53
|
+
p status_code # => 2xx
|
54
|
+
p headers # => { ... }
|
55
|
+
p data # => <AvailableActions>
|
56
|
+
rescue MergeTicketingClient::ApiError => e
|
57
|
+
puts "Error when calling AvailableActionsApi->available_actions_retrieve_with_http_info: #{e}"
|
58
|
+
end
|
59
|
+
```
|
60
|
+
|
61
|
+
### Parameters
|
62
|
+
|
63
|
+
| Name | Type | Description | Notes |
|
64
|
+
| ---- | ---- | ----------- | ----- |
|
65
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
66
|
+
|
67
|
+
### Return type
|
68
|
+
|
69
|
+
[**AvailableActions**](AvailableActions.md)
|
70
|
+
|
71
|
+
### Authorization
|
72
|
+
|
73
|
+
[tokenAuth](../README.md#tokenAuth)
|
74
|
+
|
75
|
+
### HTTP request headers
|
76
|
+
|
77
|
+
- **Content-Type**: Not defined
|
78
|
+
- **Accept**: application/json
|
79
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# MergeTicketingClient::CategoriesEnum
|
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::CategoriesEnum.new()
|
14
|
+
```
|
15
|
+
|