merge_ticketing_client 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (281) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE.md +16 -0
  4. data/README.md +208 -0
  5. data/Rakefile +10 -0
  6. data/docs/Account.md +28 -0
  7. data/docs/AccountDetails.md +36 -0
  8. data/docs/AccountDetailsAndActions.md +36 -0
  9. data/docs/AccountDetailsAndActionsIntegration.md +32 -0
  10. data/docs/AccountDetailsAndActionsStatusEnum.md +15 -0
  11. data/docs/AccountDetailsApi.md +79 -0
  12. data/docs/AccountIntegration.md +28 -0
  13. data/docs/AccountToken.md +20 -0
  14. data/docs/AccountTokenApi.md +79 -0
  15. data/docs/AccountsApi.md +177 -0
  16. data/docs/Attachment.md +36 -0
  17. data/docs/AttachmentRequest.md +30 -0
  18. data/docs/AttachmentsApi.md +335 -0
  19. data/docs/AvailableActions.md +22 -0
  20. data/docs/AvailableActionsApi.md +79 -0
  21. data/docs/CategoriesEnum.md +15 -0
  22. data/docs/CategoryEnum.md +15 -0
  23. data/docs/Comment.md +38 -0
  24. data/docs/CommentEndpointRequest.md +18 -0
  25. data/docs/CommentRequest.md +32 -0
  26. data/docs/CommentResponse.md +24 -0
  27. data/docs/CommentsApi.md +335 -0
  28. data/docs/Contact.md +34 -0
  29. data/docs/ContactsApi.md +181 -0
  30. data/docs/DataPassthroughRequest.md +32 -0
  31. data/docs/DebugModeLog.md +22 -0
  32. data/docs/DebugModelLogSummary.md +22 -0
  33. data/docs/DeleteAccountApi.md +78 -0
  34. data/docs/EncodingEnum.md +15 -0
  35. data/docs/EndUserDetailsRequest.md +30 -0
  36. data/docs/ErrorValidationProblem.md +24 -0
  37. data/docs/ForceResyncApi.md +79 -0
  38. data/docs/GenerateKeyApi.md +79 -0
  39. data/docs/GenerateRemoteKeyRequest.md +18 -0
  40. data/docs/Issue.md +30 -0
  41. data/docs/IssueStatusEnum.md +15 -0
  42. data/docs/IssuesApi.md +177 -0
  43. data/docs/LinkToken.md +22 -0
  44. data/docs/LinkTokenApi.md +79 -0
  45. data/docs/LinkedAccountStatus.md +20 -0
  46. data/docs/LinkedAccountsApi.md +105 -0
  47. data/docs/MetaResponse.md +24 -0
  48. data/docs/MethodEnum.md +15 -0
  49. data/docs/ModelOperation.md +24 -0
  50. data/docs/MultipartFormFieldRequest.md +26 -0
  51. data/docs/PaginatedAccountDetailsAndActionsList.md +22 -0
  52. data/docs/PaginatedAccountList.md +22 -0
  53. data/docs/PaginatedAttachmentList.md +22 -0
  54. data/docs/PaginatedCommentList.md +22 -0
  55. data/docs/PaginatedContactList.md +22 -0
  56. data/docs/PaginatedIssueList.md +22 -0
  57. data/docs/PaginatedProjectList.md +22 -0
  58. data/docs/PaginatedSyncStatusList.md +22 -0
  59. data/docs/PaginatedTagList.md +22 -0
  60. data/docs/PaginatedTeamList.md +22 -0
  61. data/docs/PaginatedTicketList.md +22 -0
  62. data/docs/PaginatedUserList.md +22 -0
  63. data/docs/PassthroughApi.md +81 -0
  64. data/docs/Project.md +28 -0
  65. data/docs/ProjectsApi.md +261 -0
  66. data/docs/RegenerateKeyApi.md +79 -0
  67. data/docs/RemoteData.md +20 -0
  68. data/docs/RemoteKey.md +20 -0
  69. data/docs/RemoteKeyForRegenerationRequest.md +18 -0
  70. data/docs/RemoteResponse.md +28 -0
  71. data/docs/RequestFormatEnum.md +15 -0
  72. data/docs/SyncStatus.md +28 -0
  73. data/docs/SyncStatusApi.md +85 -0
  74. data/docs/SyncStatusStatusEnum.md +15 -0
  75. data/docs/Tag.md +24 -0
  76. data/docs/TagsApi.md +177 -0
  77. data/docs/Team.md +28 -0
  78. data/docs/TeamsApi.md +177 -0
  79. data/docs/Ticket.md +52 -0
  80. data/docs/TicketEndpointRequest.md +18 -0
  81. data/docs/TicketRequest.md +46 -0
  82. data/docs/TicketResponse.md +24 -0
  83. data/docs/TicketStatusEnum.md +15 -0
  84. data/docs/TicketingAttachmentEndpointRequest.md +18 -0
  85. data/docs/TicketingAttachmentResponse.md +24 -0
  86. data/docs/TicketsApi.md +425 -0
  87. data/docs/User.md +32 -0
  88. data/docs/UsersApi.md +181 -0
  89. data/docs/ValidationProblemSource.md +18 -0
  90. data/docs/WarningValidationProblem.md +24 -0
  91. data/docs/WebhookReceiver.md +22 -0
  92. data/docs/WebhookReceiverRequest.md +22 -0
  93. data/docs/WebhookReceiversApi.md +153 -0
  94. data/git_push.sh +58 -0
  95. data/lib/merge_ticketing_client/api/account_details_api.rb +84 -0
  96. data/lib/merge_ticketing_client/api/account_token_api.rb +83 -0
  97. data/lib/merge_ticketing_client/api/accounts_api.rb +182 -0
  98. data/lib/merge_ticketing_client/api/attachments_api.rb +337 -0
  99. data/lib/merge_ticketing_client/api/available_actions_api.rb +84 -0
  100. data/lib/merge_ticketing_client/api/comments_api.rb +337 -0
  101. data/lib/merge_ticketing_client/api/contacts_api.rb +196 -0
  102. data/lib/merge_ticketing_client/api/delete_account_api.rb +82 -0
  103. data/lib/merge_ticketing_client/api/force_resync_api.rb +84 -0
  104. data/lib/merge_ticketing_client/api/generate_key_api.rb +85 -0
  105. data/lib/merge_ticketing_client/api/issues_api.rb +181 -0
  106. data/lib/merge_ticketing_client/api/link_token_api.rb +85 -0
  107. data/lib/merge_ticketing_client/api/linked_accounts_api.rb +120 -0
  108. data/lib/merge_ticketing_client/api/passthrough_api.rb +92 -0
  109. data/lib/merge_ticketing_client/api/projects_api.rb +266 -0
  110. data/lib/merge_ticketing_client/api/regenerate_key_api.rb +85 -0
  111. data/lib/merge_ticketing_client/api/sync_status_api.rb +90 -0
  112. data/lib/merge_ticketing_client/api/tags_api.rb +182 -0
  113. data/lib/merge_ticketing_client/api/teams_api.rb +182 -0
  114. data/lib/merge_ticketing_client/api/tickets_api.rb +438 -0
  115. data/lib/merge_ticketing_client/api/users_api.rb +196 -0
  116. data/lib/merge_ticketing_client/api/webhook_receivers_api.rb +154 -0
  117. data/lib/merge_ticketing_client/api_client.rb +390 -0
  118. data/lib/merge_ticketing_client/api_error.rb +57 -0
  119. data/lib/merge_ticketing_client/configuration.rb +281 -0
  120. data/lib/merge_ticketing_client/models/account.rb +276 -0
  121. data/lib/merge_ticketing_client/models/account_details.rb +302 -0
  122. data/lib/merge_ticketing_client/models/account_details_and_actions.rb +327 -0
  123. data/lib/merge_ticketing_client/models/account_details_and_actions_integration.rb +310 -0
  124. data/lib/merge_ticketing_client/models/account_details_and_actions_status_enum.rb +46 -0
  125. data/lib/merge_ticketing_client/models/account_integration.rb +303 -0
  126. data/lib/merge_ticketing_client/models/account_token.rb +237 -0
  127. data/lib/merge_ticketing_client/models/attachment.rb +315 -0
  128. data/lib/merge_ticketing_client/models/attachment_request.rb +285 -0
  129. data/lib/merge_ticketing_client/models/available_actions.rb +249 -0
  130. data/lib/merge_ticketing_client/models/categories_enum.rb +48 -0
  131. data/lib/merge_ticketing_client/models/category_enum.rb +48 -0
  132. data/lib/merge_ticketing_client/models/comment.rb +325 -0
  133. data/lib/merge_ticketing_client/models/comment_endpoint_request.rb +223 -0
  134. data/lib/merge_ticketing_client/models/comment_request.rb +295 -0
  135. data/lib/merge_ticketing_client/models/comment_response.rb +266 -0
  136. data/lib/merge_ticketing_client/models/contact.rb +307 -0
  137. data/lib/merge_ticketing_client/models/data_passthrough_request.rb +352 -0
  138. data/lib/merge_ticketing_client/models/debug_mode_log.rb +251 -0
  139. data/lib/merge_ticketing_client/models/debug_model_log_summary.rb +251 -0
  140. data/lib/merge_ticketing_client/models/encoding_enum.rb +46 -0
  141. data/lib/merge_ticketing_client/models/end_user_details_request.rb +430 -0
  142. data/lib/merge_ticketing_client/models/error_validation_problem.rb +260 -0
  143. data/lib/merge_ticketing_client/models/generate_remote_key_request.rb +243 -0
  144. data/lib/merge_ticketing_client/models/issue.rb +281 -0
  145. data/lib/merge_ticketing_client/models/issue_status_enum.rb +45 -0
  146. data/lib/merge_ticketing_client/models/link_token.rb +246 -0
  147. data/lib/merge_ticketing_client/models/linked_account_status.rb +237 -0
  148. data/lib/merge_ticketing_client/models/meta_response.rb +262 -0
  149. data/lib/merge_ticketing_client/models/method_enum.rb +50 -0
  150. data/lib/merge_ticketing_client/models/model_operation.rb +272 -0
  151. data/lib/merge_ticketing_client/models/multipart_form_field_request.rb +341 -0
  152. data/lib/merge_ticketing_client/models/paginated_account_details_and_actions_list.rb +240 -0
  153. data/lib/merge_ticketing_client/models/paginated_account_list.rb +240 -0
  154. data/lib/merge_ticketing_client/models/paginated_attachment_list.rb +240 -0
  155. data/lib/merge_ticketing_client/models/paginated_comment_list.rb +240 -0
  156. data/lib/merge_ticketing_client/models/paginated_contact_list.rb +240 -0
  157. data/lib/merge_ticketing_client/models/paginated_issue_list.rb +240 -0
  158. data/lib/merge_ticketing_client/models/paginated_project_list.rb +240 -0
  159. data/lib/merge_ticketing_client/models/paginated_sync_status_list.rb +240 -0
  160. data/lib/merge_ticketing_client/models/paginated_tag_list.rb +240 -0
  161. data/lib/merge_ticketing_client/models/paginated_team_list.rb +240 -0
  162. data/lib/merge_ticketing_client/models/paginated_ticket_list.rb +240 -0
  163. data/lib/merge_ticketing_client/models/paginated_user_list.rb +240 -0
  164. data/lib/merge_ticketing_client/models/project.rb +274 -0
  165. data/lib/merge_ticketing_client/models/remote_data.rb +234 -0
  166. data/lib/merge_ticketing_client/models/remote_key.rb +238 -0
  167. data/lib/merge_ticketing_client/models/remote_key_for_regeneration_request.rb +243 -0
  168. data/lib/merge_ticketing_client/models/remote_response.rb +290 -0
  169. data/lib/merge_ticketing_client/models/request_format_enum.rb +46 -0
  170. data/lib/merge_ticketing_client/models/sync_status.rb +294 -0
  171. data/lib/merge_ticketing_client/models/sync_status_status_enum.rb +48 -0
  172. data/lib/merge_ticketing_client/models/tag.rb +254 -0
  173. data/lib/merge_ticketing_client/models/team.rb +274 -0
  174. data/lib/merge_ticketing_client/models/ticket.rb +401 -0
  175. data/lib/merge_ticketing_client/models/ticket_endpoint_request.rb +223 -0
  176. data/lib/merge_ticketing_client/models/ticket_request.rb +371 -0
  177. data/lib/merge_ticketing_client/models/ticket_response.rb +266 -0
  178. data/lib/merge_ticketing_client/models/ticket_status_enum.rb +45 -0
  179. data/lib/merge_ticketing_client/models/ticketing_attachment_endpoint_request.rb +223 -0
  180. data/lib/merge_ticketing_client/models/ticketing_attachment_response.rb +266 -0
  181. data/lib/merge_ticketing_client/models/user.rb +296 -0
  182. data/lib/merge_ticketing_client/models/validation_problem_source.rb +223 -0
  183. data/lib/merge_ticketing_client/models/warning_validation_problem.rb +260 -0
  184. data/lib/merge_ticketing_client/models/webhook_receiver.rb +246 -0
  185. data/lib/merge_ticketing_client/models/webhook_receiver_request.rb +280 -0
  186. data/lib/merge_ticketing_client/version.rb +15 -0
  187. data/lib/merge_ticketing_client.rb +127 -0
  188. data/merge_ticketing_client.gemspec +38 -0
  189. data/pull_request_template.md +20 -0
  190. data/spec/api/account_details_api_spec.rb +46 -0
  191. data/spec/api/account_token_api_spec.rb +46 -0
  192. data/spec/api/accounts_api_spec.rb +68 -0
  193. data/spec/api/attachments_api_spec.rb +96 -0
  194. data/spec/api/available_actions_api_spec.rb +46 -0
  195. data/spec/api/comments_api_spec.rb +96 -0
  196. data/spec/api/contacts_api_spec.rb +70 -0
  197. data/spec/api/delete_account_api_spec.rb +46 -0
  198. data/spec/api/force_resync_api_spec.rb +46 -0
  199. data/spec/api/generate_key_api_spec.rb +46 -0
  200. data/spec/api/issues_api_spec.rb +69 -0
  201. data/spec/api/link_token_api_spec.rb +46 -0
  202. data/spec/api/linked_accounts_api_spec.rb +58 -0
  203. data/spec/api/passthrough_api_spec.rb +47 -0
  204. data/spec/api/projects_api_spec.rb +84 -0
  205. data/spec/api/regenerate_key_api_spec.rb +46 -0
  206. data/spec/api/sync_status_api_spec.rb +48 -0
  207. data/spec/api/tags_api_spec.rb +68 -0
  208. data/spec/api/teams_api_spec.rb +68 -0
  209. data/spec/api/tickets_api_spec.rb +115 -0
  210. data/spec/api/users_api_spec.rb +70 -0
  211. data/spec/api/webhook_receivers_api_spec.rb +58 -0
  212. data/spec/api_client_spec.rb +226 -0
  213. data/spec/configuration_spec.rb +42 -0
  214. data/spec/models/account_details_and_actions_integration_spec.rb +76 -0
  215. data/spec/models/account_details_and_actions_spec.rb +88 -0
  216. data/spec/models/account_details_and_actions_status_enum_spec.rb +28 -0
  217. data/spec/models/account_details_spec.rb +88 -0
  218. data/spec/models/account_integration_spec.rb +64 -0
  219. data/spec/models/account_spec.rb +64 -0
  220. data/spec/models/account_token_spec.rb +40 -0
  221. data/spec/models/attachment_request_spec.rb +70 -0
  222. data/spec/models/attachment_spec.rb +88 -0
  223. data/spec/models/available_actions_spec.rb +46 -0
  224. data/spec/models/categories_enum_spec.rb +28 -0
  225. data/spec/models/category_enum_spec.rb +28 -0
  226. data/spec/models/comment_endpoint_request_spec.rb +34 -0
  227. data/spec/models/comment_request_spec.rb +76 -0
  228. data/spec/models/comment_response_spec.rb +52 -0
  229. data/spec/models/comment_spec.rb +94 -0
  230. data/spec/models/contact_spec.rb +82 -0
  231. data/spec/models/data_passthrough_request_spec.rb +76 -0
  232. data/spec/models/debug_mode_log_spec.rb +46 -0
  233. data/spec/models/debug_model_log_summary_spec.rb +46 -0
  234. data/spec/models/encoding_enum_spec.rb +28 -0
  235. data/spec/models/end_user_details_request_spec.rb +70 -0
  236. data/spec/models/error_validation_problem_spec.rb +52 -0
  237. data/spec/models/generate_remote_key_request_spec.rb +34 -0
  238. data/spec/models/issue_spec.rb +70 -0
  239. data/spec/models/issue_status_enum_spec.rb +28 -0
  240. data/spec/models/link_token_spec.rb +46 -0
  241. data/spec/models/linked_account_status_spec.rb +40 -0
  242. data/spec/models/meta_response_spec.rb +52 -0
  243. data/spec/models/method_enum_spec.rb +28 -0
  244. data/spec/models/model_operation_spec.rb +52 -0
  245. data/spec/models/multipart_form_field_request_spec.rb +58 -0
  246. data/spec/models/paginated_account_details_and_actions_list_spec.rb +46 -0
  247. data/spec/models/paginated_account_list_spec.rb +46 -0
  248. data/spec/models/paginated_attachment_list_spec.rb +46 -0
  249. data/spec/models/paginated_comment_list_spec.rb +46 -0
  250. data/spec/models/paginated_contact_list_spec.rb +46 -0
  251. data/spec/models/paginated_issue_list_spec.rb +46 -0
  252. data/spec/models/paginated_project_list_spec.rb +46 -0
  253. data/spec/models/paginated_sync_status_list_spec.rb +46 -0
  254. data/spec/models/paginated_tag_list_spec.rb +46 -0
  255. data/spec/models/paginated_team_list_spec.rb +46 -0
  256. data/spec/models/paginated_ticket_list_spec.rb +46 -0
  257. data/spec/models/paginated_user_list_spec.rb +46 -0
  258. data/spec/models/project_spec.rb +64 -0
  259. data/spec/models/remote_data_spec.rb +40 -0
  260. data/spec/models/remote_key_for_regeneration_request_spec.rb +34 -0
  261. data/spec/models/remote_key_spec.rb +40 -0
  262. data/spec/models/remote_response_spec.rb +64 -0
  263. data/spec/models/request_format_enum_spec.rb +28 -0
  264. data/spec/models/sync_status_spec.rb +64 -0
  265. data/spec/models/sync_status_status_enum_spec.rb +28 -0
  266. data/spec/models/tag_spec.rb +52 -0
  267. data/spec/models/team_spec.rb +64 -0
  268. data/spec/models/ticket_endpoint_request_spec.rb +34 -0
  269. data/spec/models/ticket_request_spec.rb +118 -0
  270. data/spec/models/ticket_response_spec.rb +52 -0
  271. data/spec/models/ticket_spec.rb +136 -0
  272. data/spec/models/ticket_status_enum_spec.rb +28 -0
  273. data/spec/models/ticketing_attachment_endpoint_request_spec.rb +34 -0
  274. data/spec/models/ticketing_attachment_response_spec.rb +52 -0
  275. data/spec/models/user_spec.rb +76 -0
  276. data/spec/models/validation_problem_source_spec.rb +34 -0
  277. data/spec/models/warning_validation_problem_spec.rb +52 -0
  278. data/spec/models/webhook_receiver_request_spec.rb +46 -0
  279. data/spec/models/webhook_receiver_spec.rb +46 -0
  280. data/spec/spec_helper.rb +111 -0
  281. metadata +454 -0
