Package io.trippay.sdk.payment.api
Class WebhookApi
java.lang.Object
io.trippay.sdk.payment.api.WebhookApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-03-06T15:20:29.359634909+07:00[Asia/Bangkok]")
public class WebhookApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Webhook>createWebhook(UpsertWebhookRequest upsertWebhookRequest, String winkVersion) Create Webhook Create a new webhookreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<Webhook>>createWebhookWithHttpInfo(UpsertWebhookRequest upsertWebhookRequest, String winkVersion) reactor.core.publisher.Mono<RemoveEntryResponse>deleteWebhook(String id, String winkVersion) Delete Webhook Remove a specific webhookreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RemoveEntryResponse>>deleteWebhookWithHttpInfo(String id, String winkVersion) reactor.core.publisher.Mono<Webhook>loadWebhook(String id, String winkVersion) Show Webhook Show a specific webhookreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<Webhook>>loadWebhookWithHttpInfo(String id, String winkVersion) voidsetApiClient(ApiClient apiClient) reactor.core.publisher.Flux<KeyValuePair>showWebhookEvents(String winkVersion) Show Webhook Event List List all valid webhook events that can be subsccribed toreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<KeyValuePair>>>showWebhookEventsWithHttpInfo(String winkVersion) reactor.core.publisher.Flux<Webhook>showWebhooksByAccountsByOwner(String winkVersion) Show Webhooks List all webhooks owned by creating entityshowWebhooksByAccountsByOwnerWithHttpInfo(String winkVersion) reactor.core.publisher.Mono<Webhook>updateWebhook(String id, UpsertWebhookRequest upsertWebhookRequest, String winkVersion) Update Webhook Update an existing webhookreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<Webhook>>updateWebhookWithHttpInfo(String id, UpsertWebhookRequest upsertWebhookRequest, String winkVersion)
-
Constructor Details
-
WebhookApi
public WebhookApi() -
WebhookApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
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 webhook201 - Created
- Parameters:
upsertWebhookRequest- The upsertWebhookRequest parameterwinkVersion- 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 - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
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 webhook200 - OK
- Parameters:
id- The id parameterwinkVersion- 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 - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
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 webhook200 - OK
- Parameters:
id- The id parameterwinkVersion- 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 - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
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 to200 - 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 - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
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 entity200 - 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 - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
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 webhook200 - OK
- Parameters:
id- The id parameterupsertWebhookRequest- The upsertWebhookRequest parameterwinkVersion- 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 - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-