146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
|
# File 'lib/merge_ruby_client/crm/linked_accounts/client.rb', line 146
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)
Async do
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)}/crm/v1/linked-accounts"
end
Merge::Crm::PaginatedAccountDetailsAndActionsList.from_json(json_object: response.body)
end
end
|