Package com.chargebee.v4.services
Class UsageService
-
Field Summary
Fields inherited from class com.chargebee.v4.services.BaseService
client, options -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(String subscriptionId, UsageCreateParams params) createAsync(String subscriptionId, UsageCreateParams params) Async variant of create for usage with params.delete(String subscriptionId, UsageDeleteParams params) deleteAsync(String subscriptionId, UsageDeleteParams params) Async variant of delete for usage with params.list()list(UsageListParams params) Async variant of list for usage without params.listAsync(UsageListParams params) Async variant of list for usage with params.pdf(UsagePdfParams params) pdfAsync(UsagePdfParams params) Async variant of pdf for usage with params.retrieve(String subscriptionId, UsageRetrieveParams params) retrieveAsync(String subscriptionId) Async variant of retrieve for usage without params.retrieveAsync(String subscriptionId, UsageRetrieveParams params) Async variant of retrieve for usage with params.withOptions(RequestOptions options) Apply per-request options for this service instance.Methods inherited from class com.chargebee.v4.services.BaseService
buildPathWithParams, clientForBuilders, clientWithOptions, get, getAsync, getMergedHeaders, getWithSubDomain, getWithSubDomainAsync, header, headers, options, parseResponse, post, postAsync, postJson, postJsonAsync, postJsonWithSubDomain, postJsonWithSubDomainAsync, postWithSubDomain, postWithSubDomainAsync
-
Constructor Details
-
UsageService
-
-
Method Details
-
withOptions
Apply per-request options for this service instance. Users can chain .withOptions or .options to set headers and other options.- Overrides:
withOptionsin classBaseService<UsageService>
-
pdf
- Throws:
ChargebeeException
-
pdfAsync
Async variant of pdf for usage with params. -
retrieve
public UsageRetrieveResponse retrieve(String subscriptionId, UsageRetrieveParams params) throws ChargebeeException - Throws:
ChargebeeException
-
retrieveAsync
public CompletableFuture<UsageRetrieveResponse> retrieveAsync(String subscriptionId, UsageRetrieveParams params) Async variant of retrieve for usage with params. -
retrieve
- Throws:
ChargebeeException
-
retrieveAsync
Async variant of retrieve for usage without params. -
create
public UsageCreateResponse create(String subscriptionId, UsageCreateParams params) throws ChargebeeException - Throws:
ChargebeeException
-
createAsync
public CompletableFuture<UsageCreateResponse> createAsync(String subscriptionId, UsageCreateParams params) Async variant of create for usage with params. -
delete
public UsageDeleteResponse delete(String subscriptionId, UsageDeleteParams params) throws ChargebeeException - Throws:
ChargebeeException
-
deleteAsync
public CompletableFuture<UsageDeleteResponse> deleteAsync(String subscriptionId, UsageDeleteParams params) Async variant of delete for usage with params. -
list
- Throws:
ChargebeeException
-
listAsync
Async variant of list for usage with params. -
list
- Throws:
ChargebeeException
-
listAsync
Async variant of list for usage without params.
-