Package api

Class WebhooksApi

java.lang.Object
api.WebhooksApi

public class WebhooksApi extends Object
  • Constructor Details

    • WebhooksApi

      public WebhooksApi()
    • WebhooksApi

      public WebhooksApi(FinixClient finixClient)
  • Method Details

    • getFinixClient

      public FinixClient getFinixClient()
    • setFinixClient

      public void setFinixClient(FinixClient finixClient)
    • getHostIndex

      public int getHostIndex()
    • setHostIndex

      public void setHostIndex(int hostIndex)
    • getCustomBaseUrl

      public String getCustomBaseUrl()
    • setCustomBaseUrl

      public void setCustomBaseUrl(String customBaseUrl)
    • createWebhookCall

      public okhttp3.Call createWebhookCall(CreateWebhookRequest createWebhookRequest, ApiCallback _callback) throws ApiException
      Build call for createWebhook
      Parameters:
      createWebhookRequest - (optional)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details:
      Status Code Description Response Headers
      201 Single Webhook object * finix-apiuser-role -
      * date -
      * x-request-id -
      400 Error * finix-apiuser-role -
      * date -
      * x-request-id -
      401 Authentication information is missing or invalid * finix-apiuser-role -
      * date -
      * x-request-id -
      403 Forbidden * finix-apiuser-role -
      * date -
      * x-request-id -
      406 Not Acceptable * finix-apiuser-role -
      * date -
      * x-request-id -
      422 Invalid field * finix-apiuser-role -
      * date -
      * x-request-id -
    • create

      public Webhook create(CreateWebhookRequest createWebhookRequest) throws ApiException
      Create a Webhook Create a `Webhook` to specify an endpoint where Finix can send events.
      Parameters:
      createWebhookRequest - (optional)
      Returns:
      Webhook
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details:
      Status Code Description Response Headers
      201 Single Webhook object * finix-apiuser-role -
      * date -
      * x-request-id -
      400 Error * finix-apiuser-role -
      * date -
      * x-request-id -
      401 Authentication information is missing or invalid * finix-apiuser-role -
      * date -
      * x-request-id -
      403 Forbidden * finix-apiuser-role -
      * date -
      * x-request-id -
      406 Not Acceptable * finix-apiuser-role -
      * date -
      * x-request-id -
      422 Invalid field * finix-apiuser-role -
      * date -
      * x-request-id -
    • createWebhookWithHttpInfo

      public ApiResponse<Webhook> createWebhookWithHttpInfo(CreateWebhookRequest createWebhookRequest) throws ApiException
      Create a Webhook Create a `Webhook` to specify an endpoint where Finix can send events.
      Parameters:
      createWebhookRequest - (optional)
      Returns:
      ApiResponse<Webhook>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details:
      Status Code Description Response Headers
      201 Single Webhook object * finix-apiuser-role -
      * date -
      * x-request-id -
      400 Error * finix-apiuser-role -
      * date -
      * x-request-id -
      401 Authentication information is missing or invalid * finix-apiuser-role -
      * date -
      * x-request-id -
      403 Forbidden * finix-apiuser-role -
      * date -
      * x-request-id -
      406 Not Acceptable * finix-apiuser-role -
      * date -
      * x-request-id -
      422 Invalid field * finix-apiuser-role -
      * date -
      * x-request-id -
    • createWebhookAsync

      public okhttp3.Call createWebhookAsync(CreateWebhookRequest createWebhookRequest, ApiCallback<Webhook> _callback) throws ApiException
      Create a Webhook (asynchronously) Create a `Webhook` to specify an endpoint where Finix can send events.
      Parameters:
      createWebhookRequest - (optional)
      _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:
      Status Code Description Response Headers
      201 Single Webhook object * finix-apiuser-role -
      * date -
      * x-request-id -
      400 Error * finix-apiuser-role -
      * date -
      * x-request-id -
      401 Authentication information is missing or invalid * finix-apiuser-role -
      * date -
      * x-request-id -
      403 Forbidden * finix-apiuser-role -
      * date -
      * x-request-id -
      406 Not Acceptable * finix-apiuser-role -
      * date -
      * x-request-id -
      422 Invalid field * finix-apiuser-role -
      * date -
      * x-request-id -
    • getWebhookCall

      public okhttp3.Call getWebhookCall(String webhookId, ApiCallback _callback) throws ApiException
      Build call for getWebhook
      Parameters:
      webhookId - ID of `Webhook` object. (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details:
      Status Code Description Response Headers
      200 Single Webhook object * finix-apiuser-role -
      * date -
      * x-request-id -
      401 Authentication information is missing or invalid * finix-apiuser-role -
      * date -
      * x-request-id -
      403 Forbidden * finix-apiuser-role -
      * date -
      * x-request-id -
      404 Object does not exist * finix-apiuser-role -
      * date -
      * x-request-id -
      406 Not Acceptable * finix-apiuser-role -
      * date -
      * x-request-id -
    • get

      public Webhook get(String webhookId) throws ApiException
      Get a Webhook Retrieve the details of a `Webhook`.
      Parameters:
      webhookId - ID of `Webhook` object. (required)
      Returns:
      Webhook
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details:
      Status Code Description Response Headers
      200 Single Webhook object * finix-apiuser-role -
      * date -
      * x-request-id -
      401 Authentication information is missing or invalid * finix-apiuser-role -
      * date -
      * x-request-id -
      403 Forbidden * finix-apiuser-role -
      * date -
      * x-request-id -
      404 Object does not exist * finix-apiuser-role -
      * date -
      * x-request-id -
      406 Not Acceptable * finix-apiuser-role -
      * date -
      * x-request-id -
    • getWebhookWithHttpInfo

      public ApiResponse<Webhook> getWebhookWithHttpInfo(String webhookId) throws ApiException
      Get a Webhook Retrieve the details of a `Webhook`.
      Parameters:
      webhookId - ID of `Webhook` object. (required)
      Returns:
      ApiResponse<Webhook>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details:
      Status Code Description Response Headers
      200 Single Webhook object * finix-apiuser-role -
      * date -
      * x-request-id -
      401 Authentication information is missing or invalid * finix-apiuser-role -
      * date -
      * x-request-id -
      403 Forbidden * finix-apiuser-role -
      * date -
      * x-request-id -
      404 Object does not exist * finix-apiuser-role -
      * date -
      * x-request-id -
      406 Not Acceptable * finix-apiuser-role -
      * date -
      * x-request-id -
    • getWebhookAsync

      public okhttp3.Call getWebhookAsync(String webhookId, ApiCallback<Webhook> _callback) throws ApiException
      Get a Webhook (asynchronously) Retrieve the details of a `Webhook`.
      Parameters:
      webhookId - ID of `Webhook` object. (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:
      Status Code Description Response Headers
      200 Single Webhook object * finix-apiuser-role -
      * date -
      * x-request-id -
      401 Authentication information is missing or invalid * finix-apiuser-role -
      * date -
      * x-request-id -
      403 Forbidden * finix-apiuser-role -
      * date -
      * x-request-id -
      404 Object does not exist * finix-apiuser-role -
      * date -
      * x-request-id -
      406 Not Acceptable * finix-apiuser-role -
      * date -
      * x-request-id -
    • list

      public WebhooksList list(ListWebhooksQueryParams listWebhooksQueryParams) throws ApiException
      List Webhooks Retrieve a list of `Webhooks`.
      Returns:
      APIlistWebhooksRequest
      Throws:
      ApiException
      Http Response Details:
      Status Code Description Response Headers
      200 List of Webhook objects * finix-apiuser-role -
      * date -
      * x-request-id -
      401 Authentication information is missing or invalid * finix-apiuser-role -
      * date -
      * x-request-id -
      403 Forbidden * finix-apiuser-role -
      * date -
      * x-request-id -
      406 Not Acceptable * finix-apiuser-role -
      * date -
      * x-request-id -
    • putWebhookCall

      public okhttp3.Call putWebhookCall(String webhookId, UpdateWebhookRequest updateWebhookRequest, ApiCallback _callback) throws ApiException
      Build call for putWebhook
      Parameters:
      webhookId - ID of `Webhook` object. (required)
      updateWebhookRequest - (optional)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details:
      Status Code Description Response Headers
      200 Single Webhook object * finix-apiuser-role -
      * date -
      * x-request-id -
      401 Authentication information is missing or invalid * finix-apiuser-role -
      * date -
      * x-request-id -
      403 Forbidden * finix-apiuser-role -
      * date -
      * x-request-id -
      404 Object does not exist * finix-apiuser-role -
      * date -
      * x-request-id -
      406 Not Acceptable * finix-apiuser-role -
      * date -
      * x-request-id -
    • update

      public Webhook update(String webhookId, UpdateWebhookRequest updateWebhookRequest) throws ApiException
      Update a Webhook Update an existing `Webhook`.
      Parameters:
      webhookId - ID of `Webhook` object. (required)
      updateWebhookRequest - (optional)
      Returns:
      Webhook
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details:
      Status Code Description Response Headers
      200 Single Webhook object * finix-apiuser-role -
      * date -
      * x-request-id -
      401 Authentication information is missing or invalid * finix-apiuser-role -
      * date -
      * x-request-id -
      403 Forbidden * finix-apiuser-role -
      * date -
      * x-request-id -
      404 Object does not exist * finix-apiuser-role -
      * date -
      * x-request-id -
      406 Not Acceptable * finix-apiuser-role -
      * date -
      * x-request-id -
    • putWebhookWithHttpInfo

      public ApiResponse<Webhook> putWebhookWithHttpInfo(String webhookId, UpdateWebhookRequest updateWebhookRequest) throws ApiException
      Update a Webhook Update an existing `Webhook`.
      Parameters:
      webhookId - ID of `Webhook` object. (required)
      updateWebhookRequest - (optional)
      Returns:
      ApiResponse<Webhook>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details:
      Status Code Description Response Headers
      200 Single Webhook object * finix-apiuser-role -
      * date -
      * x-request-id -
      401 Authentication information is missing or invalid * finix-apiuser-role -
      * date -
      * x-request-id -
      403 Forbidden * finix-apiuser-role -
      * date -
      * x-request-id -
      404 Object does not exist * finix-apiuser-role -
      * date -
      * x-request-id -
      406 Not Acceptable * finix-apiuser-role -
      * date -
      * x-request-id -
    • putWebhookAsync

      public okhttp3.Call putWebhookAsync(String webhookId, UpdateWebhookRequest updateWebhookRequest, ApiCallback<Webhook> _callback) throws ApiException
      Update a Webhook (asynchronously) Update an existing `Webhook`.
      Parameters:
      webhookId - ID of `Webhook` object. (required)
      updateWebhookRequest - (optional)
      _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:
      Status Code Description Response Headers
      200 Single Webhook object * finix-apiuser-role -
      * date -
      * x-request-id -
      401 Authentication information is missing or invalid * finix-apiuser-role -
      * date -
      * x-request-id -
      403 Forbidden * finix-apiuser-role -
      * date -
      * x-request-id -
      404 Object does not exist * finix-apiuser-role -
      * date -
      * x-request-id -
      406 Not Acceptable * finix-apiuser-role -
      * date -
      * x-request-id -