Interface SubscriptionServiceAsync
-
- All Implemented Interfaces:
public interface SubscriptionServiceAsyncUsage reporting and webhook subscriptions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceSubscriptionServiceAsync.WithRawResponseA view of SubscriptionServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract SubscriptionServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract SubscriptionServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
create
CompletableFuture<Void> create(SubscriptionCreateParams params)
Creates a webhook subscription for usage, balance, and billing events.
-
create
abstract CompletableFuture<Void> create(SubscriptionCreateParams params, RequestOptions requestOptions)
-
update
CompletableFuture<Void> update(String subscriptionId)
Updates callback URL, event filters, active state, or signing secret.
-
update
CompletableFuture<Void> update(String subscriptionId, SubscriptionUpdateParams params, RequestOptions requestOptions)
-
update
CompletableFuture<Void> update(String subscriptionId, SubscriptionUpdateParams params)
-
update
abstract CompletableFuture<Void> update(SubscriptionUpdateParams params, RequestOptions requestOptions)
-
update
CompletableFuture<Void> update(SubscriptionUpdateParams params)
-
update
CompletableFuture<Void> update(String subscriptionId, RequestOptions requestOptions)
-
list
CompletableFuture<Void> list()
Lists webhook subscriptions configured for usage and billing events.
-
list
abstract CompletableFuture<Void> list(SubscriptionListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<Void> list(SubscriptionListParams params)
-
list
CompletableFuture<Void> list(RequestOptions requestOptions)
-
delete
CompletableFuture<Void> delete(String subscriptionId)
Deactivates a usage webhook subscription.
-
delete
CompletableFuture<Void> delete(String subscriptionId, SubscriptionDeleteParams params, RequestOptions requestOptions)
-
delete
CompletableFuture<Void> delete(String subscriptionId, SubscriptionDeleteParams params)
-
delete
abstract CompletableFuture<Void> delete(SubscriptionDeleteParams params, RequestOptions requestOptions)
-
delete
CompletableFuture<Void> delete(SubscriptionDeleteParams params)
-
delete
CompletableFuture<Void> delete(String subscriptionId, RequestOptions requestOptions)
-
test
CompletableFuture<Void> test(String subscriptionId)
Delivers a test event to a single usage webhook subscription using the same payload shape and signing behavior as production delivery.
-
test
CompletableFuture<Void> test(String subscriptionId, SubscriptionTestParams params, RequestOptions requestOptions)
-
test
CompletableFuture<Void> test(String subscriptionId, SubscriptionTestParams params)
-
test
abstract CompletableFuture<Void> test(SubscriptionTestParams params, RequestOptions requestOptions)
-
test
CompletableFuture<Void> test(SubscriptionTestParams params)
-
test
CompletableFuture<Void> test(String subscriptionId, RequestOptions requestOptions)
-
-
-
-