60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# File 'lib/merge_ruby_client/ats/linked_accounts/client.rb', line 60
def list(category: nil, cursor: nil, end_user_email_address: nil, end_user_organization_name: nil,
end_user_origin_id: nil, end_user_origin_ids: nil, id: nil, ids: nil, include_duplicates: nil, integration_name: nil, is_test_account: nil, page_size: nil, status: nil, request_options: nil)
response = @request_client.conn.get do |req|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
req.["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
req.["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil?
req. = {
**(req. || {}),
**@request_client.,
**(request_options&. || {})
}.compact
req.params = {
**(request_options&.additional_query_parameters || {}),
"category": category,
"cursor": cursor,
"end_user_email_address": end_user_email_address,
"end_user_organization_name": end_user_organization_name,
"end_user_origin_id": end_user_origin_id,
"end_user_origin_ids": end_user_origin_ids,
"id": id,
"ids": ids,
"include_duplicates": include_duplicates,
"integration_name": integration_name,
"is_test_account": is_test_account,
"page_size": page_size,
"status": status
}.compact
unless request_options.nil? || request_options&.additional_body_parameters.nil?
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
end
req.url "#{@request_client.get_url(request_options: request_options)}/ats/v1/linked-accounts"
end
Merge::Ats::PaginatedAccountDetailsAndActionsList.from_json(json_object: response.body)
end
|