diff --git a/README.md b/README.md
index 3d4ac212..d29155de 100644
--- a/README.md
+++ b/README.md
@@ -47,7 +47,7 @@ The v4 SDK provides a modern, immutable client with enhanced type safety and imp
#### Gradle (Kotlin DSL)
```kotlin
dependencies {
- implementation("com.chargebee:chargebee-java:4.0.0-beta.1")
+ implementation("com.chargebee:chargebee-java:4.0.0")
}
```
@@ -56,7 +56,7 @@ dependencies {
com.chargebee
chargebee-java
- 4.0.0-beta.2
+ 4.0.0
```
@@ -138,13 +138,13 @@ ChargebeeClient client = ChargebeeClient.builder()
#### Create and list customers (sync)
```java
-import com.chargebee.core.services.CustomerService;
-import com.chargebee.core.models.customer.params.CustomerCreateParams;
-import com.chargebee.core.models.customer.params.CustomerListParams;
-import com.chargebee.core.responses.customer.CustomerCreateResponse;
-import com.chargebee.core.responses.customer.CustomerListResponse;
+import com.chargebee.v4.services.CustomerService;
+import com.chargebee.v4.models.customer.params.CustomerCreateParams;
+import com.chargebee.v4.models.customer.params.CustomerListParams;
+import com.chargebee.v4.models.customer.responses.CustomerCreateResponse;
+import com.chargebee.v4.models.customer.responses.CustomerListResponse;
-CustomerService customers = client.customer();
+CustomerService customers = client.customers();
CustomerCreateResponse created = customers.create(
CustomerCreateParams.builder()
@@ -161,7 +161,7 @@ CustomerCreateResponse created = customers.create(
.build()
)
.build()
-).get();
+);
CustomerListResponse list = customers.list(
CustomerListParams.builder()
@@ -194,7 +194,7 @@ ChargebeeClient client = ChargebeeClient.builder()
```java
import com.chargebee.v4.client.request.RequestOptions;
-CustomerService scoped = customers.withOptions(
+CustomerService scoped = client.customers().withOptions(
RequestOptions.builder()
.header("Idempotency-Key", "req-123")
.maxNetworkRetries(2)
@@ -215,6 +215,350 @@ future.thenAccept(resp -> {
});
```
+### Exception Handling
+
+The library provides a comprehensive exception hierarchy with **strongly-typed error enums** to handle different types of errors that may occur during API operations.
+
+#### Exception Hierarchy
+
+All Chargebee exceptions extend from `ChargebeeException`, which is an unchecked exception:
+
+```
+ChargebeeException (unchecked - extends RuntimeException)
+├── ConfigurationException (setup/config errors)
+└── TransportException (runtime API errors)
+ ├── NetworkException (DNS failures, connection refused)
+ ├── TimeoutException (connect/read timeouts)
+ └── HttpException (HTTP status code errors: 4xx, 5xx)
+ ├── ClientErrorException (4xx errors)
+ ├── ServerErrorException (5xx errors)
+ └── APIException (Chargebee API errors)
+ ├── InvalidRequestException (validation errors)
+ ├── PaymentException (payment-related errors)
+ ├── OperationFailedException (business logic errors)
+ ├── BatchAPIException (batch operation errors)
+ └── UbbBatchIngestionInvalidRequestException (batch ingestion errors)
+```
+
+#### Exception Types
+
+- **`ChargebeeException`**: Base exception for all SDK errors - catch-all for any Chargebee SDK error
+- **`ConfigurationException`**: Thrown when SDK configuration is invalid (missing API key, invalid URL, etc.)
+- **`TransportException`**: Base exception for all transport-layer failures (network issues, timeouts, etc.)
+- **`HttpException`**: Thrown for HTTP error status codes (4xx, 5xx) - contains status code and response
+- **`ClientErrorException`**: HTTP 4xx client errors (bad request, unauthorized, not found, etc.)
+- **`ServerErrorException`**: HTTP 5xx server errors (internal server error, service unavailable, etc.)
+- **`APIException`**: Base exception for Chargebee API errors - includes error type, API error code, and parameters
+- **`InvalidRequestException`**: Invalid parameters, missing required fields, or validation errors (type: `invalid_request`)
+- **`PaymentException`**: Payment failures such as card declined, insufficient funds, etc. (type: `payment`)
+- **`OperationFailedException`**: Business logic violations or state conflicts (type: `operation_failed`)
+- **`BatchAPIException`**: Errors specific to batch API operations
+- **`UbbBatchIngestionInvalidRequestException`**: Errors specific to UBB batch ingestion operations
+
+#### Strongly-Typed Error Enums
+
+The v4 SDK provides strongly-typed enums for error handling, making it easier to write type-safe error handling code:
+
+##### ErrorType Enum
+Represents the type of error returned by the API:
+```java
+import com.chargebee.v4.exceptions.ErrorType;
+
+// Available values:
+ErrorType.INVALID_REQUEST // Validation and request errors
+ErrorType.PAYMENT // Payment-related errors
+ErrorType.OPERATION_FAILED // Business logic errors
+ErrorType.UNTYPED // Untyped errors
+ErrorType._UNKNOWN // Unknown/new error types (forward compatibility)
+```
+
+##### Per-HTTP-Status API Error Code Enums
+Each HTTP status code has its own enum with specific error codes:
+
+| Enum | HTTP Status | Example Error Codes |
+|------|-------------|---------------------|
+| `BadRequestApiErrorCode` | 400 | `DUPLICATE_ENTRY`, `INVALID_REQUEST`, `PAYMENT_PROCESSING_FAILED`, `PARAM_WRONG_VALUE` |
+| `UnauthorizedApiErrorCode` | 401 | `API_AUTHENTICATION_FAILED`, `BASIC_AUTHENTICATION_FAILED` |
+| `ForbiddenApiErrorCode` | 403 | `REQUEST_BLOCKED`, `API_AUTHORIZATION_FAILED` |
+| `NotFoundApiErrorCode` | 404 | `RESOURCE_NOT_FOUND`, `SITE_NOT_FOUND` |
+| `ConflictApiErrorCode` | 409 | `INVALID_STATE_FOR_REQUEST` |
+| `TooManyRequestsApiErrorCode` | 429 | `REQUEST_LIMIT_EXCEEDED`, `OPERATION_LIMIT_EXCEEDED` |
+| `InternalServerErrorApiErrorCode` | 500 | `INTERNAL_ERROR`, `INTERNAL_TEMPORARY_ERROR` |
+| `ServiceUnavailableApiErrorCode` | 503 | `SITE_NOT_READY`, `SITE_MIGRATING`, `SITE_UNDER_MAINTENANCE` |
+
+All enums include an `_UNKNOWN` value for forward compatibility when new error codes are added by the API.
+
+#### v4 SDK Exception Handling Examples
+
+##### Basic exception handling with enums
+```java
+import com.chargebee.v4.exceptions.*;
+import com.chargebee.v4.exceptions.codes.ApiErrorCode;
+import com.chargebee.v4.exceptions.codes.BadRequestApiErrorCode;
+import com.chargebee.v4.services.CustomerService;
+import com.chargebee.v4.models.customer.params.CustomerCreateParams;
+
+CustomerService customers = client.customers();
+
+try {
+ CustomerCreateResponse created = customers.create(
+ CustomerCreateParams.builder()
+ .email("invalid-email") // Invalid email format
+ .build()
+ );
+} catch (InvalidRequestException e) {
+ // getApiErrorCode() returns a strongly-typed ApiErrorCode enum
+ ApiErrorCode errorCode = e.getApiErrorCode();
+
+ // Cast to specific enum based on HTTP status code
+ if (errorCode instanceof BadRequestApiErrorCode) {
+ BadRequestApiErrorCode code = (BadRequestApiErrorCode) errorCode;
+ if (code == BadRequestApiErrorCode.DUPLICATE_ENTRY) {
+ System.err.println("Resource already exists!");
+ } else if (code == BadRequestApiErrorCode.PARAM_WRONG_VALUE) {
+ System.err.println("Invalid parameter: " + e.getParams());
+ }
+ }
+} catch (PaymentException e) {
+ ApiErrorCode errorCode = e.getApiErrorCode();
+
+ if (errorCode instanceof BadRequestApiErrorCode) {
+ BadRequestApiErrorCode code = (BadRequestApiErrorCode) errorCode;
+ if (code == BadRequestApiErrorCode.PAYMENT_PROCESSING_FAILED) {
+ System.err.println("Payment failed. Please try again.");
+ } else if (code == BadRequestApiErrorCode.PAYMENT_METHOD_NOT_PRESENT) {
+ System.err.println("No payment method on file.");
+ }
+ }
+} catch (APIException e) {
+ // Handle other API errors
+ System.err.println("API error: " + e.getMessage());
+ System.err.println("Error type: " + e.getErrorType());
+} catch (TransportException e) {
+ // Handle network/transport errors
+ System.err.println("Transport error: " + e.getMessage());
+}
+```
+
+##### Using switch with ErrorType enum
+```java
+try {
+ // API operation
+} catch (APIException e) {
+ switch (e.getErrorType()) {
+ case INVALID_REQUEST:
+ System.err.println("Invalid request: " + e.getMessage());
+ break;
+ case PAYMENT:
+ System.err.println("Payment error: " + e.getMessage());
+ break;
+ case OPERATION_FAILED:
+ System.err.println("Operation failed: " + e.getMessage());
+ break;
+ default:
+ System.err.println("Unknown error type: " + e.getType());
+ }
+}
+```
+
+##### Handling specific error codes
+```java
+import com.chargebee.v4.exceptions.*;
+import com.chargebee.v4.exceptions.codes.ApiErrorCode;
+import com.chargebee.v4.exceptions.codes.BadRequestApiErrorCode;
+
+try {
+ client.subscriptions().create(params);
+} catch (APIException e) {
+ ApiErrorCode errorCode = e.getApiErrorCode();
+
+ // Check if it's a BadRequest error code
+ if (errorCode instanceof BadRequestApiErrorCode) {
+ BadRequestApiErrorCode code = (BadRequestApiErrorCode) errorCode;
+ switch (code) {
+ case DUPLICATE_ENTRY:
+ System.err.println("Resource already exists");
+ break;
+ case RESOURCE_LIMIT_EXHAUSTED:
+ System.err.println("Limit reached, please upgrade your plan");
+ break;
+ case PAYMENT_PROCESSING_FAILED:
+ System.err.println("Payment failed, please update payment method");
+ break;
+ case _UNKNOWN:
+ // Unknown error code - use raw value for logging
+ System.err.println("Unknown error code: " + e.getApiErrorCodeRaw());
+ break;
+ default:
+ System.err.println("Error: " + e.getMessage());
+ }
+ }
+}
+```
+
+##### Checking for unknown error types (forward compatibility)
+```java
+try {
+ // API operation
+} catch (APIException e) {
+ ErrorType errorType = e.getErrorType();
+
+ if (!errorType.isKnown()) {
+ // New error type added by API that SDK doesn't know about yet
+ System.err.println("New error type encountered: " + e.getType());
+ // Log for investigation, but handle gracefully
+ }
+
+ ApiErrorCode errorCode = e.getApiErrorCode();
+ if (errorCode != null && !errorCode.isKnown()) {
+ // New error code - handle gracefully using raw value
+ System.err.println("New error code: " + e.getApiErrorCodeRaw());
+ }
+}
+```
+
+##### Handling HTTP-level errors
+```java
+import com.chargebee.v4.exceptions.ClientErrorException;
+import com.chargebee.v4.exceptions.ServerErrorException;
+import com.chargebee.v4.exceptions.HttpException;
+
+try {
+ CustomerCreateResponse response = client.customers().create(params);
+} catch (ClientErrorException e) {
+ // Handle 4xx client errors
+ if (e.isUnauthorized()) {
+ System.err.println("Authentication failed. Check your API key.");
+ } else if (e.isNotFound()) {
+ System.err.println("Resource not found.");
+ } else if (e.isTooManyRequests()) {
+ System.err.println("Rate limit exceeded. Retry after some time.");
+ } else {
+ System.err.println("Client error: " + e.getStatusCode());
+ }
+} catch (ServerErrorException e) {
+ // Handle 5xx server errors (often retryable)
+ if (e.isRetryable()) {
+ System.err.println("Server error. Consider retrying: " + e.getMessage());
+ }
+} catch (HttpException e) {
+ System.err.println("HTTP error: " + e.getStatusCode());
+}
+catch (Exception e) {
+ throw new RuntimeException(e);
+}
+```
+
+##### Error Response Attributes
+
+The `APIException` class provides typed access to all error response attributes:
+
+| Attribute | Method | Description |
+|-----------|--------|-------------|
+| `message` | `getMessage()` | Descriptive error information (for developer consumption, not for end users) |
+| `type` | `getType()` / `getErrorType()` | Error type grouping: `payment`, `invalid_request`, `operation_failed` |
+| `api_error_code` | `getApiErrorCode()` / `getApiErrorCodeRaw()` | Strongly-typed enum (`ApiErrorCode`) or raw string for error handling |
+| `param` | `getParam()` / `getParams()` | Parameter name(s) if error is parameter-specific |
+| `error_cause_id` | `getErrorCauseId()` | Chargebee-defined code for standardizing errors across gateways |
+
+##### Extracting detailed error information
+```java
+try {
+ // API operation
+} catch (APIException e) {
+ // Get HTTP status code
+ int statusCode = e.getStatusCode();
+
+ // Get error type as enum (type-safe)
+ ErrorType errorType = e.getErrorType();
+
+ // Get error type as raw string
+ String type = e.getType();
+
+ // Get API error code as typed enum
+ ApiErrorCode apiErrorCode = e.getApiErrorCode();
+
+ // Get API error code as raw string (for logging)
+ String apiErrorCodeRaw = e.getApiErrorCodeRaw();
+
+ // Get error message (for developer consumption)
+ String message = e.getMessage();
+
+ // Get parameter name(s) that caused the error
+ String param = e.getParam(); // Single param (convenience)
+ List params = e.getParams(); // All params
+
+ // Get error cause ID (for gateway error standardization)
+ String errorCauseId = e.getErrorCauseId();
+
+ // Get full JSON response for debugging
+ String jsonResponse = e.getJsonResponse();
+
+ // Get full HTTP response object
+ Response response = e.getResponse();
+
+ System.err.println("Error details: " + e.toString());
+}
+```
+
+##### Handling gateway errors with error_cause_id
+```java
+try {
+ // Payment operation
+} catch (PaymentException e) {
+ // error_cause_id helps standardize errors across different payment gateways
+ String errorCauseId = e.getErrorCauseId();
+
+ if (errorCauseId != null) {
+ // Use error_cause_id for consistent handling across gateways
+ System.err.println("Gateway error cause: " + errorCauseId);
+
+ }
+
+ // Check the specific API error code using typed enum
+ ApiErrorCode errorCode = e.getApiErrorCode();
+ if (errorCode instanceof BadRequestApiErrorCode) {
+ BadRequestApiErrorCode code = (BadRequestApiErrorCode) errorCode;
+ if (code == BadRequestApiErrorCode.PAYMENT_PROCESSING_FAILED) {
+ // Handle payment failure
+ }
+ }
+}
+```
+
+##### Async exception handling
+```java
+import java.util.concurrent.CompletableFuture;
+
+CompletableFuture futureCustomer = customers.create(params);
+
+futureCustomer
+ .thenAccept(customer -> {
+ System.out.println("Customer created: " + customer.getCustomer().getId());
+ })
+ .exceptionally(throwable -> {
+ if (throwable.getCause() instanceof InvalidRequestException) {
+ InvalidRequestException e = (InvalidRequestException) throwable.getCause();
+ ApiErrorCode errorCode = e.getApiErrorCode();
+
+ if (errorCode instanceof BadRequestApiErrorCode) {
+ BadRequestApiErrorCode code = (BadRequestApiErrorCode) errorCode;
+ if (code == BadRequestApiErrorCode.DUPLICATE_ENTRY) {
+ System.err.println("Customer already exists");
+ }
+ } else {
+ System.err.println("Validation error: " + e.getMessage());
+ }
+ } else if (throwable.getCause() instanceof APIException) {
+ APIException e = (APIException) throwable.getCause();
+ System.err.println("API error: " + e.getApiErrorCodeRaw());
+ } else {
+ System.err.println("Unexpected error: " + throwable.getMessage());
+ }
+ return null;
+ });
+```
+
### v3 SDK Examples
#### Create a subscription
diff --git a/build.gradle.kts b/build.gradle.kts
index 17a645f7..70f6085a 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -6,7 +6,7 @@ plugins {
}
group = "com.chargebee"
-version = "4.0.0-beta.2"
+version = "4.0.0"
description = "Next-gen Java client library for ChargeBee API"
// Project metadata
diff --git a/dist/chargebee-java-4.0.0-beta.2-javadoc.jar b/dist/chargebee-java-4.0.0-beta.2-javadoc.jar
deleted file mode 100644
index 47fa0c9a..00000000
Binary files a/dist/chargebee-java-4.0.0-beta.2-javadoc.jar and /dev/null differ
diff --git a/dist/chargebee-java-4.0.0-beta.2-sources.jar b/dist/chargebee-java-4.0.0-beta.2-sources.jar
deleted file mode 100644
index 13f24807..00000000
Binary files a/dist/chargebee-java-4.0.0-beta.2-sources.jar and /dev/null differ
diff --git a/dist/chargebee-java-4.0.0-beta.2.jar b/dist/chargebee-java-4.0.0-beta.2.jar
deleted file mode 100644
index acaac252..00000000
Binary files a/dist/chargebee-java-4.0.0-beta.2.jar and /dev/null differ
diff --git a/dist/chargebee-java-4.0.0-javadoc.jar b/dist/chargebee-java-4.0.0-javadoc.jar
new file mode 100644
index 00000000..590a3a0c
Binary files /dev/null and b/dist/chargebee-java-4.0.0-javadoc.jar differ
diff --git a/dist/chargebee-java-4.0.0-sources.jar b/dist/chargebee-java-4.0.0-sources.jar
new file mode 100644
index 00000000..d1648189
Binary files /dev/null and b/dist/chargebee-java-4.0.0-sources.jar differ
diff --git a/dist/chargebee-java-4.0.0.jar b/dist/chargebee-java-4.0.0.jar
new file mode 100644
index 00000000..ee282e8b
Binary files /dev/null and b/dist/chargebee-java-4.0.0.jar differ
diff --git a/docs/MIGRATION_GUIDE.md b/docs/MIGRATION_GUIDE.md
index 84ebe957..eb2d03d8 100644
--- a/docs/MIGRATION_GUIDE.md
+++ b/docs/MIGRATION_GUIDE.md
@@ -34,7 +34,7 @@ The v4 SDK provides a modern, immutable client with enhanced type safety and imp
com.chargebee
chargebee-java
- 4.0.0-beta.1
+ 4.0.0
```
diff --git a/src/main/java/com/chargebee/v4/client/ChargebeeClient.java b/src/main/java/com/chargebee/v4/client/ChargebeeClient.java
index c62bfd9f..a5ec524e 100644
--- a/src/main/java/com/chargebee/v4/client/ChargebeeClient.java
+++ b/src/main/java/com/chargebee/v4/client/ChargebeeClient.java
@@ -3,6 +3,11 @@
import com.chargebee.v4.client.request.RequestContext;
import com.chargebee.v4.client.request.RequestInterceptor;
import com.chargebee.v4.client.request.RequestWrap;
+import com.chargebee.v4.exceptions.ChargebeeException;
+import com.chargebee.v4.exceptions.ConfigurationException;
+import com.chargebee.v4.exceptions.NetworkException;
+import com.chargebee.v4.exceptions.TimeoutException;
+import com.chargebee.v4.exceptions.TransportException;
import com.chargebee.v4.internal.RetryConfig;
import com.chargebee.v4.transport.*;
import com.chargebee.v4.transport.Transport;
@@ -105,9 +110,9 @@ public String getBaseUrl() {
* @param path the API path (e.g., "/customers")
* @param queryParams optional query parameters
* @return the HTTP response
- * @throws Exception for network, timeout, configuration failures, or interceptor errors
+ * @throws ChargebeeException for network, timeout, configuration failures, or interceptor errors
*/
- public Response get(String path, Map> queryParams) throws Exception {
+ public Response get(String path, Map> queryParams) throws ChargebeeException {
Map objectParams = new HashMap<>(queryParams);
String fullUrl = UrlBuilder.buildUrl(getBaseUrl(), path, objectParams);
Request.Builder builder = Request.builder()
@@ -126,9 +131,9 @@ public Response get(String path, Map> queryParams) throws E
*
* @param path the API path (e.g., "/customers")
* @return the HTTP response
- * @throws Exception for network, timeout, configuration failures, or interceptor errors
+ * @throws ChargebeeException for network, timeout, configuration failures, or interceptor errors
*/
- public Response get(String path) throws Exception {
+ public Response get(String path) throws ChargebeeException {
return get(path, Collections.emptyMap());
}
@@ -169,9 +174,9 @@ public CompletableFuture getAsync(String path) {
* @param path the API path (e.g., "/customers")
* @param formData the form data to send
* @return the HTTP response
- * @throws Exception for network, timeout, configuration failures, or interceptor errors
+ * @throws ChargebeeException for network, timeout, configuration failures, or interceptor errors
*/
- public Response post(String path, Map formData) throws Exception {
+ public Response post(String path, Map formData) throws ChargebeeException {
String fullUrl = UrlBuilder.buildUrl(getBaseUrl(), path, null);
Request.Builder builder = Request.builder()
.method("POST")
@@ -191,9 +196,9 @@ public Response post(String path, Map formData) throws Exception
* @param path the API path (e.g., "/customers")
* @param jsonData the JSON data to send
* @return the HTTP response
- * @throws Exception for network, timeout, configuration failures, or interceptor errors
+ * @throws ChargebeeException for network, timeout, configuration failures, or interceptor errors
*/
- public Response postJson(String path, String jsonData) throws Exception {
+ public Response postJson(String path, String jsonData) throws ChargebeeException {
String fullUrl = UrlBuilder.buildUrl(getBaseUrl(), path, null);
Request.Builder builder = Request.builder()
.method("POST")
@@ -252,7 +257,7 @@ public CompletableFuture postJsonAsync(String path, String jsonData) {
/**
* Execute a request with optional interceptor.
*/
- public Response executeWithInterceptor(Request request) throws Exception {
+ public Response executeWithInterceptor(Request request) throws ChargebeeException {
if (requestInterceptor != null) {
RequestWrap requestWrap = new RequestWrap(this, request);
return requestInterceptor.handleRequest(requestWrap);
@@ -276,7 +281,7 @@ public CompletableFuture executeWithInterceptorAsync(Request request)
/**
* Send a request with retry logic based on the configured RetryConfig.
*/
- public Response sendWithRetry(Request request) throws TransportException {
+ public Response sendWithRetry(Request request) {
Request enrichedRequest = addDefaultHeaders(request);
Integer overrideRetries = enrichedRequest.getMaxNetworkRetriesOverride();
diff --git a/src/main/java/com/chargebee/v4/client/ClientMethods.java b/src/main/java/com/chargebee/v4/client/ClientMethods.java
index ab475b0f..7a8ce455 100644
--- a/src/main/java/com/chargebee/v4/client/ClientMethods.java
+++ b/src/main/java/com/chargebee/v4/client/ClientMethods.java
@@ -1,166 +1,166 @@
package com.chargebee.v4.client;
-import com.chargebee.v4.core.services.GiftService;
+import com.chargebee.v4.services.GiftService;
-import com.chargebee.v4.core.services.CsvTaxRuleService;
+import com.chargebee.v4.services.CsvTaxRuleService;
-import com.chargebee.v4.core.services.UsageService;
+import com.chargebee.v4.services.UsageService;
-import com.chargebee.v4.core.services.TimeMachineService;
+import com.chargebee.v4.services.TimeMachineService;
-import com.chargebee.v4.core.services.BusinessEntityService;
+import com.chargebee.v4.services.BusinessEntityService;
-import com.chargebee.v4.core.services.OfferEventService;
+import com.chargebee.v4.services.OfferEventService;
-import com.chargebee.v4.core.services.InAppSubscriptionService;
+import com.chargebee.v4.services.InAppSubscriptionService;
-import com.chargebee.v4.core.services.Pc2MigrationService;
+import com.chargebee.v4.services.Pc2MigrationService;
-import com.chargebee.v4.core.services.CreditNoteService;
+import com.chargebee.v4.services.CreditNoteService;
-import com.chargebee.v4.core.services.CouponSetService;
+import com.chargebee.v4.services.CouponSetService;
-import com.chargebee.v4.core.services.QuoteService;
+import com.chargebee.v4.services.QuoteService;
-import com.chargebee.v4.core.services.Pc2MigrationItemService;
+import com.chargebee.v4.services.Pc2MigrationItemService;
-import com.chargebee.v4.core.services.EstimateService;
+import com.chargebee.v4.services.EstimateService;
-import com.chargebee.v4.core.services.VariantService;
+import com.chargebee.v4.services.VariantService;
-import com.chargebee.v4.core.services.Pc2MigrationItemFamilyService;
+import com.chargebee.v4.services.Pc2MigrationItemFamilyService;
-import com.chargebee.v4.core.services.PaymentSourceService;
+import com.chargebee.v4.services.PaymentSourceService;
-import com.chargebee.v4.core.services.RecordedPurchaseService;
+import com.chargebee.v4.services.RecordedPurchaseService;
-import com.chargebee.v4.core.services.PlanService;
+import com.chargebee.v4.services.PlanService;
-import com.chargebee.v4.core.services.ExportService;
+import com.chargebee.v4.services.ExportService;
-import com.chargebee.v4.core.services.OrderService;
+import com.chargebee.v4.services.OrderService;
-import com.chargebee.v4.core.services.ItemService;
+import com.chargebee.v4.services.ItemService;
-import com.chargebee.v4.core.services.CustomerEntitlementService;
+import com.chargebee.v4.services.CustomerEntitlementService;
-import com.chargebee.v4.core.services.PersonalizedOfferService;
+import com.chargebee.v4.services.PersonalizedOfferService;
-import com.chargebee.v4.core.services.OmnichannelSubscriptionService;
+import com.chargebee.v4.services.OmnichannelSubscriptionService;
-import com.chargebee.v4.core.services.OmnichannelSubscriptionItemService;
+import com.chargebee.v4.services.OmnichannelSubscriptionItemService;
-import com.chargebee.v4.core.services.RampService;
+import com.chargebee.v4.services.RampService;
-import com.chargebee.v4.core.services.OmnichannelOneTimeOrderService;
+import com.chargebee.v4.services.OmnichannelOneTimeOrderService;
-import com.chargebee.v4.core.services.DifferentialPriceService;
+import com.chargebee.v4.services.DifferentialPriceService;
-import com.chargebee.v4.core.services.EntitlementService;
+import com.chargebee.v4.services.EntitlementService;
-import com.chargebee.v4.core.services.AdditionalBillingLogiqService;
+import com.chargebee.v4.services.AdditionalBillingLogiqService;
-import com.chargebee.v4.core.services.SubscriptionSettingService;
+import com.chargebee.v4.services.SubscriptionSettingService;
-import com.chargebee.v4.core.services.SiteMigrationDetailService;
+import com.chargebee.v4.services.SiteMigrationDetailService;
-import com.chargebee.v4.core.services.PaymentIntentService;
+import com.chargebee.v4.services.PaymentIntentService;
-import com.chargebee.v4.core.services.PaymentScheduleSchemeService;
+import com.chargebee.v4.services.PaymentScheduleSchemeService;
-import com.chargebee.v4.core.services.CardService;
+import com.chargebee.v4.services.CardService;
-import com.chargebee.v4.core.services.AttachedItemService;
+import com.chargebee.v4.services.AttachedItemService;
-import com.chargebee.v4.core.services.UsageEventService;
+import com.chargebee.v4.services.UsageEventService;
-import com.chargebee.v4.core.services.PriceVariantService;
+import com.chargebee.v4.services.PriceVariantService;
-import com.chargebee.v4.core.services.FullExportService;
+import com.chargebee.v4.services.FullExportService;
-import com.chargebee.v4.core.services.VirtualBankAccountService;
+import com.chargebee.v4.services.VirtualBankAccountService;
-import com.chargebee.v4.core.services.AddonService;
+import com.chargebee.v4.services.AddonService;
-import com.chargebee.v4.core.services.TpSiteUserService;
+import com.chargebee.v4.services.TpSiteUserService;
-import com.chargebee.v4.core.services.ConfigurationService;
+import com.chargebee.v4.services.ConfigurationService;
-import com.chargebee.v4.core.services.PricingPageSessionService;
+import com.chargebee.v4.services.PricingPageSessionService;
-import com.chargebee.v4.core.services.Pc2MigrationItemPriceService;
+import com.chargebee.v4.services.Pc2MigrationItemPriceService;
-import com.chargebee.v4.core.services.RuleService;
+import com.chargebee.v4.services.RuleService;
-import com.chargebee.v4.core.services.SubscriptionService;
+import com.chargebee.v4.services.SubscriptionService;
-import com.chargebee.v4.core.services.MediaService;
+import com.chargebee.v4.services.MediaService;
-import com.chargebee.v4.core.services.BusinessProfileService;
+import com.chargebee.v4.services.BusinessProfileService;
-import com.chargebee.v4.core.services.PromotionalCreditService;
+import com.chargebee.v4.services.PromotionalCreditService;
-import com.chargebee.v4.core.services.BrandConfigurationService;
+import com.chargebee.v4.services.BrandConfigurationService;
-import com.chargebee.v4.core.services.WebhookEndpointService;
+import com.chargebee.v4.services.WebhookEndpointService;
-import com.chargebee.v4.core.services.FeatureService;
+import com.chargebee.v4.services.FeatureService;
-import com.chargebee.v4.core.services.UnbilledChargesSettingService;
+import com.chargebee.v4.services.UnbilledChargesSettingService;
-import com.chargebee.v4.core.services.CurrencyService;
+import com.chargebee.v4.services.CurrencyService;
-import com.chargebee.v4.core.services.EventService;
+import com.chargebee.v4.services.EventService;
-import com.chargebee.v4.core.services.UsageFileService;
+import com.chargebee.v4.services.UsageFileService;
-import com.chargebee.v4.core.services.NonSubscriptionService;
+import com.chargebee.v4.services.NonSubscriptionService;
-import com.chargebee.v4.core.services.ResourceMigrationService;
+import com.chargebee.v4.services.ResourceMigrationService;
-import com.chargebee.v4.core.services.ProductService;
+import com.chargebee.v4.services.ProductService;
-import com.chargebee.v4.core.services.CouponCodeService;
+import com.chargebee.v4.services.CouponCodeService;
-import com.chargebee.v4.core.services.AddressService;
+import com.chargebee.v4.services.AddressService;
-import com.chargebee.v4.core.services.CouponService;
+import com.chargebee.v4.services.CouponService;
-import com.chargebee.v4.core.services.PortalSessionService;
+import com.chargebee.v4.services.PortalSessionService;
-import com.chargebee.v4.core.services.ItemPriceService;
+import com.chargebee.v4.services.ItemPriceService;
-import com.chargebee.v4.core.services.OfferFulfillmentService;
+import com.chargebee.v4.services.OfferFulfillmentService;
-import com.chargebee.v4.core.services.HostedPageService;
+import com.chargebee.v4.services.HostedPageService;
-import com.chargebee.v4.core.services.PurchaseService;
+import com.chargebee.v4.services.PurchaseService;
-import com.chargebee.v4.core.services.PaymentVoucherService;
+import com.chargebee.v4.services.PaymentVoucherService;
-import com.chargebee.v4.core.services.ItemFamilyService;
+import com.chargebee.v4.services.ItemFamilyService;
-import com.chargebee.v4.core.services.SubscriptionEntitlementService;
+import com.chargebee.v4.services.SubscriptionEntitlementService;
-import com.chargebee.v4.core.services.ThirdPartyEntityMappingService;
+import com.chargebee.v4.services.ThirdPartyEntityMappingService;
-import com.chargebee.v4.core.services.EntitlementOverrideService;
+import com.chargebee.v4.services.EntitlementOverrideService;
-import com.chargebee.v4.core.services.ThirdPartyConfigurationService;
+import com.chargebee.v4.services.ThirdPartyConfigurationService;
-import com.chargebee.v4.core.services.UnbilledChargeService;
+import com.chargebee.v4.services.UnbilledChargeService;
-import com.chargebee.v4.core.services.CommentService;
+import com.chargebee.v4.services.CommentService;
-import com.chargebee.v4.core.services.InvoiceService;
+import com.chargebee.v4.services.InvoiceService;
-import com.chargebee.v4.core.services.TransactionService;
+import com.chargebee.v4.services.TransactionService;
-import com.chargebee.v4.core.services.ThirdPartySyncDetailService;
+import com.chargebee.v4.services.ThirdPartySyncDetailService;
-import com.chargebee.v4.core.services.CustomerService;
+import com.chargebee.v4.services.CustomerService;
-import com.chargebee.v4.core.services.ItemEntitlementService;
+import com.chargebee.v4.services.ItemEntitlementService;
/**
* Auto-generated interface defining all service access methods. ChargebeeClient implements this
@@ -173,565 +173,565 @@ public interface ClientMethods {
*
* @return GiftService instance for fluent API access
*/
- GiftService gift();
+ GiftService gifts();
/**
* Access csv_tax_rule-related operations.
*
* @return CsvTaxRuleService instance for fluent API access
*/
- CsvTaxRuleService csvTaxRule();
+ CsvTaxRuleService csvTaxRules();
/**
* Access usage-related operations.
*
* @return UsageService instance for fluent API access
*/
- UsageService usage();
+ UsageService usages();
/**
* Access time_machine-related operations.
*
* @return TimeMachineService instance for fluent API access
*/
- TimeMachineService timeMachine();
+ TimeMachineService timeMachines();
/**
* Access business_entity-related operations.
*
* @return BusinessEntityService instance for fluent API access
*/
- BusinessEntityService businessEntity();
+ BusinessEntityService businessEntities();
/**
* Access offer_event-related operations.
*
* @return OfferEventService instance for fluent API access
*/
- OfferEventService offerEvent();
+ OfferEventService offerEvents();
/**
* Access in_app_subscription-related operations.
*
* @return InAppSubscriptionService instance for fluent API access
*/
- InAppSubscriptionService inAppSubscription();
+ InAppSubscriptionService inAppSubscriptions();
/**
* Access pc2_migration-related operations.
*
* @return Pc2MigrationService instance for fluent API access
*/
- Pc2MigrationService pc2Migration();
+ Pc2MigrationService pc2Migrations();
/**
* Access credit_note-related operations.
*
* @return CreditNoteService instance for fluent API access
*/
- CreditNoteService creditNote();
+ CreditNoteService creditNotes();
/**
* Access coupon_set-related operations.
*
* @return CouponSetService instance for fluent API access
*/
- CouponSetService couponSet();
+ CouponSetService couponSets();
/**
* Access quote-related operations.
*
* @return QuoteService instance for fluent API access
*/
- QuoteService quote();
+ QuoteService quotes();
/**
* Access pc2_migration_item-related operations.
*
* @return Pc2MigrationItemService instance for fluent API access
*/
- Pc2MigrationItemService pc2MigrationItem();
+ Pc2MigrationItemService pc2MigrationItems();
/**
* Access estimate-related operations.
*
* @return EstimateService instance for fluent API access
*/
- EstimateService estimate();
+ EstimateService estimates();
/**
* Access variant-related operations.
*
* @return VariantService instance for fluent API access
*/
- VariantService variant();
+ VariantService variants();
/**
* Access pc2_migration_item_family-related operations.
*
* @return Pc2MigrationItemFamilyService instance for fluent API access
*/
- Pc2MigrationItemFamilyService pc2MigrationItemFamily();
+ Pc2MigrationItemFamilyService pc2MigrationItemFamilies();
/**
* Access payment_source-related operations.
*
* @return PaymentSourceService instance for fluent API access
*/
- PaymentSourceService paymentSource();
+ PaymentSourceService paymentSources();
/**
* Access recorded_purchase-related operations.
*
* @return RecordedPurchaseService instance for fluent API access
*/
- RecordedPurchaseService recordedPurchase();
+ RecordedPurchaseService recordedPurchases();
/**
* Access plan-related operations.
*
* @return PlanService instance for fluent API access
*/
- PlanService plan();
+ PlanService plans();
/**
* Access export-related operations.
*
* @return ExportService instance for fluent API access
*/
- ExportService export();
+ ExportService exports();
/**
* Access order-related operations.
*
* @return OrderService instance for fluent API access
*/
- OrderService order();
+ OrderService orders();
/**
* Access item-related operations.
*
* @return ItemService instance for fluent API access
*/
- ItemService item();
+ ItemService items();
/**
* Access customer_entitlement-related operations.
*
* @return CustomerEntitlementService instance for fluent API access
*/
- CustomerEntitlementService customerEntitlement();
+ CustomerEntitlementService customerEntitlements();
/**
* Access personalized_offer-related operations.
*
* @return PersonalizedOfferService instance for fluent API access
*/
- PersonalizedOfferService personalizedOffer();
+ PersonalizedOfferService personalizedOffers();
/**
* Access omnichannel_subscription-related operations.
*
* @return OmnichannelSubscriptionService instance for fluent API access
*/
- OmnichannelSubscriptionService omnichannelSubscription();
+ OmnichannelSubscriptionService omnichannelSubscriptions();
/**
* Access omnichannel_subscription_item-related operations.
*
* @return OmnichannelSubscriptionItemService instance for fluent API access
*/
- OmnichannelSubscriptionItemService omnichannelSubscriptionItem();
+ OmnichannelSubscriptionItemService omnichannelSubscriptionItems();
/**
* Access ramp-related operations.
*
* @return RampService instance for fluent API access
*/
- RampService ramp();
+ RampService ramps();
/**
* Access omnichannel_one_time_order-related operations.
*
* @return OmnichannelOneTimeOrderService instance for fluent API access
*/
- OmnichannelOneTimeOrderService omnichannelOneTimeOrder();
+ OmnichannelOneTimeOrderService omnichannelOneTimeOrders();
/**
* Access differential_price-related operations.
*
* @return DifferentialPriceService instance for fluent API access
*/
- DifferentialPriceService differentialPrice();
+ DifferentialPriceService differentialPrices();
/**
* Access entitlement-related operations.
*
* @return EntitlementService instance for fluent API access
*/
- EntitlementService entitlement();
+ EntitlementService entitlements();
/**
* Access additional_billing_logiq-related operations.
*
* @return AdditionalBillingLogiqService instance for fluent API access
*/
- AdditionalBillingLogiqService additionalBillingLogiq();
+ AdditionalBillingLogiqService additionalBillingLogiqs();
/**
* Access subscription_setting-related operations.
*
* @return SubscriptionSettingService instance for fluent API access
*/
- SubscriptionSettingService subscriptionSetting();
+ SubscriptionSettingService subscriptionSettings();
/**
* Access site_migration_detail-related operations.
*
* @return SiteMigrationDetailService instance for fluent API access
*/
- SiteMigrationDetailService siteMigrationDetail();
+ SiteMigrationDetailService siteMigrationDetails();
/**
* Access payment_intent-related operations.
*
* @return PaymentIntentService instance for fluent API access
*/
- PaymentIntentService paymentIntent();
+ PaymentIntentService paymentIntents();
/**
* Access payment_schedule_scheme-related operations.
*
* @return PaymentScheduleSchemeService instance for fluent API access
*/
- PaymentScheduleSchemeService paymentScheduleScheme();
+ PaymentScheduleSchemeService paymentScheduleSchemes();
/**
* Access card-related operations.
*
* @return CardService instance for fluent API access
*/
- CardService card();
+ CardService cards();
/**
* Access attached_item-related operations.
*
* @return AttachedItemService instance for fluent API access
*/
- AttachedItemService attachedItem();
+ AttachedItemService attachedItems();
/**
* Access usage_event-related operations.
*
* @return UsageEventService instance for fluent API access
*/
- UsageEventService usageEvent();
+ UsageEventService usageEvents();
/**
* Access price_variant-related operations.
*
* @return PriceVariantService instance for fluent API access
*/
- PriceVariantService priceVariant();
+ PriceVariantService priceVariants();
/**
* Access full_export-related operations.
*
* @return FullExportService instance for fluent API access
*/
- FullExportService fullExport();
+ FullExportService fullExports();
/**
* Access virtual_bank_account-related operations.
*
* @return VirtualBankAccountService instance for fluent API access
*/
- VirtualBankAccountService virtualBankAccount();
+ VirtualBankAccountService virtualBankAccounts();
/**
* Access addon-related operations.
*
* @return AddonService instance for fluent API access
*/
- AddonService addon();
+ AddonService addons();
/**
* Access tp_site_user-related operations.
*
* @return TpSiteUserService instance for fluent API access
*/
- TpSiteUserService tpSiteUser();
+ TpSiteUserService tpSiteUsers();
/**
* Access configuration-related operations.
*
* @return ConfigurationService instance for fluent API access
*/
- ConfigurationService configuration();
+ ConfigurationService configurations();
/**
* Access pricing_page_session-related operations.
*
* @return PricingPageSessionService instance for fluent API access
*/
- PricingPageSessionService pricingPageSession();
+ PricingPageSessionService pricingPageSessions();
/**
* Access pc2_migration_item_price-related operations.
*
* @return Pc2MigrationItemPriceService instance for fluent API access
*/
- Pc2MigrationItemPriceService pc2MigrationItemPrice();
+ Pc2MigrationItemPriceService pc2MigrationItemPrices();
/**
* Access rule-related operations.
*
* @return RuleService instance for fluent API access
*/
- RuleService rule();
+ RuleService rules();
/**
* Access subscription-related operations.
*
* @return SubscriptionService instance for fluent API access
*/
- SubscriptionService subscription();
+ SubscriptionService subscriptions();
/**
* Access media-related operations.
*
* @return MediaService instance for fluent API access
*/
- MediaService media();
+ MediaService medias();
/**
* Access business_profile-related operations.
*
* @return BusinessProfileService instance for fluent API access
*/
- BusinessProfileService businessProfile();
+ BusinessProfileService businessProfiles();
/**
* Access promotional_credit-related operations.
*
* @return PromotionalCreditService instance for fluent API access
*/
- PromotionalCreditService promotionalCredit();
+ PromotionalCreditService promotionalCredits();
/**
* Access brand_configuration-related operations.
*
* @return BrandConfigurationService instance for fluent API access
*/
- BrandConfigurationService brandConfiguration();
+ BrandConfigurationService brandConfigurations();
/**
* Access webhook_endpoint-related operations.
*
* @return WebhookEndpointService instance for fluent API access
*/
- WebhookEndpointService webhookEndpoint();
+ WebhookEndpointService webhookEndpoints();
/**
* Access feature-related operations.
*
* @return FeatureService instance for fluent API access
*/
- FeatureService feature();
+ FeatureService features();
/**
* Access unbilled_charges_setting-related operations.
*
* @return UnbilledChargesSettingService instance for fluent API access
*/
- UnbilledChargesSettingService unbilledChargesSetting();
+ UnbilledChargesSettingService unbilledChargesSettings();
/**
* Access currency-related operations.
*
* @return CurrencyService instance for fluent API access
*/
- CurrencyService currency();
+ CurrencyService currencies();
/**
* Access event-related operations.
*
* @return EventService instance for fluent API access
*/
- EventService event();
+ EventService events();
/**
* Access usage_file-related operations.
*
* @return UsageFileService instance for fluent API access
*/
- UsageFileService usageFile();
+ UsageFileService usageFiles();
/**
* Access non_subscription-related operations.
*
* @return NonSubscriptionService instance for fluent API access
*/
- NonSubscriptionService nonSubscription();
+ NonSubscriptionService nonSubscriptions();
/**
* Access resource_migration-related operations.
*
* @return ResourceMigrationService instance for fluent API access
*/
- ResourceMigrationService resourceMigration();
+ ResourceMigrationService resourceMigrations();
/**
* Access product-related operations.
*
* @return ProductService instance for fluent API access
*/
- ProductService product();
+ ProductService products();
/**
* Access coupon_code-related operations.
*
* @return CouponCodeService instance for fluent API access
*/
- CouponCodeService couponCode();
+ CouponCodeService couponCodes();
/**
* Access address-related operations.
*
* @return AddressService instance for fluent API access
*/
- AddressService address();
+ AddressService addresses();
/**
* Access coupon-related operations.
*
* @return CouponService instance for fluent API access
*/
- CouponService coupon();
+ CouponService coupons();
/**
* Access portal_session-related operations.
*
* @return PortalSessionService instance for fluent API access
*/
- PortalSessionService portalSession();
+ PortalSessionService portalSessions();
/**
* Access item_price-related operations.
*
* @return ItemPriceService instance for fluent API access
*/
- ItemPriceService itemPrice();
+ ItemPriceService itemPrices();
/**
* Access offer_fulfillment-related operations.
*
* @return OfferFulfillmentService instance for fluent API access
*/
- OfferFulfillmentService offerFulfillment();
+ OfferFulfillmentService offerFulfillments();
/**
* Access hosted_page-related operations.
*
* @return HostedPageService instance for fluent API access
*/
- HostedPageService hostedPage();
+ HostedPageService hostedPages();
/**
* Access purchase-related operations.
*
* @return PurchaseService instance for fluent API access
*/
- PurchaseService purchase();
+ PurchaseService purchases();
/**
* Access payment_voucher-related operations.
*
* @return PaymentVoucherService instance for fluent API access
*/
- PaymentVoucherService paymentVoucher();
+ PaymentVoucherService paymentVouchers();
/**
* Access item_family-related operations.
*
* @return ItemFamilyService instance for fluent API access
*/
- ItemFamilyService itemFamily();
+ ItemFamilyService itemFamilies();
/**
* Access subscription_entitlement-related operations.
*
* @return SubscriptionEntitlementService instance for fluent API access
*/
- SubscriptionEntitlementService subscriptionEntitlement();
+ SubscriptionEntitlementService subscriptionEntitlements();
/**
* Access third_party_entity_mapping-related operations.
*
* @return ThirdPartyEntityMappingService instance for fluent API access
*/
- ThirdPartyEntityMappingService thirdPartyEntityMapping();
+ ThirdPartyEntityMappingService thirdPartyEntityMappings();
/**
* Access entitlement_override-related operations.
*
* @return EntitlementOverrideService instance for fluent API access
*/
- EntitlementOverrideService entitlementOverride();
+ EntitlementOverrideService entitlementOverrides();
/**
* Access third_party_configuration-related operations.
*
* @return ThirdPartyConfigurationService instance for fluent API access
*/
- ThirdPartyConfigurationService thirdPartyConfiguration();
+ ThirdPartyConfigurationService thirdPartyConfigurations();
/**
* Access unbilled_charge-related operations.
*
* @return UnbilledChargeService instance for fluent API access
*/
- UnbilledChargeService unbilledCharge();
+ UnbilledChargeService unbilledCharges();
/**
* Access comment-related operations.
*
* @return CommentService instance for fluent API access
*/
- CommentService comment();
+ CommentService comments();
/**
* Access invoice-related operations.
*
* @return InvoiceService instance for fluent API access
*/
- InvoiceService invoice();
+ InvoiceService invoices();
/**
* Access transaction-related operations.
*
* @return TransactionService instance for fluent API access
*/
- TransactionService transaction();
+ TransactionService transactions();
/**
* Access third_party_sync_detail-related operations.
*
* @return ThirdPartySyncDetailService instance for fluent API access
*/
- ThirdPartySyncDetailService thirdPartySyncDetail();
+ ThirdPartySyncDetailService thirdPartySyncDetails();
/**
* Access customer-related operations.
*
* @return CustomerService instance for fluent API access
*/
- CustomerService customer();
+ CustomerService customers();
/**
* Access item_entitlement-related operations.
*
* @return ItemEntitlementService instance for fluent API access
*/
- ItemEntitlementService itemEntitlement();
+ ItemEntitlementService itemEntitlements();
}
diff --git a/src/main/java/com/chargebee/v4/client/ClientMethodsImpl.java b/src/main/java/com/chargebee/v4/client/ClientMethodsImpl.java
index a669c34e..5aed49b1 100644
--- a/src/main/java/com/chargebee/v4/client/ClientMethodsImpl.java
+++ b/src/main/java/com/chargebee/v4/client/ClientMethodsImpl.java
@@ -1,166 +1,166 @@
package com.chargebee.v4.client;
-import com.chargebee.v4.core.services.GiftService;
+import com.chargebee.v4.services.GiftService;
-import com.chargebee.v4.core.services.CsvTaxRuleService;
+import com.chargebee.v4.services.CsvTaxRuleService;
-import com.chargebee.v4.core.services.UsageService;
+import com.chargebee.v4.services.UsageService;
-import com.chargebee.v4.core.services.TimeMachineService;
+import com.chargebee.v4.services.TimeMachineService;
-import com.chargebee.v4.core.services.BusinessEntityService;
+import com.chargebee.v4.services.BusinessEntityService;
-import com.chargebee.v4.core.services.OfferEventService;
+import com.chargebee.v4.services.OfferEventService;
-import com.chargebee.v4.core.services.InAppSubscriptionService;
+import com.chargebee.v4.services.InAppSubscriptionService;
-import com.chargebee.v4.core.services.Pc2MigrationService;
+import com.chargebee.v4.services.Pc2MigrationService;
-import com.chargebee.v4.core.services.CreditNoteService;
+import com.chargebee.v4.services.CreditNoteService;
-import com.chargebee.v4.core.services.CouponSetService;
+import com.chargebee.v4.services.CouponSetService;
-import com.chargebee.v4.core.services.QuoteService;
+import com.chargebee.v4.services.QuoteService;
-import com.chargebee.v4.core.services.Pc2MigrationItemService;
+import com.chargebee.v4.services.Pc2MigrationItemService;
-import com.chargebee.v4.core.services.EstimateService;
+import com.chargebee.v4.services.EstimateService;
-import com.chargebee.v4.core.services.VariantService;
+import com.chargebee.v4.services.VariantService;
-import com.chargebee.v4.core.services.Pc2MigrationItemFamilyService;
+import com.chargebee.v4.services.Pc2MigrationItemFamilyService;
-import com.chargebee.v4.core.services.PaymentSourceService;
+import com.chargebee.v4.services.PaymentSourceService;
-import com.chargebee.v4.core.services.RecordedPurchaseService;
+import com.chargebee.v4.services.RecordedPurchaseService;
-import com.chargebee.v4.core.services.PlanService;
+import com.chargebee.v4.services.PlanService;
-import com.chargebee.v4.core.services.ExportService;
+import com.chargebee.v4.services.ExportService;
-import com.chargebee.v4.core.services.OrderService;
+import com.chargebee.v4.services.OrderService;
-import com.chargebee.v4.core.services.ItemService;
+import com.chargebee.v4.services.ItemService;
-import com.chargebee.v4.core.services.CustomerEntitlementService;
+import com.chargebee.v4.services.CustomerEntitlementService;
-import com.chargebee.v4.core.services.PersonalizedOfferService;
+import com.chargebee.v4.services.PersonalizedOfferService;
-import com.chargebee.v4.core.services.OmnichannelSubscriptionService;
+import com.chargebee.v4.services.OmnichannelSubscriptionService;
-import com.chargebee.v4.core.services.OmnichannelSubscriptionItemService;
+import com.chargebee.v4.services.OmnichannelSubscriptionItemService;
-import com.chargebee.v4.core.services.RampService;
+import com.chargebee.v4.services.RampService;
-import com.chargebee.v4.core.services.OmnichannelOneTimeOrderService;
+import com.chargebee.v4.services.OmnichannelOneTimeOrderService;
-import com.chargebee.v4.core.services.DifferentialPriceService;
+import com.chargebee.v4.services.DifferentialPriceService;
-import com.chargebee.v4.core.services.EntitlementService;
+import com.chargebee.v4.services.EntitlementService;
-import com.chargebee.v4.core.services.AdditionalBillingLogiqService;
+import com.chargebee.v4.services.AdditionalBillingLogiqService;
-import com.chargebee.v4.core.services.SubscriptionSettingService;
+import com.chargebee.v4.services.SubscriptionSettingService;
-import com.chargebee.v4.core.services.SiteMigrationDetailService;
+import com.chargebee.v4.services.SiteMigrationDetailService;
-import com.chargebee.v4.core.services.PaymentIntentService;
+import com.chargebee.v4.services.PaymentIntentService;
-import com.chargebee.v4.core.services.PaymentScheduleSchemeService;
+import com.chargebee.v4.services.PaymentScheduleSchemeService;
-import com.chargebee.v4.core.services.CardService;
+import com.chargebee.v4.services.CardService;
-import com.chargebee.v4.core.services.AttachedItemService;
+import com.chargebee.v4.services.AttachedItemService;
-import com.chargebee.v4.core.services.UsageEventService;
+import com.chargebee.v4.services.UsageEventService;
-import com.chargebee.v4.core.services.PriceVariantService;
+import com.chargebee.v4.services.PriceVariantService;
-import com.chargebee.v4.core.services.FullExportService;
+import com.chargebee.v4.services.FullExportService;
-import com.chargebee.v4.core.services.VirtualBankAccountService;
+import com.chargebee.v4.services.VirtualBankAccountService;
-import com.chargebee.v4.core.services.AddonService;
+import com.chargebee.v4.services.AddonService;
-import com.chargebee.v4.core.services.TpSiteUserService;
+import com.chargebee.v4.services.TpSiteUserService;
-import com.chargebee.v4.core.services.ConfigurationService;
+import com.chargebee.v4.services.ConfigurationService;
-import com.chargebee.v4.core.services.PricingPageSessionService;
+import com.chargebee.v4.services.PricingPageSessionService;
-import com.chargebee.v4.core.services.Pc2MigrationItemPriceService;
+import com.chargebee.v4.services.Pc2MigrationItemPriceService;
-import com.chargebee.v4.core.services.RuleService;
+import com.chargebee.v4.services.RuleService;
-import com.chargebee.v4.core.services.SubscriptionService;
+import com.chargebee.v4.services.SubscriptionService;
-import com.chargebee.v4.core.services.MediaService;
+import com.chargebee.v4.services.MediaService;
-import com.chargebee.v4.core.services.BusinessProfileService;
+import com.chargebee.v4.services.BusinessProfileService;
-import com.chargebee.v4.core.services.PromotionalCreditService;
+import com.chargebee.v4.services.PromotionalCreditService;
-import com.chargebee.v4.core.services.BrandConfigurationService;
+import com.chargebee.v4.services.BrandConfigurationService;
-import com.chargebee.v4.core.services.WebhookEndpointService;
+import com.chargebee.v4.services.WebhookEndpointService;
-import com.chargebee.v4.core.services.FeatureService;
+import com.chargebee.v4.services.FeatureService;
-import com.chargebee.v4.core.services.UnbilledChargesSettingService;
+import com.chargebee.v4.services.UnbilledChargesSettingService;
-import com.chargebee.v4.core.services.CurrencyService;
+import com.chargebee.v4.services.CurrencyService;
-import com.chargebee.v4.core.services.EventService;
+import com.chargebee.v4.services.EventService;
-import com.chargebee.v4.core.services.UsageFileService;
+import com.chargebee.v4.services.UsageFileService;
-import com.chargebee.v4.core.services.NonSubscriptionService;
+import com.chargebee.v4.services.NonSubscriptionService;
-import com.chargebee.v4.core.services.ResourceMigrationService;
+import com.chargebee.v4.services.ResourceMigrationService;
-import com.chargebee.v4.core.services.ProductService;
+import com.chargebee.v4.services.ProductService;
-import com.chargebee.v4.core.services.CouponCodeService;
+import com.chargebee.v4.services.CouponCodeService;
-import com.chargebee.v4.core.services.AddressService;
+import com.chargebee.v4.services.AddressService;
-import com.chargebee.v4.core.services.CouponService;
+import com.chargebee.v4.services.CouponService;
-import com.chargebee.v4.core.services.PortalSessionService;
+import com.chargebee.v4.services.PortalSessionService;
-import com.chargebee.v4.core.services.ItemPriceService;
+import com.chargebee.v4.services.ItemPriceService;
-import com.chargebee.v4.core.services.OfferFulfillmentService;
+import com.chargebee.v4.services.OfferFulfillmentService;
-import com.chargebee.v4.core.services.HostedPageService;
+import com.chargebee.v4.services.HostedPageService;
-import com.chargebee.v4.core.services.PurchaseService;
+import com.chargebee.v4.services.PurchaseService;
-import com.chargebee.v4.core.services.PaymentVoucherService;
+import com.chargebee.v4.services.PaymentVoucherService;
-import com.chargebee.v4.core.services.ItemFamilyService;
+import com.chargebee.v4.services.ItemFamilyService;
-import com.chargebee.v4.core.services.SubscriptionEntitlementService;
+import com.chargebee.v4.services.SubscriptionEntitlementService;
-import com.chargebee.v4.core.services.ThirdPartyEntityMappingService;
+import com.chargebee.v4.services.ThirdPartyEntityMappingService;
-import com.chargebee.v4.core.services.EntitlementOverrideService;
+import com.chargebee.v4.services.EntitlementOverrideService;
-import com.chargebee.v4.core.services.ThirdPartyConfigurationService;
+import com.chargebee.v4.services.ThirdPartyConfigurationService;
-import com.chargebee.v4.core.services.UnbilledChargeService;
+import com.chargebee.v4.services.UnbilledChargeService;
-import com.chargebee.v4.core.services.CommentService;
+import com.chargebee.v4.services.CommentService;
-import com.chargebee.v4.core.services.InvoiceService;
+import com.chargebee.v4.services.InvoiceService;
-import com.chargebee.v4.core.services.TransactionService;
+import com.chargebee.v4.services.TransactionService;
-import com.chargebee.v4.core.services.ThirdPartySyncDetailService;
+import com.chargebee.v4.services.ThirdPartySyncDetailService;
-import com.chargebee.v4.core.services.CustomerService;
+import com.chargebee.v4.services.CustomerService;
-import com.chargebee.v4.core.services.ItemEntitlementService;
+import com.chargebee.v4.services.ItemEntitlementService;
/**
* Auto-generated implementation of ClientMethods interface. This class provides the actual service
@@ -171,407 +171,407 @@ abstract class ClientMethodsImpl implements ClientMethods {
protected abstract ServiceRegistry getServiceRegistry();
@Override
- public GiftService gift() {
- return getServiceRegistry().gift();
+ public GiftService gifts() {
+ return getServiceRegistry().gifts();
}
@Override
- public CsvTaxRuleService csvTaxRule() {
- return getServiceRegistry().csvTaxRule();
+ public CsvTaxRuleService csvTaxRules() {
+ return getServiceRegistry().csvTaxRules();
}
@Override
- public UsageService usage() {
- return getServiceRegistry().usage();
+ public UsageService usages() {
+ return getServiceRegistry().usages();
}
@Override
- public TimeMachineService timeMachine() {
- return getServiceRegistry().timeMachine();
+ public TimeMachineService timeMachines() {
+ return getServiceRegistry().timeMachines();
}
@Override
- public BusinessEntityService businessEntity() {
- return getServiceRegistry().businessEntity();
+ public BusinessEntityService businessEntities() {
+ return getServiceRegistry().businessEntities();
}
@Override
- public OfferEventService offerEvent() {
- return getServiceRegistry().offerEvent();
+ public OfferEventService offerEvents() {
+ return getServiceRegistry().offerEvents();
}
@Override
- public InAppSubscriptionService inAppSubscription() {
- return getServiceRegistry().inAppSubscription();
+ public InAppSubscriptionService inAppSubscriptions() {
+ return getServiceRegistry().inAppSubscriptions();
}
@Override
- public Pc2MigrationService pc2Migration() {
- return getServiceRegistry().pc2Migration();
+ public Pc2MigrationService pc2Migrations() {
+ return getServiceRegistry().pc2Migrations();
}
@Override
- public CreditNoteService creditNote() {
- return getServiceRegistry().creditNote();
+ public CreditNoteService creditNotes() {
+ return getServiceRegistry().creditNotes();
}
@Override
- public CouponSetService couponSet() {
- return getServiceRegistry().couponSet();
+ public CouponSetService couponSets() {
+ return getServiceRegistry().couponSets();
}
@Override
- public QuoteService quote() {
- return getServiceRegistry().quote();
+ public QuoteService quotes() {
+ return getServiceRegistry().quotes();
}
@Override
- public Pc2MigrationItemService pc2MigrationItem() {
- return getServiceRegistry().pc2MigrationItem();
+ public Pc2MigrationItemService pc2MigrationItems() {
+ return getServiceRegistry().pc2MigrationItems();
}
@Override
- public EstimateService estimate() {
- return getServiceRegistry().estimate();
+ public EstimateService estimates() {
+ return getServiceRegistry().estimates();
}
@Override
- public VariantService variant() {
- return getServiceRegistry().variant();
+ public VariantService variants() {
+ return getServiceRegistry().variants();
}
@Override
- public Pc2MigrationItemFamilyService pc2MigrationItemFamily() {
- return getServiceRegistry().pc2MigrationItemFamily();
+ public Pc2MigrationItemFamilyService pc2MigrationItemFamilies() {
+ return getServiceRegistry().pc2MigrationItemFamilies();
}
@Override
- public PaymentSourceService paymentSource() {
- return getServiceRegistry().paymentSource();
+ public PaymentSourceService paymentSources() {
+ return getServiceRegistry().paymentSources();
}
@Override
- public RecordedPurchaseService recordedPurchase() {
- return getServiceRegistry().recordedPurchase();
+ public RecordedPurchaseService recordedPurchases() {
+ return getServiceRegistry().recordedPurchases();
}
@Override
- public PlanService plan() {
- return getServiceRegistry().plan();
+ public PlanService plans() {
+ return getServiceRegistry().plans();
}
@Override
- public ExportService export() {
- return getServiceRegistry().export();
+ public ExportService exports() {
+ return getServiceRegistry().exports();
}
@Override
- public OrderService order() {
- return getServiceRegistry().order();
+ public OrderService orders() {
+ return getServiceRegistry().orders();
}
@Override
- public ItemService item() {
- return getServiceRegistry().item();
+ public ItemService items() {
+ return getServiceRegistry().items();
}
@Override
- public CustomerEntitlementService customerEntitlement() {
- return getServiceRegistry().customerEntitlement();
+ public CustomerEntitlementService customerEntitlements() {
+ return getServiceRegistry().customerEntitlements();
}
@Override
- public PersonalizedOfferService personalizedOffer() {
- return getServiceRegistry().personalizedOffer();
+ public PersonalizedOfferService personalizedOffers() {
+ return getServiceRegistry().personalizedOffers();
}
@Override
- public OmnichannelSubscriptionService omnichannelSubscription() {
- return getServiceRegistry().omnichannelSubscription();
+ public OmnichannelSubscriptionService omnichannelSubscriptions() {
+ return getServiceRegistry().omnichannelSubscriptions();
}
@Override
- public OmnichannelSubscriptionItemService omnichannelSubscriptionItem() {
- return getServiceRegistry().omnichannelSubscriptionItem();
+ public OmnichannelSubscriptionItemService omnichannelSubscriptionItems() {
+ return getServiceRegistry().omnichannelSubscriptionItems();
}
@Override
- public RampService ramp() {
- return getServiceRegistry().ramp();
+ public RampService ramps() {
+ return getServiceRegistry().ramps();
}
@Override
- public OmnichannelOneTimeOrderService omnichannelOneTimeOrder() {
- return getServiceRegistry().omnichannelOneTimeOrder();
+ public OmnichannelOneTimeOrderService omnichannelOneTimeOrders() {
+ return getServiceRegistry().omnichannelOneTimeOrders();
}
@Override
- public DifferentialPriceService differentialPrice() {
- return getServiceRegistry().differentialPrice();
+ public DifferentialPriceService differentialPrices() {
+ return getServiceRegistry().differentialPrices();
}
@Override
- public EntitlementService entitlement() {
- return getServiceRegistry().entitlement();
+ public EntitlementService entitlements() {
+ return getServiceRegistry().entitlements();
}
@Override
- public AdditionalBillingLogiqService additionalBillingLogiq() {
- return getServiceRegistry().additionalBillingLogiq();
+ public AdditionalBillingLogiqService additionalBillingLogiqs() {
+ return getServiceRegistry().additionalBillingLogiqs();
}
@Override
- public SubscriptionSettingService subscriptionSetting() {
- return getServiceRegistry().subscriptionSetting();
+ public SubscriptionSettingService subscriptionSettings() {
+ return getServiceRegistry().subscriptionSettings();
}
@Override
- public SiteMigrationDetailService siteMigrationDetail() {
- return getServiceRegistry().siteMigrationDetail();
+ public SiteMigrationDetailService siteMigrationDetails() {
+ return getServiceRegistry().siteMigrationDetails();
}
@Override
- public PaymentIntentService paymentIntent() {
- return getServiceRegistry().paymentIntent();
+ public PaymentIntentService paymentIntents() {
+ return getServiceRegistry().paymentIntents();
}
@Override
- public PaymentScheduleSchemeService paymentScheduleScheme() {
- return getServiceRegistry().paymentScheduleScheme();
+ public PaymentScheduleSchemeService paymentScheduleSchemes() {
+ return getServiceRegistry().paymentScheduleSchemes();
}
@Override
- public CardService card() {
- return getServiceRegistry().card();
+ public CardService cards() {
+ return getServiceRegistry().cards();
}
@Override
- public AttachedItemService attachedItem() {
- return getServiceRegistry().attachedItem();
+ public AttachedItemService attachedItems() {
+ return getServiceRegistry().attachedItems();
}
@Override
- public UsageEventService usageEvent() {
- return getServiceRegistry().usageEvent();
+ public UsageEventService usageEvents() {
+ return getServiceRegistry().usageEvents();
}
@Override
- public PriceVariantService priceVariant() {
- return getServiceRegistry().priceVariant();
+ public PriceVariantService priceVariants() {
+ return getServiceRegistry().priceVariants();
}
@Override
- public FullExportService fullExport() {
- return getServiceRegistry().fullExport();
+ public FullExportService fullExports() {
+ return getServiceRegistry().fullExports();
}
@Override
- public VirtualBankAccountService virtualBankAccount() {
- return getServiceRegistry().virtualBankAccount();
+ public VirtualBankAccountService virtualBankAccounts() {
+ return getServiceRegistry().virtualBankAccounts();
}
@Override
- public AddonService addon() {
- return getServiceRegistry().addon();
+ public AddonService addons() {
+ return getServiceRegistry().addons();
}
@Override
- public TpSiteUserService tpSiteUser() {
- return getServiceRegistry().tpSiteUser();
+ public TpSiteUserService tpSiteUsers() {
+ return getServiceRegistry().tpSiteUsers();
}
@Override
- public ConfigurationService configuration() {
- return getServiceRegistry().configuration();
+ public ConfigurationService configurations() {
+ return getServiceRegistry().configurations();
}
@Override
- public PricingPageSessionService pricingPageSession() {
- return getServiceRegistry().pricingPageSession();
+ public PricingPageSessionService pricingPageSessions() {
+ return getServiceRegistry().pricingPageSessions();
}
@Override
- public Pc2MigrationItemPriceService pc2MigrationItemPrice() {
- return getServiceRegistry().pc2MigrationItemPrice();
+ public Pc2MigrationItemPriceService pc2MigrationItemPrices() {
+ return getServiceRegistry().pc2MigrationItemPrices();
}
@Override
- public RuleService rule() {
- return getServiceRegistry().rule();
+ public RuleService rules() {
+ return getServiceRegistry().rules();
}
@Override
- public SubscriptionService subscription() {
- return getServiceRegistry().subscription();
+ public SubscriptionService subscriptions() {
+ return getServiceRegistry().subscriptions();
}
@Override
- public MediaService media() {
- return getServiceRegistry().media();
+ public MediaService medias() {
+ return getServiceRegistry().medias();
}
@Override
- public BusinessProfileService businessProfile() {
- return getServiceRegistry().businessProfile();
+ public BusinessProfileService businessProfiles() {
+ return getServiceRegistry().businessProfiles();
}
@Override
- public PromotionalCreditService promotionalCredit() {
- return getServiceRegistry().promotionalCredit();
+ public PromotionalCreditService promotionalCredits() {
+ return getServiceRegistry().promotionalCredits();
}
@Override
- public BrandConfigurationService brandConfiguration() {
- return getServiceRegistry().brandConfiguration();
+ public BrandConfigurationService brandConfigurations() {
+ return getServiceRegistry().brandConfigurations();
}
@Override
- public WebhookEndpointService webhookEndpoint() {
- return getServiceRegistry().webhookEndpoint();
+ public WebhookEndpointService webhookEndpoints() {
+ return getServiceRegistry().webhookEndpoints();
}
@Override
- public FeatureService feature() {
- return getServiceRegistry().feature();
+ public FeatureService features() {
+ return getServiceRegistry().features();
}
@Override
- public UnbilledChargesSettingService unbilledChargesSetting() {
- return getServiceRegistry().unbilledChargesSetting();
+ public UnbilledChargesSettingService unbilledChargesSettings() {
+ return getServiceRegistry().unbilledChargesSettings();
}
@Override
- public CurrencyService currency() {
- return getServiceRegistry().currency();
+ public CurrencyService currencies() {
+ return getServiceRegistry().currencies();
}
@Override
- public EventService event() {
- return getServiceRegistry().event();
+ public EventService events() {
+ return getServiceRegistry().events();
}
@Override
- public UsageFileService usageFile() {
- return getServiceRegistry().usageFile();
+ public UsageFileService usageFiles() {
+ return getServiceRegistry().usageFiles();
}
@Override
- public NonSubscriptionService nonSubscription() {
- return getServiceRegistry().nonSubscription();
+ public NonSubscriptionService nonSubscriptions() {
+ return getServiceRegistry().nonSubscriptions();
}
@Override
- public ResourceMigrationService resourceMigration() {
- return getServiceRegistry().resourceMigration();
+ public ResourceMigrationService resourceMigrations() {
+ return getServiceRegistry().resourceMigrations();
}
@Override
- public ProductService product() {
- return getServiceRegistry().product();
+ public ProductService products() {
+ return getServiceRegistry().products();
}
@Override
- public CouponCodeService couponCode() {
- return getServiceRegistry().couponCode();
+ public CouponCodeService couponCodes() {
+ return getServiceRegistry().couponCodes();
}
@Override
- public AddressService address() {
- return getServiceRegistry().address();
+ public AddressService addresses() {
+ return getServiceRegistry().addresses();
}
@Override
- public CouponService coupon() {
- return getServiceRegistry().coupon();
+ public CouponService coupons() {
+ return getServiceRegistry().coupons();
}
@Override
- public PortalSessionService portalSession() {
- return getServiceRegistry().portalSession();
+ public PortalSessionService portalSessions() {
+ return getServiceRegistry().portalSessions();
}
@Override
- public ItemPriceService itemPrice() {
- return getServiceRegistry().itemPrice();
+ public ItemPriceService itemPrices() {
+ return getServiceRegistry().itemPrices();
}
@Override
- public OfferFulfillmentService offerFulfillment() {
- return getServiceRegistry().offerFulfillment();
+ public OfferFulfillmentService offerFulfillments() {
+ return getServiceRegistry().offerFulfillments();
}
@Override
- public HostedPageService hostedPage() {
- return getServiceRegistry().hostedPage();
+ public HostedPageService hostedPages() {
+ return getServiceRegistry().hostedPages();
}
@Override
- public PurchaseService purchase() {
- return getServiceRegistry().purchase();
+ public PurchaseService purchases() {
+ return getServiceRegistry().purchases();
}
@Override
- public PaymentVoucherService paymentVoucher() {
- return getServiceRegistry().paymentVoucher();
+ public PaymentVoucherService paymentVouchers() {
+ return getServiceRegistry().paymentVouchers();
}
@Override
- public ItemFamilyService itemFamily() {
- return getServiceRegistry().itemFamily();
+ public ItemFamilyService itemFamilies() {
+ return getServiceRegistry().itemFamilies();
}
@Override
- public SubscriptionEntitlementService subscriptionEntitlement() {
- return getServiceRegistry().subscriptionEntitlement();
+ public SubscriptionEntitlementService subscriptionEntitlements() {
+ return getServiceRegistry().subscriptionEntitlements();
}
@Override
- public ThirdPartyEntityMappingService thirdPartyEntityMapping() {
- return getServiceRegistry().thirdPartyEntityMapping();
+ public ThirdPartyEntityMappingService thirdPartyEntityMappings() {
+ return getServiceRegistry().thirdPartyEntityMappings();
}
@Override
- public EntitlementOverrideService entitlementOverride() {
- return getServiceRegistry().entitlementOverride();
+ public EntitlementOverrideService entitlementOverrides() {
+ return getServiceRegistry().entitlementOverrides();
}
@Override
- public ThirdPartyConfigurationService thirdPartyConfiguration() {
- return getServiceRegistry().thirdPartyConfiguration();
+ public ThirdPartyConfigurationService thirdPartyConfigurations() {
+ return getServiceRegistry().thirdPartyConfigurations();
}
@Override
- public UnbilledChargeService unbilledCharge() {
- return getServiceRegistry().unbilledCharge();
+ public UnbilledChargeService unbilledCharges() {
+ return getServiceRegistry().unbilledCharges();
}
@Override
- public CommentService comment() {
- return getServiceRegistry().comment();
+ public CommentService comments() {
+ return getServiceRegistry().comments();
}
@Override
- public InvoiceService invoice() {
- return getServiceRegistry().invoice();
+ public InvoiceService invoices() {
+ return getServiceRegistry().invoices();
}
@Override
- public TransactionService transaction() {
- return getServiceRegistry().transaction();
+ public TransactionService transactions() {
+ return getServiceRegistry().transactions();
}
@Override
- public ThirdPartySyncDetailService thirdPartySyncDetail() {
- return getServiceRegistry().thirdPartySyncDetail();
+ public ThirdPartySyncDetailService thirdPartySyncDetails() {
+ return getServiceRegistry().thirdPartySyncDetails();
}
@Override
- public CustomerService customer() {
- return getServiceRegistry().customer();
+ public CustomerService customers() {
+ return getServiceRegistry().customers();
}
@Override
- public ItemEntitlementService itemEntitlement() {
- return getServiceRegistry().itemEntitlement();
+ public ItemEntitlementService itemEntitlements() {
+ return getServiceRegistry().itemEntitlements();
}
}
diff --git a/src/main/java/com/chargebee/v4/client/ServiceRegistry.java b/src/main/java/com/chargebee/v4/client/ServiceRegistry.java
index 28d1978d..7938b35d 100644
--- a/src/main/java/com/chargebee/v4/client/ServiceRegistry.java
+++ b/src/main/java/com/chargebee/v4/client/ServiceRegistry.java
@@ -1,166 +1,166 @@
package com.chargebee.v4.client;
-import com.chargebee.v4.core.services.GiftService;
+import com.chargebee.v4.services.GiftService;
-import com.chargebee.v4.core.services.CsvTaxRuleService;
+import com.chargebee.v4.services.CsvTaxRuleService;
-import com.chargebee.v4.core.services.UsageService;
+import com.chargebee.v4.services.UsageService;
-import com.chargebee.v4.core.services.TimeMachineService;
+import com.chargebee.v4.services.TimeMachineService;
-import com.chargebee.v4.core.services.BusinessEntityService;
+import com.chargebee.v4.services.BusinessEntityService;
-import com.chargebee.v4.core.services.OfferEventService;
+import com.chargebee.v4.services.OfferEventService;
-import com.chargebee.v4.core.services.InAppSubscriptionService;
+import com.chargebee.v4.services.InAppSubscriptionService;
-import com.chargebee.v4.core.services.Pc2MigrationService;
+import com.chargebee.v4.services.Pc2MigrationService;
-import com.chargebee.v4.core.services.CreditNoteService;
+import com.chargebee.v4.services.CreditNoteService;
-import com.chargebee.v4.core.services.CouponSetService;
+import com.chargebee.v4.services.CouponSetService;
-import com.chargebee.v4.core.services.QuoteService;
+import com.chargebee.v4.services.QuoteService;
-import com.chargebee.v4.core.services.Pc2MigrationItemService;
+import com.chargebee.v4.services.Pc2MigrationItemService;
-import com.chargebee.v4.core.services.EstimateService;
+import com.chargebee.v4.services.EstimateService;
-import com.chargebee.v4.core.services.VariantService;
+import com.chargebee.v4.services.VariantService;
-import com.chargebee.v4.core.services.Pc2MigrationItemFamilyService;
+import com.chargebee.v4.services.Pc2MigrationItemFamilyService;
-import com.chargebee.v4.core.services.PaymentSourceService;
+import com.chargebee.v4.services.PaymentSourceService;
-import com.chargebee.v4.core.services.RecordedPurchaseService;
+import com.chargebee.v4.services.RecordedPurchaseService;
-import com.chargebee.v4.core.services.PlanService;
+import com.chargebee.v4.services.PlanService;
-import com.chargebee.v4.core.services.ExportService;
+import com.chargebee.v4.services.ExportService;
-import com.chargebee.v4.core.services.OrderService;
+import com.chargebee.v4.services.OrderService;
-import com.chargebee.v4.core.services.ItemService;
+import com.chargebee.v4.services.ItemService;
-import com.chargebee.v4.core.services.CustomerEntitlementService;
+import com.chargebee.v4.services.CustomerEntitlementService;
-import com.chargebee.v4.core.services.PersonalizedOfferService;
+import com.chargebee.v4.services.PersonalizedOfferService;
-import com.chargebee.v4.core.services.OmnichannelSubscriptionService;
+import com.chargebee.v4.services.OmnichannelSubscriptionService;
-import com.chargebee.v4.core.services.OmnichannelSubscriptionItemService;
+import com.chargebee.v4.services.OmnichannelSubscriptionItemService;
-import com.chargebee.v4.core.services.RampService;
+import com.chargebee.v4.services.RampService;
-import com.chargebee.v4.core.services.OmnichannelOneTimeOrderService;
+import com.chargebee.v4.services.OmnichannelOneTimeOrderService;
-import com.chargebee.v4.core.services.DifferentialPriceService;
+import com.chargebee.v4.services.DifferentialPriceService;
-import com.chargebee.v4.core.services.EntitlementService;
+import com.chargebee.v4.services.EntitlementService;
-import com.chargebee.v4.core.services.AdditionalBillingLogiqService;
+import com.chargebee.v4.services.AdditionalBillingLogiqService;
-import com.chargebee.v4.core.services.SubscriptionSettingService;
+import com.chargebee.v4.services.SubscriptionSettingService;
-import com.chargebee.v4.core.services.SiteMigrationDetailService;
+import com.chargebee.v4.services.SiteMigrationDetailService;
-import com.chargebee.v4.core.services.PaymentIntentService;
+import com.chargebee.v4.services.PaymentIntentService;
-import com.chargebee.v4.core.services.PaymentScheduleSchemeService;
+import com.chargebee.v4.services.PaymentScheduleSchemeService;
-import com.chargebee.v4.core.services.CardService;
+import com.chargebee.v4.services.CardService;
-import com.chargebee.v4.core.services.AttachedItemService;
+import com.chargebee.v4.services.AttachedItemService;
-import com.chargebee.v4.core.services.UsageEventService;
+import com.chargebee.v4.services.UsageEventService;
-import com.chargebee.v4.core.services.PriceVariantService;
+import com.chargebee.v4.services.PriceVariantService;
-import com.chargebee.v4.core.services.FullExportService;
+import com.chargebee.v4.services.FullExportService;
-import com.chargebee.v4.core.services.VirtualBankAccountService;
+import com.chargebee.v4.services.VirtualBankAccountService;
-import com.chargebee.v4.core.services.AddonService;
+import com.chargebee.v4.services.AddonService;
-import com.chargebee.v4.core.services.TpSiteUserService;
+import com.chargebee.v4.services.TpSiteUserService;
-import com.chargebee.v4.core.services.ConfigurationService;
+import com.chargebee.v4.services.ConfigurationService;
-import com.chargebee.v4.core.services.PricingPageSessionService;
+import com.chargebee.v4.services.PricingPageSessionService;
-import com.chargebee.v4.core.services.Pc2MigrationItemPriceService;
+import com.chargebee.v4.services.Pc2MigrationItemPriceService;
-import com.chargebee.v4.core.services.RuleService;
+import com.chargebee.v4.services.RuleService;
-import com.chargebee.v4.core.services.SubscriptionService;
+import com.chargebee.v4.services.SubscriptionService;
-import com.chargebee.v4.core.services.MediaService;
+import com.chargebee.v4.services.MediaService;
-import com.chargebee.v4.core.services.BusinessProfileService;
+import com.chargebee.v4.services.BusinessProfileService;
-import com.chargebee.v4.core.services.PromotionalCreditService;
+import com.chargebee.v4.services.PromotionalCreditService;
-import com.chargebee.v4.core.services.BrandConfigurationService;
+import com.chargebee.v4.services.BrandConfigurationService;
-import com.chargebee.v4.core.services.WebhookEndpointService;
+import com.chargebee.v4.services.WebhookEndpointService;
-import com.chargebee.v4.core.services.FeatureService;
+import com.chargebee.v4.services.FeatureService;
-import com.chargebee.v4.core.services.UnbilledChargesSettingService;
+import com.chargebee.v4.services.UnbilledChargesSettingService;
-import com.chargebee.v4.core.services.CurrencyService;
+import com.chargebee.v4.services.CurrencyService;
-import com.chargebee.v4.core.services.EventService;
+import com.chargebee.v4.services.EventService;
-import com.chargebee.v4.core.services.UsageFileService;
+import com.chargebee.v4.services.UsageFileService;
-import com.chargebee.v4.core.services.NonSubscriptionService;
+import com.chargebee.v4.services.NonSubscriptionService;
-import com.chargebee.v4.core.services.ResourceMigrationService;
+import com.chargebee.v4.services.ResourceMigrationService;
-import com.chargebee.v4.core.services.ProductService;
+import com.chargebee.v4.services.ProductService;
-import com.chargebee.v4.core.services.CouponCodeService;
+import com.chargebee.v4.services.CouponCodeService;
-import com.chargebee.v4.core.services.AddressService;
+import com.chargebee.v4.services.AddressService;
-import com.chargebee.v4.core.services.CouponService;
+import com.chargebee.v4.services.CouponService;
-import com.chargebee.v4.core.services.PortalSessionService;
+import com.chargebee.v4.services.PortalSessionService;
-import com.chargebee.v4.core.services.ItemPriceService;
+import com.chargebee.v4.services.ItemPriceService;
-import com.chargebee.v4.core.services.OfferFulfillmentService;
+import com.chargebee.v4.services.OfferFulfillmentService;
-import com.chargebee.v4.core.services.HostedPageService;
+import com.chargebee.v4.services.HostedPageService;
-import com.chargebee.v4.core.services.PurchaseService;
+import com.chargebee.v4.services.PurchaseService;
-import com.chargebee.v4.core.services.PaymentVoucherService;
+import com.chargebee.v4.services.PaymentVoucherService;
-import com.chargebee.v4.core.services.ItemFamilyService;
+import com.chargebee.v4.services.ItemFamilyService;
-import com.chargebee.v4.core.services.SubscriptionEntitlementService;
+import com.chargebee.v4.services.SubscriptionEntitlementService;
-import com.chargebee.v4.core.services.ThirdPartyEntityMappingService;
+import com.chargebee.v4.services.ThirdPartyEntityMappingService;
-import com.chargebee.v4.core.services.EntitlementOverrideService;
+import com.chargebee.v4.services.EntitlementOverrideService;
-import com.chargebee.v4.core.services.ThirdPartyConfigurationService;
+import com.chargebee.v4.services.ThirdPartyConfigurationService;
-import com.chargebee.v4.core.services.UnbilledChargeService;
+import com.chargebee.v4.services.UnbilledChargeService;
-import com.chargebee.v4.core.services.CommentService;
+import com.chargebee.v4.services.CommentService;
-import com.chargebee.v4.core.services.InvoiceService;
+import com.chargebee.v4.services.InvoiceService;
-import com.chargebee.v4.core.services.TransactionService;
+import com.chargebee.v4.services.TransactionService;
-import com.chargebee.v4.core.services.ThirdPartySyncDetailService;
+import com.chargebee.v4.services.ThirdPartySyncDetailService;
-import com.chargebee.v4.core.services.CustomerService;
+import com.chargebee.v4.services.CustomerService;
-import com.chargebee.v4.core.services.ItemEntitlementService;
+import com.chargebee.v4.services.ItemEntitlementService;
/**
* Auto-generated service registry for lazy initialization of all Chargebee services. This class
@@ -339,7 +339,7 @@ final class ServiceRegistry {
* Get or create the GiftService instance. Thread-safe lazy initialization using double-checked
* locking.
*/
- GiftService gift() {
+ GiftService gifts() {
if (giftService == null) {
synchronized (this) {
if (giftService == null) {
@@ -354,7 +354,7 @@ GiftService gift() {
* Get or create the CsvTaxRuleService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- CsvTaxRuleService csvTaxRule() {
+ CsvTaxRuleService csvTaxRules() {
if (csvTaxRuleService == null) {
synchronized (this) {
if (csvTaxRuleService == null) {
@@ -369,7 +369,7 @@ CsvTaxRuleService csvTaxRule() {
* Get or create the UsageService instance. Thread-safe lazy initialization using double-checked
* locking.
*/
- UsageService usage() {
+ UsageService usages() {
if (usageService == null) {
synchronized (this) {
if (usageService == null) {
@@ -384,7 +384,7 @@ UsageService usage() {
* Get or create the TimeMachineService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- TimeMachineService timeMachine() {
+ TimeMachineService timeMachines() {
if (timeMachineService == null) {
synchronized (this) {
if (timeMachineService == null) {
@@ -399,7 +399,7 @@ TimeMachineService timeMachine() {
* Get or create the BusinessEntityService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- BusinessEntityService businessEntity() {
+ BusinessEntityService businessEntities() {
if (businessEntityService == null) {
synchronized (this) {
if (businessEntityService == null) {
@@ -414,7 +414,7 @@ BusinessEntityService businessEntity() {
* Get or create the OfferEventService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- OfferEventService offerEvent() {
+ OfferEventService offerEvents() {
if (offerEventService == null) {
synchronized (this) {
if (offerEventService == null) {
@@ -429,7 +429,7 @@ OfferEventService offerEvent() {
* Get or create the InAppSubscriptionService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- InAppSubscriptionService inAppSubscription() {
+ InAppSubscriptionService inAppSubscriptions() {
if (inAppSubscriptionService == null) {
synchronized (this) {
if (inAppSubscriptionService == null) {
@@ -444,7 +444,7 @@ InAppSubscriptionService inAppSubscription() {
* Get or create the Pc2MigrationService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- Pc2MigrationService pc2Migration() {
+ Pc2MigrationService pc2Migrations() {
if (pc2MigrationService == null) {
synchronized (this) {
if (pc2MigrationService == null) {
@@ -459,7 +459,7 @@ Pc2MigrationService pc2Migration() {
* Get or create the CreditNoteService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- CreditNoteService creditNote() {
+ CreditNoteService creditNotes() {
if (creditNoteService == null) {
synchronized (this) {
if (creditNoteService == null) {
@@ -474,7 +474,7 @@ CreditNoteService creditNote() {
* Get or create the CouponSetService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- CouponSetService couponSet() {
+ CouponSetService couponSets() {
if (couponSetService == null) {
synchronized (this) {
if (couponSetService == null) {
@@ -489,7 +489,7 @@ CouponSetService couponSet() {
* Get or create the QuoteService instance. Thread-safe lazy initialization using double-checked
* locking.
*/
- QuoteService quote() {
+ QuoteService quotes() {
if (quoteService == null) {
synchronized (this) {
if (quoteService == null) {
@@ -504,7 +504,7 @@ QuoteService quote() {
* Get or create the Pc2MigrationItemService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- Pc2MigrationItemService pc2MigrationItem() {
+ Pc2MigrationItemService pc2MigrationItems() {
if (pc2MigrationItemService == null) {
synchronized (this) {
if (pc2MigrationItemService == null) {
@@ -519,7 +519,7 @@ Pc2MigrationItemService pc2MigrationItem() {
* Get or create the EstimateService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- EstimateService estimate() {
+ EstimateService estimates() {
if (estimateService == null) {
synchronized (this) {
if (estimateService == null) {
@@ -534,7 +534,7 @@ EstimateService estimate() {
* Get or create the VariantService instance. Thread-safe lazy initialization using double-checked
* locking.
*/
- VariantService variant() {
+ VariantService variants() {
if (variantService == null) {
synchronized (this) {
if (variantService == null) {
@@ -549,7 +549,7 @@ VariantService variant() {
* Get or create the Pc2MigrationItemFamilyService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- Pc2MigrationItemFamilyService pc2MigrationItemFamily() {
+ Pc2MigrationItemFamilyService pc2MigrationItemFamilies() {
if (pc2MigrationItemFamilyService == null) {
synchronized (this) {
if (pc2MigrationItemFamilyService == null) {
@@ -564,7 +564,7 @@ Pc2MigrationItemFamilyService pc2MigrationItemFamily() {
* Get or create the PaymentSourceService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- PaymentSourceService paymentSource() {
+ PaymentSourceService paymentSources() {
if (paymentSourceService == null) {
synchronized (this) {
if (paymentSourceService == null) {
@@ -579,7 +579,7 @@ PaymentSourceService paymentSource() {
* Get or create the RecordedPurchaseService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- RecordedPurchaseService recordedPurchase() {
+ RecordedPurchaseService recordedPurchases() {
if (recordedPurchaseService == null) {
synchronized (this) {
if (recordedPurchaseService == null) {
@@ -594,7 +594,7 @@ RecordedPurchaseService recordedPurchase() {
* Get or create the PlanService instance. Thread-safe lazy initialization using double-checked
* locking.
*/
- PlanService plan() {
+ PlanService plans() {
if (planService == null) {
synchronized (this) {
if (planService == null) {
@@ -609,7 +609,7 @@ PlanService plan() {
* Get or create the ExportService instance. Thread-safe lazy initialization using double-checked
* locking.
*/
- ExportService export() {
+ ExportService exports() {
if (exportService == null) {
synchronized (this) {
if (exportService == null) {
@@ -624,7 +624,7 @@ ExportService export() {
* Get or create the OrderService instance. Thread-safe lazy initialization using double-checked
* locking.
*/
- OrderService order() {
+ OrderService orders() {
if (orderService == null) {
synchronized (this) {
if (orderService == null) {
@@ -639,7 +639,7 @@ OrderService order() {
* Get or create the ItemService instance. Thread-safe lazy initialization using double-checked
* locking.
*/
- ItemService item() {
+ ItemService items() {
if (itemService == null) {
synchronized (this) {
if (itemService == null) {
@@ -654,7 +654,7 @@ ItemService item() {
* Get or create the CustomerEntitlementService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- CustomerEntitlementService customerEntitlement() {
+ CustomerEntitlementService customerEntitlements() {
if (customerEntitlementService == null) {
synchronized (this) {
if (customerEntitlementService == null) {
@@ -669,7 +669,7 @@ CustomerEntitlementService customerEntitlement() {
* Get or create the PersonalizedOfferService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- PersonalizedOfferService personalizedOffer() {
+ PersonalizedOfferService personalizedOffers() {
if (personalizedOfferService == null) {
synchronized (this) {
if (personalizedOfferService == null) {
@@ -684,7 +684,7 @@ PersonalizedOfferService personalizedOffer() {
* Get or create the OmnichannelSubscriptionService instance. Thread-safe lazy initialization
* using double-checked locking.
*/
- OmnichannelSubscriptionService omnichannelSubscription() {
+ OmnichannelSubscriptionService omnichannelSubscriptions() {
if (omnichannelSubscriptionService == null) {
synchronized (this) {
if (omnichannelSubscriptionService == null) {
@@ -699,7 +699,7 @@ OmnichannelSubscriptionService omnichannelSubscription() {
* Get or create the OmnichannelSubscriptionItemService instance. Thread-safe lazy initialization
* using double-checked locking.
*/
- OmnichannelSubscriptionItemService omnichannelSubscriptionItem() {
+ OmnichannelSubscriptionItemService omnichannelSubscriptionItems() {
if (omnichannelSubscriptionItemService == null) {
synchronized (this) {
if (omnichannelSubscriptionItemService == null) {
@@ -714,7 +714,7 @@ OmnichannelSubscriptionItemService omnichannelSubscriptionItem() {
* Get or create the RampService instance. Thread-safe lazy initialization using double-checked
* locking.
*/
- RampService ramp() {
+ RampService ramps() {
if (rampService == null) {
synchronized (this) {
if (rampService == null) {
@@ -729,7 +729,7 @@ RampService ramp() {
* Get or create the OmnichannelOneTimeOrderService instance. Thread-safe lazy initialization
* using double-checked locking.
*/
- OmnichannelOneTimeOrderService omnichannelOneTimeOrder() {
+ OmnichannelOneTimeOrderService omnichannelOneTimeOrders() {
if (omnichannelOneTimeOrderService == null) {
synchronized (this) {
if (omnichannelOneTimeOrderService == null) {
@@ -744,7 +744,7 @@ OmnichannelOneTimeOrderService omnichannelOneTimeOrder() {
* Get or create the DifferentialPriceService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- DifferentialPriceService differentialPrice() {
+ DifferentialPriceService differentialPrices() {
if (differentialPriceService == null) {
synchronized (this) {
if (differentialPriceService == null) {
@@ -759,7 +759,7 @@ DifferentialPriceService differentialPrice() {
* Get or create the EntitlementService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- EntitlementService entitlement() {
+ EntitlementService entitlements() {
if (entitlementService == null) {
synchronized (this) {
if (entitlementService == null) {
@@ -774,7 +774,7 @@ EntitlementService entitlement() {
* Get or create the AdditionalBillingLogiqService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- AdditionalBillingLogiqService additionalBillingLogiq() {
+ AdditionalBillingLogiqService additionalBillingLogiqs() {
if (additionalBillingLogiqService == null) {
synchronized (this) {
if (additionalBillingLogiqService == null) {
@@ -789,7 +789,7 @@ AdditionalBillingLogiqService additionalBillingLogiq() {
* Get or create the SubscriptionSettingService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- SubscriptionSettingService subscriptionSetting() {
+ SubscriptionSettingService subscriptionSettings() {
if (subscriptionSettingService == null) {
synchronized (this) {
if (subscriptionSettingService == null) {
@@ -804,7 +804,7 @@ SubscriptionSettingService subscriptionSetting() {
* Get or create the SiteMigrationDetailService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- SiteMigrationDetailService siteMigrationDetail() {
+ SiteMigrationDetailService siteMigrationDetails() {
if (siteMigrationDetailService == null) {
synchronized (this) {
if (siteMigrationDetailService == null) {
@@ -819,7 +819,7 @@ SiteMigrationDetailService siteMigrationDetail() {
* Get or create the PaymentIntentService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- PaymentIntentService paymentIntent() {
+ PaymentIntentService paymentIntents() {
if (paymentIntentService == null) {
synchronized (this) {
if (paymentIntentService == null) {
@@ -834,7 +834,7 @@ PaymentIntentService paymentIntent() {
* Get or create the PaymentScheduleSchemeService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- PaymentScheduleSchemeService paymentScheduleScheme() {
+ PaymentScheduleSchemeService paymentScheduleSchemes() {
if (paymentScheduleSchemeService == null) {
synchronized (this) {
if (paymentScheduleSchemeService == null) {
@@ -849,7 +849,7 @@ PaymentScheduleSchemeService paymentScheduleScheme() {
* Get or create the CardService instance. Thread-safe lazy initialization using double-checked
* locking.
*/
- CardService card() {
+ CardService cards() {
if (cardService == null) {
synchronized (this) {
if (cardService == null) {
@@ -864,7 +864,7 @@ CardService card() {
* Get or create the AttachedItemService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- AttachedItemService attachedItem() {
+ AttachedItemService attachedItems() {
if (attachedItemService == null) {
synchronized (this) {
if (attachedItemService == null) {
@@ -879,7 +879,7 @@ AttachedItemService attachedItem() {
* Get or create the UsageEventService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- UsageEventService usageEvent() {
+ UsageEventService usageEvents() {
if (usageEventService == null) {
synchronized (this) {
if (usageEventService == null) {
@@ -894,7 +894,7 @@ UsageEventService usageEvent() {
* Get or create the PriceVariantService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- PriceVariantService priceVariant() {
+ PriceVariantService priceVariants() {
if (priceVariantService == null) {
synchronized (this) {
if (priceVariantService == null) {
@@ -909,7 +909,7 @@ PriceVariantService priceVariant() {
* Get or create the FullExportService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- FullExportService fullExport() {
+ FullExportService fullExports() {
if (fullExportService == null) {
synchronized (this) {
if (fullExportService == null) {
@@ -924,7 +924,7 @@ FullExportService fullExport() {
* Get or create the VirtualBankAccountService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- VirtualBankAccountService virtualBankAccount() {
+ VirtualBankAccountService virtualBankAccounts() {
if (virtualBankAccountService == null) {
synchronized (this) {
if (virtualBankAccountService == null) {
@@ -939,7 +939,7 @@ VirtualBankAccountService virtualBankAccount() {
* Get or create the AddonService instance. Thread-safe lazy initialization using double-checked
* locking.
*/
- AddonService addon() {
+ AddonService addons() {
if (addonService == null) {
synchronized (this) {
if (addonService == null) {
@@ -954,7 +954,7 @@ AddonService addon() {
* Get or create the TpSiteUserService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- TpSiteUserService tpSiteUser() {
+ TpSiteUserService tpSiteUsers() {
if (tpSiteUserService == null) {
synchronized (this) {
if (tpSiteUserService == null) {
@@ -969,7 +969,7 @@ TpSiteUserService tpSiteUser() {
* Get or create the ConfigurationService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- ConfigurationService configuration() {
+ ConfigurationService configurations() {
if (configurationService == null) {
synchronized (this) {
if (configurationService == null) {
@@ -984,7 +984,7 @@ ConfigurationService configuration() {
* Get or create the PricingPageSessionService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- PricingPageSessionService pricingPageSession() {
+ PricingPageSessionService pricingPageSessions() {
if (pricingPageSessionService == null) {
synchronized (this) {
if (pricingPageSessionService == null) {
@@ -999,7 +999,7 @@ PricingPageSessionService pricingPageSession() {
* Get or create the Pc2MigrationItemPriceService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- Pc2MigrationItemPriceService pc2MigrationItemPrice() {
+ Pc2MigrationItemPriceService pc2MigrationItemPrices() {
if (pc2MigrationItemPriceService == null) {
synchronized (this) {
if (pc2MigrationItemPriceService == null) {
@@ -1014,7 +1014,7 @@ Pc2MigrationItemPriceService pc2MigrationItemPrice() {
* Get or create the RuleService instance. Thread-safe lazy initialization using double-checked
* locking.
*/
- RuleService rule() {
+ RuleService rules() {
if (ruleService == null) {
synchronized (this) {
if (ruleService == null) {
@@ -1029,7 +1029,7 @@ RuleService rule() {
* Get or create the SubscriptionService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- SubscriptionService subscription() {
+ SubscriptionService subscriptions() {
if (subscriptionService == null) {
synchronized (this) {
if (subscriptionService == null) {
@@ -1044,7 +1044,7 @@ SubscriptionService subscription() {
* Get or create the MediaService instance. Thread-safe lazy initialization using double-checked
* locking.
*/
- MediaService media() {
+ MediaService medias() {
if (mediaService == null) {
synchronized (this) {
if (mediaService == null) {
@@ -1059,7 +1059,7 @@ MediaService media() {
* Get or create the BusinessProfileService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- BusinessProfileService businessProfile() {
+ BusinessProfileService businessProfiles() {
if (businessProfileService == null) {
synchronized (this) {
if (businessProfileService == null) {
@@ -1074,7 +1074,7 @@ BusinessProfileService businessProfile() {
* Get or create the PromotionalCreditService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- PromotionalCreditService promotionalCredit() {
+ PromotionalCreditService promotionalCredits() {
if (promotionalCreditService == null) {
synchronized (this) {
if (promotionalCreditService == null) {
@@ -1089,7 +1089,7 @@ PromotionalCreditService promotionalCredit() {
* Get or create the BrandConfigurationService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- BrandConfigurationService brandConfiguration() {
+ BrandConfigurationService brandConfigurations() {
if (brandConfigurationService == null) {
synchronized (this) {
if (brandConfigurationService == null) {
@@ -1104,7 +1104,7 @@ BrandConfigurationService brandConfiguration() {
* Get or create the WebhookEndpointService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- WebhookEndpointService webhookEndpoint() {
+ WebhookEndpointService webhookEndpoints() {
if (webhookEndpointService == null) {
synchronized (this) {
if (webhookEndpointService == null) {
@@ -1119,7 +1119,7 @@ WebhookEndpointService webhookEndpoint() {
* Get or create the FeatureService instance. Thread-safe lazy initialization using double-checked
* locking.
*/
- FeatureService feature() {
+ FeatureService features() {
if (featureService == null) {
synchronized (this) {
if (featureService == null) {
@@ -1134,7 +1134,7 @@ FeatureService feature() {
* Get or create the UnbilledChargesSettingService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- UnbilledChargesSettingService unbilledChargesSetting() {
+ UnbilledChargesSettingService unbilledChargesSettings() {
if (unbilledChargesSettingService == null) {
synchronized (this) {
if (unbilledChargesSettingService == null) {
@@ -1149,7 +1149,7 @@ UnbilledChargesSettingService unbilledChargesSetting() {
* Get or create the CurrencyService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- CurrencyService currency() {
+ CurrencyService currencies() {
if (currencyService == null) {
synchronized (this) {
if (currencyService == null) {
@@ -1164,7 +1164,7 @@ CurrencyService currency() {
* Get or create the EventService instance. Thread-safe lazy initialization using double-checked
* locking.
*/
- EventService event() {
+ EventService events() {
if (eventService == null) {
synchronized (this) {
if (eventService == null) {
@@ -1179,7 +1179,7 @@ EventService event() {
* Get or create the UsageFileService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- UsageFileService usageFile() {
+ UsageFileService usageFiles() {
if (usageFileService == null) {
synchronized (this) {
if (usageFileService == null) {
@@ -1194,7 +1194,7 @@ UsageFileService usageFile() {
* Get or create the NonSubscriptionService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- NonSubscriptionService nonSubscription() {
+ NonSubscriptionService nonSubscriptions() {
if (nonSubscriptionService == null) {
synchronized (this) {
if (nonSubscriptionService == null) {
@@ -1209,7 +1209,7 @@ NonSubscriptionService nonSubscription() {
* Get or create the ResourceMigrationService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- ResourceMigrationService resourceMigration() {
+ ResourceMigrationService resourceMigrations() {
if (resourceMigrationService == null) {
synchronized (this) {
if (resourceMigrationService == null) {
@@ -1224,7 +1224,7 @@ ResourceMigrationService resourceMigration() {
* Get or create the ProductService instance. Thread-safe lazy initialization using double-checked
* locking.
*/
- ProductService product() {
+ ProductService products() {
if (productService == null) {
synchronized (this) {
if (productService == null) {
@@ -1239,7 +1239,7 @@ ProductService product() {
* Get or create the CouponCodeService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- CouponCodeService couponCode() {
+ CouponCodeService couponCodes() {
if (couponCodeService == null) {
synchronized (this) {
if (couponCodeService == null) {
@@ -1254,7 +1254,7 @@ CouponCodeService couponCode() {
* Get or create the AddressService instance. Thread-safe lazy initialization using double-checked
* locking.
*/
- AddressService address() {
+ AddressService addresses() {
if (addressService == null) {
synchronized (this) {
if (addressService == null) {
@@ -1269,7 +1269,7 @@ AddressService address() {
* Get or create the CouponService instance. Thread-safe lazy initialization using double-checked
* locking.
*/
- CouponService coupon() {
+ CouponService coupons() {
if (couponService == null) {
synchronized (this) {
if (couponService == null) {
@@ -1284,7 +1284,7 @@ CouponService coupon() {
* Get or create the PortalSessionService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- PortalSessionService portalSession() {
+ PortalSessionService portalSessions() {
if (portalSessionService == null) {
synchronized (this) {
if (portalSessionService == null) {
@@ -1299,7 +1299,7 @@ PortalSessionService portalSession() {
* Get or create the ItemPriceService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- ItemPriceService itemPrice() {
+ ItemPriceService itemPrices() {
if (itemPriceService == null) {
synchronized (this) {
if (itemPriceService == null) {
@@ -1314,7 +1314,7 @@ ItemPriceService itemPrice() {
* Get or create the OfferFulfillmentService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- OfferFulfillmentService offerFulfillment() {
+ OfferFulfillmentService offerFulfillments() {
if (offerFulfillmentService == null) {
synchronized (this) {
if (offerFulfillmentService == null) {
@@ -1329,7 +1329,7 @@ OfferFulfillmentService offerFulfillment() {
* Get or create the HostedPageService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- HostedPageService hostedPage() {
+ HostedPageService hostedPages() {
if (hostedPageService == null) {
synchronized (this) {
if (hostedPageService == null) {
@@ -1344,7 +1344,7 @@ HostedPageService hostedPage() {
* Get or create the PurchaseService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- PurchaseService purchase() {
+ PurchaseService purchases() {
if (purchaseService == null) {
synchronized (this) {
if (purchaseService == null) {
@@ -1359,7 +1359,7 @@ PurchaseService purchase() {
* Get or create the PaymentVoucherService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- PaymentVoucherService paymentVoucher() {
+ PaymentVoucherService paymentVouchers() {
if (paymentVoucherService == null) {
synchronized (this) {
if (paymentVoucherService == null) {
@@ -1374,7 +1374,7 @@ PaymentVoucherService paymentVoucher() {
* Get or create the ItemFamilyService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- ItemFamilyService itemFamily() {
+ ItemFamilyService itemFamilies() {
if (itemFamilyService == null) {
synchronized (this) {
if (itemFamilyService == null) {
@@ -1389,7 +1389,7 @@ ItemFamilyService itemFamily() {
* Get or create the SubscriptionEntitlementService instance. Thread-safe lazy initialization
* using double-checked locking.
*/
- SubscriptionEntitlementService subscriptionEntitlement() {
+ SubscriptionEntitlementService subscriptionEntitlements() {
if (subscriptionEntitlementService == null) {
synchronized (this) {
if (subscriptionEntitlementService == null) {
@@ -1404,7 +1404,7 @@ SubscriptionEntitlementService subscriptionEntitlement() {
* Get or create the ThirdPartyEntityMappingService instance. Thread-safe lazy initialization
* using double-checked locking.
*/
- ThirdPartyEntityMappingService thirdPartyEntityMapping() {
+ ThirdPartyEntityMappingService thirdPartyEntityMappings() {
if (thirdPartyEntityMappingService == null) {
synchronized (this) {
if (thirdPartyEntityMappingService == null) {
@@ -1419,7 +1419,7 @@ ThirdPartyEntityMappingService thirdPartyEntityMapping() {
* Get or create the EntitlementOverrideService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- EntitlementOverrideService entitlementOverride() {
+ EntitlementOverrideService entitlementOverrides() {
if (entitlementOverrideService == null) {
synchronized (this) {
if (entitlementOverrideService == null) {
@@ -1434,7 +1434,7 @@ EntitlementOverrideService entitlementOverride() {
* Get or create the ThirdPartyConfigurationService instance. Thread-safe lazy initialization
* using double-checked locking.
*/
- ThirdPartyConfigurationService thirdPartyConfiguration() {
+ ThirdPartyConfigurationService thirdPartyConfigurations() {
if (thirdPartyConfigurationService == null) {
synchronized (this) {
if (thirdPartyConfigurationService == null) {
@@ -1449,7 +1449,7 @@ ThirdPartyConfigurationService thirdPartyConfiguration() {
* Get or create the UnbilledChargeService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- UnbilledChargeService unbilledCharge() {
+ UnbilledChargeService unbilledCharges() {
if (unbilledChargeService == null) {
synchronized (this) {
if (unbilledChargeService == null) {
@@ -1464,7 +1464,7 @@ UnbilledChargeService unbilledCharge() {
* Get or create the CommentService instance. Thread-safe lazy initialization using double-checked
* locking.
*/
- CommentService comment() {
+ CommentService comments() {
if (commentService == null) {
synchronized (this) {
if (commentService == null) {
@@ -1479,7 +1479,7 @@ CommentService comment() {
* Get or create the InvoiceService instance. Thread-safe lazy initialization using double-checked
* locking.
*/
- InvoiceService invoice() {
+ InvoiceService invoices() {
if (invoiceService == null) {
synchronized (this) {
if (invoiceService == null) {
@@ -1494,7 +1494,7 @@ InvoiceService invoice() {
* Get or create the TransactionService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- TransactionService transaction() {
+ TransactionService transactions() {
if (transactionService == null) {
synchronized (this) {
if (transactionService == null) {
@@ -1509,7 +1509,7 @@ TransactionService transaction() {
* Get or create the ThirdPartySyncDetailService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- ThirdPartySyncDetailService thirdPartySyncDetail() {
+ ThirdPartySyncDetailService thirdPartySyncDetails() {
if (thirdPartySyncDetailService == null) {
synchronized (this) {
if (thirdPartySyncDetailService == null) {
@@ -1524,7 +1524,7 @@ ThirdPartySyncDetailService thirdPartySyncDetail() {
* Get or create the CustomerService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- CustomerService customer() {
+ CustomerService customers() {
if (customerService == null) {
synchronized (this) {
if (customerService == null) {
@@ -1539,7 +1539,7 @@ CustomerService customer() {
* Get or create the ItemEntitlementService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
- ItemEntitlementService itemEntitlement() {
+ ItemEntitlementService itemEntitlements() {
if (itemEntitlementService == null) {
synchronized (this) {
if (itemEntitlementService == null) {
diff --git a/src/main/java/com/chargebee/v4/client/request/RequestInterceptor.java b/src/main/java/com/chargebee/v4/client/request/RequestInterceptor.java
index 6db6dfb3..67f2e451 100644
--- a/src/main/java/com/chargebee/v4/client/request/RequestInterceptor.java
+++ b/src/main/java/com/chargebee/v4/client/request/RequestInterceptor.java
@@ -1,5 +1,6 @@
package com.chargebee.v4.client.request;
+import com.chargebee.v4.exceptions.ChargebeeException;
import com.chargebee.v4.transport.Request;
import com.chargebee.v4.transport.Response;
import java.util.concurrent.CompletableFuture;
@@ -51,9 +52,9 @@ public interface RequestInterceptor {
*
* @param requestWrap wrapper containing the transport request and execution context
* @return the transport response, either from proceeding or custom implementation
- * @throws Exception if request processing fails
+ * @throws ChargebeeException if request processing fails
*/
- Response handleRequest(RequestWrap requestWrap) throws Exception;
+ Response handleRequest(RequestWrap requestWrap) throws ChargebeeException;
/**
* Handle the intercepted request asynchronously.
diff --git a/src/main/java/com/chargebee/v4/client/request/RequestWrap.java b/src/main/java/com/chargebee/v4/client/request/RequestWrap.java
index be0b75e5..183da7e6 100644
--- a/src/main/java/com/chargebee/v4/client/request/RequestWrap.java
+++ b/src/main/java/com/chargebee/v4/client/request/RequestWrap.java
@@ -1,6 +1,7 @@
package com.chargebee.v4.client.request;
import com.chargebee.v4.client.ChargebeeClient;
+import com.chargebee.v4.exceptions.ChargebeeException;
import com.chargebee.v4.transport.Request;
import com.chargebee.v4.transport.Response;
import java.util.concurrent.Callable;
@@ -95,9 +96,9 @@ public ChargebeeClient getClient() {
* standard request processing after any modifications.
*
* @return the transport response from normal execution
- * @throws Exception if request execution fails
+ * @throws ChargebeeException if request execution fails
*/
- public Response proceed() throws Exception {
+ public Response proceed() throws ChargebeeException {
return call();
}
@@ -120,10 +121,10 @@ public CompletableFuture proceedAsync() {
* and transport layer.
*
* @return the transport response
- * @throws Exception if request execution fails
+ * @throws ChargebeeException if request execution fails
*/
@Override
- public Response call() throws Exception {
+ public Response call() throws ChargebeeException {
return client.sendWithRetry(request);
}
}
\ No newline at end of file
diff --git a/src/main/java/com/chargebee/v4/core/http/ChargebeeApiResponse.java b/src/main/java/com/chargebee/v4/core/http/ChargebeeApiResponse.java
deleted file mode 100644
index 4ae5fd96..00000000
--- a/src/main/java/com/chargebee/v4/core/http/ChargebeeApiResponse.java
+++ /dev/null
@@ -1,75 +0,0 @@
-package com.chargebee.core.http;
-
-import com.chargebee.v4.transport.Response;
-
-/**
- * Wrapper for HTTP responses that provides access to both raw response data
- * and parsed objects.
- */
-public final class ChargebeeApiResponse {
- private final Response rawResponse;
- private final T parsedObject;
-
- public ChargebeeApiResponse(Response rawResponse, T parsedObject) {
- this.rawResponse = rawResponse;
- this.parsedObject = parsedObject;
- }
-
- /**
- * Get the HTTP status code.
- */
- public int statusCode() {
- return rawResponse.getStatusCode();
- }
-
- /**
- * Get the response headers.
- */
- public Headers headers() {
- return new Headers(rawResponse.getHeaders());
- }
-
- /**
- * Get the raw response body as string.
- */
- public String rawBody() {
- return rawResponse.getBodyAsString();
- }
-
- /**
- * Get the raw response body as bytes.
- */
- public byte[] rawBodyBytes() {
- return rawResponse.getBody();
- }
-
- /**
- * Get the parsed object.
- */
- public T parse() {
- return parsedObject;
- }
-
- /**
- * Check if the response was successful (2xx status code).
- */
- public boolean isSuccessful() {
- return rawResponse.isSuccessful();
- }
-
- /**
- * Get the underlying raw Response object.
- */
- public Response getRawResponse() {
- return rawResponse;
- }
-
- @Override
- public String toString() {
- return "ChargebeeApiResponse{" +
- "statusCode=" + statusCode() +
- ", headers=" + headers().names().size() + " headers" +
- ", parsedObject=" + parsedObject +
- '}';
- }
-}
\ No newline at end of file
diff --git a/src/main/java/com/chargebee/v4/core/http/Headers.java b/src/main/java/com/chargebee/v4/core/http/Headers.java
deleted file mode 100644
index dcff02ab..00000000
--- a/src/main/java/com/chargebee/v4/core/http/Headers.java
+++ /dev/null
@@ -1,60 +0,0 @@
-package com.chargebee.core.http;
-
-import java.util.*;
-
-/**
- * Immutable wrapper for HTTP response headers.
- */
-public final class Headers {
- private final Map> headers;
-
- public Headers(Map> headers) {
- this.headers = Collections.unmodifiableMap(new HashMap<>(headers));
- }
-
- /**
- * Get header value by name (case-insensitive).
- */
- public String get(String name) {
- List values = getAll(name);
- return values != null && !values.isEmpty() ? values.get(0) : null;
- }
-
- /**
- * Get all header values by name (case-insensitive).
- */
- public List getAll(String name) {
- for (Map.Entry> entry : headers.entrySet()) {
- if (name.equalsIgnoreCase(entry.getKey())) {
- return entry.getValue();
- }
- }
- return null;
- }
-
- /**
- * Check if header exists (case-insensitive).
- */
- public boolean contains(String name) {
- return getAll(name) != null;
- }
-
- /**
- * Get all header names.
- */
- public Set names() {
- return headers.keySet();
- }
-
- /**
- * Get the raw headers map.
- */
- public Map> toMap() {
- return headers;
- }
-
- @Override
- public String toString() {
- return "Headers{" + headers + "}";
- }
-}
\ No newline at end of file
diff --git a/src/main/java/com/chargebee/v4/core/models/addon/params/AddonCopyParams.java b/src/main/java/com/chargebee/v4/core/models/addon/params/AddonCopyParams.java
deleted file mode 100644
index 132f5912..00000000
--- a/src/main/java/com/chargebee/v4/core/models/addon/params/AddonCopyParams.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * This file is auto-generated by Chargebee.
- * For more information on how to make changes to this file, please see the README.
- * Reach out to dx@chargebee.com for any questions.
- * Copyright 2025 Chargebee Inc.
- */
-package com.chargebee.v4.core.models.addon.params;
-
-import com.chargebee.v4.internal.Recommended;
-
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-public final class AddonCopyParams {
-
- private final Map formData;
-
- private AddonCopyParams(AddonCopyBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for AddonCopyParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static AddonCopyBuilder builder() {
- return new AddonCopyBuilder();
- }
-
- public static final class AddonCopyBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private AddonCopyBuilder() {}
-
- public AddonCopyBuilder fromSite(String value) {
-
- formData.put("from_site", value);
-
- return this;
- }
-
- public AddonCopyBuilder idAtFromSite(String value) {
-
- formData.put("id_at_from_site", value);
-
- return this;
- }
-
- public AddonCopyBuilder id(String value) {
-
- formData.put("id", value);
-
- return this;
- }
-
- public AddonCopyBuilder forSiteMerging(Boolean value) {
-
- formData.put("for_site_merging", value);
-
- return this;
- }
-
- public AddonCopyParams build() {
- return new AddonCopyParams(this);
- }
- }
-}
diff --git a/src/main/java/com/chargebee/v4/core/models/addon/params/AddonCreateParams.java b/src/main/java/com/chargebee/v4/core/models/addon/params/AddonCreateParams.java
deleted file mode 100644
index 12d85443..00000000
--- a/src/main/java/com/chargebee/v4/core/models/addon/params/AddonCreateParams.java
+++ /dev/null
@@ -1,758 +0,0 @@
-/*
- * This file is auto-generated by Chargebee.
- * For more information on how to make changes to this file, please see the README.
- * Reach out to dx@chargebee.com for any questions.
- * Copyright 2025 Chargebee Inc.
- */
-package com.chargebee.v4.core.models.addon.params;
-
-import com.chargebee.v4.internal.Recommended;
-import com.chargebee.v4.internal.JsonUtil;
-
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.Map;
-import java.util.List;
-
-public final class AddonCreateParams {
-
- private final Map formData;
-
- private AddonCreateParams(AddonCreateBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for AddonCreateParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static AddonCreateBuilder builder() {
- return new AddonCreateBuilder();
- }
-
- public static final class AddonCreateBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private AddonCreateBuilder() {}
-
- public AddonCreateBuilder id(String value) {
-
- formData.put("id", value);
-
- return this;
- }
-
- public AddonCreateBuilder name(String value) {
-
- formData.put("name", value);
-
- return this;
- }
-
- public AddonCreateBuilder invoiceName(String value) {
-
- formData.put("invoice_name", value);
-
- return this;
- }
-
- public AddonCreateBuilder description(String value) {
-
- formData.put("description", value);
-
- return this;
- }
-
- public AddonCreateBuilder chargeType(ChargeType value) {
-
- formData.put("charge_type", value);
-
- return this;
- }
-
- public AddonCreateBuilder price(Long value) {
-
- formData.put("price", value);
-
- return this;
- }
-
- public AddonCreateBuilder currencyCode(String value) {
-
- formData.put("currency_code", value);
-
- return this;
- }
-
- public AddonCreateBuilder period(Integer value) {
-
- formData.put("period", value);
-
- return this;
- }
-
- public AddonCreateBuilder periodUnit(PeriodUnit value) {
-
- formData.put("period_unit", value);
-
- return this;
- }
-
- public AddonCreateBuilder pricingModel(PricingModel value) {
-
- formData.put("pricing_model", value);
-
- return this;
- }
-
- @Deprecated
- public AddonCreateBuilder type(Type value) {
-
- formData.put("type", value);
-
- return this;
- }
-
- public AddonCreateBuilder unit(String value) {
-
- formData.put("unit", value);
-
- return this;
- }
-
- public AddonCreateBuilder enabledInPortal(Boolean value) {
-
- formData.put("enabled_in_portal", value);
-
- return this;
- }
-
- public AddonCreateBuilder taxable(Boolean value) {
-
- formData.put("taxable", value);
-
- return this;
- }
-
- public AddonCreateBuilder taxProfileId(String value) {
-
- formData.put("tax_profile_id", value);
-
- return this;
- }
-
- public AddonCreateBuilder avalaraSaleType(AvalaraSaleType value) {
-
- formData.put("avalara_sale_type", value);
-
- return this;
- }
-
- public AddonCreateBuilder avalaraTransactionType(Integer value) {
-
- formData.put("avalara_transaction_type", value);
-
- return this;
- }
-
- public AddonCreateBuilder avalaraServiceType(Integer value) {
-
- formData.put("avalara_service_type", value);
-
- return this;
- }
-
- public AddonCreateBuilder taxCode(String value) {
-
- formData.put("tax_code", value);
-
- return this;
- }
-
- public AddonCreateBuilder hsnCode(String value) {
-
- formData.put("hsn_code", value);
-
- return this;
- }
-
- public AddonCreateBuilder taxjarProductCode(String value) {
-
- formData.put("taxjar_product_code", value);
-
- return this;
- }
-
- public AddonCreateBuilder invoiceNotes(String value) {
-
- formData.put("invoice_notes", value);
-
- return this;
- }
-
- public AddonCreateBuilder metaData(java.util.Map value) {
-
- formData.put("meta_data", JsonUtil.toJson(value));
-
- return this;
- }
-
- public AddonCreateBuilder sku(String value) {
-
- formData.put("sku", value);
-
- return this;
- }
-
- public AddonCreateBuilder accountingCode(String value) {
-
- formData.put("accounting_code", value);
-
- return this;
- }
-
- public AddonCreateBuilder accountingCategory1(String value) {
-
- formData.put("accounting_category1", value);
-
- return this;
- }
-
- public AddonCreateBuilder accountingCategory2(String value) {
-
- formData.put("accounting_category2", value);
-
- return this;
- }
-
- public AddonCreateBuilder accountingCategory3(String value) {
-
- formData.put("accounting_category3", value);
-
- return this;
- }
-
- public AddonCreateBuilder accountingCategory4(String value) {
-
- formData.put("accounting_category4", value);
-
- return this;
- }
-
- public AddonCreateBuilder isShippable(Boolean value) {
-
- formData.put("is_shippable", value);
-
- return this;
- }
-
- public AddonCreateBuilder shippingFrequencyPeriod(Integer value) {
-
- formData.put("shipping_frequency_period", value);
-
- return this;
- }
-
- public AddonCreateBuilder shippingFrequencyPeriodUnit(ShippingFrequencyPeriodUnit value) {
-
- formData.put("shipping_frequency_period_unit", value);
-
- return this;
- }
-
- public AddonCreateBuilder includedInMrr(Boolean value) {
-
- formData.put("included_in_mrr", value);
-
- return this;
- }
-
- public AddonCreateBuilder showDescriptionInInvoices(Boolean value) {
-
- formData.put("show_description_in_invoices", value);
-
- return this;
- }
-
- public AddonCreateBuilder showDescriptionInQuotes(Boolean value) {
-
- formData.put("show_description_in_quotes", value);
-
- return this;
- }
-
- public AddonCreateBuilder priceInDecimal(String value) {
-
- formData.put("price_in_decimal", value);
-
- return this;
- }
-
- public AddonCreateBuilder prorationType(ProrationType value) {
-
- formData.put("proration_type", value);
-
- return this;
- }
-
- public AddonCreateBuilder status(Status value) {
-
- formData.put("status", value);
-
- return this;
- }
-
- public AddonCreateBuilder tiers(List value) {
- if (value != null && !value.isEmpty()) {
- for (int i = 0; i < value.size(); i++) {
- TiersParams item = value.get(i);
- if (item != null) {
- Map itemData = item.toFormData();
- for (Map.Entry entry : itemData.entrySet()) {
- String indexedKey = "tiers[" + entry.getKey() + "][" + i + "]";
- formData.put(indexedKey, entry.getValue());
- }
- }
- }
- }
- return this;
- }
-
- public AddonCreateBuilder taxProvidersFields(List value) {
- if (value != null && !value.isEmpty()) {
- for (int i = 0; i < value.size(); i++) {
- TaxProvidersFieldsParams item = value.get(i);
- if (item != null) {
- Map itemData = item.toFormData();
- for (Map.Entry entry : itemData.entrySet()) {
- String indexedKey = "tax_providers_fields[" + entry.getKey() + "][" + i + "]";
- formData.put(indexedKey, entry.getValue());
- }
- }
- }
- }
- return this;
- }
-
- /**
- * Add a custom field to the request. Custom fields must start with "cf_".
- *
- * @param fieldName the name of the custom field (e.g., "cf_custom_field_name")
- * @param value the value of the custom field
- * @return this builder
- * @throws IllegalArgumentException if fieldName doesn't start with "cf_"
- */
- public AddonCreateBuilder customField(String fieldName, Object value) {
- if (fieldName == null || !fieldName.startsWith("cf_")) {
- throw new IllegalArgumentException("Custom field name must start with 'cf_'");
- }
- formData.put(fieldName, value);
- return this;
- }
-
- /**
- * Add multiple custom fields to the request. All field names must start with "cf_".
- *
- * @param customFields map of custom field names to values
- * @return this builder
- * @throws IllegalArgumentException if any field name doesn't start with "cf_"
- */
- public AddonCreateBuilder customFields(Map customFields) {
- if (customFields != null) {
- for (Map.Entry entry : customFields.entrySet()) {
- if (entry.getKey() == null || !entry.getKey().startsWith("cf_")) {
- throw new IllegalArgumentException(
- "Custom field name must start with 'cf_': " + entry.getKey());
- }
- formData.put(entry.getKey(), entry.getValue());
- }
- }
- return this;
- }
-
- public AddonCreateParams build() {
- return new AddonCreateParams(this);
- }
- }
-
- public enum ChargeType {
- RECURRING("recurring"),
-
- NON_RECURRING("non_recurring"),
-
- /** An enum member indicating that ChargeType was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- ChargeType(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static ChargeType fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (ChargeType enumValue : ChargeType.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public enum PeriodUnit {
- DAY("day"),
-
- WEEK("week"),
-
- MONTH("month"),
-
- YEAR("year"),
-
- NOT_APPLICABLE("not_applicable"),
-
- /** An enum member indicating that PeriodUnit was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- PeriodUnit(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static PeriodUnit fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (PeriodUnit enumValue : PeriodUnit.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public enum PricingModel {
- FLAT_FEE("flat_fee"),
-
- PER_UNIT("per_unit"),
-
- TIERED("tiered"),
-
- VOLUME("volume"),
-
- STAIRSTEP("stairstep"),
-
- /** An enum member indicating that PricingModel was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- PricingModel(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static PricingModel fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (PricingModel enumValue : PricingModel.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public enum Type {
- ON_OFF("on_off"),
-
- QUANTITY("quantity"),
-
- TIERED("tiered"),
-
- VOLUME("volume"),
-
- STAIRSTEP("stairstep"),
-
- /** An enum member indicating that Type was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- Type(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static Type fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (Type enumValue : Type.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public enum AvalaraSaleType {
- WHOLESALE("wholesale"),
-
- RETAIL("retail"),
-
- CONSUMED("consumed"),
-
- VENDOR_USE("vendor_use"),
-
- /** An enum member indicating that AvalaraSaleType was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- AvalaraSaleType(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static AvalaraSaleType fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (AvalaraSaleType enumValue : AvalaraSaleType.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public enum ShippingFrequencyPeriodUnit {
- YEAR("year"),
-
- MONTH("month"),
-
- WEEK("week"),
-
- DAY("day"),
-
- /**
- * An enum member indicating that ShippingFrequencyPeriodUnit was instantiated with an unknown
- * value.
- */
- _UNKNOWN(null);
- private final String value;
-
- ShippingFrequencyPeriodUnit(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static ShippingFrequencyPeriodUnit fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (ShippingFrequencyPeriodUnit enumValue : ShippingFrequencyPeriodUnit.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public enum ProrationType {
- SITE_DEFAULT("site_default"),
-
- PARTIAL_TERM("partial_term"),
-
- FULL_TERM("full_term"),
-
- /** An enum member indicating that ProrationType was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- ProrationType(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static ProrationType fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (ProrationType enumValue : ProrationType.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public enum Status {
- ACTIVE("active"),
-
- ARCHIVED("archived"),
-
- /** An enum member indicating that Status was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- Status(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static Status fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (Status enumValue : Status.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public static final class TiersParams {
-
- private final Map formData;
-
- private TiersParams(TiersBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for TiersParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static TiersBuilder builder() {
- return new TiersBuilder();
- }
-
- public static final class TiersBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private TiersBuilder() {}
-
- public TiersBuilder startingUnit(Integer value) {
-
- formData.put("starting_unit", value);
-
- return this;
- }
-
- public TiersBuilder endingUnit(Integer value) {
-
- formData.put("ending_unit", value);
-
- return this;
- }
-
- public TiersBuilder price(Long value) {
-
- formData.put("price", value);
-
- return this;
- }
-
- public TiersBuilder startingUnitInDecimal(String value) {
-
- formData.put("starting_unit_in_decimal", value);
-
- return this;
- }
-
- public TiersBuilder endingUnitInDecimal(String value) {
-
- formData.put("ending_unit_in_decimal", value);
-
- return this;
- }
-
- public TiersBuilder priceInDecimal(String value) {
-
- formData.put("price_in_decimal", value);
-
- return this;
- }
-
- public TiersParams build() {
- return new TiersParams(this);
- }
- }
- }
-
- public static final class TaxProvidersFieldsParams {
-
- private final Map formData;
-
- private TaxProvidersFieldsParams(TaxProvidersFieldsBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for TaxProvidersFieldsParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static TaxProvidersFieldsBuilder builder() {
- return new TaxProvidersFieldsBuilder();
- }
-
- public static final class TaxProvidersFieldsBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private TaxProvidersFieldsBuilder() {}
-
- public TaxProvidersFieldsBuilder providerName(String value) {
-
- formData.put("provider_name", value);
-
- return this;
- }
-
- public TaxProvidersFieldsBuilder fieldId(String value) {
-
- formData.put("field_id", value);
-
- return this;
- }
-
- public TaxProvidersFieldsBuilder fieldValue(String value) {
-
- formData.put("field_value", value);
-
- return this;
- }
-
- public TaxProvidersFieldsParams build() {
- return new TaxProvidersFieldsParams(this);
- }
- }
- }
-}
diff --git a/src/main/java/com/chargebee/v4/core/models/addon/params/AddonDeleteParams.java b/src/main/java/com/chargebee/v4/core/models/addon/params/AddonDeleteParams.java
deleted file mode 100644
index bc21a23a..00000000
--- a/src/main/java/com/chargebee/v4/core/models/addon/params/AddonDeleteParams.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * This file is auto-generated by Chargebee.
- * For more information on how to make changes to this file, please see the README.
- * Reach out to dx@chargebee.com for any questions.
- * Copyright 2025 Chargebee Inc.
- */
-package com.chargebee.v4.core.models.addon.params;
-
-import com.chargebee.v4.internal.Recommended;
-
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-public final class AddonDeleteParams {
-
- private final Map formData;
-
- private AddonDeleteParams(AddonDeleteBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for AddonDeleteParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static AddonDeleteBuilder builder() {
- return new AddonDeleteBuilder();
- }
-
- public static final class AddonDeleteBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private AddonDeleteBuilder() {}
-
- public AddonDeleteParams build() {
- return new AddonDeleteParams(this);
- }
- }
-}
diff --git a/src/main/java/com/chargebee/v4/core/models/addon/params/AddonUnarchiveParams.java b/src/main/java/com/chargebee/v4/core/models/addon/params/AddonUnarchiveParams.java
deleted file mode 100644
index 2856ca45..00000000
--- a/src/main/java/com/chargebee/v4/core/models/addon/params/AddonUnarchiveParams.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * This file is auto-generated by Chargebee.
- * For more information on how to make changes to this file, please see the README.
- * Reach out to dx@chargebee.com for any questions.
- * Copyright 2025 Chargebee Inc.
- */
-package com.chargebee.v4.core.models.addon.params;
-
-import com.chargebee.v4.internal.Recommended;
-
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-public final class AddonUnarchiveParams {
-
- private final Map formData;
-
- private AddonUnarchiveParams(AddonUnarchiveBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for AddonUnarchiveParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static AddonUnarchiveBuilder builder() {
- return new AddonUnarchiveBuilder();
- }
-
- public static final class AddonUnarchiveBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private AddonUnarchiveBuilder() {}
-
- public AddonUnarchiveParams build() {
- return new AddonUnarchiveParams(this);
- }
- }
-}
diff --git a/src/main/java/com/chargebee/v4/core/models/addon/params/AddonUpdateParams.java b/src/main/java/com/chargebee/v4/core/models/addon/params/AddonUpdateParams.java
deleted file mode 100644
index 357c1117..00000000
--- a/src/main/java/com/chargebee/v4/core/models/addon/params/AddonUpdateParams.java
+++ /dev/null
@@ -1,716 +0,0 @@
-/*
- * This file is auto-generated by Chargebee.
- * For more information on how to make changes to this file, please see the README.
- * Reach out to dx@chargebee.com for any questions.
- * Copyright 2025 Chargebee Inc.
- */
-package com.chargebee.v4.core.models.addon.params;
-
-import com.chargebee.v4.internal.Recommended;
-import com.chargebee.v4.internal.JsonUtil;
-
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.Map;
-import java.util.List;
-
-public final class AddonUpdateParams {
-
- private final Map formData;
-
- private AddonUpdateParams(AddonUpdateBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for AddonUpdateParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static AddonUpdateBuilder builder() {
- return new AddonUpdateBuilder();
- }
-
- public static final class AddonUpdateBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private AddonUpdateBuilder() {}
-
- public AddonUpdateBuilder name(String value) {
-
- formData.put("name", value);
-
- return this;
- }
-
- public AddonUpdateBuilder invoiceName(String value) {
-
- formData.put("invoice_name", value);
-
- return this;
- }
-
- public AddonUpdateBuilder description(String value) {
-
- formData.put("description", value);
-
- return this;
- }
-
- public AddonUpdateBuilder chargeType(ChargeType value) {
-
- formData.put("charge_type", value);
-
- return this;
- }
-
- public AddonUpdateBuilder price(Long value) {
-
- formData.put("price", value);
-
- return this;
- }
-
- public AddonUpdateBuilder currencyCode(String value) {
-
- formData.put("currency_code", value);
-
- return this;
- }
-
- public AddonUpdateBuilder period(Integer value) {
-
- formData.put("period", value);
-
- return this;
- }
-
- public AddonUpdateBuilder periodUnit(PeriodUnit value) {
-
- formData.put("period_unit", value);
-
- return this;
- }
-
- public AddonUpdateBuilder pricingModel(PricingModel value) {
-
- formData.put("pricing_model", value);
-
- return this;
- }
-
- @Deprecated
- public AddonUpdateBuilder type(Type value) {
-
- formData.put("type", value);
-
- return this;
- }
-
- public AddonUpdateBuilder unit(String value) {
-
- formData.put("unit", value);
-
- return this;
- }
-
- public AddonUpdateBuilder enabledInPortal(Boolean value) {
-
- formData.put("enabled_in_portal", value);
-
- return this;
- }
-
- public AddonUpdateBuilder taxable(Boolean value) {
-
- formData.put("taxable", value);
-
- return this;
- }
-
- public AddonUpdateBuilder taxProfileId(String value) {
-
- formData.put("tax_profile_id", value);
-
- return this;
- }
-
- public AddonUpdateBuilder avalaraSaleType(AvalaraSaleType value) {
-
- formData.put("avalara_sale_type", value);
-
- return this;
- }
-
- public AddonUpdateBuilder avalaraTransactionType(Integer value) {
-
- formData.put("avalara_transaction_type", value);
-
- return this;
- }
-
- public AddonUpdateBuilder avalaraServiceType(Integer value) {
-
- formData.put("avalara_service_type", value);
-
- return this;
- }
-
- public AddonUpdateBuilder taxCode(String value) {
-
- formData.put("tax_code", value);
-
- return this;
- }
-
- public AddonUpdateBuilder hsnCode(String value) {
-
- formData.put("hsn_code", value);
-
- return this;
- }
-
- public AddonUpdateBuilder taxjarProductCode(String value) {
-
- formData.put("taxjar_product_code", value);
-
- return this;
- }
-
- public AddonUpdateBuilder invoiceNotes(String value) {
-
- formData.put("invoice_notes", value);
-
- return this;
- }
-
- public AddonUpdateBuilder metaData(java.util.Map value) {
-
- formData.put("meta_data", JsonUtil.toJson(value));
-
- return this;
- }
-
- public AddonUpdateBuilder sku(String value) {
-
- formData.put("sku", value);
-
- return this;
- }
-
- public AddonUpdateBuilder accountingCode(String value) {
-
- formData.put("accounting_code", value);
-
- return this;
- }
-
- public AddonUpdateBuilder accountingCategory1(String value) {
-
- formData.put("accounting_category1", value);
-
- return this;
- }
-
- public AddonUpdateBuilder accountingCategory2(String value) {
-
- formData.put("accounting_category2", value);
-
- return this;
- }
-
- public AddonUpdateBuilder accountingCategory3(String value) {
-
- formData.put("accounting_category3", value);
-
- return this;
- }
-
- public AddonUpdateBuilder accountingCategory4(String value) {
-
- formData.put("accounting_category4", value);
-
- return this;
- }
-
- public AddonUpdateBuilder isShippable(Boolean value) {
-
- formData.put("is_shippable", value);
-
- return this;
- }
-
- public AddonUpdateBuilder shippingFrequencyPeriod(Integer value) {
-
- formData.put("shipping_frequency_period", value);
-
- return this;
- }
-
- public AddonUpdateBuilder shippingFrequencyPeriodUnit(ShippingFrequencyPeriodUnit value) {
-
- formData.put("shipping_frequency_period_unit", value);
-
- return this;
- }
-
- public AddonUpdateBuilder includedInMrr(Boolean value) {
-
- formData.put("included_in_mrr", value);
-
- return this;
- }
-
- public AddonUpdateBuilder showDescriptionInInvoices(Boolean value) {
-
- formData.put("show_description_in_invoices", value);
-
- return this;
- }
-
- public AddonUpdateBuilder showDescriptionInQuotes(Boolean value) {
-
- formData.put("show_description_in_quotes", value);
-
- return this;
- }
-
- public AddonUpdateBuilder priceInDecimal(String value) {
-
- formData.put("price_in_decimal", value);
-
- return this;
- }
-
- public AddonUpdateBuilder prorationType(ProrationType value) {
-
- formData.put("proration_type", value);
-
- return this;
- }
-
- public AddonUpdateBuilder tiers(List value) {
- if (value != null && !value.isEmpty()) {
- for (int i = 0; i < value.size(); i++) {
- TiersParams item = value.get(i);
- if (item != null) {
- Map itemData = item.toFormData();
- for (Map.Entry entry : itemData.entrySet()) {
- String indexedKey = "tiers[" + entry.getKey() + "][" + i + "]";
- formData.put(indexedKey, entry.getValue());
- }
- }
- }
- }
- return this;
- }
-
- public AddonUpdateBuilder taxProvidersFields(List value) {
- if (value != null && !value.isEmpty()) {
- for (int i = 0; i < value.size(); i++) {
- TaxProvidersFieldsParams item = value.get(i);
- if (item != null) {
- Map itemData = item.toFormData();
- for (Map.Entry entry : itemData.entrySet()) {
- String indexedKey = "tax_providers_fields[" + entry.getKey() + "][" + i + "]";
- formData.put(indexedKey, entry.getValue());
- }
- }
- }
- }
- return this;
- }
-
- /**
- * Add a custom field to the request. Custom fields must start with "cf_".
- *
- * @param fieldName the name of the custom field (e.g., "cf_custom_field_name")
- * @param value the value of the custom field
- * @return this builder
- * @throws IllegalArgumentException if fieldName doesn't start with "cf_"
- */
- public AddonUpdateBuilder customField(String fieldName, Object value) {
- if (fieldName == null || !fieldName.startsWith("cf_")) {
- throw new IllegalArgumentException("Custom field name must start with 'cf_'");
- }
- formData.put(fieldName, value);
- return this;
- }
-
- /**
- * Add multiple custom fields to the request. All field names must start with "cf_".
- *
- * @param customFields map of custom field names to values
- * @return this builder
- * @throws IllegalArgumentException if any field name doesn't start with "cf_"
- */
- public AddonUpdateBuilder customFields(Map customFields) {
- if (customFields != null) {
- for (Map.Entry entry : customFields.entrySet()) {
- if (entry.getKey() == null || !entry.getKey().startsWith("cf_")) {
- throw new IllegalArgumentException(
- "Custom field name must start with 'cf_': " + entry.getKey());
- }
- formData.put(entry.getKey(), entry.getValue());
- }
- }
- return this;
- }
-
- public AddonUpdateParams build() {
- return new AddonUpdateParams(this);
- }
- }
-
- public enum ChargeType {
- RECURRING("recurring"),
-
- NON_RECURRING("non_recurring"),
-
- /** An enum member indicating that ChargeType was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- ChargeType(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static ChargeType fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (ChargeType enumValue : ChargeType.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public enum PeriodUnit {
- DAY("day"),
-
- WEEK("week"),
-
- MONTH("month"),
-
- YEAR("year"),
-
- NOT_APPLICABLE("not_applicable"),
-
- /** An enum member indicating that PeriodUnit was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- PeriodUnit(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static PeriodUnit fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (PeriodUnit enumValue : PeriodUnit.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public enum PricingModel {
- FLAT_FEE("flat_fee"),
-
- PER_UNIT("per_unit"),
-
- TIERED("tiered"),
-
- VOLUME("volume"),
-
- STAIRSTEP("stairstep"),
-
- /** An enum member indicating that PricingModel was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- PricingModel(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static PricingModel fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (PricingModel enumValue : PricingModel.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public enum Type {
- ON_OFF("on_off"),
-
- QUANTITY("quantity"),
-
- TIERED("tiered"),
-
- VOLUME("volume"),
-
- STAIRSTEP("stairstep"),
-
- /** An enum member indicating that Type was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- Type(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static Type fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (Type enumValue : Type.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public enum AvalaraSaleType {
- WHOLESALE("wholesale"),
-
- RETAIL("retail"),
-
- CONSUMED("consumed"),
-
- VENDOR_USE("vendor_use"),
-
- /** An enum member indicating that AvalaraSaleType was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- AvalaraSaleType(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static AvalaraSaleType fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (AvalaraSaleType enumValue : AvalaraSaleType.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public enum ShippingFrequencyPeriodUnit {
- YEAR("year"),
-
- MONTH("month"),
-
- WEEK("week"),
-
- DAY("day"),
-
- /**
- * An enum member indicating that ShippingFrequencyPeriodUnit was instantiated with an unknown
- * value.
- */
- _UNKNOWN(null);
- private final String value;
-
- ShippingFrequencyPeriodUnit(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static ShippingFrequencyPeriodUnit fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (ShippingFrequencyPeriodUnit enumValue : ShippingFrequencyPeriodUnit.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public enum ProrationType {
- SITE_DEFAULT("site_default"),
-
- PARTIAL_TERM("partial_term"),
-
- FULL_TERM("full_term"),
-
- /** An enum member indicating that ProrationType was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- ProrationType(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static ProrationType fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (ProrationType enumValue : ProrationType.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public static final class TiersParams {
-
- private final Map formData;
-
- private TiersParams(TiersBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for TiersParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static TiersBuilder builder() {
- return new TiersBuilder();
- }
-
- public static final class TiersBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private TiersBuilder() {}
-
- public TiersBuilder startingUnit(Integer value) {
-
- formData.put("starting_unit", value);
-
- return this;
- }
-
- public TiersBuilder endingUnit(Integer value) {
-
- formData.put("ending_unit", value);
-
- return this;
- }
-
- public TiersBuilder price(Long value) {
-
- formData.put("price", value);
-
- return this;
- }
-
- public TiersBuilder startingUnitInDecimal(String value) {
-
- formData.put("starting_unit_in_decimal", value);
-
- return this;
- }
-
- public TiersBuilder endingUnitInDecimal(String value) {
-
- formData.put("ending_unit_in_decimal", value);
-
- return this;
- }
-
- public TiersBuilder priceInDecimal(String value) {
-
- formData.put("price_in_decimal", value);
-
- return this;
- }
-
- public TiersParams build() {
- return new TiersParams(this);
- }
- }
- }
-
- public static final class TaxProvidersFieldsParams {
-
- private final Map formData;
-
- private TaxProvidersFieldsParams(TaxProvidersFieldsBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for TaxProvidersFieldsParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static TaxProvidersFieldsBuilder builder() {
- return new TaxProvidersFieldsBuilder();
- }
-
- public static final class TaxProvidersFieldsBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private TaxProvidersFieldsBuilder() {}
-
- public TaxProvidersFieldsBuilder providerName(String value) {
-
- formData.put("provider_name", value);
-
- return this;
- }
-
- public TaxProvidersFieldsBuilder fieldId(String value) {
-
- formData.put("field_id", value);
-
- return this;
- }
-
- public TaxProvidersFieldsBuilder fieldValue(String value) {
-
- formData.put("field_value", value);
-
- return this;
- }
-
- public TaxProvidersFieldsParams build() {
- return new TaxProvidersFieldsParams(this);
- }
- }
- }
-}
diff --git a/src/main/java/com/chargebee/v4/core/models/address/params/AddressUpdateParams.java b/src/main/java/com/chargebee/v4/core/models/address/params/AddressUpdateParams.java
deleted file mode 100644
index 61205877..00000000
--- a/src/main/java/com/chargebee/v4/core/models/address/params/AddressUpdateParams.java
+++ /dev/null
@@ -1,187 +0,0 @@
-/*
- * This file is auto-generated by Chargebee.
- * For more information on how to make changes to this file, please see the README.
- * Reach out to dx@chargebee.com for any questions.
- * Copyright 2025 Chargebee Inc.
- */
-package com.chargebee.v4.core.models.address.params;
-
-import com.chargebee.v4.internal.Recommended;
-
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-public final class AddressUpdateParams {
-
- private final Map formData;
-
- private AddressUpdateParams(AddressUpdateBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for AddressUpdateParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static AddressUpdateBuilder builder() {
- return new AddressUpdateBuilder();
- }
-
- public static final class AddressUpdateBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private AddressUpdateBuilder() {}
-
- public AddressUpdateBuilder subscriptionId(String value) {
-
- formData.put("subscription_id", value);
-
- return this;
- }
-
- public AddressUpdateBuilder label(String value) {
-
- formData.put("label", value);
-
- return this;
- }
-
- public AddressUpdateBuilder firstName(String value) {
-
- formData.put("first_name", value);
-
- return this;
- }
-
- public AddressUpdateBuilder lastName(String value) {
-
- formData.put("last_name", value);
-
- return this;
- }
-
- public AddressUpdateBuilder email(String value) {
-
- formData.put("email", value);
-
- return this;
- }
-
- public AddressUpdateBuilder company(String value) {
-
- formData.put("company", value);
-
- return this;
- }
-
- public AddressUpdateBuilder phone(String value) {
-
- formData.put("phone", value);
-
- return this;
- }
-
- public AddressUpdateBuilder addr(String value) {
-
- formData.put("addr", value);
-
- return this;
- }
-
- public AddressUpdateBuilder extendedAddr(String value) {
-
- formData.put("extended_addr", value);
-
- return this;
- }
-
- public AddressUpdateBuilder extendedAddr2(String value) {
-
- formData.put("extended_addr2", value);
-
- return this;
- }
-
- public AddressUpdateBuilder city(String value) {
-
- formData.put("city", value);
-
- return this;
- }
-
- public AddressUpdateBuilder stateCode(String value) {
-
- formData.put("state_code", value);
-
- return this;
- }
-
- public AddressUpdateBuilder state(String value) {
-
- formData.put("state", value);
-
- return this;
- }
-
- public AddressUpdateBuilder zip(String value) {
-
- formData.put("zip", value);
-
- return this;
- }
-
- public AddressUpdateBuilder country(String value) {
-
- formData.put("country", value);
-
- return this;
- }
-
- public AddressUpdateBuilder validationStatus(ValidationStatus value) {
-
- formData.put("validation_status", value);
-
- return this;
- }
-
- public AddressUpdateParams build() {
- return new AddressUpdateParams(this);
- }
- }
-
- public enum ValidationStatus {
- NOT_VALIDATED("not_validated"),
-
- VALID("valid"),
-
- PARTIALLY_VALID("partially_valid"),
-
- INVALID("invalid"),
-
- /** An enum member indicating that ValidationStatus was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- ValidationStatus(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static ValidationStatus fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (ValidationStatus enumValue : ValidationStatus.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-}
diff --git a/src/main/java/com/chargebee/v4/core/models/attachedItem/params/AttachedItemCreateParams.java b/src/main/java/com/chargebee/v4/core/models/attachedItem/params/AttachedItemCreateParams.java
deleted file mode 100644
index 455a28e7..00000000
--- a/src/main/java/com/chargebee/v4/core/models/attachedItem/params/AttachedItemCreateParams.java
+++ /dev/null
@@ -1,165 +0,0 @@
-/*
- * This file is auto-generated by Chargebee.
- * For more information on how to make changes to this file, please see the README.
- * Reach out to dx@chargebee.com for any questions.
- * Copyright 2025 Chargebee Inc.
- */
-package com.chargebee.v4.core.models.attachedItem.params;
-
-import com.chargebee.v4.internal.Recommended;
-
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-public final class AttachedItemCreateParams {
-
- private final Map formData;
-
- private AttachedItemCreateParams(AttachedItemCreateBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for AttachedItemCreateParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static AttachedItemCreateBuilder builder() {
- return new AttachedItemCreateBuilder();
- }
-
- public static final class AttachedItemCreateBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private AttachedItemCreateBuilder() {}
-
- public AttachedItemCreateBuilder itemId(String value) {
-
- formData.put("item_id", value);
-
- return this;
- }
-
- public AttachedItemCreateBuilder type(Type value) {
-
- formData.put("type", value);
-
- return this;
- }
-
- public AttachedItemCreateBuilder billingCycles(Integer value) {
-
- formData.put("billing_cycles", value);
-
- return this;
- }
-
- public AttachedItemCreateBuilder quantity(Integer value) {
-
- formData.put("quantity", value);
-
- return this;
- }
-
- public AttachedItemCreateBuilder quantityInDecimal(String value) {
-
- formData.put("quantity_in_decimal", value);
-
- return this;
- }
-
- public AttachedItemCreateBuilder chargeOnEvent(ChargeOnEvent value) {
-
- formData.put("charge_on_event", value);
-
- return this;
- }
-
- public AttachedItemCreateBuilder chargeOnce(Boolean value) {
-
- formData.put("charge_once", value);
-
- return this;
- }
-
- public AttachedItemCreateBuilder businessEntityId(String value) {
-
- formData.put("business_entity_id", value);
-
- return this;
- }
-
- public AttachedItemCreateParams build() {
- return new AttachedItemCreateParams(this);
- }
- }
-
- public enum Type {
- RECOMMENDED("recommended"),
-
- MANDATORY("mandatory"),
-
- OPTIONAL("optional"),
-
- /** An enum member indicating that Type was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- Type(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static Type fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (Type enumValue : Type.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public enum ChargeOnEvent {
- SUBSCRIPTION_CREATION("subscription_creation"),
-
- SUBSCRIPTION_TRIAL_START("subscription_trial_start"),
-
- PLAN_ACTIVATION("plan_activation"),
-
- SUBSCRIPTION_ACTIVATION("subscription_activation"),
-
- CONTRACT_TERMINATION("contract_termination"),
-
- ON_DEMAND("on_demand"),
-
- /** An enum member indicating that ChargeOnEvent was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- ChargeOnEvent(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static ChargeOnEvent fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (ChargeOnEvent enumValue : ChargeOnEvent.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-}
diff --git a/src/main/java/com/chargebee/v4/core/models/attachedItem/params/AttachedItemDeleteParams.java b/src/main/java/com/chargebee/v4/core/models/attachedItem/params/AttachedItemDeleteParams.java
deleted file mode 100644
index 04e6ac35..00000000
--- a/src/main/java/com/chargebee/v4/core/models/attachedItem/params/AttachedItemDeleteParams.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * This file is auto-generated by Chargebee.
- * For more information on how to make changes to this file, please see the README.
- * Reach out to dx@chargebee.com for any questions.
- * Copyright 2025 Chargebee Inc.
- */
-package com.chargebee.v4.core.models.attachedItem.params;
-
-import com.chargebee.v4.internal.Recommended;
-
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-public final class AttachedItemDeleteParams {
-
- private final Map formData;
-
- private AttachedItemDeleteParams(AttachedItemDeleteBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for AttachedItemDeleteParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static AttachedItemDeleteBuilder builder() {
- return new AttachedItemDeleteBuilder();
- }
-
- public static final class AttachedItemDeleteBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private AttachedItemDeleteBuilder() {}
-
- public AttachedItemDeleteBuilder parentItemId(String value) {
-
- formData.put("parent_item_id", value);
-
- return this;
- }
-
- public AttachedItemDeleteParams build() {
- return new AttachedItemDeleteParams(this);
- }
- }
-}
diff --git a/src/main/java/com/chargebee/v4/core/models/attachedItem/params/AttachedItemUpdateParams.java b/src/main/java/com/chargebee/v4/core/models/attachedItem/params/AttachedItemUpdateParams.java
deleted file mode 100644
index 3e947a5c..00000000
--- a/src/main/java/com/chargebee/v4/core/models/attachedItem/params/AttachedItemUpdateParams.java
+++ /dev/null
@@ -1,158 +0,0 @@
-/*
- * This file is auto-generated by Chargebee.
- * For more information on how to make changes to this file, please see the README.
- * Reach out to dx@chargebee.com for any questions.
- * Copyright 2025 Chargebee Inc.
- */
-package com.chargebee.v4.core.models.attachedItem.params;
-
-import com.chargebee.v4.internal.Recommended;
-
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-public final class AttachedItemUpdateParams {
-
- private final Map formData;
-
- private AttachedItemUpdateParams(AttachedItemUpdateBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for AttachedItemUpdateParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static AttachedItemUpdateBuilder builder() {
- return new AttachedItemUpdateBuilder();
- }
-
- public static final class AttachedItemUpdateBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private AttachedItemUpdateBuilder() {}
-
- public AttachedItemUpdateBuilder parentItemId(String value) {
-
- formData.put("parent_item_id", value);
-
- return this;
- }
-
- public AttachedItemUpdateBuilder type(Type value) {
-
- formData.put("type", value);
-
- return this;
- }
-
- public AttachedItemUpdateBuilder billingCycles(Integer value) {
-
- formData.put("billing_cycles", value);
-
- return this;
- }
-
- public AttachedItemUpdateBuilder quantity(Integer value) {
-
- formData.put("quantity", value);
-
- return this;
- }
-
- public AttachedItemUpdateBuilder quantityInDecimal(String value) {
-
- formData.put("quantity_in_decimal", value);
-
- return this;
- }
-
- public AttachedItemUpdateBuilder chargeOnEvent(ChargeOnEvent value) {
-
- formData.put("charge_on_event", value);
-
- return this;
- }
-
- public AttachedItemUpdateBuilder chargeOnce(Boolean value) {
-
- formData.put("charge_once", value);
-
- return this;
- }
-
- public AttachedItemUpdateParams build() {
- return new AttachedItemUpdateParams(this);
- }
- }
-
- public enum Type {
- RECOMMENDED("recommended"),
-
- MANDATORY("mandatory"),
-
- OPTIONAL("optional"),
-
- /** An enum member indicating that Type was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- Type(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static Type fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (Type enumValue : Type.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public enum ChargeOnEvent {
- SUBSCRIPTION_CREATION("subscription_creation"),
-
- SUBSCRIPTION_TRIAL_START("subscription_trial_start"),
-
- PLAN_ACTIVATION("plan_activation"),
-
- SUBSCRIPTION_ACTIVATION("subscription_activation"),
-
- CONTRACT_TERMINATION("contract_termination"),
-
- ON_DEMAND("on_demand"),
-
- /** An enum member indicating that ChargeOnEvent was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- ChargeOnEvent(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static ChargeOnEvent fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (ChargeOnEvent enumValue : ChargeOnEvent.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-}
diff --git a/src/main/java/com/chargebee/v4/core/models/businessEntity/params/BusinessEntityCreateTransfersParams.java b/src/main/java/com/chargebee/v4/core/models/businessEntity/params/BusinessEntityCreateTransfersParams.java
deleted file mode 100644
index b6a707bc..00000000
--- a/src/main/java/com/chargebee/v4/core/models/businessEntity/params/BusinessEntityCreateTransfersParams.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * This file is auto-generated by Chargebee.
- * For more information on how to make changes to this file, please see the README.
- * Reach out to dx@chargebee.com for any questions.
- * Copyright 2025 Chargebee Inc.
- */
-package com.chargebee.v4.core.models.businessEntity.params;
-
-import com.chargebee.v4.internal.Recommended;
-
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.Map;
-import java.util.List;
-
-public final class BusinessEntityCreateTransfersParams {
-
- private final Map formData;
-
- private BusinessEntityCreateTransfersParams(BusinessEntityCreateTransfersBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for BusinessEntityCreateTransfersParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static BusinessEntityCreateTransfersBuilder builder() {
- return new BusinessEntityCreateTransfersBuilder();
- }
-
- public static final class BusinessEntityCreateTransfersBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private BusinessEntityCreateTransfersBuilder() {}
-
- public BusinessEntityCreateTransfersBuilder activeResourceIds(List value) {
-
- formData.put("active_resource_ids", value);
-
- return this;
- }
-
- public BusinessEntityCreateTransfersBuilder destinationBusinessEntityIds(List value) {
-
- formData.put("destination_business_entity_ids", value);
-
- return this;
- }
-
- @Deprecated
- public BusinessEntityCreateTransfersBuilder sourceBusinessEntityIds(List value) {
-
- formData.put("source_business_entity_ids", value);
-
- return this;
- }
-
- @Deprecated
- public BusinessEntityCreateTransfersBuilder resourceTypes(List value) {
-
- formData.put("resource_types", value);
-
- return this;
- }
-
- public BusinessEntityCreateTransfersBuilder reasonCodes(List value) {
-
- formData.put("reason_codes", value);
-
- return this;
- }
-
- public BusinessEntityCreateTransfersParams build() {
- return new BusinessEntityCreateTransfersParams(this);
- }
- }
-}
diff --git a/src/main/java/com/chargebee/v4/core/models/businessEntityChange/BusinessEntityChange.java b/src/main/java/com/chargebee/v4/core/models/businessEntityChange/BusinessEntityChange.java
deleted file mode 100644
index 1bd107eb..00000000
--- a/src/main/java/com/chargebee/v4/core/models/businessEntityChange/BusinessEntityChange.java
+++ /dev/null
@@ -1,138 +0,0 @@
-/*
- * This file is auto-generated by Chargebee.
- * For more information on how to make changes to this file, please see the README.
- * Reach out to dx@chargebee.com for any questions.
- * Copyright 2025 Chargebee Inc.
- */
-
-package com.chargebee.v4.core.models.businessEntityChange;
-
-import com.chargebee.v4.internal.JsonUtil;
-import java.sql.Timestamp;
-
-public class BusinessEntityChange {
-
- private String id;
- private String businessEntityId;
- private Reason reason;
- private Timestamp activeFrom;
- private Timestamp activeTo;
- private ResourceType resourceType;
- private Timestamp modifiedAt;
- private String resourceId;
- private String activeResourceId;
-
- public String getId() {
- return id;
- }
-
- public String getBusinessEntityId() {
- return businessEntityId;
- }
-
- public Reason getReason() {
- return reason;
- }
-
- public Timestamp getActiveFrom() {
- return activeFrom;
- }
-
- public Timestamp getActiveTo() {
- return activeTo;
- }
-
- public ResourceType getResourceType() {
- return resourceType;
- }
-
- public Timestamp getModifiedAt() {
- return modifiedAt;
- }
-
- public String getResourceId() {
- return resourceId;
- }
-
- public String getActiveResourceId() {
- return activeResourceId;
- }
-
- public enum Reason {
- CORRECTION("correction"),
-
- /** An enum member indicating that Reason was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- Reason(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static Reason fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (Reason enumValue : Reason.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public enum ResourceType {
- CUSTOMER("customer"),
-
- SUBSCRIPTION("subscription"),
-
- /** An enum member indicating that ResourceType was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- ResourceType(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static ResourceType fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (ResourceType enumValue : ResourceType.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public static BusinessEntityChange fromJson(String json) {
- BusinessEntityChange obj = new BusinessEntityChange();
-
- obj.id = JsonUtil.getString(json, "id");
-
- obj.businessEntityId = JsonUtil.getString(json, "business_entity_id");
-
- obj.reason = Reason.fromString(JsonUtil.getString(json, "reason"));
-
- obj.activeFrom = JsonUtil.getTimestamp(json, "active_from");
-
- obj.activeTo = JsonUtil.getTimestamp(json, "active_to");
-
- obj.resourceType = ResourceType.fromString(JsonUtil.getString(json, "resource_type"));
-
- obj.modifiedAt = JsonUtil.getTimestamp(json, "modified_at");
-
- obj.resourceId = JsonUtil.getString(json, "resource_id");
-
- obj.activeResourceId = JsonUtil.getString(json, "active_resource_id");
-
- return obj;
- }
-}
diff --git a/src/main/java/com/chargebee/v4/core/models/card/params/CardCopyCardForCustomerParams.java b/src/main/java/com/chargebee/v4/core/models/card/params/CardCopyCardForCustomerParams.java
deleted file mode 100644
index ea47d8a8..00000000
--- a/src/main/java/com/chargebee/v4/core/models/card/params/CardCopyCardForCustomerParams.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * This file is auto-generated by Chargebee.
- * For more information on how to make changes to this file, please see the README.
- * Reach out to dx@chargebee.com for any questions.
- * Copyright 2025 Chargebee Inc.
- */
-package com.chargebee.v4.core.models.card.params;
-
-import com.chargebee.v4.internal.Recommended;
-
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-public final class CardCopyCardForCustomerParams {
-
- private final Map formData;
-
- private CardCopyCardForCustomerParams(CardCopyCardForCustomerBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for CardCopyCardForCustomerParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static CardCopyCardForCustomerBuilder builder() {
- return new CardCopyCardForCustomerBuilder();
- }
-
- public static final class CardCopyCardForCustomerBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private CardCopyCardForCustomerBuilder() {}
-
- public CardCopyCardForCustomerBuilder gatewayAccountId(String value) {
-
- formData.put("gateway_account_id", value);
-
- return this;
- }
-
- public CardCopyCardForCustomerParams build() {
- return new CardCopyCardForCustomerParams(this);
- }
- }
-}
diff --git a/src/main/java/com/chargebee/v4/core/models/card/params/CardDeleteCardForCustomerParams.java b/src/main/java/com/chargebee/v4/core/models/card/params/CardDeleteCardForCustomerParams.java
deleted file mode 100644
index c62879f8..00000000
--- a/src/main/java/com/chargebee/v4/core/models/card/params/CardDeleteCardForCustomerParams.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * This file is auto-generated by Chargebee.
- * For more information on how to make changes to this file, please see the README.
- * Reach out to dx@chargebee.com for any questions.
- * Copyright 2025 Chargebee Inc.
- */
-package com.chargebee.v4.core.models.card.params;
-
-import com.chargebee.v4.internal.Recommended;
-
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-public final class CardDeleteCardForCustomerParams {
-
- private final Map formData;
-
- private CardDeleteCardForCustomerParams(CardDeleteCardForCustomerBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for CardDeleteCardForCustomerParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static CardDeleteCardForCustomerBuilder builder() {
- return new CardDeleteCardForCustomerBuilder();
- }
-
- public static final class CardDeleteCardForCustomerBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private CardDeleteCardForCustomerBuilder() {}
-
- public CardDeleteCardForCustomerParams build() {
- return new CardDeleteCardForCustomerParams(this);
- }
- }
-}
diff --git a/src/main/java/com/chargebee/v4/core/models/card/params/CardUpdateCardForCustomerParams.java b/src/main/java/com/chargebee/v4/core/models/card/params/CardUpdateCardForCustomerParams.java
deleted file mode 100644
index 434df683..00000000
--- a/src/main/java/com/chargebee/v4/core/models/card/params/CardUpdateCardForCustomerParams.java
+++ /dev/null
@@ -1,383 +0,0 @@
-/*
- * This file is auto-generated by Chargebee.
- * For more information on how to make changes to this file, please see the README.
- * Reach out to dx@chargebee.com for any questions.
- * Copyright 2025 Chargebee Inc.
- */
-package com.chargebee.v4.core.models.card.params;
-
-import com.chargebee.v4.internal.Recommended;
-
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-public final class CardUpdateCardForCustomerParams {
-
- private final Map formData;
-
- private CardUpdateCardForCustomerParams(CardUpdateCardForCustomerBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for CardUpdateCardForCustomerParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static CardUpdateCardForCustomerBuilder builder() {
- return new CardUpdateCardForCustomerBuilder();
- }
-
- public static final class CardUpdateCardForCustomerBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private CardUpdateCardForCustomerBuilder() {}
-
- @Deprecated
- public CardUpdateCardForCustomerBuilder gateway(Gateway value) {
-
- formData.put("gateway", value);
-
- return this;
- }
-
- public CardUpdateCardForCustomerBuilder gatewayAccountId(String value) {
-
- formData.put("gateway_account_id", value);
-
- return this;
- }
-
- public CardUpdateCardForCustomerBuilder tmpToken(String value) {
-
- formData.put("tmp_token", value);
-
- return this;
- }
-
- public CardUpdateCardForCustomerBuilder firstName(String value) {
-
- formData.put("first_name", value);
-
- return this;
- }
-
- public CardUpdateCardForCustomerBuilder lastName(String value) {
-
- formData.put("last_name", value);
-
- return this;
- }
-
- public CardUpdateCardForCustomerBuilder number(String value) {
-
- formData.put("number", value);
-
- return this;
- }
-
- public CardUpdateCardForCustomerBuilder expiryMonth(Integer value) {
-
- formData.put("expiry_month", value);
-
- return this;
- }
-
- public CardUpdateCardForCustomerBuilder expiryYear(Integer value) {
-
- formData.put("expiry_year", value);
-
- return this;
- }
-
- public CardUpdateCardForCustomerBuilder cvv(String value) {
-
- formData.put("cvv", value);
-
- return this;
- }
-
- public CardUpdateCardForCustomerBuilder preferredScheme(PreferredScheme value) {
-
- formData.put("preferred_scheme", value);
-
- return this;
- }
-
- public CardUpdateCardForCustomerBuilder billingAddr1(String value) {
-
- formData.put("billing_addr1", value);
-
- return this;
- }
-
- public CardUpdateCardForCustomerBuilder billingAddr2(String value) {
-
- formData.put("billing_addr2", value);
-
- return this;
- }
-
- public CardUpdateCardForCustomerBuilder billingCity(String value) {
-
- formData.put("billing_city", value);
-
- return this;
- }
-
- public CardUpdateCardForCustomerBuilder billingStateCode(String value) {
-
- formData.put("billing_state_code", value);
-
- return this;
- }
-
- public CardUpdateCardForCustomerBuilder billingState(String value) {
-
- formData.put("billing_state", value);
-
- return this;
- }
-
- public CardUpdateCardForCustomerBuilder billingZip(String value) {
-
- formData.put("billing_zip", value);
-
- return this;
- }
-
- public CardUpdateCardForCustomerBuilder billingCountry(String value) {
-
- formData.put("billing_country", value);
-
- return this;
- }
-
- @Deprecated
- public CardUpdateCardForCustomerBuilder ipAddress(String value) {
-
- formData.put("ip_address", value);
-
- return this;
- }
-
- @Deprecated
- public CardUpdateCardForCustomerBuilder customer(CustomerParams value) {
- if (value != null) {
- Map nestedData = value.toFormData();
- for (Map.Entry entry : nestedData.entrySet()) {
- String nestedKey = "customer[" + entry.getKey() + "]";
- formData.put(nestedKey, entry.getValue());
- }
- }
- return this;
- }
-
- public CardUpdateCardForCustomerParams build() {
- return new CardUpdateCardForCustomerParams(this);
- }
- }
-
- public enum Gateway {
- CHARGEBEE("chargebee"),
-
- CHARGEBEE_PAYMENTS("chargebee_payments"),
-
- ADYEN("adyen"),
-
- STRIPE("stripe"),
-
- WEPAY("wepay"),
-
- BRAINTREE("braintree"),
-
- AUTHORIZE_NET("authorize_net"),
-
- PAYPAL_PRO("paypal_pro"),
-
- PIN("pin"),
-
- EWAY("eway"),
-
- EWAY_RAPID("eway_rapid"),
-
- WORLDPAY("worldpay"),
-
- BALANCED_PAYMENTS("balanced_payments"),
-
- BEANSTREAM("beanstream"),
-
- BLUEPAY("bluepay"),
-
- ELAVON("elavon"),
-
- FIRST_DATA_GLOBAL("first_data_global"),
-
- HDFC("hdfc"),
-
- MIGS("migs"),
-
- NMI("nmi"),
-
- OGONE("ogone"),
-
- PAYMILL("paymill"),
-
- PAYPAL_PAYFLOW_PRO("paypal_payflow_pro"),
-
- SAGE_PAY("sage_pay"),
-
- TCO("tco"),
-
- WIRECARD("wirecard"),
-
- AMAZON_PAYMENTS("amazon_payments"),
-
- PAYPAL_EXPRESS_CHECKOUT("paypal_express_checkout"),
-
- ORBITAL("orbital"),
-
- MONERIS_US("moneris_us"),
-
- MONERIS("moneris"),
-
- BLUESNAP("bluesnap"),
-
- CYBERSOURCE("cybersource"),
-
- VANTIV("vantiv"),
-
- CHECKOUT_COM("checkout_com"),
-
- PAYPAL("paypal"),
-
- INGENICO_DIRECT("ingenico_direct"),
-
- EXACT("exact"),
-
- MOLLIE("mollie"),
-
- QUICKBOOKS("quickbooks"),
-
- RAZORPAY("razorpay"),
-
- GLOBAL_PAYMENTS("global_payments"),
-
- BANK_OF_AMERICA("bank_of_america"),
-
- ECENTRIC("ecentric"),
-
- METRICS_GLOBAL("metrics_global"),
-
- WINDCAVE("windcave"),
-
- PAY_COM("pay_com"),
-
- EBANX("ebanx"),
-
- DLOCAL("dlocal"),
-
- NUVEI("nuvei"),
-
- SOLIDGATE("solidgate"),
-
- PAYSTACK("paystack"),
-
- JP_MORGAN("jp_morgan"),
-
- DEUTSCHE_BANK("deutsche_bank"),
-
- /** An enum member indicating that Gateway was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- Gateway(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static Gateway fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (Gateway enumValue : Gateway.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public enum PreferredScheme {
- CARTES_BANCAIRES("cartes_bancaires"),
-
- MASTERCARD("mastercard"),
-
- VISA("visa"),
-
- /** An enum member indicating that PreferredScheme was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- PreferredScheme(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static PreferredScheme fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (PreferredScheme enumValue : PreferredScheme.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public static final class CustomerParams {
-
- private final Map formData;
-
- private CustomerParams(CustomerBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for CustomerParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static CustomerBuilder builder() {
- return new CustomerBuilder();
- }
-
- public static final class CustomerBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private CustomerBuilder() {}
-
- @Deprecated
- public CustomerBuilder vatNumber(String value) {
-
- formData.put("vat_number", value);
-
- return this;
- }
-
- public CustomerParams build() {
- return new CustomerParams(this);
- }
- }
- }
-}
diff --git a/src/main/java/com/chargebee/v4/core/models/comment/params/CommentCreateParams.java b/src/main/java/com/chargebee/v4/core/models/comment/params/CommentCreateParams.java
deleted file mode 100644
index ebddd9d2..00000000
--- a/src/main/java/com/chargebee/v4/core/models/comment/params/CommentCreateParams.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * This file is auto-generated by Chargebee.
- * For more information on how to make changes to this file, please see the README.
- * Reach out to dx@chargebee.com for any questions.
- * Copyright 2025 Chargebee Inc.
- */
-package com.chargebee.v4.core.models.comment.params;
-
-import com.chargebee.v4.internal.Recommended;
-
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-public final class CommentCreateParams {
-
- private final Map formData;
-
- private CommentCreateParams(CommentCreateBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for CommentCreateParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static CommentCreateBuilder builder() {
- return new CommentCreateBuilder();
- }
-
- public static final class CommentCreateBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private CommentCreateBuilder() {}
-
- public CommentCreateBuilder entityType(EntityType value) {
-
- formData.put("entity_type", value);
-
- return this;
- }
-
- public CommentCreateBuilder entityId(String value) {
-
- formData.put("entity_id", value);
-
- return this;
- }
-
- public CommentCreateBuilder notes(String value) {
-
- formData.put("notes", value);
-
- return this;
- }
-
- public CommentCreateBuilder addedBy(String value) {
-
- formData.put("added_by", value);
-
- return this;
- }
-
- public CommentCreateParams build() {
- return new CommentCreateParams(this);
- }
- }
-
- public enum EntityType {
- CUSTOMER("customer"),
-
- SUBSCRIPTION("subscription"),
-
- INVOICE("invoice"),
-
- QUOTE("quote"),
-
- CREDIT_NOTE("credit_note"),
-
- TRANSACTION("transaction"),
-
- PLAN("plan"),
-
- ADDON("addon"),
-
- COUPON("coupon"),
-
- ORDER("order"),
-
- BUSINESS_ENTITY("business_entity"),
-
- ITEM_FAMILY("item_family"),
-
- ITEM("item"),
-
- ITEM_PRICE("item_price"),
-
- PRICE_VARIANT("price_variant"),
-
- /** An enum member indicating that EntityType was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- EntityType(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static EntityType fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (EntityType enumValue : EntityType.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-}
diff --git a/src/main/java/com/chargebee/v4/core/models/comment/params/CommentDeleteParams.java b/src/main/java/com/chargebee/v4/core/models/comment/params/CommentDeleteParams.java
deleted file mode 100644
index b27269df..00000000
--- a/src/main/java/com/chargebee/v4/core/models/comment/params/CommentDeleteParams.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * This file is auto-generated by Chargebee.
- * For more information on how to make changes to this file, please see the README.
- * Reach out to dx@chargebee.com for any questions.
- * Copyright 2025 Chargebee Inc.
- */
-package com.chargebee.v4.core.models.comment.params;
-
-import com.chargebee.v4.internal.Recommended;
-
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-public final class CommentDeleteParams {
-
- private final Map formData;
-
- private CommentDeleteParams(CommentDeleteBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for CommentDeleteParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static CommentDeleteBuilder builder() {
- return new CommentDeleteBuilder();
- }
-
- public static final class CommentDeleteBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private CommentDeleteBuilder() {}
-
- public CommentDeleteParams build() {
- return new CommentDeleteParams(this);
- }
- }
-}
diff --git a/src/main/java/com/chargebee/v4/core/models/coupon/params/CouponCopyParams.java b/src/main/java/com/chargebee/v4/core/models/coupon/params/CouponCopyParams.java
deleted file mode 100644
index 095c48f7..00000000
--- a/src/main/java/com/chargebee/v4/core/models/coupon/params/CouponCopyParams.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * This file is auto-generated by Chargebee.
- * For more information on how to make changes to this file, please see the README.
- * Reach out to dx@chargebee.com for any questions.
- * Copyright 2025 Chargebee Inc.
- */
-package com.chargebee.v4.core.models.coupon.params;
-
-import com.chargebee.v4.internal.Recommended;
-
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-public final class CouponCopyParams {
-
- private final Map formData;
-
- private CouponCopyParams(CouponCopyBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for CouponCopyParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static CouponCopyBuilder builder() {
- return new CouponCopyBuilder();
- }
-
- public static final class CouponCopyBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private CouponCopyBuilder() {}
-
- public CouponCopyBuilder fromSite(String value) {
-
- formData.put("from_site", value);
-
- return this;
- }
-
- public CouponCopyBuilder idAtFromSite(String value) {
-
- formData.put("id_at_from_site", value);
-
- return this;
- }
-
- public CouponCopyBuilder id(String value) {
-
- formData.put("id", value);
-
- return this;
- }
-
- public CouponCopyBuilder forSiteMerging(Boolean value) {
-
- formData.put("for_site_merging", value);
-
- return this;
- }
-
- public CouponCopyParams build() {
- return new CouponCopyParams(this);
- }
- }
-}
diff --git a/src/main/java/com/chargebee/v4/core/models/coupon/params/CouponCreateForItemsParams.java b/src/main/java/com/chargebee/v4/core/models/coupon/params/CouponCreateForItemsParams.java
deleted file mode 100644
index 4976e4f7..00000000
--- a/src/main/java/com/chargebee/v4/core/models/coupon/params/CouponCreateForItemsParams.java
+++ /dev/null
@@ -1,733 +0,0 @@
-/*
- * This file is auto-generated by Chargebee.
- * For more information on how to make changes to this file, please see the README.
- * Reach out to dx@chargebee.com for any questions.
- * Copyright 2025 Chargebee Inc.
- */
-package com.chargebee.v4.core.models.coupon.params;
-
-import com.chargebee.v4.internal.Recommended;
-import com.chargebee.v4.internal.JsonUtil;
-
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.Map;
-import java.util.List;
-import java.sql.Timestamp;
-
-public final class CouponCreateForItemsParams {
-
- private final Map formData;
-
- private CouponCreateForItemsParams(CouponCreateForItemsBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for CouponCreateForItemsParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static CouponCreateForItemsBuilder builder() {
- return new CouponCreateForItemsBuilder();
- }
-
- public static final class CouponCreateForItemsBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private CouponCreateForItemsBuilder() {}
-
- public CouponCreateForItemsBuilder id(String value) {
-
- formData.put("id", value);
-
- return this;
- }
-
- public CouponCreateForItemsBuilder name(String value) {
-
- formData.put("name", value);
-
- return this;
- }
-
- public CouponCreateForItemsBuilder invoiceName(String value) {
-
- formData.put("invoice_name", value);
-
- return this;
- }
-
- public CouponCreateForItemsBuilder discountType(DiscountType value) {
-
- formData.put("discount_type", value);
-
- return this;
- }
-
- public CouponCreateForItemsBuilder discountAmount(Long value) {
-
- formData.put("discount_amount", value);
-
- return this;
- }
-
- public CouponCreateForItemsBuilder currencyCode(String value) {
-
- formData.put("currency_code", value);
-
- return this;
- }
-
- public CouponCreateForItemsBuilder discountPercentage(Number value) {
-
- formData.put("discount_percentage", value);
-
- return this;
- }
-
- public CouponCreateForItemsBuilder discountQuantity(Integer value) {
-
- formData.put("discount_quantity", value);
-
- return this;
- }
-
- public CouponCreateForItemsBuilder applyOn(ApplyOn value) {
-
- formData.put("apply_on", value);
-
- return this;
- }
-
- public CouponCreateForItemsBuilder durationType(DurationType value) {
-
- formData.put("duration_type", value);
-
- return this;
- }
-
- public CouponCreateForItemsBuilder durationMonth(Integer value) {
-
- formData.put("duration_month", value);
-
- return this;
- }
-
- public CouponCreateForItemsBuilder validFrom(Timestamp value) {
-
- formData.put("valid_from", value);
-
- return this;
- }
-
- public CouponCreateForItemsBuilder validTill(Timestamp value) {
-
- formData.put("valid_till", value);
-
- return this;
- }
-
- public CouponCreateForItemsBuilder maxRedemptions(Integer value) {
-
- formData.put("max_redemptions", value);
-
- return this;
- }
-
- public CouponCreateForItemsBuilder invoiceNotes(String value) {
-
- formData.put("invoice_notes", value);
-
- return this;
- }
-
- public CouponCreateForItemsBuilder metaData(java.util.Map value) {
-
- formData.put("meta_data", JsonUtil.toJson(value));
-
- return this;
- }
-
- public CouponCreateForItemsBuilder includedInMrr(Boolean value) {
-
- formData.put("included_in_mrr", value);
-
- return this;
- }
-
- public CouponCreateForItemsBuilder period(Integer value) {
-
- formData.put("period", value);
-
- return this;
- }
-
- public CouponCreateForItemsBuilder periodUnit(PeriodUnit value) {
-
- formData.put("period_unit", value);
-
- return this;
- }
-
- public CouponCreateForItemsBuilder status(Status value) {
-
- formData.put("status", value);
-
- return this;
- }
-
- public CouponCreateForItemsBuilder itemConstraints(List value) {
- if (value != null && !value.isEmpty()) {
- for (int i = 0; i < value.size(); i++) {
- ItemConstraintsParams item = value.get(i);
- if (item != null) {
- Map itemData = item.toFormData();
- for (Map.Entry entry : itemData.entrySet()) {
- String indexedKey = "item_constraints[" + entry.getKey() + "][" + i + "]";
- formData.put(indexedKey, entry.getValue());
- }
- }
- }
- }
- return this;
- }
-
- public CouponCreateForItemsBuilder itemConstraintCriteria(
- List value) {
- if (value != null && !value.isEmpty()) {
- for (int i = 0; i < value.size(); i++) {
- ItemConstraintCriteriaParams item = value.get(i);
- if (item != null) {
- Map itemData = item.toFormData();
- for (Map.Entry entry : itemData.entrySet()) {
- String indexedKey = "item_constraint_criteria[" + entry.getKey() + "][" + i + "]";
- formData.put(indexedKey, entry.getValue());
- }
- }
- }
- }
- return this;
- }
-
- public CouponCreateForItemsBuilder couponConstraints(List value) {
- if (value != null && !value.isEmpty()) {
- for (int i = 0; i < value.size(); i++) {
- CouponConstraintsParams item = value.get(i);
- if (item != null) {
- Map itemData = item.toFormData();
- for (Map.Entry entry : itemData.entrySet()) {
- String indexedKey = "coupon_constraints[" + entry.getKey() + "][" + i + "]";
- formData.put(indexedKey, entry.getValue());
- }
- }
- }
- }
- return this;
- }
-
- /**
- * Add a custom field to the request. Custom fields must start with "cf_".
- *
- * @param fieldName the name of the custom field (e.g., "cf_custom_field_name")
- * @param value the value of the custom field
- * @return this builder
- * @throws IllegalArgumentException if fieldName doesn't start with "cf_"
- */
- public CouponCreateForItemsBuilder customField(String fieldName, Object value) {
- if (fieldName == null || !fieldName.startsWith("cf_")) {
- throw new IllegalArgumentException("Custom field name must start with 'cf_'");
- }
- formData.put(fieldName, value);
- return this;
- }
-
- /**
- * Add multiple custom fields to the request. All field names must start with "cf_".
- *
- * @param customFields map of custom field names to values
- * @return this builder
- * @throws IllegalArgumentException if any field name doesn't start with "cf_"
- */
- public CouponCreateForItemsBuilder customFields(Map customFields) {
- if (customFields != null) {
- for (Map.Entry entry : customFields.entrySet()) {
- if (entry.getKey() == null || !entry.getKey().startsWith("cf_")) {
- throw new IllegalArgumentException(
- "Custom field name must start with 'cf_': " + entry.getKey());
- }
- formData.put(entry.getKey(), entry.getValue());
- }
- }
- return this;
- }
-
- public CouponCreateForItemsParams build() {
- return new CouponCreateForItemsParams(this);
- }
- }
-
- public enum DiscountType {
- FIXED_AMOUNT("fixed_amount"),
-
- PERCENTAGE("percentage"),
-
- OFFER_QUANTITY("offer_quantity"),
-
- /** An enum member indicating that DiscountType was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- DiscountType(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static DiscountType fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (DiscountType enumValue : DiscountType.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public enum ApplyOn {
- INVOICE_AMOUNT("invoice_amount"),
-
- SPECIFIED_ITEMS_TOTAL("specified_items_total"),
-
- EACH_SPECIFIED_ITEM("each_specified_item"),
-
- EACH_UNIT_OF_SPECIFIED_ITEMS("each_unit_of_specified_items"),
-
- /** An enum member indicating that ApplyOn was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- ApplyOn(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static ApplyOn fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (ApplyOn enumValue : ApplyOn.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public enum DurationType {
- ONE_TIME("one_time"),
-
- FOREVER("forever"),
-
- LIMITED_PERIOD("limited_period"),
-
- /** An enum member indicating that DurationType was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- DurationType(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static DurationType fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (DurationType enumValue : DurationType.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public enum PeriodUnit {
- DAY("day"),
-
- WEEK("week"),
-
- MONTH("month"),
-
- YEAR("year"),
-
- /** An enum member indicating that PeriodUnit was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- PeriodUnit(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static PeriodUnit fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (PeriodUnit enumValue : PeriodUnit.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public enum Status {
- ACTIVE("active"),
-
- ARCHIVED("archived"),
-
- /** An enum member indicating that Status was instantiated with an unknown value. */
- _UNKNOWN(null);
- private final String value;
-
- Status(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static Status fromString(String value) {
- if (value == null) return _UNKNOWN;
- for (Status enumValue : Status.values()) {
- if (enumValue.value != null && enumValue.value.equals(value)) {
- return enumValue;
- }
- }
- return _UNKNOWN;
- }
- }
-
- public static final class ItemConstraintsParams {
-
- private final Map formData;
-
- private ItemConstraintsParams(ItemConstraintsBuilder builder) {
- this.formData = Collections.unmodifiableMap(new LinkedHashMap<>(builder.formData));
- }
-
- /** Get the form data for this request. */
- public Map toFormData() {
- return formData;
- }
-
- /** Create a new builder for ItemConstraintsParams. */
- @Recommended(reason = "Preferred for reusability, validation, and LLM-friendliness")
- public static ItemConstraintsBuilder builder() {
- return new ItemConstraintsBuilder();
- }
-
- public static final class ItemConstraintsBuilder {
- private final Map formData = new LinkedHashMap<>();
-
- private ItemConstraintsBuilder() {}
-
- public ItemConstraintsBuilder constraint(Constraint value) {
-
- formData.put("constraint", value);
-
- return this;
- }
-
- public ItemConstraintsBuilder itemType(ItemType value) {
-
- formData.put("item_type", value);
-
- return this;
- }
-
- public ItemConstraintsBuilder itemPriceIds(List