@@ -0,0 +1,32 @@
1
+ # MergeTicketingClient::DataPassthroughRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **method** | [**MethodEnum**](MethodEnum.md) | | |
8
+ | **path** | **String** | | |
9
+ | **base_url_override** | **String** | | [optional] |
10
+ | **data** | **String** | | [optional] |
11
+ | **multipart_form_data** | [**Array<MultipartFormFieldRequest>**](MultipartFormFieldRequest.md) | Pass an array of `MultipartFormField` objects in here instead of using the `data` param if `request_format` is set to `MULTIPART`. | [optional] |
12
+ | **headers** | [**Hash<String, AnyType>**](AnyType.md) | The headers to use for the request (Merge will handle the account's authorization headers). `Content-Type` header is required for passthrough. Choose content type corresponding to expected format of receiving server. | [optional] |
13
+ | **request_format** | [**RequestFormatEnum**](RequestFormatEnum.md) | | [optional] |
14
+ | **normalize_response** | **Boolean** | | [optional] |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'merge_ticketing_client'
20
+
21
+ instance = MergeTicketingClient::DataPassthroughRequest.new(
22
+ method: POST,
23
+ path: /scooters,
24
+ base_url_override: null,
25
+ data: {"company": "Lime", "model": "Gen 2.5"},
26
+ multipart_form_data: null,
27
+ headers: {"EXTRA-HEADER":"value"},
28
+ request_format: JSON,
29
+ normalize_response: null
30
+ )
31
+ ```
32
+
@@ -0,0 +1,22 @@
1
+ # MergeTicketingClient::DebugModeLog
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **log_id** | **String** | | |
8
+ | **dashboard_view** | **String** | | |
9
+ | **log_summary** | [**DebugModelLogSummary**](DebugModelLogSummary.md) | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'merge_ticketing_client'
15
+
16
+ instance = MergeTicketingClient::DebugModeLog.new(
17
+ log_id: 99433219-8017-4acd-bb3c-ceb23d663832,
18
+ dashboard_view: https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832,
19
+ log_summary: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # MergeTicketingClient::DebugModelLogSummary
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **url** | **String** | | |
8
+ | **method** | **String** | | |
9
+ | **status_code** | **Integer** | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'merge_ticketing_client'
15
+
16
+ instance = MergeTicketingClient::DebugModelLogSummary.new(
17
+ url: https://harvest.greenhouse.io/v1/candidates/,
18
+ method: POST,
19
+ status_code: 200
20
+ )
21
+ ```
22
+
@@ -0,0 +1,78 @@
1
+ # MergeTicketingClient::DeleteAccountApi
2
+
3
+ All URIs are relative to *https://api.merge.dev/api/ticketing/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**delete_account_create**](DeleteAccountApi.md#delete_account_create) | **POST** /delete-account | |
8
+
9
+
10
+ ## delete_account_create
11
+
12
+ > delete_account_create(x_account_token)
13
+
14
+
15
+
16
+ Delete a linked 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::DeleteAccountApi.new
32
+ x_account_token = 'x_account_token_example' # String | Token identifying the end user.
33
+
34
+ begin
35
+
36
+ api_instance.delete_account_create(x_account_token)
37
+ rescue MergeTicketingClient::ApiError => e
38
+ puts "Error when calling DeleteAccountApi->delete_account_create: #{e}"
39
+ end
40
+ ```
41
+
42
+ #### Using the delete_account_create_with_http_info variant
43
+
44
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
45
+
46
+ > <Array(nil, Integer, Hash)> delete_account_create_with_http_info(x_account_token)
47
+
48
+ ```ruby
49
+ begin
50
+
51
+ data, status_code, headers = api_instance.delete_account_create_with_http_info(x_account_token)
52
+ p status_code # => 2xx
53
+ p headers # => { ... }
54
+ p data # => nil
55
+ rescue MergeTicketingClient::ApiError => e
56
+ puts "Error when calling DeleteAccountApi->delete_account_create_with_http_info: #{e}"
57
+ end
58
+ ```
59
+
60
+ ### Parameters
61
+
62
+ | Name | Type | Description | Notes |
63
+ | ---- | ---- | ----------- | ----- |
64
+ | **x_account_token** | **String** | Token identifying the end user. | |
65
+
66
+ ### Return type
67
+
68
+ nil (empty response body)
69
+
70
+ ### Authorization
71
+
72
+ [tokenAuth](../README.md#tokenAuth)
73
+
74
+ ### HTTP request headers
75
+
76
+ - **Content-Type**: Not defined
77
+ - **Accept**: Not defined
78
+
@@ -0,0 +1,15 @@
1
+ # MergeTicketingClient::EncodingEnum
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::EncodingEnum.new()
14
+ ```
15
+
@@ -0,0 +1,30 @@
1
+ # MergeTicketingClient::EndUserDetailsRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **end_user_email_address** | **String** | Your end user&#39;s email address. | |
8
+ | **end_user_organization_name** | **String** | Your end user&#39;s organization. | |
9
+ | **end_user_origin_id** | **String** | Unique ID for your end user. | |
10
+ | **categories** | [**Array&lt;CategoriesEnum&gt;**](CategoriesEnum.md) | The integration categories to show in Merge Link. | |
11
+ | **integration** | **String** | The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://www.merge.dev/docs/basics/integration-metadata/. | [optional] |
12
+ | **link_expiry_mins** | **Integer** | An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. | [optional][default to 30] |
13
+ | **should_create_magic_link_url** | **Boolean** | Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/product/integrations,-fast.-say-hello-to-magic-link/. | [optional][default to false] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'merge_ticketing_client'
19
+
20
+ instance = MergeTicketingClient::EndUserDetailsRequest.new(
21
+ end_user_email_address: null,
22
+ end_user_organization_name: null,
23
+ end_user_origin_id: null,
24
+ categories: null,
25
+ integration: null,
26
+ link_expiry_mins: null,
27
+ should_create_magic_link_url: null
28
+ )
29
+ ```
30
+
@@ -0,0 +1,24 @@
1
+ # MergeTicketingClient::ErrorValidationProblem
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **source** | [**ValidationProblemSource**](ValidationProblemSource.md) | | [optional] |
8
+ | **title** | **String** | | |
9
+ | **detail** | **String** | | |
10
+ | **problem_type** | **String** | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'merge_ticketing_client'
16
+
17
+ instance = MergeTicketingClient::ErrorValidationProblem.new(
18
+ source: null,
19
+ title: Missing Required Field,
20
+ detail: custom_fields is a required field on model.,
21
+ problem_type: MISSING_REQUIRED_FIELD
22
+ )
23
+ ```
24
+
@@ -0,0 +1,79 @@
1
+ # MergeTicketingClient::ForceResyncApi
2
+
3
+ All URIs are relative to *https://api.merge.dev/api/ticketing/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**sync_status_resync_create**](ForceResyncApi.md#sync_status_resync_create) | **POST** /sync-status/resync | |
8
+
9
+
10
+ ## sync_status_resync_create
11
+
12
+ > <Array<SyncStatus>> sync_status_resync_create(x_account_token)
13
+
14
+
15
+
16
+ Force re-sync of all models. This is only available for organizations on Merge's Grow and Expand plans.
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::ForceResyncApi.new
32
+ x_account_token = 'x_account_token_example' # String | Token identifying the end user.
33
+
34
+ begin
35
+
36
+ result = api_instance.sync_status_resync_create(x_account_token)
37
+ p result
38
+ rescue MergeTicketingClient::ApiError => e
39
+ puts "Error when calling ForceResyncApi->sync_status_resync_create: #{e}"
40
+ end
41
+ ```
42
+
43
+ #### Using the sync_status_resync_create_with_http_info variant
44
+
45
+ This returns an Array which contains the response data, status code and headers.
46
+
47
+ > <Array(<Array<SyncStatus>>, Integer, Hash)> sync_status_resync_create_with_http_info(x_account_token)
48
+
49
+ ```ruby
50
+ begin
51
+
52
+ data, status_code, headers = api_instance.sync_status_resync_create_with_http_info(x_account_token)
53
+ p status_code # => 2xx
54
+ p headers # => { ... }
55
+ p data # => <Array<SyncStatus>>
56
+ rescue MergeTicketingClient::ApiError => e
57
+ puts "Error when calling ForceResyncApi->sync_status_resync_create_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
+ [**Array&lt;SyncStatus&gt;**](SyncStatus.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,79 @@
1
+ # MergeTicketingClient::GenerateKeyApi
2
+
3
+ All URIs are relative to *https://api.merge.dev/api/ticketing/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**generate_key_create**](GenerateKeyApi.md#generate_key_create) | **POST** /generate-key | |
8
+
9
+
10
+ ## generate_key_create
11
+
12
+ > <RemoteKey> generate_key_create(generate_remote_key_request)
13
+
14
+
15
+
16
+ Create a remote key.
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::GenerateKeyApi.new
32
+ generate_remote_key_request = MergeTicketingClient::GenerateRemoteKeyRequest.new({name: 'Remote Deployment Key 1'}) # GenerateRemoteKeyRequest |
33
+
34
+ begin
35
+
36
+ result = api_instance.generate_key_create(generate_remote_key_request)
37
+ p result
38
+ rescue MergeTicketingClient::ApiError => e
39
+ puts "Error when calling GenerateKeyApi->generate_key_create: #{e}"
40
+ end
41
+ ```
42
+
43
+ #### Using the generate_key_create_with_http_info variant
44
+
45
+ This returns an Array which contains the response data, status code and headers.
46
+
47
+ > <Array(<RemoteKey>, Integer, Hash)> generate_key_create_with_http_info(generate_remote_key_request)
48
+
49
+ ```ruby
50
+ begin
51
+
52
+ data, status_code, headers = api_instance.generate_key_create_with_http_info(generate_remote_key_request)
53
+ p status_code # => 2xx
54
+ p headers # => { ... }
55
+ p data # => <RemoteKey>
56
+ rescue MergeTicketingClient::ApiError => e
57
+ puts "Error when calling GenerateKeyApi->generate_key_create_with_http_info: #{e}"
58
+ end
59
+ ```
60
+
61
+ ### Parameters
62
+
63
+ | Name | Type | Description | Notes |
64
+ | ---- | ---- | ----------- | ----- |
65
+ | **generate_remote_key_request** | [**GenerateRemoteKeyRequest**](GenerateRemoteKeyRequest.md) | | |
66
+
67
+ ### Return type
68
+
69
+ [**RemoteKey**](RemoteKey.md)
70
+
71
+ ### Authorization
72
+
73
+ [tokenAuth](../README.md#tokenAuth)
74
+
75
+ ### HTTP request headers
76
+
77
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
78
+ - **Accept**: application/json
79
+
@@ -0,0 +1,18 @@
1
+ # MergeTicketingClient::GenerateRemoteKeyRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'merge_ticketing_client'
13
+
14
+ instance = MergeTicketingClient::GenerateRemoteKeyRequest.new(
15
+ name: Remote Deployment Key 1
16
+ )
17
+ ```
18
+
data/docs/Issue.md ADDED
@@ -0,0 +1,30 @@
1
+ # MergeTicketingClient::Issue
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional][readonly] |
8
+ | **status** | [**IssueStatusEnum**](IssueStatusEnum.md) | | [optional] |
9
+ | **error_description** | **String** | | |
10
+ | **end_user** | [**Hash&lt;String, AnyType&gt;**](AnyType.md) | | [optional][readonly] |
11
+ | **first_incident_time** | **Time** | | [optional] |
12
+ | **last_incident_time** | **Time** | | [optional] |
13
+ | **is_muted** | **Boolean** | | [optional][readonly] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'merge_ticketing_client'
19
+
20
+ instance = MergeTicketingClient::Issue.new(
21
+ id: null,
22
+ status: null,
23
+ error_description: null,
24
+ end_user: null,
25
+ first_incident_time: null,
26
+ last_incident_time: null,
27
+ is_muted: null
28
+ )
29
+ ```
30
+
@@ -0,0 +1,15 @@
1
+ # MergeTicketingClient::IssueStatusEnum
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::IssueStatusEnum.new()
14
+ ```
15
+
data/docs/IssuesApi.md ADDED
@@ -0,0 +1,177 @@
1
+ # MergeTicketingClient::IssuesApi
2
+
3
+ All URIs are relative to *https://api.merge.dev/api/ticketing/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**issues_list**](IssuesApi.md#issues_list) | **GET** /issues | |
8
+ | [**issues_retrieve**](IssuesApi.md#issues_retrieve) | **GET** /issues/{id} | |
9
+
10
+
11
+ ## issues_list
12
+
13
+ > <PaginatedIssueList> issues_list(opts)
14
+
15
+
16
+
17
+ Gets issues.
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::IssuesApi.new
33
+ opts = {
34
+ account_token: 'account_token_example', # String |
35
+ cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
36
+ end_date: 'end_date_example', # String | If included, will only include issues whose most recent action occurred before this time
37
+ end_user_organization_name: 'end_user_organization_name_example', # String |
38
+ first_incident_time_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return issues whose first incident time was after this datetime.
39
+ first_incident_time_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return issues whose first incident time was before this datetime.
40
+ include_muted: 'include_muted_example', # String | If True, will include muted issues
41
+ integration_name: 'integration_name_example', # String |
42
+ last_incident_time_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return issues whose first incident time was after this datetime.
43
+ last_incident_time_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return issues whose first incident time was before this datetime.
44
+ page_size: 56, # Integer | Number of results to return per page.
45
+ start_date: 'start_date_example', # String | If included, will only include issues whose most recent action occurred after this time
46
+ status: 'ONGOING' # String |
47
+ }
48
+
49
+ begin
50
+
51
+ result = api_instance.issues_list(opts)
52
+ p result
53
+ rescue MergeTicketingClient::ApiError => e
54
+ puts "Error when calling IssuesApi->issues_list: #{e}"
55
+ end
56
+ ```
57
+
58
+ #### Using the issues_list_with_http_info variant
59
+
60
+ This returns an Array which contains the response data, status code and headers.
61
+
62
+ > <Array(<PaginatedIssueList>, Integer, Hash)> issues_list_with_http_info(opts)
63
+
64
+ ```ruby
65
+ begin
66
+
67
+ data, status_code, headers = api_instance.issues_list_with_http_info(opts)
68
+ p status_code # => 2xx
69
+ p headers # => { ... }
70
+ p data # => <PaginatedIssueList>
71
+ rescue MergeTicketingClient::ApiError => e
72
+ puts "Error when calling IssuesApi->issues_list_with_http_info: #{e}"
73
+ end
74
+ ```
75
+
76
+ ### Parameters
77
+
78
+ | Name | Type | Description | Notes |
79
+ | ---- | ---- | ----------- | ----- |
80
+ | **account_token** | **String** | | [optional] |
81
+ | **cursor** | **String** | The pagination cursor value. | [optional] |
82
+ | **end_date** | **String** | If included, will only include issues whose most recent action occurred before this time | [optional] |
83
+ | **end_user_organization_name** | **String** | | [optional] |
84
+ | **first_incident_time_after** | **Time** | If provided, will only return issues whose first incident time was after this datetime. | [optional] |
85
+ | **first_incident_time_before** | **Time** | If provided, will only return issues whose first incident time was before this datetime. | [optional] |
86
+ | **include_muted** | **String** | If True, will include muted issues | [optional] |
87
+ | **integration_name** | **String** | | [optional] |
88
+ | **last_incident_time_after** | **Time** | If provided, will only return issues whose first incident time was after this datetime. | [optional] |
89
+ | **last_incident_time_before** | **Time** | If provided, will only return issues whose first incident time was before this datetime. | [optional] |
90
+ | **page_size** | **Integer** | Number of results to return per page. | [optional] |
91
+ | **start_date** | **String** | If included, will only include issues whose most recent action occurred after this time | [optional] |
92
+ | **status** | **String** | | [optional] |
93
+
94
+ ### Return type
95
+
96
+ [**PaginatedIssueList**](PaginatedIssueList.md)
97
+
98
+ ### Authorization
99
+
100
+ [tokenAuth](../README.md#tokenAuth)
101
+
102
+ ### HTTP request headers
103
+
104
+ - **Content-Type**: Not defined
105
+ - **Accept**: application/json
106
+
107
+
108
+ ## issues_retrieve
109
+
110
+ > <Issue> issues_retrieve(id)
111
+
112
+
113
+
114
+ Get a specific issue.
115
+
116
+ ### Examples
117
+
118
+ ```ruby
119
+ require 'time'
120
+ require 'merge_ticketing_client'
121
+ # setup authorization
122
+ MergeTicketingClient.configure do |config|
123
+ # Configure API key authorization: tokenAuth
124
+ config.api_key['tokenAuth'] = 'YOUR API KEY'
125
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
126
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
127
+ end
128
+
129
+ api_instance = MergeTicketingClient::IssuesApi.new
130
+ id = TODO # String |
131
+
132
+ begin
133
+
134
+ result = api_instance.issues_retrieve(id)
135
+ p result
136
+ rescue MergeTicketingClient::ApiError => e
137
+ puts "Error when calling IssuesApi->issues_retrieve: #{e}"
138
+ end
139
+ ```
140
+
141
+ #### Using the issues_retrieve_with_http_info variant
142
+
143
+ This returns an Array which contains the response data, status code and headers.
144
+
145
+ > <Array(<Issue>, Integer, Hash)> issues_retrieve_with_http_info(id)
146
+
147
+ ```ruby
148
+ begin
149
+
150
+ data, status_code, headers = api_instance.issues_retrieve_with_http_info(id)
151
+ p status_code # => 2xx
152
+ p headers # => { ... }
153
+ p data # => <Issue>
154
+ rescue MergeTicketingClient::ApiError => e
155
+ puts "Error when calling IssuesApi->issues_retrieve_with_http_info: #{e}"
156
+ end
157
+ ```
158
+
159
+ ### Parameters
160
+
161
+ | Name | Type | Description | Notes |
162
+ | ---- | ---- | ----------- | ----- |
163
+ | **id** | [**String**](.md) | | |
164
+
165
+ ### Return type
166
+
167
+ [**Issue**](Issue.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/LinkToken.md ADDED
@@ -0,0 +1,22 @@
1
+ # MergeTicketingClient::LinkToken
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **link_token** | **String** | | |
8
+ | **integration_name** | **String** | | |
9
+ | **magic_link_url** | **String** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'merge_ticketing_client'
15
+
16
+ instance = MergeTicketingClient::LinkToken.new(
17
+ link_token: necdP7FtdASl1fQwm62be2_dM4wBG8_GactqoUV0,
18
+ integration_name: Lever,
19
+ magic_link_url: https://link.merge.dev/asdfjkl12345jsndfgi2i83n
20
+ )
21
+ ```
22
+