Package com.courier.services.async.lists
Class SubscriptionServiceAsyncImpl
-
- All Implemented Interfaces:
-
com.courier.services.async.lists.SubscriptionServiceAsync
public final class SubscriptionServiceAsyncImpl implements SubscriptionServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSubscriptionServiceAsyncImpl.WithRawResponseImpl
-
Method Summary
Modifier and Type Method Description SubscriptionServiceAsync.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. SubscriptionServiceAsyncwithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. CompletableFuture<SubscriptionListResponse>list(SubscriptionListParams params, RequestOptions requestOptions)CompletableFuture<Void>add(SubscriptionAddParams params, RequestOptions requestOptions)CompletableFuture<Void>subscribe(SubscriptionSubscribeParams params, RequestOptions requestOptions)CompletableFuture<Void>subscribeUser(SubscriptionSubscribeUserParams params, RequestOptions requestOptions)CompletableFuture<Void>unsubscribeUser(SubscriptionUnsubscribeUserParams params, RequestOptions requestOptions)-
Methods inherited from class com.courier.services.async.lists.SubscriptionServiceAsync
add, add, add, list, list, list, list, list, subscribe, subscribe, subscribe, subscribeUser, subscribeUser, subscribeUser, unsubscribeUser, unsubscribeUser, unsubscribeUser -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
withRawResponse
SubscriptionServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
SubscriptionServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
list
CompletableFuture<SubscriptionListResponse> list(SubscriptionListParams params, RequestOptions requestOptions)
-
add
CompletableFuture<Void> add(SubscriptionAddParams params, RequestOptions requestOptions)
-
subscribe
CompletableFuture<Void> subscribe(SubscriptionSubscribeParams params, RequestOptions requestOptions)
-
subscribeUser
CompletableFuture<Void> subscribeUser(SubscriptionSubscribeUserParams params, RequestOptions requestOptions)
-
unsubscribeUser
CompletableFuture<Void> unsubscribeUser(SubscriptionUnsubscribeUserParams params, RequestOptions requestOptions)
-
-
-
-