Package com.chargebee.v4.services
Class VariantService
-
Field Summary
Fields inherited from class com.chargebee.v4.services.BaseService
client, options -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateProductVariant(String productId, CreateProductVariantParams params) createProductVariantAsync(String productId, CreateProductVariantParams params) Async variant of createProductVariant for variant with params.deleteAsync(String productVariantId) Async variant of delete for variant without params.listProductVariants(String productId) listProductVariants(String productId, ListProductVariantsParams params) listProductVariantsAsync(String productId) Async variant of listProductVariants for variant without params.listProductVariantsAsync(String productId, ListProductVariantsParams params) Async variant of listProductVariants for variant with params.retrieveAsync(String productVariantId) Async variant of retrieve for variant without params.update(String productVariantId, VariantUpdateParams params) updateAsync(String productVariantId) Async variant of update for variant without params.updateAsync(String productVariantId, VariantUpdateParams params) Async variant of update for variant 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
-
VariantService
-
-
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<VariantService>
-
listProductVariants
public ListProductVariantsResponse listProductVariants(String productId, ListProductVariantsParams params) throws ChargebeeException - Throws:
ChargebeeException
-
listProductVariants
- Throws:
ChargebeeException
-
listProductVariantsAsync
public CompletableFuture<ListProductVariantsResponse> listProductVariantsAsync(String productId, ListProductVariantsParams params) Async variant of listProductVariants for variant with params. -
listProductVariantsAsync
Async variant of listProductVariants for variant without params. -
createProductVariant
public CreateProductVariantResponse createProductVariant(String productId, CreateProductVariantParams params) throws ChargebeeException - Throws:
ChargebeeException
-
createProductVariantAsync
public CompletableFuture<CreateProductVariantResponse> createProductVariantAsync(String productId, CreateProductVariantParams params) Async variant of createProductVariant for variant with params. -
retrieve
- Throws:
ChargebeeException
-
retrieveAsync
Async variant of retrieve for variant without params. -
update
public VariantUpdateResponse update(String productVariantId, VariantUpdateParams params) throws ChargebeeException - Throws:
ChargebeeException
-
updateAsync
public CompletableFuture<VariantUpdateResponse> updateAsync(String productVariantId, VariantUpdateParams params) Async variant of update for variant with params. -
update
- Throws:
ChargebeeException
-
updateAsync
Async variant of update for variant without params. -
delete
- Throws:
ChargebeeException
-
deleteAsync
Async variant of delete for variant without params.
-