Package cm.xd.genapi.ynab.api
Class PayeeLocationsApi
java.lang.Object
cm.xd.genapi.ynab.api.PayeeLocationsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetPayeeLocationById(String planId, String payeeLocationId) Get a payee location Returns a single payee locationokhttp3.CallgetPayeeLocationByIdAsync(String planId, String payeeLocationId, ApiCallback<PayeeLocationResponse> _callback) Get a payee location (asynchronously) Returns a single payee locationokhttp3.CallgetPayeeLocationByIdCall(String planId, String payeeLocationId, ApiCallback _callback) Build call for getPayeeLocationByIdgetPayeeLocationByIdWithHttpInfo(String planId, String payeeLocationId) Get a payee location Returns a single payee locationgetPayeeLocations(String planId) Get all payee locations Returns all payee locationsokhttp3.CallgetPayeeLocationsAsync(String planId, ApiCallback<PayeeLocationsResponse> _callback) Get all payee locations (asynchronously) Returns all payee locationsgetPayeeLocationsByPayee(String planId, String payeeId) Get all locations for a payee Returns all payee locations for a specified payeeokhttp3.CallgetPayeeLocationsByPayeeAsync(String planId, String payeeId, ApiCallback<PayeeLocationsResponse> _callback) Get all locations for a payee (asynchronously) Returns all payee locations for a specified payeeokhttp3.CallgetPayeeLocationsByPayeeCall(String planId, String payeeId, ApiCallback _callback) Build call for getPayeeLocationsByPayeegetPayeeLocationsByPayeeWithHttpInfo(String planId, String payeeId) Get all locations for a payee Returns all payee locations for a specified payeeokhttp3.CallgetPayeeLocationsCall(String planId, ApiCallback _callback) Build call for getPayeeLocationsgetPayeeLocationsWithHttpInfo(String planId) Get all payee locations Returns all payee locationsvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
PayeeLocationsApi
public PayeeLocationsApi() -
PayeeLocationsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
getPayeeLocationByIdCall
public okhttp3.Call getPayeeLocationByIdCall(@Nonnull String planId, @Nonnull String payeeLocationId, ApiCallback _callback) throws ApiException Build call for getPayeeLocationById- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)payeeLocationId- id of payee location (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 The payee location - 404 The payee location was not found -
-
getPayeeLocationById
public PayeeLocationResponse getPayeeLocationById(@Nonnull String planId, @Nonnull String payeeLocationId) throws ApiException Get a payee location Returns a single payee location- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)payeeLocationId- id of payee location (required)- Returns:
- PayeeLocationResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 The payee location - 404 The payee location was not found -
-
getPayeeLocationByIdWithHttpInfo
public ApiResponse<PayeeLocationResponse> getPayeeLocationByIdWithHttpInfo(@Nonnull String planId, @Nonnull String payeeLocationId) throws ApiException Get a payee location Returns a single payee location- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)payeeLocationId- id of payee location (required)- Returns:
- ApiResponse<PayeeLocationResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 The payee location - 404 The payee location was not found -
-
getPayeeLocationByIdAsync
public okhttp3.Call getPayeeLocationByIdAsync(@Nonnull String planId, @Nonnull String payeeLocationId, ApiCallback<PayeeLocationResponse> _callback) throws ApiException Get a payee location (asynchronously) Returns a single payee location- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)payeeLocationId- id of payee location (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 The payee location - 404 The payee location was not found -
-
getPayeeLocationsCall
public okhttp3.Call getPayeeLocationsCall(@Nonnull String planId, ApiCallback _callback) throws ApiException Build call for getPayeeLocations- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 The list of payee locations - 404 No payees locations were found -
-
getPayeeLocations
Get all payee locations Returns all payee locations- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)- Returns:
- PayeeLocationsResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 The list of payee locations - 404 No payees locations were found -
-
getPayeeLocationsWithHttpInfo
public ApiResponse<PayeeLocationsResponse> getPayeeLocationsWithHttpInfo(@Nonnull String planId) throws ApiException Get all payee locations Returns all payee locations- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)- Returns:
- ApiResponse<PayeeLocationsResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 The list of payee locations - 404 No payees locations were found -
-
getPayeeLocationsAsync
public okhttp3.Call getPayeeLocationsAsync(@Nonnull String planId, ApiCallback<PayeeLocationsResponse> _callback) throws ApiException Get all payee locations (asynchronously) Returns all payee locations- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 The list of payee locations - 404 No payees locations were found -
-
getPayeeLocationsByPayeeCall
public okhttp3.Call getPayeeLocationsByPayeeCall(@Nonnull String planId, @Nonnull String payeeId, ApiCallback _callback) throws ApiException Build call for getPayeeLocationsByPayee- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)payeeId- id of payee (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 The list of requested payee locations - 404 No payees locations were found -
-
getPayeeLocationsByPayee
public PayeeLocationsResponse getPayeeLocationsByPayee(@Nonnull String planId, @Nonnull String payeeId) throws ApiException Get all locations for a payee Returns all payee locations for a specified payee- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)payeeId- id of payee (required)- Returns:
- PayeeLocationsResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 The list of requested payee locations - 404 No payees locations were found -
-
getPayeeLocationsByPayeeWithHttpInfo
public ApiResponse<PayeeLocationsResponse> getPayeeLocationsByPayeeWithHttpInfo(@Nonnull String planId, @Nonnull String payeeId) throws ApiException Get all locations for a payee Returns all payee locations for a specified payee- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)payeeId- id of payee (required)- Returns:
- ApiResponse<PayeeLocationsResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 The list of requested payee locations - 404 No payees locations were found -
-
getPayeeLocationsByPayeeAsync
public okhttp3.Call getPayeeLocationsByPayeeAsync(@Nonnull String planId, @Nonnull String payeeId, ApiCallback<PayeeLocationsResponse> _callback) throws ApiException Get all locations for a payee (asynchronously) Returns all payee locations for a specified payee- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)payeeId- id of payee (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 The list of requested payee locations - 404 No payees locations were found -
-