public final class DefaultPayoutsApi extends BaseApi implements PayoutsApi
BaseApi.RequestExecutor, BaseApi.RequestSupplier, BaseApi.ResponseHandler<T>authManagers, config, httpCallback, internalUserAgent| Constructor and Description |
|---|
DefaultPayoutsApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers)
Initializes the controller.
|
DefaultPayoutsApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers,
HttpCallback httpCallback)
Initializes the controller with HTTPCallback.
|
| Modifier and Type | Method and Description |
|---|---|
GetPayoutResponse |
getPayout(String payoutId)
Retrieves details of a specific payout identified by a payout ID.
|
CompletableFuture<GetPayoutResponse> |
getPayoutAsync(String payoutId)
Retrieves details of a specific payout identified by a payout ID.
|
ListPayoutEntriesResponse |
listPayoutEntries(String payoutId,
String sortOrder,
String cursor,
Integer limit)
Retrieves a list of all payout entries for a specific payout.
|
CompletableFuture<ListPayoutEntriesResponse> |
listPayoutEntriesAsync(String payoutId,
String sortOrder,
String cursor,
Integer limit)
Retrieves a list of all payout entries for a specific payout.
|
ListPayoutsResponse |
listPayouts(String locationId,
String status,
String beginTime,
String endTime,
String sortOrder,
String cursor,
Integer limit)
Retrieves a list of all payouts for the default location.
|
CompletableFuture<ListPayoutsResponse> |
listPayoutsAsync(String locationId,
String status,
String beginTime,
String endTime,
String sortOrder,
String cursor,
Integer limit)
Retrieves a list of all payouts for the default location.
|
getClientInstance, getHttpCallback, makeHttpCallAsync, validateResponsepublic DefaultPayoutsApi(Configuration config, HttpClient httpClient, Map<String,AuthManager> authManagers)
config - Configurations added in client.httpClient - Send HTTP requests and read the responses.authManagers - Apply authorization to requests.public DefaultPayoutsApi(Configuration config, HttpClient httpClient, Map<String,AuthManager> authManagers, HttpCallback httpCallback)
config - Configurations added in client.httpClient - Send HTTP requests and read the responses.authManagers - Apply authorization to requests.httpCallback - Callback to be called before and after the HTTP call.public ListPayoutsResponse listPayouts(String locationId, String status, String beginTime, String endTime, String sortOrder, String cursor, Integer limit) throws ApiException, IOException
listPayouts in interface PayoutsApilocationId - Optional parameter: The ID of the location for which to list the payouts.
By default, payouts are returned for the default (main) location associated with the
seller.status - Optional parameter: If provided, only payouts with the given status are
returned.beginTime - Optional parameter: The timestamp for the beginning of the payout creation
time, in RFC 3339 format. Inclusive. Default: The current time minus one year.endTime - Optional parameter: The timestamp for the end of the payout creation time,
in RFC 3339 format. Default: The current time.sortOrder - Optional parameter: The order in which payouts are listed.cursor - Optional parameter: A pagination cursor returned by a previous call to this
endpoint. Provide this cursor to retrieve the next set of results for the original
query. For more information, see
[Pagination](https://developer.squareup.com/docs/basics/api101/pagination). If
request parameters change between requests, subsequent results may contain duplicates
or missing records.limit - Optional parameter: The maximum number of results to be returned in a single
page. It is possible to receive fewer results than the specified limit on a given
page. The default value of 100 is also the maximum allowed value. If the provided
value is greater than 100, it is ignored and the default value is used instead.
Default: `100`ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ListPayoutsResponse> listPayoutsAsync(String locationId, String status, String beginTime, String endTime, String sortOrder, String cursor, Integer limit)
listPayoutsAsync in interface PayoutsApilocationId - Optional parameter: The ID of the location for which to list the payouts.
By default, payouts are returned for the default (main) location associated with the
seller.status - Optional parameter: If provided, only payouts with the given status are
returned.beginTime - Optional parameter: The timestamp for the beginning of the payout creation
time, in RFC 3339 format. Inclusive. Default: The current time minus one year.endTime - Optional parameter: The timestamp for the end of the payout creation time,
in RFC 3339 format. Default: The current time.sortOrder - Optional parameter: The order in which payouts are listed.cursor - Optional parameter: A pagination cursor returned by a previous call to this
endpoint. Provide this cursor to retrieve the next set of results for the original
query. For more information, see
[Pagination](https://developer.squareup.com/docs/basics/api101/pagination). If
request parameters change between requests, subsequent results may contain duplicates
or missing records.limit - Optional parameter: The maximum number of results to be returned in a single
page. It is possible to receive fewer results than the specified limit on a given
page. The default value of 100 is also the maximum allowed value. If the provided
value is greater than 100, it is ignored and the default value is used instead.
Default: `100`public GetPayoutResponse getPayout(String payoutId) throws ApiException, IOException
getPayout in interface PayoutsApipayoutId - Required parameter: The ID of the payout to retrieve the information for.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<GetPayoutResponse> getPayoutAsync(String payoutId)
getPayoutAsync in interface PayoutsApipayoutId - Required parameter: The ID of the payout to retrieve the information for.public ListPayoutEntriesResponse listPayoutEntries(String payoutId, String sortOrder, String cursor, Integer limit) throws ApiException, IOException
listPayoutEntries in interface PayoutsApipayoutId - Required parameter: The ID of the payout to retrieve the information for.sortOrder - Optional parameter: The order in which payout entries are listed.cursor - Optional parameter: A pagination cursor returned by a previous call to this
endpoint. Provide this cursor to retrieve the next set of results for the original
query. For more information, see
[Pagination](https://developer.squareup.com/docs/basics/api101/pagination). If
request parameters change between requests, subsequent results may contain duplicates
or missing records.limit - Optional parameter: The maximum number of results to be returned in a single
page. It is possible to receive fewer results than the specified limit on a given
page. The default value of 100 is also the maximum allowed value. If the provided
value is greater than 100, it is ignored and the default value is used instead.
Default: `100`ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ListPayoutEntriesResponse> listPayoutEntriesAsync(String payoutId, String sortOrder, String cursor, Integer limit)
listPayoutEntriesAsync in interface PayoutsApipayoutId - Required parameter: The ID of the payout to retrieve the information for.sortOrder - Optional parameter: The order in which payout entries are listed.cursor - Optional parameter: A pagination cursor returned by a previous call to this
endpoint. Provide this cursor to retrieve the next set of results for the original
query. For more information, see
[Pagination](https://developer.squareup.com/docs/basics/api101/pagination). If
request parameters change between requests, subsequent results may contain duplicates
or missing records.limit - Optional parameter: The maximum number of results to be returned in a single
page. It is possible to receive fewer results than the specified limit on a given
page. The default value of 100 is also the maximum allowed value. If the provided
value is greater than 100, it is ignored and the default value is used instead.
Default: `100`Copyright © 2022. All rights reserved.