public class WebhooksApi extends Object
| Constructor and Description |
|---|
WebhooksApi() |
WebhooksApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
CreateModel |
createWebhook(CreateWebhook createWebhook)
Create a webhook
|
com.squareup.okhttp.Call |
createWebhookAsync(CreateWebhook createWebhook,
ApiCallback<CreateModel> callback)
Create a webhook (asynchronously)
|
com.squareup.okhttp.Call |
createWebhookCall(CreateWebhook createWebhook,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for createWebhook
|
ApiResponse<CreateModel> |
createWebhookWithHttpInfo(CreateWebhook createWebhook)
Create a webhook
|
void |
deleteWebhook(Long webhookId)
Delete a webhook
|
com.squareup.okhttp.Call |
deleteWebhookAsync(Long webhookId,
ApiCallback<Void> callback)
Delete a webhook (asynchronously)
|
com.squareup.okhttp.Call |
deleteWebhookCall(Long webhookId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for deleteWebhook
|
ApiResponse<Void> |
deleteWebhookWithHttpInfo(Long webhookId)
Delete a webhook
|
ApiClient |
getApiClient() |
GetWebhook |
getWebhook(Long webhookId)
Get a webhook details
|
com.squareup.okhttp.Call |
getWebhookAsync(Long webhookId,
ApiCallback<GetWebhook> callback)
Get a webhook details (asynchronously)
|
com.squareup.okhttp.Call |
getWebhookCall(Long webhookId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getWebhook
|
GetWebhooks |
getWebhooks(String type)
Get all webhooks
|
com.squareup.okhttp.Call |
getWebhooksAsync(String type,
ApiCallback<GetWebhooks> callback)
Get all webhooks (asynchronously)
|
com.squareup.okhttp.Call |
getWebhooksCall(String type,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getWebhooks
|
ApiResponse<GetWebhooks> |
getWebhooksWithHttpInfo(String type)
Get all webhooks
|
ApiResponse<GetWebhook> |
getWebhookWithHttpInfo(Long webhookId)
Get a webhook details
|
void |
setApiClient(ApiClient apiClient) |
void |
updateWebhook(Long webhookId,
UpdateWebhook updateWebhook)
Update a webhook
|
com.squareup.okhttp.Call |
updateWebhookAsync(Long webhookId,
UpdateWebhook updateWebhook,
ApiCallback<Void> callback)
Update a webhook (asynchronously)
|
com.squareup.okhttp.Call |
updateWebhookCall(Long webhookId,
UpdateWebhook updateWebhook,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for updateWebhook
|
ApiResponse<Void> |
updateWebhookWithHttpInfo(Long webhookId,
UpdateWebhook updateWebhook)
Update a webhook
|
public WebhooksApi()
public WebhooksApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call createWebhookCall(CreateWebhook createWebhook, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
createWebhook - Values to create a webhook (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic CreateModel createWebhook(CreateWebhook createWebhook) throws ApiException
createWebhook - Values to create a webhook (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<CreateModel> createWebhookWithHttpInfo(CreateWebhook createWebhook) throws ApiException
createWebhook - Values to create a webhook (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call createWebhookAsync(CreateWebhook createWebhook, ApiCallback<CreateModel> callback) throws ApiException
createWebhook - Values to create a webhook (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call deleteWebhookCall(Long webhookId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
webhookId - Id of the webhook (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void deleteWebhook(Long webhookId) throws ApiException
webhookId - Id of the webhook (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> deleteWebhookWithHttpInfo(Long webhookId) throws ApiException
webhookId - Id of the webhook (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteWebhookAsync(Long webhookId, ApiCallback<Void> callback) throws ApiException
webhookId - Id of the webhook (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getWebhookCall(Long webhookId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
webhookId - Id of the webhook (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic GetWebhook getWebhook(Long webhookId) throws ApiException
webhookId - Id of the webhook (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<GetWebhook> getWebhookWithHttpInfo(Long webhookId) throws ApiException
webhookId - Id of the webhook (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getWebhookAsync(Long webhookId, ApiCallback<GetWebhook> callback) throws ApiException
webhookId - Id of the webhook (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getWebhooksCall(String type, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
type - Filter on webhook type (optional, default to transactional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic GetWebhooks getWebhooks(String type) throws ApiException
type - Filter on webhook type (optional, default to transactional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<GetWebhooks> getWebhooksWithHttpInfo(String type) throws ApiException
type - Filter on webhook type (optional, default to transactional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getWebhooksAsync(String type, ApiCallback<GetWebhooks> callback) throws ApiException
type - Filter on webhook type (optional, default to transactional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call updateWebhookCall(Long webhookId, UpdateWebhook updateWebhook, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
webhookId - Id of the webhook (required)updateWebhook - Values to update a webhook (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void updateWebhook(Long webhookId, UpdateWebhook updateWebhook) throws ApiException
webhookId - Id of the webhook (required)updateWebhook - Values to update a webhook (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> updateWebhookWithHttpInfo(Long webhookId, UpdateWebhook updateWebhook) throws ApiException
webhookId - Id of the webhook (required)updateWebhook - Values to update a webhook (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call updateWebhookAsync(Long webhookId, UpdateWebhook updateWebhook, ApiCallback<Void> callback) throws ApiException
webhookId - Id of the webhook (required)updateWebhook - Values to update a webhook (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectCopyright © 2021. All rights reserved.