Class WebhookApi

java.lang.Object
io.trippay.sdk.payment.api.WebhookApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-01-28T20:46:35.552782769+07:00[Asia/Bangkok]") public class WebhookApi extends Object
  • Constructor Details

    • WebhookApi

      public WebhookApi()
    • WebhookApi

      @Autowired public WebhookApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • createWebhook

      public reactor.core.publisher.Mono<Webhook> createWebhook(UpsertWebhookRequest upsertWebhookRequest, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Create Webhook Create a new webhook

      201 - Created

      Parameters:
      upsertWebhookRequest - The upsertWebhookRequest parameter
      winkVersion - The winkVersion parameter
      Returns:
      Webhook
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • createWebhookWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<Webhook>> createWebhookWithHttpInfo(UpsertWebhookRequest upsertWebhookRequest, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Create Webhook Create a new webhook

      201 - Created

      Parameters:
      upsertWebhookRequest - The upsertWebhookRequest parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<Webhook>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • createWebhookWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec createWebhookWithResponseSpec(UpsertWebhookRequest upsertWebhookRequest, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Create Webhook Create a new webhook

      201 - Created

      Parameters:
      upsertWebhookRequest - The upsertWebhookRequest parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • deleteWebhook

      public reactor.core.publisher.Mono<RemoveEntryResponse> deleteWebhook(String id, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Delete Webhook Remove a specific webhook

      200 - OK

      Parameters:
      id - The id parameter
      winkVersion - The winkVersion parameter
      Returns:
      RemoveEntryResponse
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • deleteWebhookWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RemoveEntryResponse>> deleteWebhookWithHttpInfo(String id, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Delete Webhook Remove a specific webhook

      200 - OK

      Parameters:
      id - The id parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<RemoveEntryResponse>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • deleteWebhookWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec deleteWebhookWithResponseSpec(String id, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Delete Webhook Remove a specific webhook

      200 - OK

      Parameters:
      id - The id parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • loadWebhook

      public reactor.core.publisher.Mono<Webhook> loadWebhook(String id, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Webhook Show a specific webhook

      200 - OK

      Parameters:
      id - The id parameter
      winkVersion - The winkVersion parameter
      Returns:
      Webhook
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • loadWebhookWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<Webhook>> loadWebhookWithHttpInfo(String id, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Webhook Show a specific webhook

      200 - OK

      Parameters:
      id - The id parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<Webhook>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • loadWebhookWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec loadWebhookWithResponseSpec(String id, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Webhook Show a specific webhook

      200 - OK

      Parameters:
      id - The id parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showWebhookEvents

      public reactor.core.publisher.Flux<KeyValuePair> showWebhookEvents(String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Webhook Event List List all valid webhook events that can be subsccribed to

      200 - OK

      Parameters:
      winkVersion - The winkVersion parameter
      Returns:
      List<KeyValuePair>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showWebhookEventsWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<KeyValuePair>>> showWebhookEventsWithHttpInfo(String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Webhook Event List List all valid webhook events that can be subsccribed to

      200 - OK

      Parameters:
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<List<KeyValuePair>>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showWebhookEventsWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec showWebhookEventsWithResponseSpec(String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Webhook Event List List all valid webhook events that can be subsccribed to

      200 - OK

      Parameters:
      winkVersion - The winkVersion parameter
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showWebhooksByAccountsByOwner

      public reactor.core.publisher.Flux<Webhook> showWebhooksByAccountsByOwner(String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Webhooks List all webhooks owned by creating entity

      200 - OK

      Parameters:
      winkVersion - The winkVersion parameter
      Returns:
      List<Webhook>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showWebhooksByAccountsByOwnerWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<Webhook>>> showWebhooksByAccountsByOwnerWithHttpInfo(String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Webhooks List all webhooks owned by creating entity

      200 - OK

      Parameters:
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<List<Webhook>>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showWebhooksByAccountsByOwnerWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec showWebhooksByAccountsByOwnerWithResponseSpec(String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Webhooks List all webhooks owned by creating entity

      200 - OK

      Parameters:
      winkVersion - The winkVersion parameter
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updateWebhook

      public reactor.core.publisher.Mono<Webhook> updateWebhook(String id, UpsertWebhookRequest upsertWebhookRequest, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update Webhook Update an existing webhook

      200 - OK

      Parameters:
      id - The id parameter
      upsertWebhookRequest - The upsertWebhookRequest parameter
      winkVersion - The winkVersion parameter
      Returns:
      Webhook
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updateWebhookWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<Webhook>> updateWebhookWithHttpInfo(String id, UpsertWebhookRequest upsertWebhookRequest, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update Webhook Update an existing webhook

      200 - OK

      Parameters:
      id - The id parameter
      upsertWebhookRequest - The upsertWebhookRequest parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<Webhook>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updateWebhookWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec updateWebhookWithResponseSpec(String id, UpsertWebhookRequest upsertWebhookRequest, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update Webhook Update an existing webhook

      200 - OK

      Parameters:
      id - The id parameter
      upsertWebhookRequest - The upsertWebhookRequest parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API