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
@@ -0,0 +1,84 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge Ticketing API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple Ticketing platforms.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: hello@merge.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module MergeTicketingClient
|
16
|
+
class ForceResyncApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Force re-sync of all models. This is only available for organizations on Merge's Grow and Expand plans.
|
23
|
+
# @param x_account_token [String] Token identifying the end user.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [Array<SyncStatus>]
|
26
|
+
def sync_status_resync_create(x_account_token, opts = {})
|
27
|
+
data, _status_code, _headers = sync_status_resync_create_with_http_info(x_account_token, opts)
|
28
|
+
data
|
29
|
+
end
|
30
|
+
|
31
|
+
# Force re-sync of all models. This is only available for organizations on Merge's Grow and Expand plans.
|
32
|
+
# @param x_account_token [String] Token identifying the end user.
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(Array<SyncStatus>, Integer, Hash)>] Array<SyncStatus> data, response status code and response headers
|
35
|
+
def sync_status_resync_create_with_http_info(x_account_token, opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: ForceResyncApi.sync_status_resync_create ...'
|
38
|
+
end
|
39
|
+
# verify the required parameter 'x_account_token' is set
|
40
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling ForceResyncApi.sync_status_resync_create"
|
42
|
+
end
|
43
|
+
# resource path
|
44
|
+
local_var_path = '/sync-status/resync'
|
45
|
+
|
46
|
+
# query parameters
|
47
|
+
query_params = opts[:query_params] || {}
|
48
|
+
|
49
|
+
# header parameters
|
50
|
+
header_params = opts[:header_params] || {}
|
51
|
+
# HTTP header 'Accept' (if needed)
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
|
+
header_params[:'X-Account-Token'] = x_account_token
|
54
|
+
|
55
|
+
# form parameters
|
56
|
+
form_params = opts[:form_params] || {}
|
57
|
+
|
58
|
+
# http body (model)
|
59
|
+
post_body = opts[:debug_body]
|
60
|
+
|
61
|
+
# return_type
|
62
|
+
return_type = opts[:debug_return_type] || 'Array<SyncStatus>'
|
63
|
+
|
64
|
+
# auth_names
|
65
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
66
|
+
|
67
|
+
new_options = opts.merge(
|
68
|
+
:operation => :"ForceResyncApi.sync_status_resync_create",
|
69
|
+
:header_params => header_params,
|
70
|
+
:query_params => query_params,
|
71
|
+
:form_params => form_params,
|
72
|
+
:body => post_body,
|
73
|
+
:auth_names => auth_names,
|
74
|
+
:return_type => return_type
|
75
|
+
)
|
76
|
+
|
77
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
78
|
+
if @api_client.config.debugging
|
79
|
+
@api_client.config.logger.debug "API called: ForceResyncApi#sync_status_resync_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
80
|
+
end
|
81
|
+
return data, status_code, headers
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge Ticketing API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple Ticketing platforms.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: hello@merge.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module MergeTicketingClient
|
16
|
+
class GenerateKeyApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create a remote key.
|
23
|
+
# @param generate_remote_key_request [GenerateRemoteKeyRequest]
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [RemoteKey]
|
26
|
+
def generate_key_create(generate_remote_key_request, opts = {})
|
27
|
+
data, _status_code, _headers = generate_key_create_with_http_info(generate_remote_key_request, opts)
|
28
|
+
data
|
29
|
+
end
|
30
|
+
|
31
|
+
# Create a remote key.
|
32
|
+
# @param generate_remote_key_request [GenerateRemoteKeyRequest]
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(RemoteKey, Integer, Hash)>] RemoteKey data, response status code and response headers
|
35
|
+
def generate_key_create_with_http_info(generate_remote_key_request, opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: GenerateKeyApi.generate_key_create ...'
|
38
|
+
end
|
39
|
+
# verify the required parameter 'generate_remote_key_request' is set
|
40
|
+
if @api_client.config.client_side_validation && generate_remote_key_request.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'generate_remote_key_request' when calling GenerateKeyApi.generate_key_create"
|
42
|
+
end
|
43
|
+
# resource path
|
44
|
+
local_var_path = '/generate-key'
|
45
|
+
|
46
|
+
# query parameters
|
47
|
+
query_params = opts[:query_params] || {}
|
48
|
+
|
49
|
+
# header parameters
|
50
|
+
header_params = opts[:header_params] || {}
|
51
|
+
# HTTP header 'Accept' (if needed)
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
|
+
# HTTP header 'Content-Type'
|
54
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
55
|
+
|
56
|
+
# form parameters
|
57
|
+
form_params = opts[:form_params] || {}
|
58
|
+
|
59
|
+
# http body (model)
|
60
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(generate_remote_key_request)
|
61
|
+
|
62
|
+
# return_type
|
63
|
+
return_type = opts[:debug_return_type] || 'RemoteKey'
|
64
|
+
|
65
|
+
# auth_names
|
66
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
67
|
+
|
68
|
+
new_options = opts.merge(
|
69
|
+
:operation => :"GenerateKeyApi.generate_key_create",
|
70
|
+
:header_params => header_params,
|
71
|
+
:query_params => query_params,
|
72
|
+
:form_params => form_params,
|
73
|
+
:body => post_body,
|
74
|
+
:auth_names => auth_names,
|
75
|
+
:return_type => return_type
|
76
|
+
)
|
77
|
+
|
78
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
79
|
+
if @api_client.config.debugging
|
80
|
+
@api_client.config.logger.debug "API called: GenerateKeyApi#generate_key_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
81
|
+
end
|
82
|
+
return data, status_code, headers
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,181 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge Ticketing API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple Ticketing platforms.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: hello@merge.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module MergeTicketingClient
|
16
|
+
class IssuesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Gets issues.
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @option opts [String] :account_token
|
25
|
+
# @option opts [String] :cursor The pagination cursor value.
|
26
|
+
# @option opts [String] :end_date If included, will only include issues whose most recent action occurred before this time
|
27
|
+
# @option opts [String] :end_user_organization_name
|
28
|
+
# @option opts [Time] :first_incident_time_after If provided, will only return issues whose first incident time was after this datetime.
|
29
|
+
# @option opts [Time] :first_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
|
30
|
+
# @option opts [String] :include_muted If True, will include muted issues
|
31
|
+
# @option opts [String] :integration_name
|
32
|
+
# @option opts [Time] :last_incident_time_after If provided, will only return issues whose first incident time was after this datetime.
|
33
|
+
# @option opts [Time] :last_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
|
34
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
35
|
+
# @option opts [String] :start_date If included, will only include issues whose most recent action occurred after this time
|
36
|
+
# @option opts [String] :status
|
37
|
+
# @return [PaginatedIssueList]
|
38
|
+
def issues_list(opts = {})
|
39
|
+
data, _status_code, _headers = issues_list_with_http_info(opts)
|
40
|
+
data
|
41
|
+
end
|
42
|
+
|
43
|
+
# Gets issues.
|
44
|
+
# @param [Hash] opts the optional parameters
|
45
|
+
# @option opts [String] :account_token
|
46
|
+
# @option opts [String] :cursor The pagination cursor value.
|
47
|
+
# @option opts [String] :end_date If included, will only include issues whose most recent action occurred before this time
|
48
|
+
# @option opts [String] :end_user_organization_name
|
49
|
+
# @option opts [Time] :first_incident_time_after If provided, will only return issues whose first incident time was after this datetime.
|
50
|
+
# @option opts [Time] :first_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
|
51
|
+
# @option opts [String] :include_muted If True, will include muted issues
|
52
|
+
# @option opts [String] :integration_name
|
53
|
+
# @option opts [Time] :last_incident_time_after If provided, will only return issues whose first incident time was after this datetime.
|
54
|
+
# @option opts [Time] :last_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
|
55
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
56
|
+
# @option opts [String] :start_date If included, will only include issues whose most recent action occurred after this time
|
57
|
+
# @option opts [String] :status
|
58
|
+
# @return [Array<(PaginatedIssueList, Integer, Hash)>] PaginatedIssueList data, response status code and response headers
|
59
|
+
def issues_list_with_http_info(opts = {})
|
60
|
+
if @api_client.config.debugging
|
61
|
+
@api_client.config.logger.debug 'Calling API: IssuesApi.issues_list ...'
|
62
|
+
end
|
63
|
+
allowable_values = ["ONGOING", "RESOLVED"]
|
64
|
+
if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
|
65
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
66
|
+
end
|
67
|
+
# resource path
|
68
|
+
local_var_path = '/issues'
|
69
|
+
|
70
|
+
# query parameters
|
71
|
+
query_params = opts[:query_params] || {}
|
72
|
+
query_params[:'account_token'] = opts[:'account_token'] if !opts[:'account_token'].nil?
|
73
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
74
|
+
query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
|
75
|
+
query_params[:'end_user_organization_name'] = opts[:'end_user_organization_name'] if !opts[:'end_user_organization_name'].nil?
|
76
|
+
query_params[:'first_incident_time_after'] = opts[:'first_incident_time_after'] if !opts[:'first_incident_time_after'].nil?
|
77
|
+
query_params[:'first_incident_time_before'] = opts[:'first_incident_time_before'] if !opts[:'first_incident_time_before'].nil?
|
78
|
+
query_params[:'include_muted'] = opts[:'include_muted'] if !opts[:'include_muted'].nil?
|
79
|
+
query_params[:'integration_name'] = opts[:'integration_name'] if !opts[:'integration_name'].nil?
|
80
|
+
query_params[:'last_incident_time_after'] = opts[:'last_incident_time_after'] if !opts[:'last_incident_time_after'].nil?
|
81
|
+
query_params[:'last_incident_time_before'] = opts[:'last_incident_time_before'] if !opts[:'last_incident_time_before'].nil?
|
82
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
83
|
+
query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
|
84
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
85
|
+
|
86
|
+
# header parameters
|
87
|
+
header_params = opts[:header_params] || {}
|
88
|
+
# HTTP header 'Accept' (if needed)
|
89
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
90
|
+
|
91
|
+
# form parameters
|
92
|
+
form_params = opts[:form_params] || {}
|
93
|
+
|
94
|
+
# http body (model)
|
95
|
+
post_body = opts[:debug_body]
|
96
|
+
|
97
|
+
# return_type
|
98
|
+
return_type = opts[:debug_return_type] || 'PaginatedIssueList'
|
99
|
+
|
100
|
+
# auth_names
|
101
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
102
|
+
|
103
|
+
new_options = opts.merge(
|
104
|
+
:operation => :"IssuesApi.issues_list",
|
105
|
+
:header_params => header_params,
|
106
|
+
:query_params => query_params,
|
107
|
+
:form_params => form_params,
|
108
|
+
:body => post_body,
|
109
|
+
:auth_names => auth_names,
|
110
|
+
:return_type => return_type
|
111
|
+
)
|
112
|
+
|
113
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
114
|
+
if @api_client.config.debugging
|
115
|
+
@api_client.config.logger.debug "API called: IssuesApi#issues_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
116
|
+
end
|
117
|
+
return data, status_code, headers
|
118
|
+
end
|
119
|
+
|
120
|
+
# Get a specific issue.
|
121
|
+
# @param id [String]
|
122
|
+
# @param [Hash] opts the optional parameters
|
123
|
+
# @return [Issue]
|
124
|
+
def issues_retrieve(id, opts = {})
|
125
|
+
data, _status_code, _headers = issues_retrieve_with_http_info(id, opts)
|
126
|
+
data
|
127
|
+
end
|
128
|
+
|
129
|
+
# Get a specific issue.
|
130
|
+
# @param id [String]
|
131
|
+
# @param [Hash] opts the optional parameters
|
132
|
+
# @return [Array<(Issue, Integer, Hash)>] Issue data, response status code and response headers
|
133
|
+
def issues_retrieve_with_http_info(id, opts = {})
|
134
|
+
if @api_client.config.debugging
|
135
|
+
@api_client.config.logger.debug 'Calling API: IssuesApi.issues_retrieve ...'
|
136
|
+
end
|
137
|
+
# verify the required parameter 'id' is set
|
138
|
+
if @api_client.config.client_side_validation && id.nil?
|
139
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling IssuesApi.issues_retrieve"
|
140
|
+
end
|
141
|
+
# resource path
|
142
|
+
local_var_path = '/issues/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
143
|
+
|
144
|
+
# query parameters
|
145
|
+
query_params = opts[:query_params] || {}
|
146
|
+
|
147
|
+
# header parameters
|
148
|
+
header_params = opts[:header_params] || {}
|
149
|
+
# HTTP header 'Accept' (if needed)
|
150
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
151
|
+
|
152
|
+
# form parameters
|
153
|
+
form_params = opts[:form_params] || {}
|
154
|
+
|
155
|
+
# http body (model)
|
156
|
+
post_body = opts[:debug_body]
|
157
|
+
|
158
|
+
# return_type
|
159
|
+
return_type = opts[:debug_return_type] || 'Issue'
|
160
|
+
|
161
|
+
# auth_names
|
162
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
163
|
+
|
164
|
+
new_options = opts.merge(
|
165
|
+
:operation => :"IssuesApi.issues_retrieve",
|
166
|
+
:header_params => header_params,
|
167
|
+
:query_params => query_params,
|
168
|
+
:form_params => form_params,
|
169
|
+
:body => post_body,
|
170
|
+
:auth_names => auth_names,
|
171
|
+
:return_type => return_type
|
172
|
+
)
|
173
|
+
|
174
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
175
|
+
if @api_client.config.debugging
|
176
|
+
@api_client.config.logger.debug "API called: IssuesApi#issues_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
177
|
+
end
|
178
|
+
return data, status_code, headers
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge Ticketing API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple Ticketing platforms.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: hello@merge.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module MergeTicketingClient
|
16
|
+
class LinkTokenApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Creates a link token to be used when linking a new end user.
|
23
|
+
# @param end_user_details_request [EndUserDetailsRequest]
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [LinkToken]
|
26
|
+
def link_token_create(end_user_details_request, opts = {})
|
27
|
+
data, _status_code, _headers = link_token_create_with_http_info(end_user_details_request, opts)
|
28
|
+
data
|
29
|
+
end
|
30
|
+
|
31
|
+
# Creates a link token to be used when linking a new end user.
|
32
|
+
# @param end_user_details_request [EndUserDetailsRequest]
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(LinkToken, Integer, Hash)>] LinkToken data, response status code and response headers
|
35
|
+
def link_token_create_with_http_info(end_user_details_request, opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: LinkTokenApi.link_token_create ...'
|
38
|
+
end
|
39
|
+
# verify the required parameter 'end_user_details_request' is set
|
40
|
+
if @api_client.config.client_side_validation && end_user_details_request.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'end_user_details_request' when calling LinkTokenApi.link_token_create"
|
42
|
+
end
|
43
|
+
# resource path
|
44
|
+
local_var_path = '/link-token'
|
45
|
+
|
46
|
+
# query parameters
|
47
|
+
query_params = opts[:query_params] || {}
|
48
|
+
|
49
|
+
# header parameters
|
50
|
+
header_params = opts[:header_params] || {}
|
51
|
+
# HTTP header 'Accept' (if needed)
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
|
+
# HTTP header 'Content-Type'
|
54
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
55
|
+
|
56
|
+
# form parameters
|
57
|
+
form_params = opts[:form_params] || {}
|
58
|
+
|
59
|
+
# http body (model)
|
60
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(end_user_details_request)
|
61
|
+
|
62
|
+
# return_type
|
63
|
+
return_type = opts[:debug_return_type] || 'LinkToken'
|
64
|
+
|
65
|
+
# auth_names
|
66
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
67
|
+
|
68
|
+
new_options = opts.merge(
|
69
|
+
:operation => :"LinkTokenApi.link_token_create",
|
70
|
+
:header_params => header_params,
|
71
|
+
:query_params => query_params,
|
72
|
+
:form_params => form_params,
|
73
|
+
:body => post_body,
|
74
|
+
:auth_names => auth_names,
|
75
|
+
:return_type => return_type
|
76
|
+
)
|
77
|
+
|
78
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
79
|
+
if @api_client.config.debugging
|
80
|
+
@api_client.config.logger.debug "API called: LinkTokenApi#link_token_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
81
|
+
end
|
82
|
+
return data, status_code, headers
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,120 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge Ticketing API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple Ticketing platforms.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: hello@merge.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module MergeTicketingClient
|
16
|
+
class LinkedAccountsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# List linked accounts for your organization.
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @option opts [String] :category
|
25
|
+
# @option opts [String] :cursor The pagination cursor value.
|
26
|
+
# @option opts [String] :end_user_email_address If provided, will only return linked accounts associated with the given email address.
|
27
|
+
# @option opts [String] :end_user_organization_name If provided, will only return linked accounts associated with the given organization name.
|
28
|
+
# @option opts [String] :end_user_origin_id If provided, will only return linked accounts associated with the given origin ID.
|
29
|
+
# @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once.
|
30
|
+
# @option opts [String] :id
|
31
|
+
# @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.
|
32
|
+
# @option opts [Boolean] :include_duplicates If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account.
|
33
|
+
# @option opts [String] :integration_name If provided, will only return linked accounts associated with the given integration name.
|
34
|
+
# @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts.
|
35
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
36
|
+
# @option opts [String] :status Filter by status. Options: `COMPLETE`, `INCOMPLETE`, `RELINK_NEEDED`
|
37
|
+
# @return [PaginatedAccountDetailsAndActionsList]
|
38
|
+
def linked_accounts_list(opts = {})
|
39
|
+
data, _status_code, _headers = linked_accounts_list_with_http_info(opts)
|
40
|
+
data
|
41
|
+
end
|
42
|
+
|
43
|
+
# List linked accounts for your organization.
|
44
|
+
# @param [Hash] opts the optional parameters
|
45
|
+
# @option opts [String] :category
|
46
|
+
# @option opts [String] :cursor The pagination cursor value.
|
47
|
+
# @option opts [String] :end_user_email_address If provided, will only return linked accounts associated with the given email address.
|
48
|
+
# @option opts [String] :end_user_organization_name If provided, will only return linked accounts associated with the given organization name.
|
49
|
+
# @option opts [String] :end_user_origin_id If provided, will only return linked accounts associated with the given origin ID.
|
50
|
+
# @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once.
|
51
|
+
# @option opts [String] :id
|
52
|
+
# @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.
|
53
|
+
# @option opts [Boolean] :include_duplicates If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account.
|
54
|
+
# @option opts [String] :integration_name If provided, will only return linked accounts associated with the given integration name.
|
55
|
+
# @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts.
|
56
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
57
|
+
# @option opts [String] :status Filter by status. Options: `COMPLETE`, `INCOMPLETE`, `RELINK_NEEDED`
|
58
|
+
# @return [Array<(PaginatedAccountDetailsAndActionsList, Integer, Hash)>] PaginatedAccountDetailsAndActionsList data, response status code and response headers
|
59
|
+
def linked_accounts_list_with_http_info(opts = {})
|
60
|
+
if @api_client.config.debugging
|
61
|
+
@api_client.config.logger.debug 'Calling API: LinkedAccountsApi.linked_accounts_list ...'
|
62
|
+
end
|
63
|
+
allowable_values = ["accounting", "ats", "crm", "hris", "ticketing"]
|
64
|
+
if @api_client.config.client_side_validation && opts[:'category'] && !allowable_values.include?(opts[:'category'])
|
65
|
+
fail ArgumentError, "invalid value for \"category\", must be one of #{allowable_values}"
|
66
|
+
end
|
67
|
+
# resource path
|
68
|
+
local_var_path = '/linked-accounts'
|
69
|
+
|
70
|
+
# query parameters
|
71
|
+
query_params = opts[:query_params] || {}
|
72
|
+
query_params[:'category'] = opts[:'category'] if !opts[:'category'].nil?
|
73
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
74
|
+
query_params[:'end_user_email_address'] = opts[:'end_user_email_address'] if !opts[:'end_user_email_address'].nil?
|
75
|
+
query_params[:'end_user_organization_name'] = opts[:'end_user_organization_name'] if !opts[:'end_user_organization_name'].nil?
|
76
|
+
query_params[:'end_user_origin_id'] = opts[:'end_user_origin_id'] if !opts[:'end_user_origin_id'].nil?
|
77
|
+
query_params[:'end_user_origin_ids'] = opts[:'end_user_origin_ids'] if !opts[:'end_user_origin_ids'].nil?
|
78
|
+
query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
|
79
|
+
query_params[:'ids'] = opts[:'ids'] if !opts[:'ids'].nil?
|
80
|
+
query_params[:'include_duplicates'] = opts[:'include_duplicates'] if !opts[:'include_duplicates'].nil?
|
81
|
+
query_params[:'integration_name'] = opts[:'integration_name'] if !opts[:'integration_name'].nil?
|
82
|
+
query_params[:'is_test_account'] = opts[:'is_test_account'] if !opts[:'is_test_account'].nil?
|
83
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
84
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
85
|
+
|
86
|
+
# header parameters
|
87
|
+
header_params = opts[:header_params] || {}
|
88
|
+
# HTTP header 'Accept' (if needed)
|
89
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
90
|
+
|
91
|
+
# form parameters
|
92
|
+
form_params = opts[:form_params] || {}
|
93
|
+
|
94
|
+
# http body (model)
|
95
|
+
post_body = opts[:debug_body]
|
96
|
+
|
97
|
+
# return_type
|
98
|
+
return_type = opts[:debug_return_type] || 'PaginatedAccountDetailsAndActionsList'
|
99
|
+
|
100
|
+
# auth_names
|
101
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
102
|
+
|
103
|
+
new_options = opts.merge(
|
104
|
+
:operation => :"LinkedAccountsApi.linked_accounts_list",
|
105
|
+
:header_params => header_params,
|
106
|
+
:query_params => query_params,
|
107
|
+
:form_params => form_params,
|
108
|
+
:body => post_body,
|
109
|
+
:auth_names => auth_names,
|
110
|
+
:return_type => return_type
|
111
|
+
)
|
112
|
+
|
113
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
114
|
+
if @api_client.config.debugging
|
115
|
+
@api_client.config.logger.debug "API called: LinkedAccountsApi#linked_accounts_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
116
|
+
end
|
117
|
+
return data, status_code, headers
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge Ticketing API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple Ticketing platforms.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: hello@merge.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module MergeTicketingClient
|
16
|
+
class PassthroughApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Pull data from an endpoint not currently supported by Merge.
|
23
|
+
# @param x_account_token [String] Token identifying the end user.
|
24
|
+
# @param data_passthrough_request [DataPassthroughRequest]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [RemoteResponse]
|
27
|
+
def passthrough_create(x_account_token, data_passthrough_request, opts = {})
|
28
|
+
data, _status_code, _headers = passthrough_create_with_http_info(x_account_token, data_passthrough_request, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Pull data from an endpoint not currently supported by Merge.
|
33
|
+
# @param x_account_token [String] Token identifying the end user.
|
34
|
+
# @param data_passthrough_request [DataPassthroughRequest]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(RemoteResponse, Integer, Hash)>] RemoteResponse data, response status code and response headers
|
37
|
+
def passthrough_create_with_http_info(x_account_token, data_passthrough_request, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: PassthroughApi.passthrough_create ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'x_account_token' is set
|
42
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling PassthroughApi.passthrough_create"
|
44
|
+
end
|
45
|
+
# verify the required parameter 'data_passthrough_request' is set
|
46
|
+
if @api_client.config.client_side_validation && data_passthrough_request.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'data_passthrough_request' when calling PassthroughApi.passthrough_create"
|
48
|
+
end
|
49
|
+
# resource path
|
50
|
+
local_var_path = '/passthrough'
|
51
|
+
|
52
|
+
# query parameters
|
53
|
+
query_params = opts[:query_params] || {}
|
54
|
+
|
55
|
+
# header parameters
|
56
|
+
header_params = opts[:header_params] || {}
|
57
|
+
# HTTP header 'Accept' (if needed)
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
59
|
+
# HTTP header 'Content-Type'
|
60
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
61
|
+
header_params[:'X-Account-Token'] = x_account_token
|
62
|
+
|
63
|
+
# form parameters
|
64
|
+
form_params = opts[:form_params] || {}
|
65
|
+
|
66
|
+
# http body (model)
|
67
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(data_passthrough_request)
|
68
|
+
|
69
|
+
# return_type
|
70
|
+
return_type = opts[:debug_return_type] || 'RemoteResponse'
|
71
|
+
|
72
|
+
# auth_names
|
73
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
74
|
+
|
75
|
+
new_options = opts.merge(
|
76
|
+
:operation => :"PassthroughApi.passthrough_create",
|
77
|
+
:header_params => header_params,
|
78
|
+
:query_params => query_params,
|
79
|
+
:form_params => form_params,
|
80
|
+
:body => post_body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => return_type
|
83
|
+
)
|
84
|
+
|
85
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
86
|
+
if @api_client.config.debugging
|
87
|
+
@api_client.config.logger.debug "API called: PassthroughApi#passthrough_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
end
|
89
|
+
return data, status_code, headers
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|