diff --git a/.fernignore b/.fernignore
index f34ea1d..4d42dce 100644
--- a/.fernignore
+++ b/.fernignore
@@ -19,3 +19,4 @@ src/test/java/com/schematic/api/TestOfflineMode.java
src/test/java/com/schematic/api/TestReadme.java
src/test/java/com/schematic/api/TestSchematic.java
src/test/java/com/schematic/webhook/
+changelog.md
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
deleted file mode 100644
index 5ce2ae1..0000000
--- a/.github/CODEOWNERS
+++ /dev/null
@@ -1 +0,0 @@
-* @SchematicHQ/devtools
diff --git a/build.gradle b/build.gradle
index 1d74354..45e6f08 100644
--- a/build.gradle
+++ b/build.gradle
@@ -49,7 +49,7 @@ java {
group = 'com.schematichq'
-version = '1.2.0'
+version = '1.2.1'
jar {
dependsOn(":generatePomFileForMavenPublication")
@@ -80,7 +80,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.schematichq'
artifactId = 'schematic-java'
- version = '1.2.0'
+ version = '1.2.1'
from components.java
pom {
name = 'schematic'
diff --git a/changelog.md b/changelog.md
new file mode 100644
index 0000000..04f6095
--- /dev/null
+++ b/changelog.md
@@ -0,0 +1,4 @@
+## 1.2.1 - 2026-01-13
+* SDK regeneration
+* Unable to analyze changes with AI, incrementing PATCH version.
+
diff --git a/reference.md b/reference.md
index 4960436..9c53dc0 100644
--- a/reference.md
+++ b/reference.md
@@ -116,7 +116,7 @@ client.accounts().listApiKeys(
-
-**environmentId:** `Optional`
+**environmentId:** `Optional<String>`
@@ -132,7 +132,7 @@ client.accounts().listApiKeys(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -140,7 +140,7 @@ client.accounts().listApiKeys(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -185,7 +185,7 @@ client.accounts().createApiKey(
-
-**description:** `Optional`
+**description:** `Optional<String>`
@@ -193,7 +193,7 @@ client.accounts().createApiKey(
-
-**environmentId:** `Optional`
+**environmentId:** `Optional<String>`
@@ -294,7 +294,7 @@ client.accounts().updateApiKey(
-
-**description:** `Optional`
+**description:** `Optional<String>`
@@ -302,7 +302,7 @@ client.accounts().updateApiKey(
-
-**name:** `Optional`
+**name:** `Optional<String>`
@@ -390,7 +390,7 @@ client.accounts().countApiKeys(
-
-**environmentId:** `Optional`
+**environmentId:** `Optional<String>`
@@ -406,7 +406,7 @@ client.accounts().countApiKeys(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -414,7 +414,7 @@ client.accounts().countApiKeys(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -463,7 +463,7 @@ client.accounts().listApiRequests(
-
-**q:** `Optional`
+**q:** `Optional<String>`
@@ -471,7 +471,7 @@ client.accounts().listApiRequests(
-
-**requestType:** `Optional`
+**requestType:** `Optional<String>`
@@ -479,7 +479,7 @@ client.accounts().listApiRequests(
-
-**environmentId:** `Optional`
+**environmentId:** `Optional<String>`
@@ -487,7 +487,7 @@ client.accounts().listApiRequests(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -495,7 +495,7 @@ client.accounts().listApiRequests(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -584,7 +584,7 @@ client.accounts().countApiRequests(
-
-**q:** `Optional`
+**q:** `Optional<String>`
@@ -592,7 +592,7 @@ client.accounts().countApiRequests(
-
-**requestType:** `Optional`
+**requestType:** `Optional<String>`
@@ -600,7 +600,7 @@ client.accounts().countApiRequests(
-
-**environmentId:** `Optional`
+**environmentId:** `Optional<String>`
@@ -608,7 +608,7 @@ client.accounts().countApiRequests(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -616,7 +616,7 @@ client.accounts().countApiRequests(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -662,7 +662,7 @@ client.accounts().listEnvironments(
-
-**ids:** `Optional`
+**ids:** `Optional<String>`
@@ -670,7 +670,7 @@ client.accounts().listEnvironments(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -678,7 +678,7 @@ client.accounts().listEnvironments(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -706,7 +706,7 @@ client.accounts().listEnvironments(
client.accounts().createEnvironment(
CreateEnvironmentRequestBody
.builder()
- .environmentType(CreateEnvironmentRequestBodyEnvironmentType.DEVELOPMENT)
+ .environmentType(EnvironmentType.DEVELOPMENT)
.name("name")
.build()
);
@@ -724,7 +724,7 @@ client.accounts().createEnvironment(
-
-**environmentType:** `CreateEnvironmentRequestBodyEnvironmentType`
+**environmentType:** `EnvironmentType`
@@ -825,7 +825,7 @@ client.accounts().updateEnvironment(
-
-**environmentType:** `Optional`
+**environmentType:** `Optional<EnvironmentType>`
@@ -833,7 +833,7 @@ client.accounts().updateEnvironment(
-
-**name:** `Optional`
+**name:** `Optional<String>`
@@ -947,7 +947,7 @@ client.billing().listCoupons(
-
-**isActive:** `Optional`
+**isActive:** `Optional<Boolean>`
@@ -955,7 +955,7 @@ client.billing().listCoupons(
-
-**q:** `Optional`
+**q:** `Optional<String>`
@@ -963,7 +963,7 @@ client.billing().listCoupons(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -971,7 +971,7 @@ client.billing().listCoupons(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -1031,7 +1031,7 @@ client.billing().upsertBillingCoupon(
-
-**currency:** `Optional`
+**currency:** `Optional<String>`
@@ -1117,7 +1117,6 @@ client.billing().upsertBillingCustomer(
.builder()
.email("email")
.externalId("external_id")
- .failedToImport(true)
.meta(
new HashMap() {{
put("key", "value");
@@ -1140,7 +1139,7 @@ client.billing().upsertBillingCustomer(
-
-**companyId:** `Optional`
+**companyId:** `Optional<String>`
@@ -1148,7 +1147,7 @@ client.billing().upsertBillingCustomer(
-
-**defaultPaymentMethodId:** `Optional`
+**defaultPaymentMethodId:** `Optional<String>`
@@ -1172,7 +1171,7 @@ client.billing().upsertBillingCustomer(
-
-**failedToImport:** `Boolean`
+**meta:** `Map<String, String>`
@@ -1180,7 +1179,7 @@ client.billing().upsertBillingCustomer(
-
-**meta:** `Map`
+**name:** `String`
@@ -1188,7 +1187,7 @@ client.billing().upsertBillingCustomer(
-
-**name:** `String`
+**providerType:** `Optional<BillingProviderType>`
@@ -1217,7 +1216,7 @@ client.billing().listCustomersWithSubscriptions(
ListCustomersWithSubscriptionsRequest
.builder()
.name("name")
- .failedToImport(true)
+ .providerType(BillingProviderType.SCHEMATIC)
.q("q")
.limit(1)
.offset(1)
@@ -1237,7 +1236,7 @@ client.billing().listCustomersWithSubscriptions(
-
-**companyIds:** `Optional`
+**companyIds:** `Optional<String>`
@@ -1245,7 +1244,7 @@ client.billing().listCustomersWithSubscriptions(
-
-**name:** `Optional`
+**name:** `Optional<String>`
@@ -1253,7 +1252,7 @@ client.billing().listCustomersWithSubscriptions(
-
-**failedToImport:** `Optional`
+**providerType:** `Optional<BillingProviderType>`
@@ -1261,7 +1260,7 @@ client.billing().listCustomersWithSubscriptions(
-
-**q:** `Optional`
+**q:** `Optional<String>`
@@ -1269,7 +1268,7 @@ client.billing().listCustomersWithSubscriptions(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -1277,7 +1276,7 @@ client.billing().listCustomersWithSubscriptions(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -1306,7 +1305,7 @@ client.billing().countCustomers(
CountCustomersRequest
.builder()
.name("name")
- .failedToImport(true)
+ .providerType(BillingProviderType.SCHEMATIC)
.q("q")
.limit(1)
.offset(1)
@@ -1326,7 +1325,7 @@ client.billing().countCustomers(
-
-**companyIds:** `Optional`
+**companyIds:** `Optional<String>`
@@ -1334,7 +1333,7 @@ client.billing().countCustomers(
-
-**name:** `Optional`
+**name:** `Optional<String>`
@@ -1342,7 +1341,7 @@ client.billing().countCustomers(
-
-**failedToImport:** `Optional`
+**providerType:** `Optional<BillingProviderType>`
@@ -1350,7 +1349,7 @@ client.billing().countCustomers(
-
-**q:** `Optional`
+**q:** `Optional<String>`
@@ -1358,7 +1357,7 @@ client.billing().countCustomers(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -1366,7 +1365,7 @@ client.billing().countCustomers(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -1415,7 +1414,7 @@ client.billing().listInvoices(
-
-**companyId:** `Optional`
+**companyId:** `Optional<String>`
@@ -1439,7 +1438,7 @@ client.billing().listInvoices(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -1447,7 +1446,7 @@ client.billing().listInvoices(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -1546,7 +1545,7 @@ client.billing().upsertInvoice(
-
-**dueDate:** `Optional`
+**dueDate:** `Optional<OffsetDateTime>`
@@ -1554,7 +1553,7 @@ client.billing().upsertInvoice(
-
-**externalId:** `Optional`
+**externalId:** `Optional<String>`
@@ -1562,7 +1561,7 @@ client.billing().upsertInvoice(
-
-**paymentMethodExternalId:** `Optional`
+**paymentMethodExternalId:** `Optional<String>`
@@ -1570,7 +1569,7 @@ client.billing().upsertInvoice(
-
-**subscriptionExternalId:** `Optional`
+**subscriptionExternalId:** `Optional<String>`
@@ -1586,7 +1585,7 @@ client.billing().upsertInvoice(
-
-**url:** `Optional`
+**url:** `Optional<String>`
@@ -1633,7 +1632,7 @@ client.billing().listMeters(
-
-**displayName:** `Optional`
+**displayName:** `Optional<String>`
@@ -1641,7 +1640,7 @@ client.billing().listMeters(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -1649,7 +1648,7 @@ client.billing().listMeters(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -1769,7 +1768,7 @@ client.billing().listPaymentMethods(
-
-**companyId:** `Optional`
+**companyId:** `Optional<String>`
@@ -1785,7 +1784,7 @@ client.billing().listPaymentMethods(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -1793,7 +1792,7 @@ client.billing().listPaymentMethods(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -1840,7 +1839,7 @@ client.billing().upsertPaymentMethod(
-
-**accountLast4:** `Optional`
+**accountLast4:** `Optional<String>`
@@ -1848,7 +1847,7 @@ client.billing().upsertPaymentMethod(
-
-**accountName:** `Optional`
+**accountName:** `Optional<String>`
@@ -1856,7 +1855,7 @@ client.billing().upsertPaymentMethod(
-
-**bankName:** `Optional`
+**bankName:** `Optional<String>`
@@ -1864,7 +1863,7 @@ client.billing().upsertPaymentMethod(
-
-**billingEmail:** `Optional`
+**billingEmail:** `Optional<String>`
@@ -1872,7 +1871,7 @@ client.billing().upsertPaymentMethod(
-
-**billingName:** `Optional`
+**billingName:** `Optional<String>`
@@ -1880,7 +1879,7 @@ client.billing().upsertPaymentMethod(
-
-**cardBrand:** `Optional`
+**cardBrand:** `Optional<String>`
@@ -1888,7 +1887,7 @@ client.billing().upsertPaymentMethod(
-
-**cardExpMonth:** `Optional`
+**cardExpMonth:** `Optional<Integer>`
@@ -1896,7 +1895,7 @@ client.billing().upsertPaymentMethod(
-
-**cardExpYear:** `Optional`
+**cardExpYear:** `Optional<Integer>`
@@ -1904,7 +1903,7 @@ client.billing().upsertPaymentMethod(
-
-**cardLast4:** `Optional`
+**cardLast4:** `Optional<String>`
@@ -1940,7 +1939,7 @@ client.billing().upsertPaymentMethod(
-client.billing.searchBillingPrices() -> SearchBillingPricesResponse
+client.billing.listBillingPrices() -> ListBillingPricesResponse
-
@@ -1953,18 +1952,20 @@ client.billing().upsertPaymentMethod(
-
```java
-client.billing().searchBillingPrices(
- SearchBillingPricesRequest
+client.billing().listBillingPrices(
+ ListBillingPricesRequest
.builder()
.forInitialPlan(true)
.forTrialExpiryPlan(true)
- .productId("product_id")
.interval("interval")
+ .isActive(true)
.price(1)
+ .productId("product_id")
+ .providerType(BillingProviderType.SCHEMATIC)
.q("q")
- .requiresPaymentMethod(true)
- .tiersMode(SearchBillingPricesRequestTiersMode.VOLUME)
- .usageType(SearchBillingPricesRequestUsageType.LICENSED)
+ .tiersMode(BillingTiersMode.GRADUATED)
+ .usageType(BillingPriceUsageType.LICENSED)
+ .withMeter(true)
.limit(1)
.offset(1)
.build()
@@ -1983,7 +1984,31 @@ client.billing().searchBillingPrices(
-
-**forInitialPlan:** `Optional` — Filter for prices valid for initial plans (free prices only)
+**forInitialPlan:** `Optional<Boolean>` — Filter for prices valid for initial plans (free prices only)
+
+
+
+
+
+-
+
+**forTrialExpiryPlan:** `Optional<Boolean>` — Filter for prices valid for trial expiry plans (free prices only)
+
+
+
+
+
+-
+
+**ids:** `Optional<String>`
+
+
+
+
+
+-
+
+**interval:** `Optional<String>`
@@ -1991,7 +2016,7 @@ client.billing().searchBillingPrices(
-
-**forTrialExpiryPlan:** `Optional` — Filter for prices valid for trial expiry plans (free prices only)
+**isActive:** `Optional<Boolean>` — Filter for active prices on active products (defaults to true if not specified)
@@ -1999,7 +2024,7 @@ client.billing().searchBillingPrices(
-
-**ids:** `Optional`
+**price:** `Optional<Integer>`
@@ -2007,7 +2032,7 @@ client.billing().searchBillingPrices(
-
-**productId:** `Optional`
+**productId:** `Optional<String>`
@@ -2015,7 +2040,7 @@ client.billing().searchBillingPrices(
-
-**interval:** `Optional`
+**productIds:** `Optional<String>`
@@ -2023,7 +2048,7 @@ client.billing().searchBillingPrices(
-
-**price:** `Optional`
+**providerType:** `Optional<BillingProviderType>`
@@ -2031,7 +2056,7 @@ client.billing().searchBillingPrices(
-
-**q:** `Optional`
+**q:** `Optional<String>`
@@ -2039,7 +2064,7 @@ client.billing().searchBillingPrices(
-
-**requiresPaymentMethod:** `Optional` — Filter for prices that require a payment method (inverse of ForInitialPlan)
+**tiersMode:** `Optional<BillingTiersMode>`
@@ -2047,7 +2072,7 @@ client.billing().searchBillingPrices(
-
-**tiersMode:** `Optional`
+**usageType:** `Optional<BillingPriceUsageType>`
@@ -2055,7 +2080,7 @@ client.billing().searchBillingPrices(
-
-**usageType:** `Optional`
+**withMeter:** `Optional<Boolean>` — Filter for prices with a meter
@@ -2063,7 +2088,7 @@ client.billing().searchBillingPrices(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -2071,7 +2096,7 @@ client.billing().searchBillingPrices(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -2099,7 +2124,7 @@ client.billing().searchBillingPrices(
client.billing().upsertBillingPrice(
CreateBillingPriceRequestBody
.builder()
- .billingScheme(CreateBillingPriceRequestBodyBillingScheme.PER_UNIT)
+ .billingScheme(BillingPriceScheme.PER_UNIT)
.currency("currency")
.externalAccountId("external_account_id")
.interval("interval")
@@ -2115,7 +2140,7 @@ client.billing().upsertBillingPrice(
)
)
.productExternalId("product_external_id")
- .usageType(CreateBillingPriceRequestBodyUsageType.LICENSED)
+ .usageType(BillingPriceUsageType.LICENSED)
.build()
);
```
@@ -2132,7 +2157,7 @@ client.billing().upsertBillingPrice(
-
-**billingScheme:** `CreateBillingPriceRequestBodyBillingScheme`
+**billingScheme:** `BillingPriceScheme`
@@ -2172,7 +2197,7 @@ client.billing().upsertBillingPrice(
-
-**meterId:** `Optional`
+**meterId:** `Optional<String>`
@@ -2180,7 +2205,7 @@ client.billing().upsertBillingPrice(
-
-**packageSize:** `Optional`
+**packageSize:** `Optional<Integer>`
@@ -2196,7 +2221,7 @@ client.billing().upsertBillingPrice(
-
-**priceDecimal:** `Optional`
+**priceDecimal:** `Optional<String>`
@@ -2212,7 +2237,7 @@ client.billing().upsertBillingPrice(
-
-**priceTiers:** `List`
+**priceTiers:** `List<CreateBillingPriceTierRequestBody>`
@@ -2228,7 +2253,15 @@ client.billing().upsertBillingPrice(
-
-**tiersMode:** `Optional`
+**providerType:** `Optional<BillingProviderType>`
+
+
+
+
+
+-
+
+**tiersMode:** `Optional<BillingTiersMode>`
@@ -2236,7 +2269,7 @@ client.billing().upsertBillingPrice(
-
-**usageType:** `CreateBillingPriceRequestBodyUsageType`
+**usageType:** `BillingPriceUsageType`
@@ -2288,7 +2321,7 @@ client.billing().deleteBillingProduct("billing_id");
-client.billing.listProductPrices() -> ListProductPricesResponse
+client.billing.listBillingProductPrices() -> ListBillingProductPricesResponse
-
@@ -2301,17 +2334,20 @@ client.billing().deleteBillingProduct("billing_id");
-
```java
-client.billing().listProductPrices(
- ListProductPricesRequest
+client.billing().listBillingProductPrices(
+ ListBillingProductPricesRequest
.builder()
- .name("name")
- .q("q")
- .priceUsageType(ListProductPricesRequestPriceUsageType.LICENSED)
- .withoutLinkedToPlan(true)
- .withOneTimeCharges(true)
- .withZeroPrice(true)
- .withPricesOnly(true)
+ .forInitialPlan(true)
+ .forTrialExpiryPlan(true)
+ .interval("interval")
.isActive(true)
+ .price(1)
+ .productId("product_id")
+ .providerType(BillingProviderType.SCHEMATIC)
+ .q("q")
+ .tiersMode(BillingTiersMode.GRADUATED)
+ .usageType(BillingPriceUsageType.LICENSED)
+ .withMeter(true)
.limit(1)
.offset(1)
.build()
@@ -2330,7 +2366,39 @@ client.billing().listProductPrices(
-
-**ids:** `Optional`
+**forInitialPlan:** `Optional<Boolean>` — Filter for prices valid for initial plans (free prices only)
+
+
+
+
+
+-
+
+**forTrialExpiryPlan:** `Optional<Boolean>` — Filter for prices valid for trial expiry plans (free prices only)
+
+
+
+
+
+-
+
+**ids:** `Optional<String>`
+
+
+
+
+
+-
+
+**interval:** `Optional<String>`
+
+
+
+
+
+-
+
+**isActive:** `Optional<Boolean>` — Filter for active prices on active products (defaults to true if not specified)
@@ -2338,7 +2406,7 @@ client.billing().listProductPrices(
-
-**name:** `Optional`
+**price:** `Optional<Integer>`
@@ -2346,7 +2414,7 @@ client.billing().listProductPrices(
-
-**q:** `Optional`
+**productId:** `Optional<String>`
@@ -2354,7 +2422,7 @@ client.billing().listProductPrices(
-
-**priceUsageType:** `Optional`
+**productIds:** `Optional<String>`
@@ -2362,7 +2430,7 @@ client.billing().listProductPrices(
-
-**withoutLinkedToPlan:** `Optional` — Filter products that are not linked to any plan
+**providerType:** `Optional<BillingProviderType>`
@@ -2370,7 +2438,7 @@ client.billing().listProductPrices(
-
-**withOneTimeCharges:** `Optional` — Filter products that are one time charges
+**q:** `Optional<String>`
@@ -2378,7 +2446,7 @@ client.billing().listProductPrices(
-
-**withZeroPrice:** `Optional` — Filter products that have zero price for free subscription type
+**tiersMode:** `Optional<BillingTiersMode>`
@@ -2386,7 +2454,7 @@ client.billing().listProductPrices(
-
-**withPricesOnly:** `Optional` — Filter products that have prices
+**usageType:** `Optional<BillingPriceUsageType>`
@@ -2394,7 +2462,7 @@ client.billing().listProductPrices(
-
-**isActive:** `Optional` — Filter products that are active
+**withMeter:** `Optional<Boolean>` — Filter for prices with a meter
@@ -2402,7 +2470,7 @@ client.billing().listProductPrices(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -2410,7 +2478,7 @@ client.billing().listProductPrices(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -2505,7 +2573,7 @@ client.billing().upsertBillingProduct(
-
-**isActive:** `Optional`
+**isActive:** `Optional<Boolean>`
@@ -2523,6 +2591,14 @@ client.billing().upsertBillingProduct(
**price:** `Double`
+
+
+
+
+-
+
+**providerType:** `Optional<BillingProviderType>`
+
@@ -2549,14 +2625,15 @@ client.billing().upsertBillingProduct(
client.billing().listBillingProducts(
ListBillingProductsRequest
.builder()
+ .isActive(true)
.name("name")
+ .priceUsageType(BillingPriceUsageType.LICENSED)
+ .providerType(BillingProviderType.SCHEMATIC)
.q("q")
- .priceUsageType(ListBillingProductsRequestPriceUsageType.LICENSED)
- .withoutLinkedToPlan(true)
.withOneTimeCharges(true)
- .withZeroPrice(true)
.withPricesOnly(true)
- .isActive(true)
+ .withZeroPrice(true)
+ .withoutLinkedToPlan(true)
.limit(1)
.offset(1)
.build()
@@ -2575,7 +2652,15 @@ client.billing().listBillingProducts(
-
-**ids:** `Optional`
+**ids:** `Optional<String>`
+
+
+
+
+
+-
+
+**isActive:** `Optional<Boolean>` — Filter products that are active. Defaults to true if not specified
@@ -2583,7 +2668,7 @@ client.billing().listBillingProducts(
-
-**name:** `Optional`
+**name:** `Optional<String>`
@@ -2591,7 +2676,7 @@ client.billing().listBillingProducts(
-
-**q:** `Optional`
+**priceUsageType:** `Optional<BillingPriceUsageType>`
@@ -2599,7 +2684,7 @@ client.billing().listBillingProducts(
-
-**priceUsageType:** `Optional`
+**providerType:** `Optional<BillingProviderType>`
@@ -2607,7 +2692,7 @@ client.billing().listBillingProducts(
-
-**withoutLinkedToPlan:** `Optional` — Filter products that are not linked to any plan
+**q:** `Optional<String>`
@@ -2615,7 +2700,7 @@ client.billing().listBillingProducts(
-
-**withOneTimeCharges:** `Optional` — Filter products that are one time charges
+**withOneTimeCharges:** `Optional<Boolean>` — Filter products that are one time charges
@@ -2623,7 +2708,7 @@ client.billing().listBillingProducts(
-
-**withZeroPrice:** `Optional` — Filter products that have zero price for free subscription type
+**withPricesOnly:** `Optional<Boolean>` — Filter products that have prices
@@ -2631,7 +2716,7 @@ client.billing().listBillingProducts(
-
-**withPricesOnly:** `Optional` — Filter products that have prices
+**withZeroPrice:** `Optional<Boolean>` — Filter products that have zero price for free subscription type
@@ -2639,7 +2724,7 @@ client.billing().listBillingProducts(
-
-**isActive:** `Optional` — Filter products that are active
+**withoutLinkedToPlan:** `Optional<Boolean>` — Filter products that are not linked to any plan
@@ -2647,7 +2732,7 @@ client.billing().listBillingProducts(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -2655,7 +2740,7 @@ client.billing().listBillingProducts(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -2683,14 +2768,15 @@ client.billing().listBillingProducts(
client.billing().countBillingProducts(
CountBillingProductsRequest
.builder()
+ .isActive(true)
.name("name")
+ .priceUsageType(BillingPriceUsageType.LICENSED)
+ .providerType(BillingProviderType.SCHEMATIC)
.q("q")
- .priceUsageType(CountBillingProductsRequestPriceUsageType.LICENSED)
- .withoutLinkedToPlan(true)
.withOneTimeCharges(true)
- .withZeroPrice(true)
.withPricesOnly(true)
- .isActive(true)
+ .withZeroPrice(true)
+ .withoutLinkedToPlan(true)
.limit(1)
.offset(1)
.build()
@@ -2709,7 +2795,15 @@ client.billing().countBillingProducts(
-
-**ids:** `Optional`
+**ids:** `Optional<String>`
+
+
+
+
+
+-
+
+**isActive:** `Optional<Boolean>` — Filter products that are active. Defaults to true if not specified
@@ -2717,7 +2811,7 @@ client.billing().countBillingProducts(
-
-**name:** `Optional`
+**name:** `Optional<String>`
@@ -2725,7 +2819,7 @@ client.billing().countBillingProducts(
-
-**q:** `Optional`
+**priceUsageType:** `Optional<BillingPriceUsageType>`
@@ -2733,7 +2827,7 @@ client.billing().countBillingProducts(
-
-**priceUsageType:** `Optional`
+**providerType:** `Optional<BillingProviderType>`
@@ -2741,7 +2835,7 @@ client.billing().countBillingProducts(
-
-**withoutLinkedToPlan:** `Optional` — Filter products that are not linked to any plan
+**q:** `Optional<String>`
@@ -2749,7 +2843,7 @@ client.billing().countBillingProducts(
-
-**withOneTimeCharges:** `Optional` — Filter products that are one time charges
+**withOneTimeCharges:** `Optional<Boolean>` — Filter products that are one time charges
@@ -2757,7 +2851,7 @@ client.billing().countBillingProducts(
-
-**withZeroPrice:** `Optional` — Filter products that have zero price for free subscription type
+**withPricesOnly:** `Optional<Boolean>` — Filter products that have prices
@@ -2765,7 +2859,7 @@ client.billing().countBillingProducts(
-
-**withPricesOnly:** `Optional` — Filter products that have prices
+**withZeroPrice:** `Optional<Boolean>` — Filter products that have zero price for free subscription type
@@ -2773,7 +2867,7 @@ client.billing().countBillingProducts(
-
-**isActive:** `Optional` — Filter products that are active
+**withoutLinkedToPlan:** `Optional<Boolean>` — Filter products that are not linked to any plan
@@ -2781,7 +2875,7 @@ client.billing().countBillingProducts(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -2789,7 +2883,7 @@ client.billing().countBillingProducts(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -2842,7 +2936,7 @@ client.billing().upsertBillingSubscription(
.priceExternalId("price_external_id")
.productExternalId("product_external_id")
.quantity(1)
- .usageType(BillingProductPricingUsageType.LICENSED)
+ .usageType(BillingPriceUsageType.LICENSED)
.build()
)
)
@@ -2864,7 +2958,15 @@ client.billing().upsertBillingSubscription(
-
-**cancelAt:** `Optional`
+**applicationId:** `Optional<String>`
+
+
+
+
+
+-
+
+**cancelAt:** `Optional<Integer>`
@@ -2896,7 +2998,7 @@ client.billing().upsertBillingSubscription(
-
-**defaultPaymentMethodExternalId:** `Optional`
+**defaultPaymentMethodExternalId:** `Optional<String>`
@@ -2904,7 +3006,7 @@ client.billing().upsertBillingSubscription(
-
-**defaultPaymentMethodId:** `Optional`
+**defaultPaymentMethodId:** `Optional<String>`
@@ -2912,7 +3014,7 @@ client.billing().upsertBillingSubscription(
-
-**discounts:** `List`
+**discounts:** `List<BillingSubscriptionDiscount>`
@@ -2928,7 +3030,7 @@ client.billing().upsertBillingSubscription(
-
-**interval:** `Optional`
+**interval:** `Optional<String>`
@@ -2936,7 +3038,7 @@ client.billing().upsertBillingSubscription(
-
-**metadata:** `Optional
@@ -2944,7 +3046,7 @@ client.billing().upsertBillingSubscription(
-
-**periodEnd:** `Optional`
+**periodEnd:** `Optional<Integer>`
@@ -2952,7 +3054,7 @@ client.billing().upsertBillingSubscription(
-
-**periodStart:** `Optional`
+**periodStart:** `Optional<Integer>`
@@ -2960,7 +3062,7 @@ client.billing().upsertBillingSubscription(
-
-**productExternalIds:** `List`
+**productExternalIds:** `List<BillingProductPricing>`
@@ -2968,7 +3070,7 @@ client.billing().upsertBillingSubscription(
-
-**status:** `Optional`
+**status:** `Optional<String>`
@@ -2992,7 +3094,7 @@ client.billing().upsertBillingSubscription(
-
-**trialEnd:** `Optional`
+**trialEnd:** `Optional<Integer>`
@@ -3000,7 +3102,7 @@ client.billing().upsertBillingSubscription(
-
-**trialEndSetting:** `Optional`
+**trialEndSetting:** `Optional<BillingSubscriptionTrialEndSetting>`
@@ -3048,7 +3150,7 @@ client.credits().listBillingCredits(
-
-**ids:** `Optional`
+**ids:** `Optional<String>`
@@ -3056,7 +3158,7 @@ client.credits().listBillingCredits(
-
-**name:** `Optional`
+**name:** `Optional<String>`
@@ -3064,7 +3166,7 @@ client.credits().listBillingCredits(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -3072,7 +3174,7 @@ client.credits().listBillingCredits(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -3119,7 +3221,7 @@ client.credits().createBillingCredit(
-
-**burnStrategy:** `Optional`
+**burnStrategy:** `Optional<BillingCreditBurnStrategy>`
@@ -3135,7 +3237,7 @@ client.credits().createBillingCredit(
-
-**defaultExpiryUnit:** `Optional`
+**defaultExpiryUnit:** `Optional<BillingCreditExpiryUnit>`
@@ -3143,7 +3245,7 @@ client.credits().createBillingCredit(
-
-**defaultExpiryUnitCount:** `Optional`
+**defaultExpiryUnitCount:** `Optional<Integer>`
@@ -3151,7 +3253,7 @@ client.credits().createBillingCredit(
-
-**defaultRolloverPolicy:** `Optional`
+**defaultRolloverPolicy:** `Optional<BillingCreditRolloverPolicy>`
@@ -3167,7 +3269,7 @@ client.credits().createBillingCredit(
-
-**icon:** `Optional`
+**icon:** `Optional<String>`
@@ -3183,7 +3285,7 @@ client.credits().createBillingCredit(
-
-**perUnitPrice:** `Optional`
+**perUnitPrice:** `Optional<Integer>`
@@ -3191,7 +3293,7 @@ client.credits().createBillingCredit(
-
-**perUnitPriceDecimal:** `Optional`
+**perUnitPriceDecimal:** `Optional<String>`
@@ -3199,7 +3301,7 @@ client.credits().createBillingCredit(
-
-**pluralName:** `Optional`
+**pluralName:** `Optional<String>`
@@ -3207,7 +3309,7 @@ client.credits().createBillingCredit(
-
-**singularName:** `Optional`
+**singularName:** `Optional<String>`
@@ -3302,7 +3404,7 @@ client.credits().updateBillingCredit(
-
-**burnStrategy:** `Optional`
+**burnStrategy:** `Optional<BillingCreditBurnStrategy>`
@@ -3310,7 +3412,7 @@ client.credits().updateBillingCredit(
-
-**defaultExpiryUnit:** `Optional`
+**defaultExpiryUnit:** `Optional<BillingCreditExpiryUnit>`
@@ -3318,7 +3420,7 @@ client.credits().updateBillingCredit(
-
-**defaultExpiryUnitCount:** `Optional`
+**defaultExpiryUnitCount:** `Optional<Integer>`
@@ -3326,7 +3428,7 @@ client.credits().updateBillingCredit(
-
-**defaultRolloverPolicy:** `Optional`
+**defaultRolloverPolicy:** `Optional<BillingCreditRolloverPolicy>`
@@ -3342,7 +3444,7 @@ client.credits().updateBillingCredit(
-
-**icon:** `Optional`
+**icon:** `Optional<String>`
@@ -3358,7 +3460,7 @@ client.credits().updateBillingCredit(
-
-**perUnitPrice:** `Optional`
+**perUnitPrice:** `Optional<Integer>`
@@ -3366,7 +3468,7 @@ client.credits().updateBillingCredit(
-
-**perUnitPriceDecimal:** `Optional`
+**perUnitPriceDecimal:** `Optional<String>`
@@ -3374,7 +3476,7 @@ client.credits().updateBillingCredit(
-
-**pluralName:** `Optional`
+**pluralName:** `Optional<String>`
@@ -3382,7 +3484,7 @@ client.credits().updateBillingCredit(
-
-**singularName:** `Optional`
+**singularName:** `Optional<String>`
@@ -3451,7 +3553,7 @@ client.credits().listCreditBundles(
ListCreditBundlesRequest
.builder()
.creditId("credit_id")
- .status(ListCreditBundlesRequestStatus.ACTIVE)
+ .status(BillingCreditBundleStatus.ACTIVE)
.bundleType("fixed")
.limit(1)
.offset(1)
@@ -3471,7 +3573,7 @@ client.credits().listCreditBundles(
-
-**ids:** `Optional`
+**ids:** `Optional<String>`
@@ -3479,7 +3581,7 @@ client.credits().listCreditBundles(
-
-**creditId:** `Optional`
+**creditId:** `Optional<String>`
@@ -3487,7 +3589,7 @@ client.credits().listCreditBundles(
-
-**status:** `Optional`
+**status:** `Optional<BillingCreditBundleStatus>`
@@ -3495,7 +3597,7 @@ client.credits().listCreditBundles(
-
-**bundleType:** `Optional`
+**bundleType:** `Optional<String>`
@@ -3503,7 +3605,7 @@ client.credits().listCreditBundles(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -3511,7 +3613,7 @@ client.credits().listCreditBundles(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -3567,7 +3669,7 @@ client.credits().createCreditBundle(
-
-**bundleType:** `Optional`
+**bundleType:** `Optional<String>`
@@ -3591,7 +3693,7 @@ client.credits().createCreditBundle(
-
-**expiryType:** `Optional`
+**expiryType:** `Optional<BillingCreditExpiryType>`
@@ -3599,7 +3701,7 @@ client.credits().createCreditBundle(
-
-**expiryUnit:** `Optional`
+**expiryUnit:** `Optional<BillingCreditExpiryUnit>`
@@ -3607,7 +3709,7 @@ client.credits().createCreditBundle(
-
-**expiryUnitCount:** `Optional`
+**expiryUnitCount:** `Optional<Integer>`
@@ -3623,7 +3725,7 @@ client.credits().createCreditBundle(
-
-**pricePerUnitDecimal:** `Optional`
+**pricePerUnitDecimal:** `Optional<String>`
@@ -3631,7 +3733,7 @@ client.credits().createCreditBundle(
-
-**quantity:** `Optional`
+**quantity:** `Optional<Integer>`
@@ -3639,7 +3741,7 @@ client.credits().createCreditBundle(
-
-**status:** `Optional`
+**status:** `Optional<BillingCreditBundleStatus>`
@@ -3742,7 +3844,7 @@ client.credits().updateCreditBundleDetails(
-
-**expiryType:** `Optional`
+**expiryType:** `Optional<BillingCreditExpiryType>`
@@ -3750,7 +3852,7 @@ client.credits().updateCreditBundleDetails(
-
-**expiryUnit:** `Optional`
+**expiryUnit:** `Optional<BillingCreditExpiryUnit>`
@@ -3758,7 +3860,7 @@ client.credits().updateCreditBundleDetails(
-
-**expiryUnitCount:** `Optional`
+**expiryUnitCount:** `Optional<Integer>`
@@ -3774,7 +3876,7 @@ client.credits().updateCreditBundleDetails(
-
-**pricePerUnitDecimal:** `Optional`
+**pricePerUnitDecimal:** `Optional<String>`
@@ -3782,7 +3884,7 @@ client.credits().updateCreditBundleDetails(
-
-**quantity:** `Optional`
+**quantity:** `Optional<Integer>`
@@ -3790,7 +3892,7 @@ client.credits().updateCreditBundleDetails(
-
-**status:** `Optional`
+**status:** `Optional<BillingCreditBundleStatus>`
@@ -3859,7 +3961,7 @@ client.credits().countCreditBundles(
CountCreditBundlesRequest
.builder()
.creditId("credit_id")
- .status(CountCreditBundlesRequestStatus.ACTIVE)
+ .status(BillingCreditBundleStatus.ACTIVE)
.bundleType("fixed")
.limit(1)
.offset(1)
@@ -3879,7 +3981,7 @@ client.credits().countCreditBundles(
-
-**ids:** `Optional`
+**ids:** `Optional<String>`
@@ -3887,7 +3989,7 @@ client.credits().countCreditBundles(
-
-**creditId:** `Optional`
+**creditId:** `Optional<String>`
@@ -3895,7 +3997,7 @@ client.credits().countCreditBundles(
-
-**status:** `Optional`
+**status:** `Optional<BillingCreditBundleStatus>`
@@ -3903,7 +4005,7 @@ client.credits().countCreditBundles(
-
-**bundleType:** `Optional`
+**bundleType:** `Optional<String>`
@@ -3911,7 +4013,7 @@ client.credits().countCreditBundles(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -3919,7 +4021,7 @@ client.credits().countCreditBundles(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -3966,7 +4068,7 @@ client.credits().countBillingCredits(
-
-**ids:** `Optional`
+**ids:** `Optional<String>`
@@ -3974,7 +4076,7 @@ client.credits().countBillingCredits(
-
-**name:** `Optional`
+**name:** `Optional<String>`
@@ -3982,7 +4084,7 @@ client.credits().countBillingCredits(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -3990,7 +4092,7 @@ client.credits().countBillingCredits(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -4043,7 +4145,7 @@ client.credits().zeroOutGrant(
-
-**reason:** `Optional`
+**reason:** `Optional<BillingCreditGrantZeroedOutReason>`
@@ -4074,7 +4176,7 @@ client.credits().grantBillingCreditsToCompany(
.companyId("company_id")
.creditId("credit_id")
.quantity(1)
- .reason("reason")
+ .reason(BillingCreditGrantReason.BILLING_CREDIT_AUTO_TOPUP)
.build()
);
```
@@ -4091,7 +4193,7 @@ client.credits().grantBillingCreditsToCompany(
-
-**billingPeriodsCount:** `Optional`
+**billingPeriodsCount:** `Optional<Integer>`
@@ -4115,7 +4217,7 @@ client.credits().grantBillingCreditsToCompany(
-
-**expiresAt:** `Optional`
+**expiresAt:** `Optional<OffsetDateTime>`
@@ -4123,7 +4225,7 @@ client.credits().grantBillingCreditsToCompany(
-
-**expiryType:** `Optional`
+**expiryType:** `Optional<BillingCreditExpiryType>`
@@ -4131,7 +4233,7 @@ client.credits().grantBillingCreditsToCompany(
-
-**expiryUnit:** `Optional`
+**expiryUnit:** `Optional<BillingCreditExpiryUnit>`
@@ -4139,7 +4241,7 @@ client.credits().grantBillingCreditsToCompany(
-
-**expiryUnitCount:** `Optional`
+**expiryUnitCount:** `Optional<Integer>`
@@ -4155,7 +4257,104 @@ client.credits().grantBillingCreditsToCompany(
-
-**reason:** `String`
+**reason:** `BillingCreditGrantReason`
+
+
+
+
+
+-
+
+**renewalEnabled:** `Optional<Boolean>`
+
+
+
+
+
+-
+
+**renewalPeriod:** `Optional<BillingPlanCreditGrantResetStart>`
+
+
+
+
+
+
+
+
+
+
+
+client.credits.countCompanyGrants() -> CountCompanyGrantsResponse
+
+-
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```java
+client.credits().countCompanyGrants(
+ CountCompanyGrantsRequest
+ .builder()
+ .companyId("company_id")
+ .order(CreditGrantSortOrder.CREATED_AT)
+ .dir(SortDirection.ASC)
+ .limit(1)
+ .offset(1)
+ .build()
+);
+```
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**companyId:** `Optional<String>`
+
+
+
+
+
+-
+
+**order:** `Optional<CreditGrantSortOrder>`
+
+
+
+
+
+-
+
+**dir:** `Optional<SortDirection>`
+
+
+
+
+
+-
+
+**limit:** `Optional<Integer>` — Page limit (default 100)
+
+
+
+
+
+-
+
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -4184,8 +4383,8 @@ client.credits().listCompanyGrants(
ListCompanyGrantsRequest
.builder()
.companyId("company_id")
- .order(ListCompanyGrantsRequestOrder.CREATED_AT)
- .dir(ListCompanyGrantsRequestDir.ASC)
+ .order(CreditGrantSortOrder.CREATED_AT)
+ .dir(SortDirection.ASC)
.limit(1)
.offset(1)
.build()
@@ -4204,7 +4403,7 @@ client.credits().listCompanyGrants(
-
-**companyId:** `Optional`
+**companyId:** `Optional<String>`
@@ -4212,7 +4411,7 @@ client.credits().listCompanyGrants(
-
-**order:** `Optional`
+**order:** `Optional<CreditGrantSortOrder>`
@@ -4220,7 +4419,7 @@ client.credits().listCompanyGrants(
-
-**dir:** `Optional`
+**dir:** `Optional<SortDirection>`
@@ -4228,7 +4427,7 @@ client.credits().listCompanyGrants(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -4236,7 +4435,7 @@ client.credits().listCompanyGrants(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -4283,7 +4482,7 @@ client.credits().countBillingCreditsGrants(
-
-**creditId:** `Optional`
+**creditId:** `Optional<String>`
@@ -4291,7 +4490,7 @@ client.credits().countBillingCreditsGrants(
-
-**ids:** `Optional`
+**ids:** `Optional<String>`
@@ -4299,7 +4498,7 @@ client.credits().countBillingCreditsGrants(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -4307,7 +4506,7 @@ client.credits().countBillingCreditsGrants(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -4354,7 +4553,7 @@ client.credits().listGrantsForCredit(
-
-**creditId:** `Optional`
+**creditId:** `Optional<String>`
@@ -4362,7 +4561,7 @@ client.credits().listGrantsForCredit(
-
-**ids:** `Optional`
+**ids:** `Optional<String>`
@@ -4370,7 +4569,7 @@ client.credits().listGrantsForCredit(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -4378,7 +4577,7 @@ client.credits().listGrantsForCredit(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -4407,7 +4606,7 @@ client.credits().getEnrichedCreditLedger(
GetEnrichedCreditLedgerRequest
.builder()
.companyId("company_id")
- .period(GetEnrichedCreditLedgerRequestPeriod.DAILY)
+ .period(CreditLedgerPeriod.DAILY)
.billingCreditId("billing_credit_id")
.featureId("feature_id")
.startTime("start_time")
@@ -4438,7 +4637,7 @@ client.credits().getEnrichedCreditLedger(
-
-**billingCreditId:** `Optional`
+**billingCreditId:** `Optional<String>`
@@ -4446,7 +4645,7 @@ client.credits().getEnrichedCreditLedger(
-
-**featureId:** `Optional`
+**featureId:** `Optional<String>`
@@ -4454,7 +4653,7 @@ client.credits().getEnrichedCreditLedger(
-
-**period:** `GetEnrichedCreditLedgerRequestPeriod`
+**period:** `CreditLedgerPeriod`
@@ -4462,7 +4661,7 @@ client.credits().getEnrichedCreditLedger(
-
-**startTime:** `Optional`
+**startTime:** `Optional<String>`
@@ -4470,7 +4669,7 @@ client.credits().getEnrichedCreditLedger(
-
-**endTime:** `Optional`
+**endTime:** `Optional<String>`
@@ -4478,7 +4677,7 @@ client.credits().getEnrichedCreditLedger(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -4486,7 +4685,7 @@ client.credits().getEnrichedCreditLedger(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -4515,7 +4714,7 @@ client.credits().countCreditLedger(
CountCreditLedgerRequest
.builder()
.companyId("company_id")
- .period(CountCreditLedgerRequestPeriod.DAILY)
+ .period(CreditLedgerPeriod.DAILY)
.billingCreditId("billing_credit_id")
.featureId("feature_id")
.startTime("start_time")
@@ -4546,7 +4745,7 @@ client.credits().countCreditLedger(
-
-**billingCreditId:** `Optional`
+**billingCreditId:** `Optional<String>`
@@ -4554,7 +4753,7 @@ client.credits().countCreditLedger(
-
-**featureId:** `Optional`
+**featureId:** `Optional<String>`
@@ -4562,7 +4761,7 @@ client.credits().countCreditLedger(
-
-**period:** `CountCreditLedgerRequestPeriod`
+**period:** `CreditLedgerPeriod`
@@ -4570,7 +4769,7 @@ client.credits().countCreditLedger(
-
-**startTime:** `Optional`
+**startTime:** `Optional<String>`
@@ -4578,7 +4777,7 @@ client.credits().countCreditLedger(
-
-**endTime:** `Optional`
+**endTime:** `Optional<String>`
@@ -4586,7 +4785,7 @@ client.credits().countCreditLedger(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -4594,7 +4793,7 @@ client.credits().countCreditLedger(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -4642,7 +4841,7 @@ client.credits().listBillingPlanCreditGrants(
-
-**creditId:** `Optional`
+**creditId:** `Optional<String>`
@@ -4650,7 +4849,7 @@ client.credits().listBillingPlanCreditGrants(
-
-**planId:** `Optional`
+**planId:** `Optional<String>`
@@ -4658,7 +4857,7 @@ client.credits().listBillingPlanCreditGrants(
-
-**planIds:** `Optional`
+**planIds:** `Optional<String>`
@@ -4666,7 +4865,7 @@ client.credits().listBillingPlanCreditGrants(
-
-**ids:** `Optional`
+**ids:** `Optional<String>`
@@ -4674,7 +4873,7 @@ client.credits().listBillingPlanCreditGrants(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -4682,7 +4881,7 @@ client.credits().listBillingPlanCreditGrants(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -4713,8 +4912,8 @@ client.credits().createBillingPlanCreditGrant(
.creditAmount(1)
.creditId("credit_id")
.planId("plan_id")
- .resetCadence(CreateBillingPlanCreditGrantRequestBodyResetCadence.MONTHLY)
- .resetStart(CreateBillingPlanCreditGrantRequestBodyResetStart.BILLING_PERIOD)
+ .resetCadence(BillingPlanCreditGrantResetCadence.DAILY)
+ .resetStart(BillingPlanCreditGrantResetStart.BILLING_PERIOD)
.build()
);
```
@@ -4731,71 +4930,54 @@ client.credits().createBillingPlanCreditGrant(
-
-**applyToExisting:** `Optional`
+**request:** `CreateBillingPlanCreditGrantRequestBody`
-
-
--
-
-**creditAmount:** `Integer`
-
-
--
-**creditId:** `String`
-
+
+client.credits.updateBillingPlanCreditGrant(planGrantId, request) -> UpdateBillingPlanCreditGrantResponse
-
-**expiryType:** `Optional`
-
-
-
+#### 🔌 Usage
-
-**expiryUnit:** `Optional`
-
-
-
-
-
-**expiryUnitCount:** `Optional`
-
+```java
+client.credits().updateBillingPlanCreditGrant(
+ "plan_grant_id",
+ UpdateBillingPlanCreditGrantRequestBody
+ .builder()
+ .resetCadence(BillingPlanCreditGrantResetCadence.DAILY)
+ .resetStart(BillingPlanCreditGrantResetStart.BILLING_PERIOD)
+ .build()
+);
+```
-
-
--
-
-**planId:** `String`
-
+#### ⚙️ Parameters
+
-
-**resetCadence:** `CreateBillingPlanCreditGrantRequestBodyResetCadence`
-
-
-
-
-
-**resetStart:** `CreateBillingPlanCreditGrantRequestBodyResetStart`
+**planGrantId:** `String` — plan_grant_id
@@ -4803,7 +4985,7 @@ client.credits().createBillingPlanCreditGrant(
-
-**resetType:** `Optional`
+**request:** `UpdateBillingPlanCreditGrantRequestBody`
@@ -4815,7 +4997,7 @@ client.credits().createBillingPlanCreditGrant(
-client.credits.updateBillingPlanCreditGrant(planGrantId, request) -> UpdateBillingPlanCreditGrantResponse
+client.credits.deleteBillingPlanCreditGrant(planGrantId) -> DeleteBillingPlanCreditGrantResponse
-
@@ -4828,12 +5010,11 @@ client.credits().createBillingPlanCreditGrant(
-
```java
-client.credits().updateBillingPlanCreditGrant(
+client.credits().deleteBillingPlanCreditGrant(
"plan_grant_id",
- UpdateBillingPlanCreditGrantRequestBody
+ DeleteBillingPlanCreditGrantRequest
.builder()
- .resetCadence(UpdateBillingPlanCreditGrantRequestBodyResetCadence.MONTHLY)
- .resetStart(UpdateBillingPlanCreditGrantRequestBodyResetStart.BILLING_PERIOD)
+ .applyToExisting(true)
.build()
);
```
@@ -4858,129 +5039,19 @@ client.credits().updateBillingPlanCreditGrant(
-
-**applyToExisting:** `Optional`
+**applyToExisting:** `Optional<Boolean>`
-
-
--
-
-**creditAmount:** `Optional`
-
-
--
-**expiryType:** `Optional`
-
+
-
--
-
-**expiryUnit:** `Optional`
-
-
-
-
-
--
-
-**expiryUnitCount:** `Optional`
-
-
-
-
-
--
-
-**resetCadence:** `UpdateBillingPlanCreditGrantRequestBodyResetCadence`
-
-
-
-
-
--
-
-**resetStart:** `UpdateBillingPlanCreditGrantRequestBodyResetStart`
-
-
-
-
-
--
-
-**resetType:** `Optional`
-
-
-
-
-
-
-
-
-
-
-
-client.credits.deleteBillingPlanCreditGrant(planGrantId) -> DeleteBillingPlanCreditGrantResponse
-
--
-
-#### 🔌 Usage
-
-
--
-
-
--
-
-```java
-client.credits().deleteBillingPlanCreditGrant(
- "plan_grant_id",
- DeleteBillingPlanCreditGrantRequest
- .builder()
- .applyToExisting(true)
- .build()
-);
-```
-
-
-
-
-
-#### ⚙️ Parameters
-
-
--
-
-
--
-
-**planGrantId:** `String` — plan_grant_id
-
-
-
-
-
--
-
-**applyToExisting:** `Optional`
-
-
-
-
-
-
-
-
-
-
-
-client.credits.countBillingPlanCreditGrants() -> CountBillingPlanCreditGrantsResponse
+client.credits.countBillingPlanCreditGrants() -> CountBillingPlanCreditGrantsResponse
-
@@ -5016,7 +5087,7 @@ client.credits().countBillingPlanCreditGrants(
-
-**creditId:** `Optional`
+**creditId:** `Optional<String>`
@@ -5024,7 +5095,7 @@ client.credits().countBillingPlanCreditGrants(
-
-**planId:** `Optional`
+**planId:** `Optional<String>`
@@ -5032,7 +5103,7 @@ client.credits().countBillingPlanCreditGrants(
-
-**planIds:** `Optional`
+**planIds:** `Optional<String>`
@@ -5040,7 +5111,7 @@ client.credits().countBillingPlanCreditGrants(
-
-**ids:** `Optional`
+**ids:** `Optional<String>`
@@ -5048,7 +5119,7 @@ client.credits().countBillingPlanCreditGrants(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -5056,7 +5127,7 @@ client.credits().countBillingPlanCreditGrants(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -5185,7 +5256,7 @@ client.checkout().getCheckoutData(
-
-**selectedPlanId:** `Optional`
+**selectedPlanId:** `Optional<String>`
@@ -5410,6 +5481,67 @@ client.checkout().previewManagePlan(
+
+
+
+
+client.checkout.cancelSubscription(request) -> CancelSubscriptionResponse
+
+-
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```java
+client.checkout().cancelSubscription(
+ CancelSubscriptionRequest
+ .builder()
+ .companyId("company_id")
+ .build()
+);
+```
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**cancelImmediately:** `Optional<Boolean>` — If false, subscription cancels at period end. Defaults to true.
+
+
+
+
+
+-
+
+**companyId:** `String`
+
+
+
+
+
+-
+
+**prorate:** `Optional<Boolean>` — If true and cancel_immediately is true, issue prorated credit. Defaults to true.
+
+
+
+
+
+
+
@@ -5455,7 +5587,7 @@ client.checkout().updateCustomerSubscriptionTrialEnd(
-
-**trialEnd:** `Optional`
+**trialEnd:** `Optional<OffsetDateTime>`
@@ -5507,7 +5639,7 @@ client.companies().listCompanies(
-
-**ids:** `Optional` — Filter companies by multiple company IDs (starts with comp_)
+**ids:** `Optional<String>` — Filter companies by multiple company IDs (starts with comp_)
@@ -5515,7 +5647,7 @@ client.companies().listCompanies(
-
-**planId:** `Optional` — Filter companies by plan ID (starts with plan_)
+**planId:** `Optional<String>` — Filter companies by plan ID (starts with plan_)
@@ -5523,7 +5655,7 @@ client.companies().listCompanies(
-
-**q:** `Optional` — Search for companies by name, keys or string traits
+**q:** `Optional<String>` — Search for companies by name, keys or string traits
@@ -5531,7 +5663,7 @@ client.companies().listCompanies(
-
-**withoutFeatureOverrideFor:** `Optional` — Filter out companies that already have a company override for the specified feature ID
+**withoutFeatureOverrideFor:** `Optional<String>` — Filter out companies that already have a company override for the specified feature ID
@@ -5539,7 +5671,7 @@ client.companies().listCompanies(
-
-**withoutPlan:** `Optional` — Filter out companies that have a plan
+**withoutPlan:** `Optional<Boolean>` — Filter out companies that have a plan
@@ -5547,7 +5679,7 @@ client.companies().listCompanies(
-
-**withSubscription:** `Optional` — Filter companies that have a subscription
+**withSubscription:** `Optional<Boolean>` — Filter companies that have a subscription
@@ -5555,7 +5687,7 @@ client.companies().listCompanies(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -5563,7 +5695,7 @@ client.companies().listCompanies(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -5677,7 +5809,14 @@ client.companies().getCompany("company_id");
```java
-client.companies().deleteCompany("company_id");
+client.companies().deleteCompany(
+ "company_id",
+ DeleteCompanyRequest
+ .builder()
+ .cancelSubscription(true)
+ .prorate(true)
+ .build()
+);
```
@@ -5694,6 +5833,22 @@ client.companies().deleteCompany("company_id");
**companyId:** `String` — company_id
+
+
+
+
+-
+
+**cancelSubscription:** `Optional<Boolean>`
+
+
+
+
+
+-
+
+**prorate:** `Optional<Boolean>`
+
@@ -5743,7 +5898,7 @@ client.companies().countCompanies(
-
-**ids:** `Optional` — Filter companies by multiple company IDs (starts with comp_)
+**ids:** `Optional<String>` — Filter companies by multiple company IDs (starts with comp_)
@@ -5751,7 +5906,7 @@ client.companies().countCompanies(
-
-**planId:** `Optional` — Filter companies by plan ID (starts with plan_)
+**planId:** `Optional<String>` — Filter companies by plan ID (starts with plan_)
@@ -5759,7 +5914,7 @@ client.companies().countCompanies(
-
-**q:** `Optional` — Search for companies by name, keys or string traits
+**q:** `Optional<String>` — Search for companies by name, keys or string traits
@@ -5767,7 +5922,7 @@ client.companies().countCompanies(
-
-**withoutFeatureOverrideFor:** `Optional` — Filter out companies that already have a company override for the specified feature ID
+**withoutFeatureOverrideFor:** `Optional<String>` — Filter out companies that already have a company override for the specified feature ID
@@ -5775,7 +5930,7 @@ client.companies().countCompanies(
-
-**withoutPlan:** `Optional` — Filter out companies that have a plan
+**withoutPlan:** `Optional<Boolean>` — Filter out companies that have a plan
@@ -5783,7 +5938,7 @@ client.companies().countCompanies(
-
-**withSubscription:** `Optional` — Filter companies that have a subscription
+**withSubscription:** `Optional<Boolean>` — Filter companies that have a subscription
@@ -5791,7 +5946,7 @@ client.companies().countCompanies(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -5799,7 +5954,7 @@ client.companies().countCompanies(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -5832,7 +5987,7 @@ client.companies().countCompaniesForAdvancedFilter(
.withoutPlan(true)
.withoutSubscription(true)
.sortOrderColumn("sort_order_column")
- .sortOrderDirection(CountCompaniesForAdvancedFilterRequestSortOrderDirection.ASC)
+ .sortOrderDirection(SortDirection.ASC)
.limit(1)
.offset(1)
.build()
@@ -5851,7 +6006,7 @@ client.companies().countCompaniesForAdvancedFilter(
-
-**ids:** `Optional` — Filter companies by multiple company IDs (starts with comp_)
+**ids:** `Optional<String>` — Filter companies by multiple company IDs (starts with comp_)
@@ -5859,7 +6014,7 @@ client.companies().countCompaniesForAdvancedFilter(
-
-**planIds:** `Optional` — Filter companies by one or more plan IDs (each ID starts with plan_)
+**planIds:** `Optional<String>` — Filter companies by one or more plan IDs (each ID starts with plan_)
@@ -5867,7 +6022,7 @@ client.companies().countCompaniesForAdvancedFilter(
-
-**featureIds:** `Optional` — Filter companies by one or more feature IDs (each ID starts with feat_)
+**featureIds:** `Optional<String>` — Filter companies by one or more feature IDs (each ID starts with feat_)
@@ -5875,7 +6030,7 @@ client.companies().countCompaniesForAdvancedFilter(
-
-**creditTypeIds:** `Optional` — Filter companies by one or more credit type IDs (each ID starts with bcrd_)
+**creditTypeIds:** `Optional<String>` — Filter companies by one or more credit type IDs (each ID starts with bcrd_)
@@ -5883,7 +6038,7 @@ client.companies().countCompaniesForAdvancedFilter(
-
-**subscriptionStatuses:** `Optional` — Filter companies by one or more subscription statuses (active, canceled, expired, incomplete, incomplete_expired, past_due, paused, trialing, unpaid)
+**subscriptionStatuses:** `Optional<SubscriptionStatus>` — Filter companies by one or more subscription statuses (active, canceled, expired, incomplete, incomplete_expired, past_due, paused, trialing, unpaid)
@@ -5891,7 +6046,7 @@ client.companies().countCompaniesForAdvancedFilter(
-
-**subscriptionTypes:** `Optional` — Filter companies by one or more subscription types (paid, free, trial)
+**subscriptionTypes:** `Optional<SubscriptionType>` — Filter companies by one or more subscription types (paid, free, trial)
@@ -5899,7 +6054,7 @@ client.companies().countCompaniesForAdvancedFilter(
-
-**monetizedSubscriptions:** `Optional` — Filter companies that have monetized subscriptions
+**monetizedSubscriptions:** `Optional<Boolean>` — Filter companies that have monetized subscriptions
@@ -5907,7 +6062,7 @@ client.companies().countCompaniesForAdvancedFilter(
-
-**q:** `Optional` — Search for companies by name, keys or string traits
+**q:** `Optional<String>` — Search for companies by name, keys or string traits
@@ -5915,7 +6070,7 @@ client.companies().countCompaniesForAdvancedFilter(
-
-**withoutPlan:** `Optional` — Filter out companies that have a plan
+**withoutPlan:** `Optional<Boolean>` — Filter out companies that have a plan
@@ -5923,7 +6078,7 @@ client.companies().countCompaniesForAdvancedFilter(
-
-**withoutSubscription:** `Optional` — Filter out companies that have a subscription
+**withoutSubscription:** `Optional<Boolean>` — Filter out companies that have a subscription
@@ -5931,7 +6086,7 @@ client.companies().countCompaniesForAdvancedFilter(
-
-**sortOrderColumn:** `Optional` — Column to sort by (e.g. name, created_at, last_seen_at)
+**sortOrderColumn:** `Optional<String>` — Column to sort by (e.g. name, created_at, last_seen_at)
@@ -5939,7 +6094,7 @@ client.companies().countCompaniesForAdvancedFilter(
-
-**sortOrderDirection:** `Optional` — Direction to sort by (asc or desc)
+**sortOrderDirection:** `Optional<SortDirection>` — Direction to sort by (asc or desc)
@@ -5947,7 +6102,7 @@ client.companies().countCompaniesForAdvancedFilter(
-
-**displayProperties:** `Optional` — Select the display columns to return (e.g. plan, subscription, users, last_seen_at)
+**displayProperties:** `Optional<String>` — Select the display columns to return (e.g. plan, subscription, users, last_seen_at)
@@ -5955,7 +6110,7 @@ client.companies().countCompaniesForAdvancedFilter(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -5963,7 +6118,7 @@ client.companies().countCompaniesForAdvancedFilter(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -6094,7 +6249,7 @@ client.companies().listCompaniesForAdvancedFilter(
.withoutPlan(true)
.withoutSubscription(true)
.sortOrderColumn("sort_order_column")
- .sortOrderDirection(ListCompaniesForAdvancedFilterRequestSortOrderDirection.ASC)
+ .sortOrderDirection(SortDirection.ASC)
.limit(1)
.offset(1)
.build()
@@ -6113,7 +6268,7 @@ client.companies().listCompaniesForAdvancedFilter(
-
-**ids:** `Optional` — Filter companies by multiple company IDs (starts with comp_)
+**ids:** `Optional<String>` — Filter companies by multiple company IDs (starts with comp_)
@@ -6121,7 +6276,7 @@ client.companies().listCompaniesForAdvancedFilter(
-
-**planIds:** `Optional` — Filter companies by one or more plan IDs (each ID starts with plan_)
+**planIds:** `Optional<String>` — Filter companies by one or more plan IDs (each ID starts with plan_)
@@ -6129,7 +6284,7 @@ client.companies().listCompaniesForAdvancedFilter(
-
-**featureIds:** `Optional` — Filter companies by one or more feature IDs (each ID starts with feat_)
+**featureIds:** `Optional<String>` — Filter companies by one or more feature IDs (each ID starts with feat_)
@@ -6137,7 +6292,7 @@ client.companies().listCompaniesForAdvancedFilter(
-
-**creditTypeIds:** `Optional` — Filter companies by one or more credit type IDs (each ID starts with bcrd_)
+**creditTypeIds:** `Optional<String>` — Filter companies by one or more credit type IDs (each ID starts with bcrd_)
@@ -6145,7 +6300,7 @@ client.companies().listCompaniesForAdvancedFilter(
-
-**subscriptionStatuses:** `Optional` — Filter companies by one or more subscription statuses (active, canceled, expired, incomplete, incomplete_expired, past_due, paused, trialing, unpaid)
+**subscriptionStatuses:** `Optional<SubscriptionStatus>` — Filter companies by one or more subscription statuses (active, canceled, expired, incomplete, incomplete_expired, past_due, paused, trialing, unpaid)
@@ -6153,7 +6308,7 @@ client.companies().listCompaniesForAdvancedFilter(
-
-**subscriptionTypes:** `Optional` — Filter companies by one or more subscription types (paid, free, trial)
+**subscriptionTypes:** `Optional<SubscriptionType>` — Filter companies by one or more subscription types (paid, free, trial)
@@ -6161,7 +6316,7 @@ client.companies().listCompaniesForAdvancedFilter(
-
-**monetizedSubscriptions:** `Optional` — Filter companies that have monetized subscriptions
+**monetizedSubscriptions:** `Optional<Boolean>` — Filter companies that have monetized subscriptions
@@ -6169,7 +6324,7 @@ client.companies().listCompaniesForAdvancedFilter(
-
-**q:** `Optional` — Search for companies by name, keys or string traits
+**q:** `Optional<String>` — Search for companies by name, keys or string traits
@@ -6177,7 +6332,7 @@ client.companies().listCompaniesForAdvancedFilter(
-
-**withoutPlan:** `Optional` — Filter out companies that have a plan
+**withoutPlan:** `Optional<Boolean>` — Filter out companies that have a plan
@@ -6185,7 +6340,7 @@ client.companies().listCompaniesForAdvancedFilter(
-
-**withoutSubscription:** `Optional` — Filter out companies that have a subscription
+**withoutSubscription:** `Optional<Boolean>` — Filter out companies that have a subscription
@@ -6193,7 +6348,7 @@ client.companies().listCompaniesForAdvancedFilter(
-
-**sortOrderColumn:** `Optional` — Column to sort by (e.g. name, created_at, last_seen_at)
+**sortOrderColumn:** `Optional<String>` — Column to sort by (e.g. name, created_at, last_seen_at)
@@ -6201,7 +6356,7 @@ client.companies().listCompaniesForAdvancedFilter(
-
-**sortOrderDirection:** `Optional` — Direction to sort by (asc or desc)
+**sortOrderDirection:** `Optional<SortDirection>` — Direction to sort by (asc or desc)
@@ -6209,7 +6364,7 @@ client.companies().listCompaniesForAdvancedFilter(
-
-**displayProperties:** `Optional` — Select the display columns to return (e.g. plan, subscription, users, last_seen_at)
+**displayProperties:** `Optional<String>` — Select the display columns to return (e.g. plan, subscription, users, last_seen_at)
@@ -6217,7 +6372,7 @@ client.companies().listCompaniesForAdvancedFilter(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -6225,7 +6380,7 @@ client.companies().listCompaniesForAdvancedFilter(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -6274,79 +6429,7 @@ client.companies().lookupCompany(
-
-**keys:** `Map` — Key/value pairs
-
-
-
-
-
-
-
-
-
-
-
-client.companies.getActiveDeals() -> GetActiveDealsResponse
-
--
-
-#### 🔌 Usage
-
-
--
-
-
--
-
-```java
-client.companies().getActiveDeals(
- GetActiveDealsRequest
- .builder()
- .companyId("company_id")
- .dealStage("deal_stage")
- .limit(1)
- .offset(1)
- .build()
-);
-```
-
-
-
-
-
-#### ⚙️ Parameters
-
-
--
-
-
--
-
-**companyId:** `String`
-
-
-
-
-
--
-
-**dealStage:** `String`
-
-
-
-
-
--
-
-**limit:** `Optional` — Page limit (default 100)
-
-
-
-
-
--
-
-**offset:** `Optional` — Page offset (default 0)
+**keys:** `Map<String, String>` — Key/value pairs
@@ -6394,7 +6477,7 @@ client.companies().listCompanyMemberships(
-
-**companyId:** `Optional`
+**companyId:** `Optional<String>`
@@ -6402,7 +6485,7 @@ client.companies().listCompanyMemberships(
-
-**userId:** `Optional`
+**userId:** `Optional<String>`
@@ -6410,7 +6493,7 @@ client.companies().listCompanyMemberships(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -6418,7 +6501,7 @@ client.companies().listCompanyMemberships(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -6559,7 +6642,7 @@ client.companies().getActiveCompanySubscription(
-
-**companyId:** `Optional`
+**companyId:** `Optional<String>`
@@ -6567,7 +6650,7 @@ client.companies().getActiveCompanySubscription(
-
-**companyIds:** `Optional`
+**companyIds:** `Optional<String>`
@@ -6575,7 +6658,7 @@ client.companies().getActiveCompanySubscription(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -6583,7 +6666,7 @@ client.companies().getActiveCompanySubscription(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -6661,7 +6744,7 @@ client.companies().upsertCompanyTrait(
client.companies().listEntityKeyDefinitions(
ListEntityKeyDefinitionsRequest
.builder()
- .entityType(ListEntityKeyDefinitionsRequestEntityType.COMPANY)
+ .entityType(EntityType.COMPANY)
.q("q")
.limit(1)
.offset(1)
@@ -6681,7 +6764,7 @@ client.companies().listEntityKeyDefinitions(
-
-**entityType:** `Optional`
+**entityType:** `Optional<EntityType>`
@@ -6689,7 +6772,7 @@ client.companies().listEntityKeyDefinitions(
-
-**ids:** `Optional`
+**ids:** `Optional<String>`
@@ -6697,7 +6780,7 @@ client.companies().listEntityKeyDefinitions(
-
-**q:** `Optional`
+**q:** `Optional<String>`
@@ -6705,7 +6788,7 @@ client.companies().listEntityKeyDefinitions(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -6713,7 +6796,7 @@ client.companies().listEntityKeyDefinitions(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -6741,7 +6824,7 @@ client.companies().listEntityKeyDefinitions(
client.companies().countEntityKeyDefinitions(
CountEntityKeyDefinitionsRequest
.builder()
- .entityType(CountEntityKeyDefinitionsRequestEntityType.COMPANY)
+ .entityType(EntityType.COMPANY)
.q("q")
.limit(1)
.offset(1)
@@ -6761,7 +6844,7 @@ client.companies().countEntityKeyDefinitions(
-
-**entityType:** `Optional`
+**entityType:** `Optional<EntityType>`
@@ -6769,7 +6852,7 @@ client.companies().countEntityKeyDefinitions(
-
-**ids:** `Optional`
+**ids:** `Optional<String>`
@@ -6777,7 +6860,7 @@ client.companies().countEntityKeyDefinitions(
-
-**q:** `Optional`
+**q:** `Optional<String>`
@@ -6785,7 +6868,7 @@ client.companies().countEntityKeyDefinitions(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -6793,7 +6876,7 @@ client.companies().countEntityKeyDefinitions(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -6821,9 +6904,9 @@ client.companies().countEntityKeyDefinitions(
client.companies().listEntityTraitDefinitions(
ListEntityTraitDefinitionsRequest
.builder()
- .entityType(ListEntityTraitDefinitionsRequestEntityType.COMPANY)
+ .entityType(EntityType.COMPANY)
.q("q")
- .traitType(ListEntityTraitDefinitionsRequestTraitType.BOOLEAN)
+ .traitType(TraitType.BOOLEAN)
.limit(1)
.offset(1)
.build()
@@ -6842,7 +6925,15 @@ client.companies().listEntityTraitDefinitions(
-
-**entityType:** `Optional`
+**entityType:** `Optional<EntityType>`
+
+
+
+
+
+-
+
+**ids:** `Optional<String>`
@@ -6850,7 +6941,7 @@ client.companies().listEntityTraitDefinitions(
-
-**ids:** `Optional`
+**q:** `Optional<String>`
@@ -6858,7 +6949,7 @@ client.companies().listEntityTraitDefinitions(
-
-**q:** `Optional`
+**traitType:** `Optional<TraitType>`
@@ -6866,7 +6957,7 @@ client.companies().listEntityTraitDefinitions(
-
-**traitType:** `Optional`
+**traitTypes:** `Optional<TraitType>`
@@ -6874,7 +6965,7 @@ client.companies().listEntityTraitDefinitions(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -6882,7 +6973,7 @@ client.companies().listEntityTraitDefinitions(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -6910,11 +7001,11 @@ client.companies().listEntityTraitDefinitions(
client.companies().getOrCreateEntityTraitDefinition(
CreateEntityTraitDefinitionRequestBody
.builder()
- .entityType(CreateEntityTraitDefinitionRequestBodyEntityType.COMPANY)
+ .entityType(EntityType.COMPANY)
.hierarchy(
Arrays.asList("hierarchy")
)
- .traitType(CreateEntityTraitDefinitionRequestBodyTraitType.BOOLEAN)
+ .traitType(TraitType.BOOLEAN)
.build()
);
```
@@ -6931,7 +7022,7 @@ client.companies().getOrCreateEntityTraitDefinition(
-
-**displayName:** `Optional`
+**displayName:** `Optional<String>`
@@ -6939,7 +7030,7 @@ client.companies().getOrCreateEntityTraitDefinition(
-
-**entityType:** `CreateEntityTraitDefinitionRequestBodyEntityType`
+**entityType:** `EntityType`
@@ -6947,7 +7038,7 @@ client.companies().getOrCreateEntityTraitDefinition(
-
-**hierarchy:** `List`
+**hierarchy:** `List<String>`
@@ -6955,7 +7046,7 @@ client.companies().getOrCreateEntityTraitDefinition(
-
-**traitType:** `CreateEntityTraitDefinitionRequestBodyTraitType`
+**traitType:** `TraitType`
@@ -7024,7 +7115,7 @@ client.companies().updateEntityTraitDefinition(
"entity_trait_definition_id",
UpdateEntityTraitDefinitionRequestBody
.builder()
- .traitType(UpdateEntityTraitDefinitionRequestBodyTraitType.BOOLEAN)
+ .traitType(TraitType.BOOLEAN)
.build()
);
```
@@ -7049,7 +7140,7 @@ client.companies().updateEntityTraitDefinition(
-
-**displayName:** `Optional`
+**displayName:** `Optional<String>`
@@ -7057,7 +7148,7 @@ client.companies().updateEntityTraitDefinition(
-
-**traitType:** `UpdateEntityTraitDefinitionRequestBodyTraitType`
+**traitType:** `TraitType`
@@ -7085,9 +7176,9 @@ client.companies().updateEntityTraitDefinition(
client.companies().countEntityTraitDefinitions(
CountEntityTraitDefinitionsRequest
.builder()
- .entityType(CountEntityTraitDefinitionsRequestEntityType.COMPANY)
+ .entityType(EntityType.COMPANY)
.q("q")
- .traitType(CountEntityTraitDefinitionsRequestTraitType.BOOLEAN)
+ .traitType(TraitType.BOOLEAN)
.limit(1)
.offset(1)
.build()
@@ -7106,7 +7197,15 @@ client.companies().countEntityTraitDefinitions(
-
-**entityType:** `Optional`
+**entityType:** `Optional<EntityType>`
+
+
+
+
+
+-
+
+**ids:** `Optional<String>`
@@ -7114,7 +7213,7 @@ client.companies().countEntityTraitDefinitions(
-
-**ids:** `Optional`
+**q:** `Optional<String>`
@@ -7122,7 +7221,7 @@ client.companies().countEntityTraitDefinitions(
-
-**q:** `Optional`
+**traitType:** `Optional<TraitType>`
@@ -7130,7 +7229,7 @@ client.companies().countEntityTraitDefinitions(
-
-**traitType:** `Optional`
+**traitTypes:** `Optional<TraitType>`
@@ -7138,7 +7237,7 @@ client.companies().countEntityTraitDefinitions(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -7146,7 +7245,7 @@ client.companies().countEntityTraitDefinitions(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -7202,7 +7301,7 @@ client.companies().getEntityTraitValues(
-
-**q:** `Optional`
+**q:** `Optional<String>`
@@ -7210,7 +7309,7 @@ client.companies().getEntityTraitValues(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -7218,7 +7317,7 @@ client.companies().getEntityTraitValues(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -7267,7 +7366,7 @@ client.companies().listPlanChanges(
-
-**action:** `Optional`
+**action:** `Optional<String>`
@@ -7275,7 +7374,7 @@ client.companies().listPlanChanges(
-
-**basePlanAction:** `Optional`
+**basePlanAction:** `Optional<String>`
@@ -7283,7 +7382,7 @@ client.companies().listPlanChanges(
-
-**companyId:** `Optional`
+**companyId:** `Optional<String>`
@@ -7291,7 +7390,7 @@ client.companies().listPlanChanges(
-
-**companyIds:** `Optional`
+**companyIds:** `Optional<String>`
@@ -7299,7 +7398,7 @@ client.companies().listPlanChanges(
-
-**planIds:** `Optional`
+**planIds:** `Optional<String>`
@@ -7307,7 +7406,7 @@ client.companies().listPlanChanges(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -7315,7 +7414,7 @@ client.companies().listPlanChanges(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -7403,7 +7502,7 @@ client.companies().listPlanTraits(
-
-**ids:** `Optional`
+**ids:** `Optional<String>`
@@ -7411,7 +7510,7 @@ client.companies().listPlanTraits(
-
-**planId:** `Optional`
+**planId:** `Optional<String>`
@@ -7419,7 +7518,7 @@ client.companies().listPlanTraits(
-
-**traitId:** `Optional`
+**traitId:** `Optional<String>`
@@ -7427,7 +7526,7 @@ client.companies().listPlanTraits(
-
-**traitIds:** `Optional`
+**traitIds:** `Optional<String>`
@@ -7435,7 +7534,7 @@ client.companies().listPlanTraits(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -7443,7 +7542,7 @@ client.companies().listPlanTraits(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -7677,6 +7776,7 @@ client.companies().deletePlanTrait("plan_trait_id");
client.companies().updatePlanTraitsBulk(
UpdatePlanTraitBulkRequestBody
.builder()
+ .applyToExistingCompanies(true)
.planId("plan_id")
.traits(
Arrays.asList(
@@ -7703,6 +7803,14 @@ client.companies().updatePlanTraitsBulk(
-
+**applyToExistingCompanies:** `Boolean`
+
+
+
+
+
+-
+
**planId:** `String`
@@ -7711,7 +7819,7 @@ client.companies().updatePlanTraitsBulk(
-
-**traits:** `List`
+**traits:** `List<UpdatePlanTraitTraitRequestBody>`
@@ -7759,7 +7867,7 @@ client.companies().countPlanTraits(
-
-**ids:** `Optional`
+**ids:** `Optional<String>`
@@ -7767,7 +7875,7 @@ client.companies().countPlanTraits(
-
-**planId:** `Optional`
+**planId:** `Optional<String>`
@@ -7775,7 +7883,7 @@ client.companies().countPlanTraits(
-
-**traitId:** `Optional`
+**traitId:** `Optional<String>`
@@ -7783,7 +7891,7 @@ client.companies().countPlanTraits(
-
-**traitIds:** `Optional`
+**traitIds:** `Optional<String>`
@@ -7791,7 +7899,7 @@ client.companies().countPlanTraits(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -7799,7 +7907,7 @@ client.companies().countPlanTraits(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -7898,7 +8006,7 @@ client.companies().listUsers(
-
-**companyId:** `Optional` — Filter users by company ID (starts with comp_)
+**companyId:** `Optional<String>` — Filter users by company ID (starts with comp_)
@@ -7906,7 +8014,7 @@ client.companies().listUsers(
-
-**ids:** `Optional` — Filter users by multiple user IDs (starts with user_)
+**ids:** `Optional<String>` — Filter users by multiple user IDs (starts with user_)
@@ -7914,7 +8022,7 @@ client.companies().listUsers(
-
-**planId:** `Optional` — Filter users by plan ID (starts with plan_)
+**planId:** `Optional<String>` — Filter users by plan ID (starts with plan_)
@@ -7922,7 +8030,7 @@ client.companies().listUsers(
-
-**q:** `Optional` — Search for users by name, keys or string traits
+**q:** `Optional<String>` — Search for users by name, keys or string traits
@@ -7930,7 +8038,7 @@ client.companies().listUsers(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -7938,7 +8046,7 @@ client.companies().listUsers(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -8116,7 +8224,7 @@ client.companies().countUsers(
-
-**companyId:** `Optional` — Filter users by company ID (starts with comp_)
+**companyId:** `Optional<String>` — Filter users by company ID (starts with comp_)
@@ -8124,7 +8232,7 @@ client.companies().countUsers(
-
-**ids:** `Optional` — Filter users by multiple user IDs (starts with user_)
+**ids:** `Optional<String>` — Filter users by multiple user IDs (starts with user_)
@@ -8132,7 +8240,7 @@ client.companies().countUsers(
-
-**planId:** `Optional` — Filter users by plan ID (starts with plan_)
+**planId:** `Optional<String>` — Filter users by plan ID (starts with plan_)
@@ -8140,7 +8248,7 @@ client.companies().countUsers(
-
-**q:** `Optional` — Search for users by name, keys or string traits
+**q:** `Optional<String>` — Search for users by name, keys or string traits
@@ -8148,7 +8256,7 @@ client.companies().countUsers(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -8156,7 +8264,7 @@ client.companies().countUsers(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -8303,7 +8411,7 @@ client.companies().lookupUser(
-
-**keys:** `Map` — Key/value pairs
+**keys:** `Map<String, String>` — Key/value pairs
@@ -8354,7 +8462,7 @@ client.entitlements().listCompanyOverrides(
-
-**companyId:** `Optional` — Filter company overrides by a single company ID (starting with comp_)
+**companyId:** `Optional<String>` — Filter company overrides by a single company ID (starting with comp_)
@@ -8362,7 +8470,7 @@ client.entitlements().listCompanyOverrides(
-
-**companyIds:** `Optional` — Filter company overrides by multiple company IDs (starting with comp_)
+**companyIds:** `Optional<String>` — Filter company overrides by multiple company IDs (starting with comp_)
@@ -8370,7 +8478,7 @@ client.entitlements().listCompanyOverrides(
-
-**featureId:** `Optional` — Filter company overrides by a single feature ID (starting with feat_)
+**featureId:** `Optional<String>` — Filter company overrides by a single feature ID (starting with feat_)
@@ -8378,7 +8486,7 @@ client.entitlements().listCompanyOverrides(
-
-**featureIds:** `Optional` — Filter company overrides by multiple feature IDs (starting with feat_)
+**featureIds:** `Optional<String>` — Filter company overrides by multiple feature IDs (starting with feat_)
@@ -8386,7 +8494,7 @@ client.entitlements().listCompanyOverrides(
-
-**ids:** `Optional` — Filter company overrides by multiple company override IDs (starting with cmov_)
+**ids:** `Optional<String>` — Filter company overrides by multiple company override IDs (starting with cmov_)
@@ -8394,7 +8502,7 @@ client.entitlements().listCompanyOverrides(
-
-**withoutExpired:** `Optional` — Filter company overrides by whether they have not expired
+**withoutExpired:** `Optional<Boolean>` — Filter company overrides by whether they have not expired
@@ -8402,7 +8510,7 @@ client.entitlements().listCompanyOverrides(
-
-**q:** `Optional` — Search for company overrides by feature or company name
+**q:** `Optional<String>` — Search for company overrides by feature or company name
@@ -8410,7 +8518,7 @@ client.entitlements().listCompanyOverrides(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -8418,7 +8526,7 @@ client.entitlements().listCompanyOverrides(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -8448,7 +8556,7 @@ client.entitlements().createCompanyOverride(
.builder()
.companyId("company_id")
.featureId("feature_id")
- .valueType(CreateCompanyOverrideRequestBodyValueType.BOOLEAN)
+ .valueType(EntitlementValueType.BOOLEAN)
.build()
);
```
@@ -8473,7 +8581,7 @@ client.entitlements().createCompanyOverride(
-
-**creditConsumptionRate:** `Optional`
+**creditConsumptionRate:** `Optional<Double>`
@@ -8481,7 +8589,7 @@ client.entitlements().createCompanyOverride(
-
-**expirationDate:** `Optional`
+**expirationDate:** `Optional<OffsetDateTime>`
@@ -8497,7 +8605,7 @@ client.entitlements().createCompanyOverride(
-
-**metricPeriod:** `Optional`
+**metricPeriod:** `Optional<CreateCompanyOverrideRequestBodyMetricPeriod>`
@@ -8505,7 +8613,7 @@ client.entitlements().createCompanyOverride(
-
-**metricPeriodMonthReset:** `Optional`
+**metricPeriodMonthReset:** `Optional<CreateCompanyOverrideRequestBodyMetricPeriodMonthReset>`
@@ -8513,7 +8621,7 @@ client.entitlements().createCompanyOverride(
-
-**note:** `Optional`
+**note:** `Optional<String>`
@@ -8521,7 +8629,7 @@ client.entitlements().createCompanyOverride(
-
-**valueBool:** `Optional`
+**valueBool:** `Optional<Boolean>`
@@ -8529,7 +8637,7 @@ client.entitlements().createCompanyOverride(
-
-**valueCreditId:** `Optional`
+**valueCreditId:** `Optional<String>`
@@ -8537,7 +8645,7 @@ client.entitlements().createCompanyOverride(
-
-**valueNumeric:** `Optional`
+**valueNumeric:** `Optional<Integer>`
@@ -8545,7 +8653,7 @@ client.entitlements().createCompanyOverride(
-
-**valueTraitId:** `Optional`
+**valueTraitId:** `Optional<String>`
@@ -8553,7 +8661,7 @@ client.entitlements().createCompanyOverride(
-
-**valueType:** `CreateCompanyOverrideRequestBodyValueType`
+**valueType:** `EntitlementValueType`
@@ -8622,7 +8730,7 @@ client.entitlements().updateCompanyOverride(
"company_override_id",
UpdateCompanyOverrideRequestBody
.builder()
- .valueType(UpdateCompanyOverrideRequestBodyValueType.BOOLEAN)
+ .valueType(EntitlementValueType.BOOLEAN)
.build()
);
```
@@ -8647,7 +8755,7 @@ client.entitlements().updateCompanyOverride(
-
-**creditConsumptionRate:** `Optional`
+**creditConsumptionRate:** `Optional<Double>`
@@ -8655,7 +8763,7 @@ client.entitlements().updateCompanyOverride(
-
-**expirationDate:** `Optional`
+**expirationDate:** `Optional<OffsetDateTime>`
@@ -8663,7 +8771,7 @@ client.entitlements().updateCompanyOverride(
-
-**metricPeriod:** `Optional`
+**metricPeriod:** `Optional<UpdateCompanyOverrideRequestBodyMetricPeriod>`
@@ -8671,7 +8779,7 @@ client.entitlements().updateCompanyOverride(
-
-**metricPeriodMonthReset:** `Optional`
+**metricPeriodMonthReset:** `Optional<UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset>`
@@ -8679,7 +8787,7 @@ client.entitlements().updateCompanyOverride(
-
-**note:** `Optional`
+**note:** `Optional<String>`
@@ -8687,7 +8795,7 @@ client.entitlements().updateCompanyOverride(
-
-**valueBool:** `Optional`
+**valueBool:** `Optional<Boolean>`
@@ -8695,7 +8803,7 @@ client.entitlements().updateCompanyOverride(
-
-**valueCreditId:** `Optional`
+**valueCreditId:** `Optional<String>`
@@ -8703,7 +8811,7 @@ client.entitlements().updateCompanyOverride(
-
-**valueNumeric:** `Optional`
+**valueNumeric:** `Optional<Integer>`
@@ -8711,7 +8819,7 @@ client.entitlements().updateCompanyOverride(
-
-**valueTraitId:** `Optional`
+**valueTraitId:** `Optional<String>`
@@ -8719,7 +8827,7 @@ client.entitlements().updateCompanyOverride(
-
-**valueType:** `UpdateCompanyOverrideRequestBodyValueType`
+**valueType:** `EntitlementValueType`
@@ -8809,7 +8917,7 @@ client.entitlements().countCompanyOverrides(
-
-**companyId:** `Optional` — Filter company overrides by a single company ID (starting with comp_)
+**companyId:** `Optional<String>` — Filter company overrides by a single company ID (starting with comp_)
@@ -8817,7 +8925,7 @@ client.entitlements().countCompanyOverrides(
-
-**companyIds:** `Optional` — Filter company overrides by multiple company IDs (starting with comp_)
+**companyIds:** `Optional<String>` — Filter company overrides by multiple company IDs (starting with comp_)
@@ -8825,7 +8933,7 @@ client.entitlements().countCompanyOverrides(
-
-**featureId:** `Optional` — Filter company overrides by a single feature ID (starting with feat_)
+**featureId:** `Optional<String>` — Filter company overrides by a single feature ID (starting with feat_)
@@ -8833,7 +8941,7 @@ client.entitlements().countCompanyOverrides(
-
-**featureIds:** `Optional` — Filter company overrides by multiple feature IDs (starting with feat_)
+**featureIds:** `Optional<String>` — Filter company overrides by multiple feature IDs (starting with feat_)
@@ -8841,7 +8949,7 @@ client.entitlements().countCompanyOverrides(
-
-**ids:** `Optional` — Filter company overrides by multiple company override IDs (starting with cmov_)
+**ids:** `Optional<String>` — Filter company overrides by multiple company override IDs (starting with cmov_)
@@ -8849,7 +8957,7 @@ client.entitlements().countCompanyOverrides(
-
-**withoutExpired:** `Optional` — Filter company overrides by whether they have not expired
+**withoutExpired:** `Optional<Boolean>` — Filter company overrides by whether they have not expired
@@ -8857,7 +8965,7 @@ client.entitlements().countCompanyOverrides(
-
-**q:** `Optional` — Search for company overrides by feature or company name
+**q:** `Optional<String>` — Search for company overrides by feature or company name
@@ -8865,7 +8973,7 @@ client.entitlements().countCompanyOverrides(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -8873,7 +8981,7 @@ client.entitlements().countCompanyOverrides(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -8929,7 +9037,7 @@ client.entitlements().listFeatureCompanies(
-
-**q:** `Optional`
+**q:** `Optional<String>`
@@ -8937,7 +9045,7 @@ client.entitlements().listFeatureCompanies(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -8945,7 +9053,7 @@ client.entitlements().listFeatureCompanies(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -9001,7 +9109,7 @@ client.entitlements().countFeatureCompanies(
-
-**q:** `Optional`
+**q:** `Optional<String>`
@@ -9009,7 +9117,7 @@ client.entitlements().countFeatureCompanies(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -9017,7 +9125,7 @@ client.entitlements().countFeatureCompanies(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -9046,6 +9154,7 @@ client.entitlements().listFeatureUsage(
ListFeatureUsageRequest
.builder()
.companyId("company_id")
+ .includeUsageAggregation(true)
.q("q")
.withoutNegativeEntitlements(true)
.limit(1)
@@ -9066,7 +9175,7 @@ client.entitlements().listFeatureUsage(
-
-**companyId:** `Optional`
+**companyId:** `Optional<String>`
@@ -9074,7 +9183,7 @@ client.entitlements().listFeatureUsage(
-
-**companyKeys:** `Optional
@@ -9082,7 +9191,7 @@ client.entitlements().listFeatureUsage(
-
-**featureIds:** `Optional`
+**featureIds:** `Optional<String>`
@@ -9090,7 +9199,7 @@ client.entitlements().listFeatureUsage(
-
-**q:** `Optional`
+**includeUsageAggregation:** `Optional<Boolean>` — Include time-bucketed usage aggregation (today, this week, this month, billing period) for credit-based entitlements. Defaults to false for performance.
@@ -9098,7 +9207,7 @@ client.entitlements().listFeatureUsage(
-
-**withoutNegativeEntitlements:** `Optional`
+**q:** `Optional<String>`
@@ -9106,7 +9215,7 @@ client.entitlements().listFeatureUsage(
-
-**limit:** `Optional` — Page limit (default 100)
+**withoutNegativeEntitlements:** `Optional<Boolean>`
@@ -9114,11 +9223,19 @@ client.entitlements().listFeatureUsage(
-
-**offset:** `Optional` — Page offset (default 0)
+**limit:** `Optional<Integer>` — Page limit (default 100)
-
+
+
+-
+
+**offset:** `Optional<Integer>` — Page offset (default 0)
+
+
+
+
@@ -9143,6 +9260,7 @@ client.entitlements().countFeatureUsage(
CountFeatureUsageRequest
.builder()
.companyId("company_id")
+ .includeUsageAggregation(true)
.q("q")
.withoutNegativeEntitlements(true)
.limit(1)
@@ -9163,7 +9281,7 @@ client.entitlements().countFeatureUsage(
-
-**companyId:** `Optional`
+**companyId:** `Optional<String>`
@@ -9171,7 +9289,7 @@ client.entitlements().countFeatureUsage(
-
-**companyKeys:** `Optional
@@ -9179,7 +9297,7 @@ client.entitlements().countFeatureUsage(
-
-**featureIds:** `Optional`
+**featureIds:** `Optional<String>`
@@ -9187,7 +9305,7 @@ client.entitlements().countFeatureUsage(
-
-**q:** `Optional`
+**includeUsageAggregation:** `Optional<Boolean>` — Include time-bucketed usage aggregation (today, this week, this month, billing period) for credit-based entitlements. Defaults to false for performance.
@@ -9195,7 +9313,7 @@ client.entitlements().countFeatureUsage(
-
-**withoutNegativeEntitlements:** `Optional`
+**q:** `Optional<String>`
@@ -9203,7 +9321,7 @@ client.entitlements().countFeatureUsage(
-
-**limit:** `Optional` — Page limit (default 100)
+**withoutNegativeEntitlements:** `Optional<Boolean>`
@@ -9211,7 +9329,15 @@ client.entitlements().countFeatureUsage(
-
-**offset:** `Optional` — Page offset (default 0)
+**limit:** `Optional<Integer>` — Page limit (default 100)
+
+
+
+
+
+-
+
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -9267,7 +9393,7 @@ client.entitlements().listFeatureUsers(
-
-**q:** `Optional`
+**q:** `Optional<String>`
@@ -9275,7 +9401,7 @@ client.entitlements().listFeatureUsers(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -9283,7 +9409,7 @@ client.entitlements().listFeatureUsers(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -9339,7 +9465,7 @@ client.entitlements().countFeatureUsers(
-
-**q:** `Optional`
+**q:** `Optional<String>`
@@ -9347,7 +9473,7 @@ client.entitlements().countFeatureUsers(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -9355,7 +9481,7 @@ client.entitlements().countFeatureUsers(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -9405,7 +9531,7 @@ client.entitlements().listPlanEntitlements(
-
-**featureId:** `Optional` — Filter plan entitlements by a single feature ID (starting with feat_)
+**featureId:** `Optional<String>` — Filter plan entitlements by a single feature ID (starting with feat_)
@@ -9413,7 +9539,7 @@ client.entitlements().listPlanEntitlements(
-
-**featureIds:** `Optional` — Filter plan entitlements by multiple feature IDs (starting with feat_)
+**featureIds:** `Optional<String>` — Filter plan entitlements by multiple feature IDs (starting with feat_)
@@ -9421,7 +9547,7 @@ client.entitlements().listPlanEntitlements(
-
-**ids:** `Optional` — Filter plan entitlements by multiple plan entitlement IDs (starting with pltl_)
+**ids:** `Optional<String>` — Filter plan entitlements by multiple plan entitlement IDs (starting with pltl_)
@@ -9429,7 +9555,7 @@ client.entitlements().listPlanEntitlements(
-
-**planId:** `Optional` — Filter plan entitlements by a single plan ID (starting with plan_)
+**planId:** `Optional<String>` — Filter plan entitlements by a single plan ID (starting with plan_)
@@ -9437,7 +9563,7 @@ client.entitlements().listPlanEntitlements(
-
-**planIds:** `Optional` — Filter plan entitlements by multiple plan IDs (starting with plan_)
+**planIds:** `Optional<String>` — Filter plan entitlements by multiple plan IDs (starting with plan_)
@@ -9445,7 +9571,7 @@ client.entitlements().listPlanEntitlements(
-
-**q:** `Optional` — Search for plan entitlements by feature or company name
+**q:** `Optional<String>` — Search for plan entitlements by feature or company name
@@ -9453,7 +9579,7 @@ client.entitlements().listPlanEntitlements(
-
-**withMeteredProducts:** `Optional` — Filter plan entitlements only with metered products
+**withMeteredProducts:** `Optional<Boolean>` — Filter plan entitlements only with metered products
@@ -9461,7 +9587,7 @@ client.entitlements().listPlanEntitlements(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -9469,7 +9595,7 @@ client.entitlements().listPlanEntitlements(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -9499,7 +9625,7 @@ client.entitlements().createPlanEntitlement(
.builder()
.featureId("feature_id")
.planId("plan_id")
- .valueType(CreatePlanEntitlementRequestBodyValueType.BOOLEAN)
+ .valueType(EntitlementValueType.BOOLEAN)
.build()
);
```
@@ -9516,7 +9642,7 @@ client.entitlements().createPlanEntitlement(
-
-**billingProductId:** `Optional`
+**billingProductId:** `Optional<String>`
@@ -9524,7 +9650,7 @@ client.entitlements().createPlanEntitlement(
-
-**billingThreshold:** `Optional`
+**billingThreshold:** `Optional<Integer>`
@@ -9532,7 +9658,7 @@ client.entitlements().createPlanEntitlement(
-
-**creditConsumptionRate:** `Optional`
+**creditConsumptionRate:** `Optional<Double>`
@@ -9540,7 +9666,7 @@ client.entitlements().createPlanEntitlement(
-
-**currency:** `Optional`
+**currency:** `Optional<String>`
@@ -9556,7 +9682,7 @@ client.entitlements().createPlanEntitlement(
-
-**metricPeriod:** `Optional`
+**metricPeriod:** `Optional<CreatePlanEntitlementRequestBodyMetricPeriod>`
@@ -9564,7 +9690,7 @@ client.entitlements().createPlanEntitlement(
-
-**metricPeriodMonthReset:** `Optional`
+**metricPeriodMonthReset:** `Optional<CreatePlanEntitlementRequestBodyMetricPeriodMonthReset>`
@@ -9572,7 +9698,7 @@ client.entitlements().createPlanEntitlement(
-
-**monthlyMeteredPriceId:** `Optional`
+**monthlyMeteredPriceId:** `Optional<String>`
@@ -9580,7 +9706,7 @@ client.entitlements().createPlanEntitlement(
-
-**monthlyPriceTiers:** `Optional
>`
+**monthlyPriceTiers:** `Optional<List<CreatePriceTierRequestBody>>`
@@ -9588,7 +9714,7 @@ client.entitlements().createPlanEntitlement(
-
-**monthlyUnitPrice:** `Optional`
+**monthlyUnitPrice:** `Optional<Integer>`
@@ -9596,7 +9722,7 @@ client.entitlements().createPlanEntitlement(
-
-**monthlyUnitPriceDecimal:** `Optional`
+**monthlyUnitPriceDecimal:** `Optional<String>`
@@ -9604,7 +9730,7 @@ client.entitlements().createPlanEntitlement(
-
-**overageBillingProductId:** `Optional`
+**overageBillingProductId:** `Optional<String>`
@@ -9620,7 +9746,7 @@ client.entitlements().createPlanEntitlement(
-
-**priceBehavior:** `Optional`
+**priceBehavior:** `Optional<EntitlementPriceBehavior>`
@@ -9628,7 +9754,7 @@ client.entitlements().createPlanEntitlement(
-
-**priceTiers:** `Optional
>` — Use MonthlyPriceTiers or YearlyPriceTiers instead
+**priceTiers:** `Optional<List<CreatePriceTierRequestBody>>` — Use MonthlyPriceTiers or YearlyPriceTiers instead
@@ -9636,7 +9762,7 @@ client.entitlements().createPlanEntitlement(
-
-**softLimit:** `Optional`
+**softLimit:** `Optional<Integer>`
@@ -9644,7 +9770,7 @@ client.entitlements().createPlanEntitlement(
-
-**tierMode:** `Optional`
+**tierMode:** `Optional<BillingTiersMode>`
@@ -9652,7 +9778,7 @@ client.entitlements().createPlanEntitlement(
-
-**valueBool:** `Optional`
+**valueBool:** `Optional<Boolean>`
@@ -9660,7 +9786,7 @@ client.entitlements().createPlanEntitlement(
-
-**valueCreditId:** `Optional`
+**valueCreditId:** `Optional<String>`
@@ -9668,7 +9794,7 @@ client.entitlements().createPlanEntitlement(
-
-**valueNumeric:** `Optional`
+**valueNumeric:** `Optional<Integer>`
@@ -9676,7 +9802,7 @@ client.entitlements().createPlanEntitlement(
-
-**valueTraitId:** `Optional`
+**valueTraitId:** `Optional<String>`
@@ -9684,7 +9810,7 @@ client.entitlements().createPlanEntitlement(
-
-**valueType:** `CreatePlanEntitlementRequestBodyValueType`
+**valueType:** `EntitlementValueType`
@@ -9692,7 +9818,7 @@ client.entitlements().createPlanEntitlement(
-
-**yearlyMeteredPriceId:** `Optional`
+**yearlyMeteredPriceId:** `Optional<String>`
@@ -9700,7 +9826,7 @@ client.entitlements().createPlanEntitlement(
-
-**yearlyPriceTiers:** `Optional
>`
+**yearlyPriceTiers:** `Optional<List<CreatePriceTierRequestBody>>`
@@ -9708,7 +9834,7 @@ client.entitlements().createPlanEntitlement(
-
-**yearlyUnitPrice:** `Optional`
+**yearlyUnitPrice:** `Optional<Integer>`
@@ -9716,7 +9842,7 @@ client.entitlements().createPlanEntitlement(
-
-**yearlyUnitPriceDecimal:** `Optional`
+**yearlyUnitPriceDecimal:** `Optional<String>`
@@ -9785,7 +9911,7 @@ client.entitlements().updatePlanEntitlement(
"plan_entitlement_id",
UpdatePlanEntitlementRequestBody
.builder()
- .valueType(UpdatePlanEntitlementRequestBodyValueType.BOOLEAN)
+ .valueType(EntitlementValueType.BOOLEAN)
.build()
);
```
@@ -9810,7 +9936,7 @@ client.entitlements().updatePlanEntitlement(
-
-**billingProductId:** `Optional`
+**billingProductId:** `Optional<String>`
@@ -9818,7 +9944,7 @@ client.entitlements().updatePlanEntitlement(
-
-**billingThreshold:** `Optional`
+**billingThreshold:** `Optional<Integer>`
@@ -9826,7 +9952,7 @@ client.entitlements().updatePlanEntitlement(
-
-**creditConsumptionRate:** `Optional`
+**creditConsumptionRate:** `Optional<Double>`
@@ -9834,7 +9960,7 @@ client.entitlements().updatePlanEntitlement(
-
-**currency:** `Optional`
+**currency:** `Optional<String>`
@@ -9842,7 +9968,7 @@ client.entitlements().updatePlanEntitlement(
-
-**metricPeriod:** `Optional`
+**metricPeriod:** `Optional<UpdatePlanEntitlementRequestBodyMetricPeriod>`
@@ -9850,7 +9976,7 @@ client.entitlements().updatePlanEntitlement(
-
-**metricPeriodMonthReset:** `Optional`
+**metricPeriodMonthReset:** `Optional<UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset>`
@@ -9858,7 +9984,7 @@ client.entitlements().updatePlanEntitlement(
-
-**monthlyMeteredPriceId:** `Optional`
+**monthlyMeteredPriceId:** `Optional<String>`
@@ -9866,7 +9992,7 @@ client.entitlements().updatePlanEntitlement(
-
-**monthlyPriceTiers:** `Optional
>`
+**monthlyPriceTiers:** `Optional<List<CreatePriceTierRequestBody>>`
@@ -9874,7 +10000,7 @@ client.entitlements().updatePlanEntitlement(
-
-**monthlyUnitPrice:** `Optional`
+**monthlyUnitPrice:** `Optional<Integer>`
@@ -9882,7 +10008,7 @@ client.entitlements().updatePlanEntitlement(
-
-**monthlyUnitPriceDecimal:** `Optional`
+**monthlyUnitPriceDecimal:** `Optional<String>`
@@ -9890,7 +10016,7 @@ client.entitlements().updatePlanEntitlement(
-
-**overageBillingProductId:** `Optional`
+**overageBillingProductId:** `Optional<String>`
@@ -9898,7 +10024,7 @@ client.entitlements().updatePlanEntitlement(
-
-**priceBehavior:** `Optional`
+**priceBehavior:** `Optional<EntitlementPriceBehavior>`
@@ -9906,7 +10032,7 @@ client.entitlements().updatePlanEntitlement(
-
-**priceTiers:** `Optional
>` — Use MonthlyPriceTiers or YearlyPriceTiers instead
+**priceTiers:** `Optional<List<CreatePriceTierRequestBody>>` — Use MonthlyPriceTiers or YearlyPriceTiers instead
@@ -9914,7 +10040,7 @@ client.entitlements().updatePlanEntitlement(
-
-**softLimit:** `Optional`
+**softLimit:** `Optional<Integer>`
@@ -9922,7 +10048,7 @@ client.entitlements().updatePlanEntitlement(
-
-**tierMode:** `Optional`
+**tierMode:** `Optional<BillingTiersMode>`
@@ -9930,7 +10056,7 @@ client.entitlements().updatePlanEntitlement(
-
-**valueBool:** `Optional`
+**valueBool:** `Optional<Boolean>`
@@ -9938,7 +10064,7 @@ client.entitlements().updatePlanEntitlement(
-
-**valueCreditId:** `Optional`
+**valueCreditId:** `Optional<String>`
@@ -9946,7 +10072,7 @@ client.entitlements().updatePlanEntitlement(
-
-**valueNumeric:** `Optional`
+**valueNumeric:** `Optional<Integer>`
@@ -9954,7 +10080,7 @@ client.entitlements().updatePlanEntitlement(
-
-**valueTraitId:** `Optional`
+**valueTraitId:** `Optional<String>`
@@ -9962,7 +10088,7 @@ client.entitlements().updatePlanEntitlement(
-
-**valueType:** `UpdatePlanEntitlementRequestBodyValueType`
+**valueType:** `EntitlementValueType`
@@ -9970,7 +10096,7 @@ client.entitlements().updatePlanEntitlement(
-
-**yearlyMeteredPriceId:** `Optional`
+**yearlyMeteredPriceId:** `Optional<String>`
@@ -9978,7 +10104,7 @@ client.entitlements().updatePlanEntitlement(
-
-**yearlyPriceTiers:** `Optional
>`
+**yearlyPriceTiers:** `Optional<List<CreatePriceTierRequestBody>>`
@@ -9986,7 +10112,7 @@ client.entitlements().updatePlanEntitlement(
-
-**yearlyUnitPrice:** `Optional`
+**yearlyUnitPrice:** `Optional<Integer>`
@@ -9994,7 +10120,7 @@ client.entitlements().updatePlanEntitlement(
-
-**yearlyUnitPriceDecimal:** `Optional`
+**yearlyUnitPriceDecimal:** `Optional<String>`
@@ -10084,7 +10210,23 @@ client.entitlements().countPlanEntitlements(
-
-**featureId:** `Optional` — Filter plan entitlements by a single feature ID (starting with feat_)
+**featureId:** `Optional<String>` — Filter plan entitlements by a single feature ID (starting with feat_)
+
+
+
+
+
+-
+
+**featureIds:** `Optional<String>` — Filter plan entitlements by multiple feature IDs (starting with feat_)
+
+
+
+
+
+-
+
+**ids:** `Optional<String>` — Filter plan entitlements by multiple plan entitlement IDs (starting with pltl_)
@@ -10092,7 +10234,7 @@ client.entitlements().countPlanEntitlements(
-
-**featureIds:** `Optional` — Filter plan entitlements by multiple feature IDs (starting with feat_)
+**planId:** `Optional<String>` — Filter plan entitlements by a single plan ID (starting with plan_)
@@ -10100,7 +10242,7 @@ client.entitlements().countPlanEntitlements(
-
-**ids:** `Optional` — Filter plan entitlements by multiple plan entitlement IDs (starting with pltl_)
+**planIds:** `Optional<String>` — Filter plan entitlements by multiple plan IDs (starting with plan_)
@@ -10108,7 +10250,7 @@ client.entitlements().countPlanEntitlements(
-
-**planId:** `Optional` — Filter plan entitlements by a single plan ID (starting with plan_)
+**q:** `Optional<String>` — Search for plan entitlements by feature or company name
@@ -10116,7 +10258,7 @@ client.entitlements().countPlanEntitlements(
-
-**planIds:** `Optional` — Filter plan entitlements by multiple plan IDs (starting with plan_)
+**withMeteredProducts:** `Optional<Boolean>` — Filter plan entitlements only with metered products
@@ -10124,7 +10266,7 @@ client.entitlements().countPlanEntitlements(
-
-**q:** `Optional` — Search for plan entitlements by feature or company name
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -10132,15 +10274,53 @@ client.entitlements().countPlanEntitlements(
-
-**withMeteredProducts:** `Optional` — Filter plan entitlements only with metered products
+**offset:** `Optional<Integer>` — Page offset (default 0)
+
+
+
+
+
+
+
+
+client.entitlements.duplicatePlanEntitlements(request) -> DuplicatePlanEntitlementsResponse
+
+-
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```java
+client.entitlements().duplicatePlanEntitlements(
+ DuplicatePlanEntitlementsRequestBody
+ .builder()
+ .sourcePlanId("source_plan_id")
+ .targetPlanId("target_plan_id")
+ .build()
+);
+```
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
-
-**limit:** `Optional` — Page limit (default 100)
+**sourcePlanId:** `String`
@@ -10148,7 +10328,7 @@ client.entitlements().countPlanEntitlements(
-
-**offset:** `Optional` — Page offset (default 0)
+**targetPlanId:** `String`
@@ -10197,7 +10377,7 @@ client.entitlements().getFeatureUsageByCompany(
-
-**keys:** `Map` — Key/value pairs
+**keys:** `Map<String, String>` — Key/value pairs
@@ -10254,7 +10434,7 @@ client.plans().updateCompanyPlans(
-
-**addOnIds:** `List`
+**addOnIds:** `List<String>`
@@ -10262,7 +10442,7 @@ client.plans().updateCompanyPlans(
-
-**basePlanId:** `Optional`
+**basePlanId:** `Optional<String>`
@@ -10295,11 +10475,9 @@ client.plans().listPlans(
.forInitialPlan(true)
.forTrialExpiryPlan(true)
.hasProductId(true)
- .planType(ListPlansRequestPlanType.PLAN)
+ .planType(PlanType.PLAN)
.q("q")
- .requiresPaymentMethod(true)
.withoutEntitlementFor("without_entitlement_for")
- .withoutProductId(true)
.withoutPaidProductId(true)
.limit(1)
.offset(1)
@@ -10319,23 +10497,7 @@ client.plans().listPlans(
-
-**companyId:** `Optional`
-
-
-
-
-
--
-
-**forFallbackPlan:** `Optional` — Filter for plans valid as fallback plans (not linked to billing)
-
-
-
-
-
--
-
-**forInitialPlan:** `Optional` — Filter for plans valid as initial plans (not linked to billing, free, or auto-cancelling trial)
+**companyId:** `Optional<String>`
@@ -10343,7 +10505,7 @@ client.plans().listPlans(
-
-**forTrialExpiryPlan:** `Optional` — Filter for plans valid as trial expiry plans (not linked to billing or free)
+**forFallbackPlan:** `Optional<Boolean>` — Filter for plans valid as fallback plans (not linked to billing)
@@ -10351,7 +10513,7 @@ client.plans().listPlans(
-
-**hasProductId:** `Optional` — Filter out plans that do not have a billing product ID
+**forInitialPlan:** `Optional<Boolean>` — Filter for plans valid as initial plans (not linked to billing, free, or auto-cancelling trial)
@@ -10359,7 +10521,7 @@ client.plans().listPlans(
-
-**ids:** `Optional`
+**forTrialExpiryPlan:** `Optional<Boolean>` — Filter for plans valid as trial expiry plans (not linked to billing or free)
@@ -10367,7 +10529,7 @@ client.plans().listPlans(
-
-**planType:** `Optional` — Filter by plan type
+**hasProductId:** `Optional<Boolean>` — Filter out plans that do not have a billing product ID
@@ -10375,7 +10537,7 @@ client.plans().listPlans(
-
-**q:** `Optional`
+**ids:** `Optional<String>`
@@ -10383,7 +10545,7 @@ client.plans().listPlans(
-
-**requiresPaymentMethod:** `Optional` — Filter for plans that require a payment method (inverse of ForInitialPlan)
+**planType:** `Optional<PlanType>` — Filter by plan type
@@ -10391,7 +10553,7 @@ client.plans().listPlans(
-
-**withoutEntitlementFor:** `Optional` — Filter out plans that already have a plan entitlement for the specified feature ID
+**q:** `Optional<String>`
@@ -10399,7 +10561,7 @@ client.plans().listPlans(
-
-**withoutProductId:** `Optional` — Filter out plans that have a billing product ID
+**withoutEntitlementFor:** `Optional<String>` — Filter out plans that already have a plan entitlement for the specified feature ID
@@ -10407,7 +10569,7 @@ client.plans().listPlans(
-
-**withoutPaidProductId:** `Optional` — Filter out plans that have a paid billing product ID
+**withoutPaidProductId:** `Optional<Boolean>` — Filter out plans that have a paid billing product ID
@@ -10415,7 +10577,7 @@ client.plans().listPlans(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -10423,7 +10585,7 @@ client.plans().listPlans(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -10453,7 +10615,7 @@ client.plans().createPlan(
.builder()
.description("description")
.name("name")
- .planType(CreatePlanRequestBodyPlanType.PLAN)
+ .planType(PlanType.PLAN)
.build()
);
```
@@ -10470,31 +10632,7 @@ client.plans().createPlan(
-
-**description:** `String`
-
-
-
-
-
--
-
-**icon:** `Optional`
-
-
-
-
-
--
-
-**name:** `String`
-
-
-
-
-
--
-
-**planType:** `CreatePlanRequestBodyPlanType`
+**request:** `CreatePlanRequestBody`
@@ -10588,23 +10726,7 @@ client.plans().updatePlan(
-
-**description:** `Optional`
-
-
-
-
-
--
-
-**icon:** `Optional`
-
-
-
-
-
--
-
-**name:** `String`
+**request:** `UpdatePlanRequestBody`
@@ -10673,7 +10795,7 @@ client.plans().upsertBillingProductPlan(
"plan_id",
UpsertBillingProductRequestBody
.builder()
- .chargeType(UpsertBillingProductRequestBodyChargeType.ONE_TIME)
+ .chargeType(ChargeType.FREE)
.isTrialable(true)
.build()
);
@@ -10699,87 +10821,7 @@ client.plans().upsertBillingProductPlan(
-
-**billingProductId:** `Optional`
-
-
-
-
-
--
-
-**chargeType:** `UpsertBillingProductRequestBodyChargeType`
-
-
-
-
-
--
-
-**currency:** `Optional`
-
-
-
-
-
--
-
-**isTrialable:** `Boolean`
-
-
-
-
-
--
-
-**monthlyPrice:** `Optional`
-
-
-
-
-
--
-
-**monthlyPriceId:** `Optional`
-
-
-
-
-
--
-
-**oneTimePrice:** `Optional`
-
-
-
-
-
--
-
-**oneTimePriceId:** `Optional`
-
-
-
-
-
--
-
-**trialDays:** `Optional`
-
-
-
-
-
--
-
-**yearlyPrice:** `Optional`
-
-
-
-
-
--
-
-**yearlyPriceId:** `Optional`
+**request:** `UpsertBillingProductRequestBody`
@@ -10812,11 +10854,9 @@ client.plans().countPlans(
.forInitialPlan(true)
.forTrialExpiryPlan(true)
.hasProductId(true)
- .planType(CountPlansRequestPlanType.PLAN)
+ .planType(PlanType.PLAN)
.q("q")
- .requiresPaymentMethod(true)
.withoutEntitlementFor("without_entitlement_for")
- .withoutProductId(true)
.withoutPaidProductId(true)
.limit(1)
.offset(1)
@@ -10836,23 +10876,7 @@ client.plans().countPlans(
-
-**companyId:** `Optional`
-
-
-
-
-
--
-
-**forFallbackPlan:** `Optional` — Filter for plans valid as fallback plans (not linked to billing)
-
-
-
-
-
--
-
-**forInitialPlan:** `Optional` — Filter for plans valid as initial plans (not linked to billing, free, or auto-cancelling trial)
+**companyId:** `Optional<String>`
@@ -10860,7 +10884,7 @@ client.plans().countPlans(
-
-**forTrialExpiryPlan:** `Optional` — Filter for plans valid as trial expiry plans (not linked to billing or free)
+**forFallbackPlan:** `Optional<Boolean>` — Filter for plans valid as fallback plans (not linked to billing)
@@ -10868,7 +10892,7 @@ client.plans().countPlans(
-
-**hasProductId:** `Optional` — Filter out plans that do not have a billing product ID
+**forInitialPlan:** `Optional<Boolean>` — Filter for plans valid as initial plans (not linked to billing, free, or auto-cancelling trial)
@@ -10876,7 +10900,7 @@ client.plans().countPlans(
-
-**ids:** `Optional`
+**forTrialExpiryPlan:** `Optional<Boolean>` — Filter for plans valid as trial expiry plans (not linked to billing or free)
@@ -10884,7 +10908,7 @@ client.plans().countPlans(
-
-**planType:** `Optional` — Filter by plan type
+**hasProductId:** `Optional<Boolean>` — Filter out plans that do not have a billing product ID
@@ -10892,7 +10916,7 @@ client.plans().countPlans(
-
-**q:** `Optional`
+**ids:** `Optional<String>`
@@ -10900,7 +10924,7 @@ client.plans().countPlans(
-
-**requiresPaymentMethod:** `Optional` — Filter for plans that require a payment method (inverse of ForInitialPlan)
+**planType:** `Optional<PlanType>` — Filter by plan type
@@ -10908,7 +10932,7 @@ client.plans().countPlans(
-
-**withoutEntitlementFor:** `Optional` — Filter out plans that already have a plan entitlement for the specified feature ID
+**q:** `Optional<String>`
@@ -10916,7 +10940,7 @@ client.plans().countPlans(
-
-**withoutProductId:** `Optional` — Filter out plans that have a billing product ID
+**withoutEntitlementFor:** `Optional<String>` — Filter out plans that already have a plan entitlement for the specified feature ID
@@ -10924,7 +10948,7 @@ client.plans().countPlans(
-
-**withoutPaidProductId:** `Optional` — Filter out plans that have a paid billing product ID
+**withoutPaidProductId:** `Optional<Boolean>` — Filter out plans that have a paid billing product ID
@@ -10932,7 +10956,7 @@ client.plans().countPlans(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -10940,7 +10964,7 @@ client.plans().countPlans(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -11033,7 +11057,7 @@ client.components().listComponents(
-
-**q:** `Optional`
+**q:** `Optional<String>`
@@ -11041,7 +11065,7 @@ client.components().listComponents(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -11049,7 +11073,7 @@ client.components().listComponents(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -11077,7 +11101,7 @@ client.components().listComponents(
client.components().createComponent(
CreateComponentRequestBody
.builder()
- .entityType(CreateComponentRequestBodyEntityType.ENTITLEMENT)
+ .entityType(ComponentEntityType.BILLING)
.name("name")
.build()
);
@@ -11095,7 +11119,7 @@ client.components().createComponent(
-
-**ast:** `Optional
@@ -11103,7 +11127,7 @@ client.components().createComponent(
-
-**entityType:** `CreateComponentRequestBodyEntityType`
+**entityType:** `ComponentEntityType`
@@ -11204,7 +11228,7 @@ client.components().updateComponent(
-
-**ast:** `Optional
@@ -11212,7 +11236,7 @@ client.components().updateComponent(
-
-**entityType:** `Optional`
+**entityType:** `Optional<ComponentEntityType>`
@@ -11220,7 +11244,7 @@ client.components().updateComponent(
-
-**name:** `Optional`
+**name:** `Optional<String>`
@@ -11228,7 +11252,7 @@ client.components().updateComponent(
-
-**state:** `Optional`
+**state:** `Optional<ComponentState>`
@@ -11315,7 +11339,7 @@ client.components().countComponents(
-
-**q:** `Optional`
+**q:** `Optional<String>`
@@ -11323,7 +11347,7 @@ client.components().countComponents(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -11331,7 +11355,7 @@ client.components().countComponents(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -11377,7 +11401,7 @@ client.components().previewComponentData(
-
-**companyId:** `Optional`
+**companyId:** `Optional<String>`
@@ -11385,7 +11409,7 @@ client.components().previewComponentData(
-
-**componentId:** `Optional`
+**componentId:** `Optional<String>`
@@ -11397,8 +11421,8 @@ client.components().previewComponentData(
-## crm
-client.crm.upsertDealLineItemAssociation(request) -> UpsertDealLineItemAssociationResponse
+## dataexports
+client.dataexports.createDataExport(request) -> CreateDataExportResponse
-
@@ -11411,11 +11435,12 @@ client.components().previewComponentData(
-
```java
-client.crm().upsertDealLineItemAssociation(
- CreateCrmDealLineItemAssociationRequestBody
+client.dataexports().createDataExport(
+ CreateDataExportRequestBody
.builder()
- .dealExternalId("deal_external_id")
- .lineItemExternalId("line_item_external_id")
+ .exportType("company-feature-usage")
+ .metadata("metadata")
+ .outputFileType("csv")
.build()
);
```
@@ -11432,7 +11457,15 @@ client.crm().upsertDealLineItemAssociation(
-
-**dealExternalId:** `String`
+**exportType:** `String`
+
+
+
+
+
+-
+
+**metadata:** `String`
@@ -11440,7 +11473,7 @@ client.crm().upsertDealLineItemAssociation(
-
-**lineItemExternalId:** `String`
+**outputFileType:** `String`
@@ -11452,7 +11485,7 @@ client.crm().upsertDealLineItemAssociation(
-client.crm.upsertLineItem(request) -> UpsertLineItemResponse
+client.dataexports.getDataExportArtifact(dataExportId) -> InputStream
-
@@ -11465,16 +11498,7 @@ client.crm().upsertDealLineItemAssociation(
-
```java
-client.crm().upsertLineItem(
- CreateCrmLineItemRequestBody
- .builder()
- .amount("amount")
- .interval("interval")
- .lineItemExternalId("line_item_external_id")
- .productExternalId("product_external_id")
- .quantity(1)
- .build()
-);
+client.dataexports().getDataExportArtifact("data_export_id");
```
@@ -11489,474 +11513,24 @@ client.crm().upsertLineItem(
-
-**amount:** `String`
-
-
-
-
-
--
-
-**discountPercentage:** `Optional`
+**dataExportId:** `String` — data_export_id
-
-
--
-
-**interval:** `String`
-
-
--
-**lineItemExternalId:** `String`
-
+
+## events
+client.events.createEventBatch(request) -> CreateEventBatchResponse
-
-**productExternalId:** `String`
-
-
-
-
-
--
-
-**quantity:** `Integer`
-
-
-
-
-
--
-
-**termMonth:** `Optional`
-
-
-
-
-
--
-
-**totalDiscount:** `Optional`
-
-
-
-
-
-
-
-
-
-
-
-client.crm.upsertCrmDeal(request) -> UpsertCrmDealResponse
-
--
-
-#### 🔌 Usage
-
-
--
-
-
--
-
-```java
-client.crm().upsertCrmDeal(
- CreateCrmDealRequestBody
- .builder()
- .crmCompanyKey("crm_company_key")
- .crmType("crm_type")
- .dealExternalId("deal_external_id")
- .build()
-);
-```
-
-
-
-
-
-#### ⚙️ Parameters
-
-
--
-
-
--
-
-**arr:** `Optional`
-
-
-
-
-
--
-
-**crmCompanyId:** `Optional`
-
-
-
-
-
--
-
-**crmCompanyKey:** `String`
-
-
-
-
-
--
-
-**crmProductId:** `Optional`
-
-
-
-
-
--
-
-**crmType:** `String`
-
-
-
-
-
--
-
-**dealExternalId:** `String`
-
-
-
-
-
--
-
-**dealName:** `Optional`
-
-
-
-
-
--
-
-**dealStage:** `Optional`
-
-
-
-
-
--
-
-**mrr:** `Optional`
-
-
-
-
-
-
-
-
-
-
-
-client.crm.listCrmProducts() -> ListCrmProductsResponse
-
--
-
-#### 🔌 Usage
-
-
--
-
-
--
-
-```java
-client.crm().listCrmProducts(
- ListCrmProductsRequest
- .builder()
- .name("name")
- .limit(1)
- .offset(1)
- .build()
-);
-```
-
-
-
-
-
-#### ⚙️ Parameters
-
-
--
-
-
--
-
-**ids:** `Optional`
-
-
-
-
-
--
-
-**name:** `Optional`
-
-
-
-
-
--
-
-**limit:** `Optional` — Page limit (default 100)
-
-
-
-
-
--
-
-**offset:** `Optional` — Page offset (default 0)
-
-
-
-
-
-
-
-
-
-
-
-client.crm.upsertCrmProduct(request) -> UpsertCrmProductResponse
-
--
-
-#### 🔌 Usage
-
-
--
-
-
--
-
-```java
-client.crm().upsertCrmProduct(
- CreateCrmProductRequestBody
- .builder()
- .currency("currency")
- .description("description")
- .externalId("external_id")
- .interval("interval")
- .name("name")
- .price("price")
- .quantity(1)
- .sku("sku")
- .build()
-);
-```
-
-
-
-
-
-#### ⚙️ Parameters
-
-
--
-
-
--
-
-**currency:** `String`
-
-
-
-
-
--
-
-**description:** `String`
-
-
-
-
-
--
-
-**externalId:** `String`
-
-
-
-
-
--
-
-**interval:** `String`
-
-
-
-
-
--
-
-**name:** `String`
-
-
-
-
-
--
-
-**price:** `String`
-
-
-
-
-
--
-
-**quantity:** `Integer`
-
-
-
-
-
--
-
-**sku:** `String`
-
-
-
-
-
-
-
-
-
-
-
-## dataexports
-client.dataexports.createDataExport(request) -> CreateDataExportResponse
-
--
-
-#### 🔌 Usage
-
-
--
-
-
--
-
-```java
-client.dataexports().createDataExport(
- CreateDataExportRequestBody
- .builder()
- .exportType("company-feature-usage")
- .metadata("metadata")
- .outputFileType("csv")
- .build()
-);
-```
-
-
-
-
-
-#### ⚙️ Parameters
-
-
--
-
-
--
-
-**exportType:** `String`
-
-
-
-
-
--
-
-**metadata:** `String`
-
-
-
-
-
--
-
-**outputFileType:** `String`
-
-
-
-
-
-
-
-
-
-
-
-client.dataexports.getDataExportArtifact(dataExportId) -> InputStream
-
--
-
-#### 🔌 Usage
-
-
--
-
-
--
-
-```java
-client.dataexports().getDataExportArtifact("data_export_id");
-```
-
-
-
-
-
-#### ⚙️ Parameters
-
-
--
-
-
--
-
-**dataExportId:** `String` — data_export_id
-
-
-
-
-
-
-
-
-
-
-
-## events
-client.events.createEventBatch(request) -> CreateEventBatchResponse
-
--
-
-#### 🔌 Usage
+#### 🔌 Usage
-
@@ -11972,7 +11546,7 @@ client.events().createEventBatch(
Arrays.asList(
CreateEventRequestBody
.builder()
- .eventType(CreateEventRequestBodyEventType.IDENTIFY)
+ .eventType(EventType.FLAG_CHECK)
.build()
)
)
@@ -11992,7 +11566,7 @@ client.events().createEventBatch(
-
-**events:** `List`
+**events:** `List<CreateEventRequestBody>`
@@ -12039,7 +11613,7 @@ client.events().getEventSummaries(
-
-**q:** `Optional`
+**q:** `Optional<String>`
@@ -12047,7 +11621,7 @@ client.events().getEventSummaries(
-
-**eventSubtypes:** `Optional`
+**eventSubtypes:** `Optional<String>`
@@ -12055,7 +11629,7 @@ client.events().getEventSummaries(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -12063,7 +11637,7 @@ client.events().getEventSummaries(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -12113,7 +11687,7 @@ client.events().listEvents(
-
-**companyId:** `Optional`
+**companyId:** `Optional<String>`
@@ -12121,7 +11695,7 @@ client.events().listEvents(
-
-**eventSubtype:** `Optional`
+**eventSubtype:** `Optional<String>`
@@ -12129,7 +11703,7 @@ client.events().listEvents(
-
-**eventTypes:** `Optional`
+**eventTypes:** `Optional<EventType>`
@@ -12137,7 +11711,7 @@ client.events().listEvents(
-
-**flagId:** `Optional`
+**flagId:** `Optional<String>`
@@ -12145,7 +11719,7 @@ client.events().listEvents(
-
-**userId:** `Optional`
+**userId:** `Optional<String>`
@@ -12153,7 +11727,7 @@ client.events().listEvents(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -12161,7 +11735,7 @@ client.events().listEvents(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -12189,7 +11763,7 @@ client.events().listEvents(
client.events().createEvent(
CreateEventRequestBody
.builder()
- .eventType(CreateEventRequestBodyEventType.IDENTIFY)
+ .eventType(EventType.FLAG_CHECK)
.build()
);
```
@@ -12322,7 +11896,7 @@ client.features().listFeatures(
-
-**ids:** `Optional`
+**ids:** `Optional<String>`
@@ -12330,7 +11904,7 @@ client.features().listFeatures(
-
-**q:** `Optional` — Search by feature name or ID
+**q:** `Optional<String>` — Search by feature name or ID
@@ -12338,7 +11912,7 @@ client.features().listFeatures(
-
-**withoutCompanyOverrideFor:** `Optional` — Filter out features that already have a company override for the specified company ID
+**withoutCompanyOverrideFor:** `Optional<String>` — Filter out features that already have a company override for the specified company ID
@@ -12346,7 +11920,7 @@ client.features().listFeatures(
-
-**withoutPlanEntitlementFor:** `Optional` — Filter out features that already have a plan entitlement for the specified plan ID
+**withoutPlanEntitlementFor:** `Optional<String>` — Filter out features that already have a plan entitlement for the specified plan ID
@@ -12354,7 +11928,7 @@ client.features().listFeatures(
-
-**featureType:** `Optional` — Filter by one or more feature types (boolean, event, trait)
+**featureType:** `Optional<FeatureType>` — Filter by one or more feature types (boolean, event, trait)
@@ -12362,7 +11936,7 @@ client.features().listFeatures(
-
-**booleanRequireEvent:** `Optional` — Only return boolean features if there is an associated event. Automatically includes boolean in the feature types filter.
+**booleanRequireEvent:** `Optional<Boolean>` — Only return boolean features if there is an associated event. Automatically includes boolean in the feature types filter.
@@ -12370,7 +11944,7 @@ client.features().listFeatures(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -12378,7 +11952,7 @@ client.features().listFeatures(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -12407,7 +11981,7 @@ client.features().createFeature(
CreateFeatureRequestBody
.builder()
.description("description")
- .featureType(CreateFeatureRequestBodyFeatureType.BOOLEAN)
+ .featureType(FeatureType.BOOLEAN)
.name("name")
.build()
);
@@ -12433,7 +12007,7 @@ client.features().createFeature(
-
-**eventSubtype:** `Optional`
+**eventSubtype:** `Optional<String>`
@@ -12441,7 +12015,7 @@ client.features().createFeature(
-
-**featureType:** `CreateFeatureRequestBodyFeatureType`
+**featureType:** `FeatureType`
@@ -12449,7 +12023,7 @@ client.features().createFeature(
-
-**flag:** `Optional`
+**flag:** `Optional<CreateOrUpdateFlagRequestBody>`
@@ -12457,7 +12031,7 @@ client.features().createFeature(
-
-**icon:** `Optional`
+**icon:** `Optional<String>`
@@ -12465,7 +12039,7 @@ client.features().createFeature(
-
-**lifecyclePhase:** `Optional`
+**lifecyclePhase:** `Optional<FeatureLifecyclePhase>`
@@ -12473,7 +12047,7 @@ client.features().createFeature(
-
-**maintainerId:** `Optional`
+**maintainerId:** `Optional<String>`
@@ -12489,7 +12063,7 @@ client.features().createFeature(
-
-**pluralName:** `Optional`
+**pluralName:** `Optional<String>`
@@ -12497,7 +12071,7 @@ client.features().createFeature(
-
-**singularName:** `Optional`
+**singularName:** `Optional<String>`
@@ -12505,7 +12079,7 @@ client.features().createFeature(
-
-**traitId:** `Optional`
+**traitId:** `Optional<String>`
@@ -12598,7 +12172,7 @@ client.features().updateFeature(
-
-**description:** `Optional`
+**description:** `Optional<String>`
@@ -12606,7 +12180,7 @@ client.features().updateFeature(
-
-**eventSubtype:** `Optional`
+**eventSubtype:** `Optional<String>`
@@ -12614,7 +12188,7 @@ client.features().updateFeature(
-
-**featureType:** `Optional`
+**featureType:** `Optional<FeatureType>`
@@ -12622,7 +12196,7 @@ client.features().updateFeature(
-
-**flag:** `Optional`
+**flag:** `Optional<CreateOrUpdateFlagRequestBody>`
@@ -12630,7 +12204,7 @@ client.features().updateFeature(
-
-**icon:** `Optional`
+**icon:** `Optional<String>`
@@ -12638,7 +12212,7 @@ client.features().updateFeature(
-
-**lifecyclePhase:** `Optional`
+**lifecyclePhase:** `Optional<FeatureLifecyclePhase>`
@@ -12646,7 +12220,7 @@ client.features().updateFeature(
-
-**maintainerId:** `Optional`
+**maintainerId:** `Optional<String>`
@@ -12654,7 +12228,7 @@ client.features().updateFeature(
-
-**name:** `Optional`
+**name:** `Optional<String>`
@@ -12662,7 +12236,7 @@ client.features().updateFeature(
-
-**pluralName:** `Optional`
+**pluralName:** `Optional<String>`
@@ -12670,7 +12244,7 @@ client.features().updateFeature(
-
-**singularName:** `Optional`
+**singularName:** `Optional<String>`
@@ -12678,7 +12252,7 @@ client.features().updateFeature(
-
-**traitId:** `Optional`
+**traitId:** `Optional<String>`
@@ -12768,7 +12342,7 @@ client.features().countFeatures(
-
-**ids:** `Optional`
+**ids:** `Optional<String>`
@@ -12776,7 +12350,7 @@ client.features().countFeatures(
-
-**q:** `Optional` — Search by feature name or ID
+**q:** `Optional<String>` — Search by feature name or ID
@@ -12784,7 +12358,7 @@ client.features().countFeatures(
-
-**withoutCompanyOverrideFor:** `Optional` — Filter out features that already have a company override for the specified company ID
+**withoutCompanyOverrideFor:** `Optional<String>` — Filter out features that already have a company override for the specified company ID
@@ -12792,7 +12366,7 @@ client.features().countFeatures(
-
-**withoutPlanEntitlementFor:** `Optional` — Filter out features that already have a plan entitlement for the specified plan ID
+**withoutPlanEntitlementFor:** `Optional<String>` — Filter out features that already have a plan entitlement for the specified plan ID
@@ -12800,7 +12374,7 @@ client.features().countFeatures(
-
-**featureType:** `Optional` — Filter by one or more feature types (boolean, event, trait)
+**featureType:** `Optional<FeatureType>` — Filter by one or more feature types (boolean, event, trait)
@@ -12808,7 +12382,7 @@ client.features().countFeatures(
-
-**booleanRequireEvent:** `Optional` — Only return boolean features if there is an associated event. Automatically includes boolean in the feature types filter.
+**booleanRequireEvent:** `Optional<Boolean>` — Only return boolean features if there is an associated event. Automatically includes boolean in the feature types filter.
@@ -12816,7 +12390,7 @@ client.features().countFeatures(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -12824,7 +12398,7 @@ client.features().countFeatures(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -12872,7 +12446,7 @@ client.features().listFlags(
-
-**featureId:** `Optional`
+**featureId:** `Optional<String>`
@@ -12880,7 +12454,7 @@ client.features().listFlags(
-
-**ids:** `Optional`
+**ids:** `Optional<String>`
@@ -12888,7 +12462,7 @@ client.features().listFlags(
-
-**q:** `Optional` — Search by flag name, key, or ID
+**q:** `Optional<String>` — Search by flag name, key, or ID
@@ -12896,7 +12470,7 @@ client.features().listFlags(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -12904,7 +12478,7 @@ client.features().listFlags(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -12963,13 +12537,213 @@ client.features().createFlag(
-
-
-client.features.getFlag(flagId) -> GetFlagResponse
-
--
+
+
+client.features.getFlag(flagId) -> GetFlagResponse
+
+-
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```java
+client.features().getFlag("flag_id");
+```
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**flagId:** `String` — flag_id
+
+
+
+
+
+
+
+
+
+
+
+client.features.updateFlag(flagId, request) -> UpdateFlagResponse
+
+-
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```java
+client.features().updateFlag(
+ "flag_id",
+ CreateFlagRequestBody
+ .builder()
+ .defaultValue(true)
+ .description("description")
+ .flagType("boolean")
+ .key("key")
+ .name("name")
+ .build()
+);
+```
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**flagId:** `String` — flag_id
+
+
+
+
+
+-
+
+**request:** `CreateFlagRequestBody`
+
+
+
+
+
+
+
+
+
+
+
+client.features.deleteFlag(flagId) -> DeleteFlagResponse
+
+-
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```java
+client.features().deleteFlag("flag_id");
+```
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**flagId:** `String` — flag_id
+
+
+
+
+
+
+
+
+
+
+
+client.features.updateFlagRules(flagId, request) -> UpdateFlagRulesResponse
+
+-
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```java
+client.features().updateFlagRules(
+ "flag_id",
+ UpdateFlagRulesRequestBody
+ .builder()
+ .rules(
+ Arrays.asList(
+ CreateOrUpdateRuleRequestBody
+ .builder()
+ .conditionGroups(
+ Arrays.asList(
+ CreateOrUpdateConditionGroupRequestBody
+ .builder()
+ .conditions(
+ Arrays.asList(
+ CreateOrUpdateConditionRequestBody
+ .builder()
+ .conditionType(CreateOrUpdateConditionRequestBodyConditionType.COMPANY)
+ .operator(CreateOrUpdateConditionRequestBodyOperator.EQ)
+ .resourceIds(
+ Arrays.asList("resource_ids")
+ )
+ .build()
+ )
+ )
+ .build()
+ )
+ )
+ .conditions(
+ Arrays.asList(
+ CreateOrUpdateConditionRequestBody
+ .builder()
+ .conditionType(CreateOrUpdateConditionRequestBodyConditionType.COMPANY)
+ .operator(CreateOrUpdateConditionRequestBodyOperator.EQ)
+ .resourceIds(
+ Arrays.asList("resource_ids")
+ )
+ .build()
+ )
+ )
+ .name("name")
+ .priority(1)
+ .value(true)
+ .build()
+ )
+ )
+ .build()
+);
+```
+
+
+
+
-#### 🔌 Usage
+#### ⚙️ Parameters
-
@@ -12977,23 +12751,15 @@ client.features().createFlag(
-
-```java
-client.features().getFlag("flag_id");
-```
-
-
+**flagId:** `String` — flag_id
+
-#### ⚙️ Parameters
-
-
--
-
-
-**flagId:** `String` — flag_id
+**rules:** `List<CreateOrUpdateRuleRequestBody>`
@@ -13005,7 +12771,7 @@ client.features().getFlag("flag_id");
-client.features.updateFlag(flagId, request) -> UpdateFlagResponse
+client.features.checkFlag(key, request) -> CheckFlagResponse
-
@@ -13018,15 +12784,10 @@ client.features().getFlag("flag_id");
-
```java
-client.features().updateFlag(
- "flag_id",
- CreateFlagRequestBody
+client.features().checkFlag(
+ "key",
+ CheckFlagRequestBody
.builder()
- .defaultValue(true)
- .description("description")
- .flagType("boolean")
- .key("key")
- .name("name")
.build()
);
```
@@ -13043,7 +12804,7 @@ client.features().updateFlag(
-
-**flagId:** `String` — flag_id
+**key:** `String` — key
@@ -13051,7 +12812,7 @@ client.features().updateFlag(
-
-**request:** `CreateFlagRequestBody`
+**request:** `CheckFlagRequestBody`
@@ -13063,7 +12824,7 @@ client.features().updateFlag(
-client.features.deleteFlag(flagId) -> DeleteFlagResponse
+client.features.checkFlags(request) -> CheckFlagsResponse
-
@@ -13076,7 +12837,11 @@ client.features().updateFlag(
-
```java
-client.features().deleteFlag("flag_id");
+client.features().checkFlags(
+ CheckFlagRequestBody
+ .builder()
+ .build()
+);
```
@@ -13091,7 +12856,7 @@ client.features().deleteFlag("flag_id");
-
-**flagId:** `String` — flag_id
+**request:** `CheckFlagRequestBody`
@@ -13103,7 +12868,7 @@ client.features().deleteFlag("flag_id");
-client.features.updateFlagRules(flagId, request) -> UpdateFlagRulesResponse
+client.features.checkFlagsBulk(request) -> CheckFlagsBulkResponse
-
@@ -13116,48 +12881,13 @@ client.features().deleteFlag("flag_id");
-
```java
-client.features().updateFlagRules(
- "flag_id",
- UpdateFlagRulesRequestBody
+client.features().checkFlagsBulk(
+ CheckFlagsBulkRequestBody
.builder()
- .rules(
+ .contexts(
Arrays.asList(
- CreateOrUpdateRuleRequestBody
+ CheckFlagRequestBody
.builder()
- .conditionGroups(
- Arrays.asList(
- CreateOrUpdateConditionGroupRequestBody
- .builder()
- .conditions(
- Arrays.asList(
- CreateOrUpdateConditionRequestBody
- .builder()
- .conditionType(CreateOrUpdateConditionRequestBodyConditionType.COMPANY)
- .operator(CreateOrUpdateConditionRequestBodyOperator.EQ)
- .resourceIds(
- Arrays.asList("resource_ids")
- )
- .build()
- )
- )
- .build()
- )
- )
- .conditions(
- Arrays.asList(
- CreateOrUpdateConditionRequestBody
- .builder()
- .conditionType(CreateOrUpdateConditionRequestBodyConditionType.COMPANY)
- .operator(CreateOrUpdateConditionRequestBodyOperator.EQ)
- .resourceIds(
- Arrays.asList("resource_ids")
- )
- .build()
- )
- )
- .name("name")
- .priority(1)
- .value(true)
.build()
)
)
@@ -13177,15 +12907,7 @@ client.features().updateFlagRules(
-
-**flagId:** `String` — flag_id
-
-
-
-
-
--
-
-**rules:** `List`
+**contexts:** `List<CheckFlagRequestBody>`
@@ -13197,7 +12919,7 @@ client.features().updateFlagRules(
-client.features.checkFlag(key, request) -> CheckFlagResponse
+client.features.countFlags() -> CountFlagsResponse
-
@@ -13210,10 +12932,13 @@ client.features().updateFlagRules(
-
```java
-client.features().checkFlag(
- "key",
- CheckFlagRequestBody
+client.features().countFlags(
+ CountFlagsRequest
.builder()
+ .featureId("feature_id")
+ .q("q")
+ .limit(1)
+ .offset(1)
.build()
);
```
@@ -13230,7 +12955,7 @@ client.features().checkFlag(
-
-**key:** `String` — key
+**featureId:** `Optional<String>`
@@ -13238,7 +12963,31 @@ client.features().checkFlag(
-
-**request:** `CheckFlagRequestBody`
+**ids:** `Optional<String>`
+
+
+
+
+
+-
+
+**q:** `Optional<String>` — Search by flag name, key, or ID
+
+
+
+
+
+-
+
+**limit:** `Optional<Integer>` — Page limit (default 100)
+
+
+
+
+
+-
+
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -13250,7 +12999,8 @@ client.features().checkFlag(
-client.features.checkFlags(request) -> CheckFlagsResponse
+## planbundle
+client.planbundle.createPlanBundle(request) -> CreatePlanBundleResponse
-
@@ -13263,9 +13013,17 @@ client.features().checkFlag(
-
```java
-client.features().checkFlags(
- CheckFlagRequestBody
+client.planbundle().createPlanBundle(
+ CreatePlanBundleRequestBody
.builder()
+ .entitlements(
+ Arrays.asList(
+ PlanBundleEntitlementRequestBody
+ .builder()
+ .action(PlanBundleAction.CREATE)
+ .build()
+ )
+ )
.build()
);
```
@@ -13282,7 +13040,39 @@ client.features().checkFlags(
-
-**request:** `CheckFlagRequestBody`
+**billingProduct:** `Optional<UpsertBillingProductRequestBody>`
+
+
+
+
+
+-
+
+**creditGrants:** `Optional<List<PlanBundleCreditGrantRequestBody>>`
+
+
+
+
+
+-
+
+**entitlements:** `List<PlanBundleEntitlementRequestBody>`
+
+
+
+
+
+-
+
+**plan:** `Optional<CreatePlanRequestBody>`
+
+
+
+
+
+-
+
+**traits:** `Optional<List<UpdatePlanTraitTraitRequestBody>>`
@@ -13294,7 +13084,7 @@ client.features().checkFlags(
-client.features.countFlags() -> CountFlagsResponse
+client.planbundle.updatePlanBundle(planBundleId, request) -> UpdatePlanBundleResponse
-
@@ -13307,13 +13097,18 @@ client.features().checkFlags(
-
```java
-client.features().countFlags(
- CountFlagsRequest
+client.planbundle().updatePlanBundle(
+ "plan_bundle_id",
+ UpdatePlanBundleRequestBody
.builder()
- .featureId("feature_id")
- .q("q")
- .limit(1)
- .offset(1)
+ .entitlements(
+ Arrays.asList(
+ PlanBundleEntitlementRequestBody
+ .builder()
+ .action(PlanBundleAction.CREATE)
+ .build()
+ )
+ )
.build()
);
```
@@ -13330,7 +13125,15 @@ client.features().countFlags(
-
-**featureId:** `Optional`
+**planBundleId:** `String` — plan_bundle_id
+
+
+
+
+
+-
+
+**billingProduct:** `Optional<UpsertBillingProductRequestBody>`
@@ -13338,7 +13141,7 @@ client.features().countFlags(
-
-**ids:** `Optional`
+**creditGrants:** `Optional<List<PlanBundleCreditGrantRequestBody>>`
@@ -13346,7 +13149,7 @@ client.features().countFlags(
-
-**q:** `Optional` — Search by flag name, key, or ID
+**entitlements:** `List<PlanBundleEntitlementRequestBody>`
@@ -13354,7 +13157,7 @@ client.features().countFlags(
-
-**limit:** `Optional` — Page limit (default 100)
+**plan:** `Optional<UpdatePlanRequestBody>`
@@ -13362,7 +13165,7 @@ client.features().countFlags(
-
-**offset:** `Optional` — Page offset (default 0)
+**traits:** `Optional<List<UpdatePlanTraitTraitRequestBody>>`
@@ -13448,10 +13251,13 @@ client.plangroups().createPlanGroup(
)
)
.preventDowngradesWhenOverLimit(true)
+ .preventSelfServiceDowngrade(true)
+ .prorationBehavior(ProrationBehavior.CREATE_PRORATIONS)
+ .showAsMonthlyPrices(true)
.showCredits(true)
.showPeriodToggle(true)
.showZeroPriceAsFree(true)
- .syncCustomerBillingDetailsForTax(true)
+ .syncCustomerBillingDetails(true)
.build()
);
```
@@ -13468,7 +13274,7 @@ client.plangroups().createPlanGroup(
-
-**addOnCompatibilities:** `Optional
>`
+**addOnCompatibilities:** `Optional<List<CompatiblePlans>>`
@@ -13476,7 +13282,7 @@ client.plangroups().createPlanGroup(
-
-**addOnIds:** `List` — Use OrderedAddOns instead
+**addOnIds:** `List<String>` — Use OrderedAddOns instead
@@ -13508,7 +13314,7 @@ client.plangroups().createPlanGroup(
-
-**customPlanConfig:** `Optional`
+**customPlanConfig:** `Optional<CustomPlanConfig>`
@@ -13516,7 +13322,7 @@ client.plangroups().createPlanGroup(
-
-**customPlanId:** `Optional`
+**customPlanId:** `Optional<String>`
@@ -13532,7 +13338,7 @@ client.plangroups().createPlanGroup(
-
-**fallbackPlanId:** `Optional`
+**fallbackPlanId:** `Optional<String>`
@@ -13540,7 +13346,7 @@ client.plangroups().createPlanGroup(
-
-**initialPlanId:** `Optional`
+**initialPlanId:** `Optional<String>`
@@ -13548,7 +13354,7 @@ client.plangroups().createPlanGroup(
-
-**initialPlanPriceId:** `Optional`
+**initialPlanPriceId:** `Optional<String>`
@@ -13556,7 +13362,7 @@ client.plangroups().createPlanGroup(
-
-**orderedAddOns:** `List`
+**orderedAddOns:** `List<OrderedPlansInGroup>`
@@ -13564,7 +13370,7 @@ client.plangroups().createPlanGroup(
-
-**orderedBundleList:** `List`
+**orderedBundleList:** `List<PlanGroupBundleOrder>`
@@ -13572,7 +13378,7 @@ client.plangroups().createPlanGroup(
-
-**orderedPlans:** `List`
+**orderedPlans:** `List<OrderedPlansInGroup>`
@@ -13588,6 +13394,46 @@ client.plangroups().createPlanGroup(
-
+**preventSelfServiceDowngrade:** `Boolean`
+
+
+
+
+
+-
+
+**preventSelfServiceDowngradeButtonText:** `Optional<String>`
+
+
+
+
+
+-
+
+**preventSelfServiceDowngradeUrl:** `Optional<String>`
+
+
+
+
+
+-
+
+**prorationBehavior:** `ProrationBehavior`
+
+
+
+
+
+-
+
+**showAsMonthlyPrices:** `Boolean`
+
+
+
+
+
+-
+
**showCredits:** `Boolean`
@@ -13612,7 +13458,7 @@ client.plangroups().createPlanGroup(
-
-**syncCustomerBillingDetailsForTax:** `Boolean`
+**syncCustomerBillingDetails:** `Boolean`
@@ -13620,7 +13466,7 @@ client.plangroups().createPlanGroup(
-
-**trialDays:** `Optional`
+**trialDays:** `Optional<Integer>`
@@ -13628,7 +13474,7 @@ client.plangroups().createPlanGroup(
-
-**trialExpiryPlanId:** `Optional`
+**trialExpiryPlanId:** `Optional<String>`
@@ -13636,7 +13482,7 @@ client.plangroups().createPlanGroup(
-
-**trialExpiryPlanPriceId:** `Optional`
+**trialExpiryPlanPriceId:** `Optional<String>`
@@ -13644,7 +13490,7 @@ client.plangroups().createPlanGroup(
-
-**trialPaymentMethodRequired:** `Optional`
+**trialPaymentMethodRequired:** `Optional<Boolean>`
@@ -13705,10 +13551,13 @@ client.plangroups().updatePlanGroup(
)
)
.preventDowngradesWhenOverLimit(true)
+ .preventSelfServiceDowngrade(true)
+ .prorationBehavior(ProrationBehavior.CREATE_PRORATIONS)
+ .showAsMonthlyPrices(true)
.showCredits(true)
.showPeriodToggle(true)
.showZeroPriceAsFree(true)
- .syncCustomerBillingDetailsForTax(true)
+ .syncCustomerBillingDetails(true)
.build()
);
```
@@ -13733,7 +13582,7 @@ client.plangroups().updatePlanGroup(
-
-**addOnCompatibilities:** `Optional
>`
+**addOnCompatibilities:** `Optional<List<CompatiblePlans>>`
@@ -13741,7 +13590,7 @@ client.plangroups().updatePlanGroup(
-
-**addOnIds:** `List` — Use OrderedAddOns instead
+**addOnIds:** `List<String>` — Use OrderedAddOns instead
@@ -13773,7 +13622,7 @@ client.plangroups().updatePlanGroup(
-
-**customPlanConfig:** `Optional`
+**customPlanConfig:** `Optional<CustomPlanConfig>`
@@ -13781,7 +13630,7 @@ client.plangroups().updatePlanGroup(
-
-**customPlanId:** `Optional`
+**customPlanId:** `Optional<String>`
@@ -13797,7 +13646,7 @@ client.plangroups().updatePlanGroup(
-
-**fallbackPlanId:** `Optional`
+**fallbackPlanId:** `Optional<String>`
@@ -13805,7 +13654,7 @@ client.plangroups().updatePlanGroup(
-
-**initialPlanId:** `Optional`
+**initialPlanId:** `Optional<String>`
@@ -13813,7 +13662,7 @@ client.plangroups().updatePlanGroup(
-
-**initialPlanPriceId:** `Optional`
+**initialPlanPriceId:** `Optional<String>`
@@ -13821,7 +13670,7 @@ client.plangroups().updatePlanGroup(
-
-**orderedAddOns:** `List`
+**orderedAddOns:** `List<OrderedPlansInGroup>`
@@ -13829,7 +13678,7 @@ client.plangroups().updatePlanGroup(
-
-**orderedBundleList:** `List`
+**orderedBundleList:** `List<PlanGroupBundleOrder>`
@@ -13837,7 +13686,7 @@ client.plangroups().updatePlanGroup(
-
-**orderedPlans:** `List`
+**orderedPlans:** `List<OrderedPlansInGroup>`
@@ -13853,6 +13702,46 @@ client.plangroups().updatePlanGroup(
-
+**preventSelfServiceDowngrade:** `Boolean`
+
+
+
+
+
+-
+
+**preventSelfServiceDowngradeButtonText:** `Optional<String>`
+
+
+
+
+
+-
+
+**preventSelfServiceDowngradeUrl:** `Optional<String>`
+
+
+
+
+
+-
+
+**prorationBehavior:** `ProrationBehavior`
+
+
+
+
+
+-
+
+**showAsMonthlyPrices:** `Boolean`
+
+
+
+
+
+-
+
**showCredits:** `Boolean`
@@ -13877,7 +13766,7 @@ client.plangroups().updatePlanGroup(
-
-**syncCustomerBillingDetailsForTax:** `Boolean`
+**syncCustomerBillingDetails:** `Boolean`
@@ -13885,7 +13774,7 @@ client.plangroups().updatePlanGroup(
-
-**trialDays:** `Optional`
+**trialDays:** `Optional<Integer>`
@@ -13893,7 +13782,7 @@ client.plangroups().updatePlanGroup(
-
-**trialExpiryPlanId:** `Optional`
+**trialExpiryPlanId:** `Optional<String>`
@@ -13901,7 +13790,7 @@ client.plangroups().updatePlanGroup(
-
-**trialExpiryPlanPriceId:** `Optional`
+**trialExpiryPlanPriceId:** `Optional<String>`
@@ -13909,7 +13798,7 @@ client.plangroups().updatePlanGroup(
-
-**trialPaymentMethodRequired:** `Optional`
+**trialPaymentMethodRequired:** `Optional<Boolean>`
@@ -13960,7 +13849,7 @@ client.accesstokens().issueTemporaryAccessToken(
-
-**lookup:** `Map`
+**lookup:** `Map<String, String>`
@@ -14017,7 +13906,7 @@ client.webhooks().listWebhookEvents(
-
-**ids:** `Optional`
+**ids:** `Optional<String>`
@@ -14025,7 +13914,7 @@ client.webhooks().listWebhookEvents(
-
-**q:** `Optional`
+**q:** `Optional<String>`
@@ -14033,7 +13922,7 @@ client.webhooks().listWebhookEvents(
-
-**webhookId:** `Optional`
+**webhookId:** `Optional<String>`
@@ -14041,7 +13930,7 @@ client.webhooks().listWebhookEvents(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -14049,7 +13938,7 @@ client.webhooks().listWebhookEvents(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -14137,7 +14026,7 @@ client.webhooks().countWebhookEvents(
-
-**ids:** `Optional`
+**ids:** `Optional<String>`
@@ -14145,7 +14034,7 @@ client.webhooks().countWebhookEvents(
-
-**q:** `Optional`
+**q:** `Optional<String>`
@@ -14153,7 +14042,7 @@ client.webhooks().countWebhookEvents(
-
-**webhookId:** `Optional`
+**webhookId:** `Optional<String>`
@@ -14161,7 +14050,7 @@ client.webhooks().countWebhookEvents(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -14169,7 +14058,7 @@ client.webhooks().countWebhookEvents(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -14216,7 +14105,7 @@ client.webhooks().listWebhooks(
-
-**q:** `Optional`
+**q:** `Optional<String>`
@@ -14224,7 +14113,7 @@ client.webhooks().listWebhooks(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -14232,7 +14121,7 @@ client.webhooks().listWebhooks(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
@@ -14262,7 +14151,7 @@ client.webhooks().createWebhook(
.builder()
.name("name")
.requestTypes(
- Arrays.asList(CreateWebhookRequestBodyRequestTypesItem.COMPANY_UPDATED)
+ Arrays.asList(WebhookRequestType.SUBSCRIPTION_TRIAL_ENDED)
)
.url("url")
.build()
@@ -14281,7 +14170,7 @@ client.webhooks().createWebhook(
-
-**creditTriggerConfigs:** `Optional
>`
+**creditTriggerConfigs:** `Optional<List<CreditTriggerConfig>>`
@@ -14289,7 +14178,7 @@ client.webhooks().createWebhook(
-
-**entitlementTriggerConfigs:** `Optional
>`
+**entitlementTriggerConfigs:** `Optional<List<EntitlementTriggerConfig>>`
@@ -14305,7 +14194,7 @@ client.webhooks().createWebhook(
-
-**requestTypes:** `List`
+**requestTypes:** `List<WebhookRequestType>`
@@ -14406,7 +14295,7 @@ client.webhooks().updateWebhook(
-
-**creditTriggerConfigs:** `Optional
>`
+**creditTriggerConfigs:** `Optional<List<CreditTriggerConfig>>`
@@ -14414,7 +14303,7 @@ client.webhooks().updateWebhook(
-
-**entitlementTriggerConfigs:** `Optional
>`
+**entitlementTriggerConfigs:** `Optional<List<EntitlementTriggerConfig>>`
@@ -14422,7 +14311,7 @@ client.webhooks().updateWebhook(
-
-**name:** `Optional`
+**name:** `Optional<String>`
@@ -14430,7 +14319,7 @@ client.webhooks().updateWebhook(
-
-**requestTypes:** `Optional
>`
+**requestTypes:** `Optional<List<WebhookRequestType>>`
@@ -14438,7 +14327,7 @@ client.webhooks().updateWebhook(
-
-**status:** `Optional`
+**status:** `Optional<WebhookStatus>`
@@ -14446,7 +14335,7 @@ client.webhooks().updateWebhook(
-
-**url:** `Optional`
+**url:** `Optional<String>`
@@ -14533,7 +14422,7 @@ client.webhooks().countWebhooks(
-
-**q:** `Optional`
+**q:** `Optional<String>`
@@ -14541,7 +14430,7 @@ client.webhooks().countWebhooks(
-
-**limit:** `Optional` — Page limit (default 100)
+**limit:** `Optional<Integer>` — Page limit (default 100)
@@ -14549,7 +14438,7 @@ client.webhooks().countWebhooks(
-
-**offset:** `Optional` — Page offset (default 0)
+**offset:** `Optional<Integer>` — Page offset (default 0)
diff --git a/src/main/java/com/schematic/api/AsyncBaseSchematic.java b/src/main/java/com/schematic/api/AsyncBaseSchematic.java
index ee22084..f3f5133 100644
--- a/src/main/java/com/schematic/api/AsyncBaseSchematic.java
+++ b/src/main/java/com/schematic/api/AsyncBaseSchematic.java
@@ -13,11 +13,11 @@
import com.schematic.api.resources.companies.AsyncCompaniesClient;
import com.schematic.api.resources.components.AsyncComponentsClient;
import com.schematic.api.resources.credits.AsyncCreditsClient;
-import com.schematic.api.resources.crm.AsyncCrmClient;
import com.schematic.api.resources.dataexports.AsyncDataexportsClient;
import com.schematic.api.resources.entitlements.AsyncEntitlementsClient;
import com.schematic.api.resources.events.AsyncEventsClient;
import com.schematic.api.resources.features.AsyncFeaturesClient;
+import com.schematic.api.resources.planbundle.AsyncPlanbundleClient;
import com.schematic.api.resources.plangroups.AsyncPlangroupsClient;
import com.schematic.api.resources.plans.AsyncPlansClient;
import com.schematic.api.resources.webhooks.AsyncWebhooksClient;
@@ -45,14 +45,14 @@ public class AsyncBaseSchematic {
protected final Supplier componentsClient;
- protected final Supplier crmClient;
-
protected final Supplier dataexportsClient;
protected final Supplier eventsClient;
protected final Supplier featuresClient;
+ protected final Supplier planbundleClient;
+
protected final Supplier plangroupsClient;
protected final Supplier accesstokensClient;
@@ -70,10 +70,10 @@ public AsyncBaseSchematic(ClientOptions clientOptions) {
this.entitlementsClient = Suppliers.memoize(() -> new AsyncEntitlementsClient(clientOptions));
this.plansClient = Suppliers.memoize(() -> new AsyncPlansClient(clientOptions));
this.componentsClient = Suppliers.memoize(() -> new AsyncComponentsClient(clientOptions));
- this.crmClient = Suppliers.memoize(() -> new AsyncCrmClient(clientOptions));
this.dataexportsClient = Suppliers.memoize(() -> new AsyncDataexportsClient(clientOptions));
this.eventsClient = Suppliers.memoize(() -> new AsyncEventsClient(clientOptions));
this.featuresClient = Suppliers.memoize(() -> new AsyncFeaturesClient(clientOptions));
+ this.planbundleClient = Suppliers.memoize(() -> new AsyncPlanbundleClient(clientOptions));
this.plangroupsClient = Suppliers.memoize(() -> new AsyncPlangroupsClient(clientOptions));
this.accesstokensClient = Suppliers.memoize(() -> new AsyncAccesstokensClient(clientOptions));
this.webhooksClient = Suppliers.memoize(() -> new AsyncWebhooksClient(clientOptions));
@@ -140,10 +140,6 @@ public AsyncComponentsClient components() {
return this.componentsClient.get();
}
- public AsyncCrmClient crm() {
- return this.crmClient.get();
- }
-
public AsyncDataexportsClient dataexports() {
return this.dataexportsClient.get();
}
@@ -156,6 +152,10 @@ public AsyncFeaturesClient features() {
return this.featuresClient.get();
}
+ public AsyncPlanbundleClient planbundle() {
+ return this.planbundleClient.get();
+ }
+
public AsyncPlangroupsClient plangroups() {
return this.plangroupsClient.get();
}
diff --git a/src/main/java/com/schematic/api/core/ClientOptions.java b/src/main/java/com/schematic/api/core/ClientOptions.java
index a1f67f1..1372308 100644
--- a/src/main/java/com/schematic/api/core/ClientOptions.java
+++ b/src/main/java/com/schematic/api/core/ClientOptions.java
@@ -32,10 +32,10 @@ private ClientOptions(
this.headers.putAll(headers);
this.headers.putAll(new HashMap() {
{
- put("User-Agent", "com.schematichq:schematic-java/1.2.0");
+ put("User-Agent", "com.schematichq:schematic-java/1.2.1");
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.schematic.fern:api-sdk");
- put("X-Fern-SDK-Version", "1.2.0");
+ put("X-Fern-SDK-Version", "1.2.1");
}
});
this.headerSuppliers = headerSuppliers;
diff --git a/src/main/java/com/schematic/api/resources/accesstokens/requests/IssueTemporaryAccessTokenRequestBody.java b/src/main/java/com/schematic/api/resources/accesstokens/requests/IssueTemporaryAccessTokenRequestBody.java
index 0aa459d..9990e0d 100644
--- a/src/main/java/com/schematic/api/resources/accesstokens/requests/IssueTemporaryAccessTokenRequestBody.java
+++ b/src/main/java/com/schematic/api/resources/accesstokens/requests/IssueTemporaryAccessTokenRequestBody.java
@@ -16,16 +16,21 @@
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Objects;
+import org.jetbrains.annotations.NotNull;
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = IssueTemporaryAccessTokenRequestBody.Builder.class)
public final class IssueTemporaryAccessTokenRequestBody {
private final Map lookup;
+ private final String resourceType;
+
private final Map additionalProperties;
- private IssueTemporaryAccessTokenRequestBody(Map lookup, Map additionalProperties) {
+ private IssueTemporaryAccessTokenRequestBody(
+ Map lookup, String resourceType, Map additionalProperties) {
this.lookup = lookup;
+ this.resourceType = resourceType;
this.additionalProperties = additionalProperties;
}
@@ -36,7 +41,7 @@ public Map getLookup() {
@JsonProperty("resource_type")
public String getResourceType() {
- return "company";
+ return resourceType;
}
@java.lang.Override
@@ -52,12 +57,12 @@ public Map getAdditionalProperties() {
}
private boolean equalTo(IssueTemporaryAccessTokenRequestBody other) {
- return lookup.equals(other.lookup);
+ return lookup.equals(other.lookup) && resourceType.equals(other.resourceType);
}
@java.lang.Override
public int hashCode() {
- return Objects.hash(this.lookup);
+ return Objects.hash(this.lookup, this.resourceType);
}
@java.lang.Override
@@ -65,12 +70,30 @@ public String toString() {
return ObjectMappers.stringify(this);
}
- public static Builder builder() {
+ public static ResourceTypeStage builder() {
return new Builder();
}
+ public interface ResourceTypeStage {
+ _FinalStage resourceType(@NotNull String resourceType);
+
+ Builder from(IssueTemporaryAccessTokenRequestBody other);
+ }
+
+ public interface _FinalStage {
+ IssueTemporaryAccessTokenRequestBody build();
+
+ _FinalStage lookup(Map lookup);
+
+ _FinalStage putAllLookup(Map lookup);
+
+ _FinalStage lookup(String key, String value);
+ }
+
@JsonIgnoreProperties(ignoreUnknown = true)
- public static final class Builder {
+ public static final class Builder implements ResourceTypeStage, _FinalStage {
+ private String resourceType;
+
private Map lookup = new LinkedHashMap<>();
@JsonAnySetter
@@ -78,34 +101,47 @@ public static final class Builder {
private Builder() {}
+ @java.lang.Override
public Builder from(IssueTemporaryAccessTokenRequestBody other) {
lookup(other.getLookup());
+ resourceType(other.getResourceType());
return this;
}
- @JsonSetter(value = "lookup", nulls = Nulls.SKIP)
- public Builder lookup(Map lookup) {
- this.lookup.clear();
- if (lookup != null) {
- this.lookup.putAll(lookup);
- }
+ @java.lang.Override
+ @JsonSetter("resource_type")
+ public _FinalStage resourceType(@NotNull String resourceType) {
+ this.resourceType = Objects.requireNonNull(resourceType, "resourceType must not be null");
+ return this;
+ }
+
+ @java.lang.Override
+ public _FinalStage lookup(String key, String value) {
+ this.lookup.put(key, value);
return this;
}
- public Builder putAllLookup(Map lookup) {
+ @java.lang.Override
+ public _FinalStage putAllLookup(Map lookup) {
if (lookup != null) {
this.lookup.putAll(lookup);
}
return this;
}
- public Builder lookup(String key, String value) {
- this.lookup.put(key, value);
+ @java.lang.Override
+ @JsonSetter(value = "lookup", nulls = Nulls.SKIP)
+ public _FinalStage lookup(Map lookup) {
+ this.lookup.clear();
+ if (lookup != null) {
+ this.lookup.putAll(lookup);
+ }
return this;
}
+ @java.lang.Override
public IssueTemporaryAccessTokenRequestBody build() {
- return new IssueTemporaryAccessTokenRequestBody(lookup, additionalProperties);
+ return new IssueTemporaryAccessTokenRequestBody(lookup, resourceType, additionalProperties);
}
}
}
diff --git a/src/main/java/com/schematic/api/resources/accounts/requests/CreateEnvironmentRequestBody.java b/src/main/java/com/schematic/api/resources/accounts/requests/CreateEnvironmentRequestBody.java
index 84db934..b252591 100644
--- a/src/main/java/com/schematic/api/resources/accounts/requests/CreateEnvironmentRequestBody.java
+++ b/src/main/java/com/schematic/api/resources/accounts/requests/CreateEnvironmentRequestBody.java
@@ -11,7 +11,7 @@
import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.schematic.api.core.ObjectMappers;
-import com.schematic.api.resources.accounts.types.CreateEnvironmentRequestBodyEnvironmentType;
+import com.schematic.api.types.EnvironmentType;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@@ -20,23 +20,21 @@
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = CreateEnvironmentRequestBody.Builder.class)
public final class CreateEnvironmentRequestBody {
- private final CreateEnvironmentRequestBodyEnvironmentType environmentType;
+ private final EnvironmentType environmentType;
private final String name;
private final Map additionalProperties;
private CreateEnvironmentRequestBody(
- CreateEnvironmentRequestBodyEnvironmentType environmentType,
- String name,
- Map additionalProperties) {
+ EnvironmentType environmentType, String name, Map additionalProperties) {
this.environmentType = environmentType;
this.name = name;
this.additionalProperties = additionalProperties;
}
@JsonProperty("environment_type")
- public CreateEnvironmentRequestBodyEnvironmentType getEnvironmentType() {
+ public EnvironmentType getEnvironmentType() {
return environmentType;
}
@@ -75,7 +73,7 @@ public static EnvironmentTypeStage builder() {
}
public interface EnvironmentTypeStage {
- NameStage environmentType(@NotNull CreateEnvironmentRequestBodyEnvironmentType environmentType);
+ NameStage environmentType(@NotNull EnvironmentType environmentType);
Builder from(CreateEnvironmentRequestBody other);
}
@@ -90,7 +88,7 @@ public interface _FinalStage {
@JsonIgnoreProperties(ignoreUnknown = true)
public static final class Builder implements EnvironmentTypeStage, NameStage, _FinalStage {
- private CreateEnvironmentRequestBodyEnvironmentType environmentType;
+ private EnvironmentType environmentType;
private String name;
@@ -108,7 +106,7 @@ public Builder from(CreateEnvironmentRequestBody other) {
@java.lang.Override
@JsonSetter("environment_type")
- public NameStage environmentType(@NotNull CreateEnvironmentRequestBodyEnvironmentType environmentType) {
+ public NameStage environmentType(@NotNull EnvironmentType environmentType) {
this.environmentType = Objects.requireNonNull(environmentType, "environmentType must not be null");
return this;
}
diff --git a/src/main/java/com/schematic/api/resources/accounts/requests/UpdateEnvironmentRequestBody.java b/src/main/java/com/schematic/api/resources/accounts/requests/UpdateEnvironmentRequestBody.java
index 43537d0..65510f4 100644
--- a/src/main/java/com/schematic/api/resources/accounts/requests/UpdateEnvironmentRequestBody.java
+++ b/src/main/java/com/schematic/api/resources/accounts/requests/UpdateEnvironmentRequestBody.java
@@ -12,7 +12,7 @@
import com.fasterxml.jackson.annotation.Nulls;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.schematic.api.core.ObjectMappers;
-import com.schematic.api.resources.accounts.types.UpdateEnvironmentRequestBodyEnvironmentType;
+import com.schematic.api.types.EnvironmentType;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@@ -21,14 +21,14 @@
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = UpdateEnvironmentRequestBody.Builder.class)
public final class UpdateEnvironmentRequestBody {
- private final Optional environmentType;
+ private final Optional environmentType;
private final Optional name;
private final Map additionalProperties;
private UpdateEnvironmentRequestBody(
- Optional environmentType,
+ Optional environmentType,
Optional name,
Map additionalProperties) {
this.environmentType = environmentType;
@@ -37,7 +37,7 @@ private UpdateEnvironmentRequestBody(
}
@JsonProperty("environment_type")
- public Optional getEnvironmentType() {
+ public Optional getEnvironmentType() {
return environmentType;
}
@@ -77,7 +77,7 @@ public static Builder builder() {
@JsonIgnoreProperties(ignoreUnknown = true)
public static final class Builder {
- private Optional environmentType = Optional.empty();
+ private Optional environmentType = Optional.empty();
private Optional name = Optional.empty();
@@ -93,12 +93,12 @@ public Builder from(UpdateEnvironmentRequestBody other) {
}
@JsonSetter(value = "environment_type", nulls = Nulls.SKIP)
- public Builder environmentType(Optional environmentType) {
+ public Builder environmentType(Optional environmentType) {
this.environmentType = environmentType;
return this;
}
- public Builder environmentType(UpdateEnvironmentRequestBodyEnvironmentType environmentType) {
+ public Builder environmentType(EnvironmentType environmentType) {
this.environmentType = Optional.ofNullable(environmentType);
return this;
}
diff --git a/src/main/java/com/schematic/api/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.java b/src/main/java/com/schematic/api/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.java
deleted file mode 100644
index 39d9ea7..0000000
--- a/src/main/java/com/schematic/api/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-package com.schematic.api.resources.accounts.types;
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonValue;
-
-public final class UpdateEnvironmentRequestBodyEnvironmentType {
- public static final UpdateEnvironmentRequestBodyEnvironmentType DEVELOPMENT =
- new UpdateEnvironmentRequestBodyEnvironmentType(Value.DEVELOPMENT, "development");
-
- public static final UpdateEnvironmentRequestBodyEnvironmentType STAGING =
- new UpdateEnvironmentRequestBodyEnvironmentType(Value.STAGING, "staging");
-
- public static final UpdateEnvironmentRequestBodyEnvironmentType PRODUCTION =
- new UpdateEnvironmentRequestBodyEnvironmentType(Value.PRODUCTION, "production");
-
- private final Value value;
-
- private final String string;
-
- UpdateEnvironmentRequestBodyEnvironmentType(Value value, String string) {
- this.value = value;
- this.string = string;
- }
-
- public Value getEnumValue() {
- return value;
- }
-
- @java.lang.Override
- @JsonValue
- public String toString() {
- return this.string;
- }
-
- @java.lang.Override
- public boolean equals(Object other) {
- return (this == other)
- || (other instanceof UpdateEnvironmentRequestBodyEnvironmentType
- && this.string.equals(((UpdateEnvironmentRequestBodyEnvironmentType) other).string));
- }
-
- @java.lang.Override
- public int hashCode() {
- return this.string.hashCode();
- }
-
- public T visit(Visitor visitor) {
- switch (value) {
- case DEVELOPMENT:
- return visitor.visitDevelopment();
- case STAGING:
- return visitor.visitStaging();
- case PRODUCTION:
- return visitor.visitProduction();
- case UNKNOWN:
- default:
- return visitor.visitUnknown(string);
- }
- }
-
- @JsonCreator(mode = JsonCreator.Mode.DELEGATING)
- public static UpdateEnvironmentRequestBodyEnvironmentType valueOf(String value) {
- switch (value) {
- case "development":
- return DEVELOPMENT;
- case "staging":
- return STAGING;
- case "production":
- return PRODUCTION;
- default:
- return new UpdateEnvironmentRequestBodyEnvironmentType(Value.UNKNOWN, value);
- }
- }
-
- public enum Value {
- DEVELOPMENT,
-
- STAGING,
-
- PRODUCTION,
-
- UNKNOWN
- }
-
- public interface Visitor {
- T visitDevelopment();
-
- T visitStaging();
-
- T visitProduction();
-
- T visitUnknown(String unknownType);
- }
-}
diff --git a/src/main/java/com/schematic/api/resources/billing/AsyncBillingClient.java b/src/main/java/com/schematic/api/resources/billing/AsyncBillingClient.java
index da31034..df85784 100644
--- a/src/main/java/com/schematic/api/resources/billing/AsyncBillingClient.java
+++ b/src/main/java/com/schematic/api/resources/billing/AsyncBillingClient.java
@@ -15,26 +15,26 @@
import com.schematic.api.resources.billing.requests.CreateInvoiceRequestBody;
import com.schematic.api.resources.billing.requests.CreateMeterRequestBody;
import com.schematic.api.resources.billing.requests.CreatePaymentMethodRequestBody;
+import com.schematic.api.resources.billing.requests.ListBillingPricesRequest;
+import com.schematic.api.resources.billing.requests.ListBillingProductPricesRequest;
import com.schematic.api.resources.billing.requests.ListBillingProductsRequest;
import com.schematic.api.resources.billing.requests.ListCouponsRequest;
import com.schematic.api.resources.billing.requests.ListCustomersWithSubscriptionsRequest;
import com.schematic.api.resources.billing.requests.ListInvoicesRequest;
import com.schematic.api.resources.billing.requests.ListMetersRequest;
import com.schematic.api.resources.billing.requests.ListPaymentMethodsRequest;
-import com.schematic.api.resources.billing.requests.ListProductPricesRequest;
-import com.schematic.api.resources.billing.requests.SearchBillingPricesRequest;
import com.schematic.api.resources.billing.types.CountBillingProductsResponse;
import com.schematic.api.resources.billing.types.CountCustomersResponse;
import com.schematic.api.resources.billing.types.DeleteBillingProductResponse;
import com.schematic.api.resources.billing.types.DeleteProductPriceResponse;
+import com.schematic.api.resources.billing.types.ListBillingPricesResponse;
+import com.schematic.api.resources.billing.types.ListBillingProductPricesResponse;
import com.schematic.api.resources.billing.types.ListBillingProductsResponse;
import com.schematic.api.resources.billing.types.ListCouponsResponse;
import com.schematic.api.resources.billing.types.ListCustomersWithSubscriptionsResponse;
import com.schematic.api.resources.billing.types.ListInvoicesResponse;
import com.schematic.api.resources.billing.types.ListMetersResponse;
import com.schematic.api.resources.billing.types.ListPaymentMethodsResponse;
-import com.schematic.api.resources.billing.types.ListProductPricesResponse;
-import com.schematic.api.resources.billing.types.SearchBillingPricesResponse;
import com.schematic.api.resources.billing.types.UpsertBillingCouponResponse;
import com.schematic.api.resources.billing.types.UpsertBillingCustomerResponse;
import com.schematic.api.resources.billing.types.UpsertBillingMeterResponse;
@@ -180,17 +180,17 @@ public CompletableFuture upsertPaymentMethod(
return this.rawClient.upsertPaymentMethod(request, requestOptions).thenApply(response -> response.body());
}
- public CompletableFuture searchBillingPrices() {
- return this.rawClient.searchBillingPrices().thenApply(response -> response.body());
+ public CompletableFuture listBillingPrices() {
+ return this.rawClient.listBillingPrices().thenApply(response -> response.body());
}
- public CompletableFuture searchBillingPrices(SearchBillingPricesRequest request) {
- return this.rawClient.searchBillingPrices(request).thenApply(response -> response.body());
+ public CompletableFuture listBillingPrices(ListBillingPricesRequest request) {
+ return this.rawClient.listBillingPrices(request).thenApply(response -> response.body());
}
- public CompletableFuture searchBillingPrices(
- SearchBillingPricesRequest request, RequestOptions requestOptions) {
- return this.rawClient.searchBillingPrices(request, requestOptions).thenApply(response -> response.body());
+ public CompletableFuture listBillingPrices(
+ ListBillingPricesRequest request, RequestOptions requestOptions) {
+ return this.rawClient.listBillingPrices(request, requestOptions).thenApply(response -> response.body());
}
public CompletableFuture upsertBillingPrice(CreateBillingPriceRequestBody request) {
@@ -211,17 +211,18 @@ public CompletableFuture deleteBillingProduct(
return this.rawClient.deleteBillingProduct(billingId, requestOptions).thenApply(response -> response.body());
}
- public CompletableFuture listProductPrices() {
- return this.rawClient.listProductPrices().thenApply(response -> response.body());
+ public CompletableFuture listBillingProductPrices() {
+ return this.rawClient.listBillingProductPrices().thenApply(response -> response.body());
}
- public CompletableFuture listProductPrices(ListProductPricesRequest request) {
- return this.rawClient.listProductPrices(request).thenApply(response -> response.body());
+ public CompletableFuture listBillingProductPrices(
+ ListBillingProductPricesRequest request) {
+ return this.rawClient.listBillingProductPrices(request).thenApply(response -> response.body());
}
- public CompletableFuture listProductPrices(
- ListProductPricesRequest request, RequestOptions requestOptions) {
- return this.rawClient.listProductPrices(request, requestOptions).thenApply(response -> response.body());
+ public CompletableFuture listBillingProductPrices(
+ ListBillingProductPricesRequest request, RequestOptions requestOptions) {
+ return this.rawClient.listBillingProductPrices(request, requestOptions).thenApply(response -> response.body());
}
public CompletableFuture deleteProductPrice(String billingId) {
diff --git a/src/main/java/com/schematic/api/resources/billing/AsyncRawBillingClient.java b/src/main/java/com/schematic/api/resources/billing/AsyncRawBillingClient.java
index 975d9b0..44cda57 100644
--- a/src/main/java/com/schematic/api/resources/billing/AsyncRawBillingClient.java
+++ b/src/main/java/com/schematic/api/resources/billing/AsyncRawBillingClient.java
@@ -27,26 +27,26 @@
import com.schematic.api.resources.billing.requests.CreateInvoiceRequestBody;
import com.schematic.api.resources.billing.requests.CreateMeterRequestBody;
import com.schematic.api.resources.billing.requests.CreatePaymentMethodRequestBody;
+import com.schematic.api.resources.billing.requests.ListBillingPricesRequest;
+import com.schematic.api.resources.billing.requests.ListBillingProductPricesRequest;
import com.schematic.api.resources.billing.requests.ListBillingProductsRequest;
import com.schematic.api.resources.billing.requests.ListCouponsRequest;
import com.schematic.api.resources.billing.requests.ListCustomersWithSubscriptionsRequest;
import com.schematic.api.resources.billing.requests.ListInvoicesRequest;
import com.schematic.api.resources.billing.requests.ListMetersRequest;
import com.schematic.api.resources.billing.requests.ListPaymentMethodsRequest;
-import com.schematic.api.resources.billing.requests.ListProductPricesRequest;
-import com.schematic.api.resources.billing.requests.SearchBillingPricesRequest;
import com.schematic.api.resources.billing.types.CountBillingProductsResponse;
import com.schematic.api.resources.billing.types.CountCustomersResponse;
import com.schematic.api.resources.billing.types.DeleteBillingProductResponse;
import com.schematic.api.resources.billing.types.DeleteProductPriceResponse;
+import com.schematic.api.resources.billing.types.ListBillingPricesResponse;
+import com.schematic.api.resources.billing.types.ListBillingProductPricesResponse;
import com.schematic.api.resources.billing.types.ListBillingProductsResponse;
import com.schematic.api.resources.billing.types.ListCouponsResponse;
import com.schematic.api.resources.billing.types.ListCustomersWithSubscriptionsResponse;
import com.schematic.api.resources.billing.types.ListInvoicesResponse;
import com.schematic.api.resources.billing.types.ListMetersResponse;
import com.schematic.api.resources.billing.types.ListPaymentMethodsResponse;
-import com.schematic.api.resources.billing.types.ListProductPricesResponse;
-import com.schematic.api.resources.billing.types.SearchBillingPricesResponse;
import com.schematic.api.resources.billing.types.UpsertBillingCouponResponse;
import com.schematic.api.resources.billing.types.UpsertBillingCustomerResponse;
import com.schematic.api.resources.billing.types.UpsertBillingMeterResponse;
@@ -381,9 +381,9 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
QueryStringMapper.addQueryParameter(
httpUrl, "name", request.getName().get(), false);
}
- if (request.getFailedToImport().isPresent()) {
+ if (request.getProviderType().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl, "failed_to_import", request.getFailedToImport().get(), false);
+ httpUrl, "provider_type", request.getProviderType().get(), false);
}
if (request.getQ().isPresent()) {
QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().get(), false);
@@ -492,9 +492,9 @@ public CompletableFuture> coun
QueryStringMapper.addQueryParameter(
httpUrl, "name", request.getName().get(), false);
}
- if (request.getFailedToImport().isPresent()) {
+ if (request.getProviderType().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl, "failed_to_import", request.getFailedToImport().get(), false);
+ httpUrl, "provider_type", request.getProviderType().get(), false);
}
if (request.getQ().isPresent()) {
QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().get(), false);
@@ -1149,17 +1149,17 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
return future;
}
- public CompletableFuture> searchBillingPrices() {
- return searchBillingPrices(SearchBillingPricesRequest.builder().build());
+ public CompletableFuture> listBillingPrices() {
+ return listBillingPrices(ListBillingPricesRequest.builder().build());
}
- public CompletableFuture> searchBillingPrices(
- SearchBillingPricesRequest request) {
- return searchBillingPrices(request, null);
+ public CompletableFuture> listBillingPrices(
+ ListBillingPricesRequest request) {
+ return listBillingPrices(request, null);
}
- public CompletableFuture> searchBillingPrices(
- SearchBillingPricesRequest request, RequestOptions requestOptions) {
+ public CompletableFuture> listBillingPrices(
+ ListBillingPricesRequest request, RequestOptions requestOptions) {
HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
.newBuilder()
.addPathSegments("billing/price");
@@ -1174,27 +1174,28 @@ public CompletableFuture>
request.getForTrialExpiryPlan().get(),
false);
}
- if (request.getProductId().isPresent()) {
- QueryStringMapper.addQueryParameter(
- httpUrl, "product_id", request.getProductId().get(), false);
- }
if (request.getInterval().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "interval", request.getInterval().get(), false);
}
+ if (request.getIsActive().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "is_active", request.getIsActive().get(), false);
+ }
if (request.getPrice().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "price", request.getPrice().get(), false);
}
- if (request.getQ().isPresent()) {
- QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().get(), false);
+ if (request.getProductId().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "product_id", request.getProductId().get(), false);
}
- if (request.getRequiresPaymentMethod().isPresent()) {
+ if (request.getProviderType().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl,
- "requires_payment_method",
- request.getRequiresPaymentMethod().get(),
- false);
+ httpUrl, "provider_type", request.getProviderType().get(), false);
+ }
+ if (request.getQ().isPresent()) {
+ QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().get(), false);
}
if (request.getTiersMode().isPresent()) {
QueryStringMapper.addQueryParameter(
@@ -1204,6 +1205,10 @@ public CompletableFuture>
QueryStringMapper.addQueryParameter(
httpUrl, "usage_type", request.getUsageType().get(), false);
}
+ if (request.getWithMeter().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "with_meter", request.getWithMeter().get(), false);
+ }
if (request.getLimit().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "limit", request.getLimit().get(), false);
@@ -1215,6 +1220,10 @@ public CompletableFuture>
if (request.getIds().isPresent()) {
QueryStringMapper.addQueryParameter(httpUrl, "ids", request.getIds().get(), true);
}
+ if (request.getProductIds().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "product_ids", request.getProductIds().get(), true);
+ }
Request.Builder _requestBuilder = new Request.Builder()
.url(httpUrl.build())
.method("GET", null)
@@ -1225,7 +1234,7 @@ public CompletableFuture>
if (requestOptions != null && requestOptions.getTimeout().isPresent()) {
client = clientOptions.httpClientWithTimeout(requestOptions);
}
- CompletableFuture> future = new CompletableFuture<>();
+ CompletableFuture> future = new CompletableFuture<>();
client.newCall(okhttpRequest).enqueue(new Callback() {
@Override
public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {
@@ -1233,7 +1242,7 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO
if (response.isSuccessful()) {
future.complete(new BaseSchematicHttpResponse<>(
ObjectMappers.JSON_MAPPER.readValue(
- responseBody.string(), SearchBillingPricesResponse.class),
+ responseBody.string(), ListBillingPricesResponse.class),
response));
return;
}
@@ -1465,56 +1474,66 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
return future;
}
- public CompletableFuture> listProductPrices() {
- return listProductPrices(ListProductPricesRequest.builder().build());
+ public CompletableFuture> listBillingProductPrices() {
+ return listBillingProductPrices(
+ ListBillingProductPricesRequest.builder().build());
}
- public CompletableFuture> listProductPrices(
- ListProductPricesRequest request) {
- return listProductPrices(request, null);
+ public CompletableFuture> listBillingProductPrices(
+ ListBillingProductPricesRequest request) {
+ return listBillingProductPrices(request, null);
}
- public CompletableFuture> listProductPrices(
- ListProductPricesRequest request, RequestOptions requestOptions) {
+ public CompletableFuture> listBillingProductPrices(
+ ListBillingProductPricesRequest request, RequestOptions requestOptions) {
HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
.newBuilder()
.addPathSegments("billing/product/prices");
- if (request.getName().isPresent()) {
+ if (request.getForInitialPlan().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl, "name", request.getName().get(), false);
+ httpUrl, "for_initial_plan", request.getForInitialPlan().get(), false);
}
- if (request.getQ().isPresent()) {
- QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().get(), false);
+ if (request.getForTrialExpiryPlan().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl,
+ "for_trial_expiry_plan",
+ request.getForTrialExpiryPlan().get(),
+ false);
}
- if (request.getPriceUsageType().isPresent()) {
+ if (request.getInterval().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl, "price_usage_type", request.getPriceUsageType().get(), false);
+ httpUrl, "interval", request.getInterval().get(), false);
}
- if (request.getWithoutLinkedToPlan().isPresent()) {
+ if (request.getIsActive().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl,
- "without_linked_to_plan",
- request.getWithoutLinkedToPlan().get(),
- false);
+ httpUrl, "is_active", request.getIsActive().get(), false);
}
- if (request.getWithOneTimeCharges().isPresent()) {
+ if (request.getPrice().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl,
- "with_one_time_charges",
- request.getWithOneTimeCharges().get(),
- false);
+ httpUrl, "price", request.getPrice().get(), false);
}
- if (request.getWithZeroPrice().isPresent()) {
+ if (request.getProductId().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl, "with_zero_price", request.getWithZeroPrice().get(), false);
+ httpUrl, "product_id", request.getProductId().get(), false);
}
- if (request.getWithPricesOnly().isPresent()) {
+ if (request.getProviderType().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl, "with_prices_only", request.getWithPricesOnly().get(), false);
+ httpUrl, "provider_type", request.getProviderType().get(), false);
}
- if (request.getIsActive().isPresent()) {
+ if (request.getQ().isPresent()) {
+ QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().get(), false);
+ }
+ if (request.getTiersMode().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl, "is_active", request.getIsActive().get(), false);
+ httpUrl, "tiers_mode", request.getTiersMode().get(), false);
+ }
+ if (request.getUsageType().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "usage_type", request.getUsageType().get(), false);
+ }
+ if (request.getWithMeter().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "with_meter", request.getWithMeter().get(), false);
}
if (request.getLimit().isPresent()) {
QueryStringMapper.addQueryParameter(
@@ -1527,6 +1546,10 @@ public CompletableFuture> l
if (request.getIds().isPresent()) {
QueryStringMapper.addQueryParameter(httpUrl, "ids", request.getIds().get(), true);
}
+ if (request.getProductIds().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "product_ids", request.getProductIds().get(), true);
+ }
Request.Builder _requestBuilder = new Request.Builder()
.url(httpUrl.build())
.method("GET", null)
@@ -1537,7 +1560,8 @@ public CompletableFuture> l
if (requestOptions != null && requestOptions.getTimeout().isPresent()) {
client = clientOptions.httpClientWithTimeout(requestOptions);
}
- CompletableFuture> future = new CompletableFuture<>();
+ CompletableFuture> future =
+ new CompletableFuture<>();
client.newCall(okhttpRequest).enqueue(new Callback() {
@Override
public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {
@@ -1545,7 +1569,7 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO
if (response.isSuccessful()) {
future.complete(new BaseSchematicHttpResponse<>(
ObjectMappers.JSON_MAPPER.readValue(
- responseBody.string(), ListProductPricesResponse.class),
+ responseBody.string(), ListBillingProductPricesResponse.class),
response));
return;
}
@@ -1791,23 +1815,24 @@ public CompletableFuture>
HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
.newBuilder()
.addPathSegments("billing/products");
+ if (request.getIsActive().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "is_active", request.getIsActive().get(), false);
+ }
if (request.getName().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "name", request.getName().get(), false);
}
- if (request.getQ().isPresent()) {
- QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().get(), false);
- }
if (request.getPriceUsageType().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "price_usage_type", request.getPriceUsageType().get(), false);
}
- if (request.getWithoutLinkedToPlan().isPresent()) {
+ if (request.getProviderType().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl,
- "without_linked_to_plan",
- request.getWithoutLinkedToPlan().get(),
- false);
+ httpUrl, "provider_type", request.getProviderType().get(), false);
+ }
+ if (request.getQ().isPresent()) {
+ QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().get(), false);
}
if (request.getWithOneTimeCharges().isPresent()) {
QueryStringMapper.addQueryParameter(
@@ -1816,17 +1841,20 @@ public CompletableFuture>
request.getWithOneTimeCharges().get(),
false);
}
- if (request.getWithZeroPrice().isPresent()) {
- QueryStringMapper.addQueryParameter(
- httpUrl, "with_zero_price", request.getWithZeroPrice().get(), false);
- }
if (request.getWithPricesOnly().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "with_prices_only", request.getWithPricesOnly().get(), false);
}
- if (request.getIsActive().isPresent()) {
+ if (request.getWithZeroPrice().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl, "is_active", request.getIsActive().get(), false);
+ httpUrl, "with_zero_price", request.getWithZeroPrice().get(), false);
+ }
+ if (request.getWithoutLinkedToPlan().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl,
+ "without_linked_to_plan",
+ request.getWithoutLinkedToPlan().get(),
+ false);
}
if (request.getLimit().isPresent()) {
QueryStringMapper.addQueryParameter(
@@ -1926,23 +1954,24 @@ public CompletableFuture
HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
.newBuilder()
.addPathSegments("billing/products/count");
+ if (request.getIsActive().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "is_active", request.getIsActive().get(), false);
+ }
if (request.getName().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "name", request.getName().get(), false);
}
- if (request.getQ().isPresent()) {
- QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().get(), false);
- }
if (request.getPriceUsageType().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "price_usage_type", request.getPriceUsageType().get(), false);
}
- if (request.getWithoutLinkedToPlan().isPresent()) {
+ if (request.getProviderType().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl,
- "without_linked_to_plan",
- request.getWithoutLinkedToPlan().get(),
- false);
+ httpUrl, "provider_type", request.getProviderType().get(), false);
+ }
+ if (request.getQ().isPresent()) {
+ QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().get(), false);
}
if (request.getWithOneTimeCharges().isPresent()) {
QueryStringMapper.addQueryParameter(
@@ -1951,17 +1980,20 @@ public CompletableFuture
request.getWithOneTimeCharges().get(),
false);
}
- if (request.getWithZeroPrice().isPresent()) {
- QueryStringMapper.addQueryParameter(
- httpUrl, "with_zero_price", request.getWithZeroPrice().get(), false);
- }
if (request.getWithPricesOnly().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "with_prices_only", request.getWithPricesOnly().get(), false);
}
- if (request.getIsActive().isPresent()) {
+ if (request.getWithZeroPrice().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl, "is_active", request.getIsActive().get(), false);
+ httpUrl, "with_zero_price", request.getWithZeroPrice().get(), false);
+ }
+ if (request.getWithoutLinkedToPlan().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl,
+ "without_linked_to_plan",
+ request.getWithoutLinkedToPlan().get(),
+ false);
}
if (request.getLimit().isPresent()) {
QueryStringMapper.addQueryParameter(
diff --git a/src/main/java/com/schematic/api/resources/billing/BillingClient.java b/src/main/java/com/schematic/api/resources/billing/BillingClient.java
index 6fa2651..e65d999 100644
--- a/src/main/java/com/schematic/api/resources/billing/BillingClient.java
+++ b/src/main/java/com/schematic/api/resources/billing/BillingClient.java
@@ -15,26 +15,26 @@
import com.schematic.api.resources.billing.requests.CreateInvoiceRequestBody;
import com.schematic.api.resources.billing.requests.CreateMeterRequestBody;
import com.schematic.api.resources.billing.requests.CreatePaymentMethodRequestBody;
+import com.schematic.api.resources.billing.requests.ListBillingPricesRequest;
+import com.schematic.api.resources.billing.requests.ListBillingProductPricesRequest;
import com.schematic.api.resources.billing.requests.ListBillingProductsRequest;
import com.schematic.api.resources.billing.requests.ListCouponsRequest;
import com.schematic.api.resources.billing.requests.ListCustomersWithSubscriptionsRequest;
import com.schematic.api.resources.billing.requests.ListInvoicesRequest;
import com.schematic.api.resources.billing.requests.ListMetersRequest;
import com.schematic.api.resources.billing.requests.ListPaymentMethodsRequest;
-import com.schematic.api.resources.billing.requests.ListProductPricesRequest;
-import com.schematic.api.resources.billing.requests.SearchBillingPricesRequest;
import com.schematic.api.resources.billing.types.CountBillingProductsResponse;
import com.schematic.api.resources.billing.types.CountCustomersResponse;
import com.schematic.api.resources.billing.types.DeleteBillingProductResponse;
import com.schematic.api.resources.billing.types.DeleteProductPriceResponse;
+import com.schematic.api.resources.billing.types.ListBillingPricesResponse;
+import com.schematic.api.resources.billing.types.ListBillingProductPricesResponse;
import com.schematic.api.resources.billing.types.ListBillingProductsResponse;
import com.schematic.api.resources.billing.types.ListCouponsResponse;
import com.schematic.api.resources.billing.types.ListCustomersWithSubscriptionsResponse;
import com.schematic.api.resources.billing.types.ListInvoicesResponse;
import com.schematic.api.resources.billing.types.ListMetersResponse;
import com.schematic.api.resources.billing.types.ListPaymentMethodsResponse;
-import com.schematic.api.resources.billing.types.ListProductPricesResponse;
-import com.schematic.api.resources.billing.types.SearchBillingPricesResponse;
import com.schematic.api.resources.billing.types.UpsertBillingCouponResponse;
import com.schematic.api.resources.billing.types.UpsertBillingCustomerResponse;
import com.schematic.api.resources.billing.types.UpsertBillingMeterResponse;
@@ -174,17 +174,17 @@ public UpsertPaymentMethodResponse upsertPaymentMethod(
return this.rawClient.upsertPaymentMethod(request, requestOptions).body();
}
- public SearchBillingPricesResponse searchBillingPrices() {
- return this.rawClient.searchBillingPrices().body();
+ public ListBillingPricesResponse listBillingPrices() {
+ return this.rawClient.listBillingPrices().body();
}
- public SearchBillingPricesResponse searchBillingPrices(SearchBillingPricesRequest request) {
- return this.rawClient.searchBillingPrices(request).body();
+ public ListBillingPricesResponse listBillingPrices(ListBillingPricesRequest request) {
+ return this.rawClient.listBillingPrices(request).body();
}
- public SearchBillingPricesResponse searchBillingPrices(
- SearchBillingPricesRequest request, RequestOptions requestOptions) {
- return this.rawClient.searchBillingPrices(request, requestOptions).body();
+ public ListBillingPricesResponse listBillingPrices(
+ ListBillingPricesRequest request, RequestOptions requestOptions) {
+ return this.rawClient.listBillingPrices(request, requestOptions).body();
}
public UpsertBillingPriceResponse upsertBillingPrice(CreateBillingPriceRequestBody request) {
@@ -204,17 +204,17 @@ public DeleteBillingProductResponse deleteBillingProduct(String billingId, Reque
return this.rawClient.deleteBillingProduct(billingId, requestOptions).body();
}
- public ListProductPricesResponse listProductPrices() {
- return this.rawClient.listProductPrices().body();
+ public ListBillingProductPricesResponse listBillingProductPrices() {
+ return this.rawClient.listBillingProductPrices().body();
}
- public ListProductPricesResponse listProductPrices(ListProductPricesRequest request) {
- return this.rawClient.listProductPrices(request).body();
+ public ListBillingProductPricesResponse listBillingProductPrices(ListBillingProductPricesRequest request) {
+ return this.rawClient.listBillingProductPrices(request).body();
}
- public ListProductPricesResponse listProductPrices(
- ListProductPricesRequest request, RequestOptions requestOptions) {
- return this.rawClient.listProductPrices(request, requestOptions).body();
+ public ListBillingProductPricesResponse listBillingProductPrices(
+ ListBillingProductPricesRequest request, RequestOptions requestOptions) {
+ return this.rawClient.listBillingProductPrices(request, requestOptions).body();
}
public DeleteProductPriceResponse deleteProductPrice(String billingId) {
diff --git a/src/main/java/com/schematic/api/resources/billing/RawBillingClient.java b/src/main/java/com/schematic/api/resources/billing/RawBillingClient.java
index bc7a7f0..52a949f 100644
--- a/src/main/java/com/schematic/api/resources/billing/RawBillingClient.java
+++ b/src/main/java/com/schematic/api/resources/billing/RawBillingClient.java
@@ -27,26 +27,26 @@
import com.schematic.api.resources.billing.requests.CreateInvoiceRequestBody;
import com.schematic.api.resources.billing.requests.CreateMeterRequestBody;
import com.schematic.api.resources.billing.requests.CreatePaymentMethodRequestBody;
+import com.schematic.api.resources.billing.requests.ListBillingPricesRequest;
+import com.schematic.api.resources.billing.requests.ListBillingProductPricesRequest;
import com.schematic.api.resources.billing.requests.ListBillingProductsRequest;
import com.schematic.api.resources.billing.requests.ListCouponsRequest;
import com.schematic.api.resources.billing.requests.ListCustomersWithSubscriptionsRequest;
import com.schematic.api.resources.billing.requests.ListInvoicesRequest;
import com.schematic.api.resources.billing.requests.ListMetersRequest;
import com.schematic.api.resources.billing.requests.ListPaymentMethodsRequest;
-import com.schematic.api.resources.billing.requests.ListProductPricesRequest;
-import com.schematic.api.resources.billing.requests.SearchBillingPricesRequest;
import com.schematic.api.resources.billing.types.CountBillingProductsResponse;
import com.schematic.api.resources.billing.types.CountCustomersResponse;
import com.schematic.api.resources.billing.types.DeleteBillingProductResponse;
import com.schematic.api.resources.billing.types.DeleteProductPriceResponse;
+import com.schematic.api.resources.billing.types.ListBillingPricesResponse;
+import com.schematic.api.resources.billing.types.ListBillingProductPricesResponse;
import com.schematic.api.resources.billing.types.ListBillingProductsResponse;
import com.schematic.api.resources.billing.types.ListCouponsResponse;
import com.schematic.api.resources.billing.types.ListCustomersWithSubscriptionsResponse;
import com.schematic.api.resources.billing.types.ListInvoicesResponse;
import com.schematic.api.resources.billing.types.ListMetersResponse;
import com.schematic.api.resources.billing.types.ListPaymentMethodsResponse;
-import com.schematic.api.resources.billing.types.ListProductPricesResponse;
-import com.schematic.api.resources.billing.types.SearchBillingPricesResponse;
import com.schematic.api.resources.billing.types.UpsertBillingCouponResponse;
import com.schematic.api.resources.billing.types.UpsertBillingCustomerResponse;
import com.schematic.api.resources.billing.types.UpsertBillingMeterResponse;
@@ -303,9 +303,9 @@ public BaseSchematicHttpResponse listCus
QueryStringMapper.addQueryParameter(
httpUrl, "name", request.getName().get(), false);
}
- if (request.getFailedToImport().isPresent()) {
+ if (request.getProviderType().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl, "failed_to_import", request.getFailedToImport().get(), false);
+ httpUrl, "provider_type", request.getProviderType().get(), false);
}
if (request.getQ().isPresent()) {
QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().get(), false);
@@ -389,9 +389,9 @@ public BaseSchematicHttpResponse countCustomers(
QueryStringMapper.addQueryParameter(
httpUrl, "name", request.getName().get(), false);
}
- if (request.getFailedToImport().isPresent()) {
+ if (request.getProviderType().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl, "failed_to_import", request.getFailedToImport().get(), false);
+ httpUrl, "provider_type", request.getProviderType().get(), false);
}
if (request.getQ().isPresent()) {
QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().get(), false);
@@ -876,17 +876,16 @@ public BaseSchematicHttpResponse upsertPaymentMetho
}
}
- public BaseSchematicHttpResponse searchBillingPrices() {
- return searchBillingPrices(SearchBillingPricesRequest.builder().build());
+ public BaseSchematicHttpResponse listBillingPrices() {
+ return listBillingPrices(ListBillingPricesRequest.builder().build());
}
- public BaseSchematicHttpResponse searchBillingPrices(
- SearchBillingPricesRequest request) {
- return searchBillingPrices(request, null);
+ public BaseSchematicHttpResponse listBillingPrices(ListBillingPricesRequest request) {
+ return listBillingPrices(request, null);
}
- public BaseSchematicHttpResponse searchBillingPrices(
- SearchBillingPricesRequest request, RequestOptions requestOptions) {
+ public BaseSchematicHttpResponse listBillingPrices(
+ ListBillingPricesRequest request, RequestOptions requestOptions) {
HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
.newBuilder()
.addPathSegments("billing/price");
@@ -901,27 +900,28 @@ public BaseSchematicHttpResponse searchBillingPrice
request.getForTrialExpiryPlan().get(),
false);
}
- if (request.getProductId().isPresent()) {
- QueryStringMapper.addQueryParameter(
- httpUrl, "product_id", request.getProductId().get(), false);
- }
if (request.getInterval().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "interval", request.getInterval().get(), false);
}
+ if (request.getIsActive().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "is_active", request.getIsActive().get(), false);
+ }
if (request.getPrice().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "price", request.getPrice().get(), false);
}
- if (request.getQ().isPresent()) {
- QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().get(), false);
+ if (request.getProductId().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "product_id", request.getProductId().get(), false);
}
- if (request.getRequiresPaymentMethod().isPresent()) {
+ if (request.getProviderType().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl,
- "requires_payment_method",
- request.getRequiresPaymentMethod().get(),
- false);
+ httpUrl, "provider_type", request.getProviderType().get(), false);
+ }
+ if (request.getQ().isPresent()) {
+ QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().get(), false);
}
if (request.getTiersMode().isPresent()) {
QueryStringMapper.addQueryParameter(
@@ -931,6 +931,10 @@ public BaseSchematicHttpResponse searchBillingPrice
QueryStringMapper.addQueryParameter(
httpUrl, "usage_type", request.getUsageType().get(), false);
}
+ if (request.getWithMeter().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "with_meter", request.getWithMeter().get(), false);
+ }
if (request.getLimit().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "limit", request.getLimit().get(), false);
@@ -942,6 +946,10 @@ public BaseSchematicHttpResponse searchBillingPrice
if (request.getIds().isPresent()) {
QueryStringMapper.addQueryParameter(httpUrl, "ids", request.getIds().get(), true);
}
+ if (request.getProductIds().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "product_ids", request.getProductIds().get(), true);
+ }
Request.Builder _requestBuilder = new Request.Builder()
.url(httpUrl.build())
.method("GET", null)
@@ -956,7 +964,7 @@ public BaseSchematicHttpResponse searchBillingPrice
ResponseBody responseBody = response.body();
if (response.isSuccessful()) {
return new BaseSchematicHttpResponse<>(
- ObjectMappers.JSON_MAPPER.readValue(responseBody.string(), SearchBillingPricesResponse.class),
+ ObjectMappers.JSON_MAPPER.readValue(responseBody.string(), ListBillingPricesResponse.class),
response);
}
String responseBodyString = responseBody != null ? responseBody.string() : "{}";
@@ -1119,55 +1127,66 @@ public BaseSchematicHttpResponse deleteBillingProd
}
}
- public BaseSchematicHttpResponse listProductPrices() {
- return listProductPrices(ListProductPricesRequest.builder().build());
+ public BaseSchematicHttpResponse listBillingProductPrices() {
+ return listBillingProductPrices(
+ ListBillingProductPricesRequest.builder().build());
}
- public BaseSchematicHttpResponse listProductPrices(ListProductPricesRequest request) {
- return listProductPrices(request, null);
+ public BaseSchematicHttpResponse listBillingProductPrices(
+ ListBillingProductPricesRequest request) {
+ return listBillingProductPrices(request, null);
}
- public BaseSchematicHttpResponse listProductPrices(
- ListProductPricesRequest request, RequestOptions requestOptions) {
+ public BaseSchematicHttpResponse listBillingProductPrices(
+ ListBillingProductPricesRequest request, RequestOptions requestOptions) {
HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
.newBuilder()
.addPathSegments("billing/product/prices");
- if (request.getName().isPresent()) {
+ if (request.getForInitialPlan().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl, "name", request.getName().get(), false);
+ httpUrl, "for_initial_plan", request.getForInitialPlan().get(), false);
}
- if (request.getQ().isPresent()) {
- QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().get(), false);
+ if (request.getForTrialExpiryPlan().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl,
+ "for_trial_expiry_plan",
+ request.getForTrialExpiryPlan().get(),
+ false);
}
- if (request.getPriceUsageType().isPresent()) {
+ if (request.getInterval().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl, "price_usage_type", request.getPriceUsageType().get(), false);
+ httpUrl, "interval", request.getInterval().get(), false);
}
- if (request.getWithoutLinkedToPlan().isPresent()) {
+ if (request.getIsActive().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl,
- "without_linked_to_plan",
- request.getWithoutLinkedToPlan().get(),
- false);
+ httpUrl, "is_active", request.getIsActive().get(), false);
}
- if (request.getWithOneTimeCharges().isPresent()) {
+ if (request.getPrice().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl,
- "with_one_time_charges",
- request.getWithOneTimeCharges().get(),
- false);
+ httpUrl, "price", request.getPrice().get(), false);
}
- if (request.getWithZeroPrice().isPresent()) {
+ if (request.getProductId().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl, "with_zero_price", request.getWithZeroPrice().get(), false);
+ httpUrl, "product_id", request.getProductId().get(), false);
}
- if (request.getWithPricesOnly().isPresent()) {
+ if (request.getProviderType().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl, "with_prices_only", request.getWithPricesOnly().get(), false);
+ httpUrl, "provider_type", request.getProviderType().get(), false);
}
- if (request.getIsActive().isPresent()) {
+ if (request.getQ().isPresent()) {
+ QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().get(), false);
+ }
+ if (request.getTiersMode().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl, "is_active", request.getIsActive().get(), false);
+ httpUrl, "tiers_mode", request.getTiersMode().get(), false);
+ }
+ if (request.getUsageType().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "usage_type", request.getUsageType().get(), false);
+ }
+ if (request.getWithMeter().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "with_meter", request.getWithMeter().get(), false);
}
if (request.getLimit().isPresent()) {
QueryStringMapper.addQueryParameter(
@@ -1180,6 +1199,10 @@ public BaseSchematicHttpResponse listProductPrices(
if (request.getIds().isPresent()) {
QueryStringMapper.addQueryParameter(httpUrl, "ids", request.getIds().get(), true);
}
+ if (request.getProductIds().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "product_ids", request.getProductIds().get(), true);
+ }
Request.Builder _requestBuilder = new Request.Builder()
.url(httpUrl.build())
.method("GET", null)
@@ -1194,7 +1217,8 @@ public BaseSchematicHttpResponse listProductPrices(
ResponseBody responseBody = response.body();
if (response.isSuccessful()) {
return new BaseSchematicHttpResponse<>(
- ObjectMappers.JSON_MAPPER.readValue(responseBody.string(), ListProductPricesResponse.class),
+ ObjectMappers.JSON_MAPPER.readValue(
+ responseBody.string(), ListBillingProductPricesResponse.class),
response);
}
String responseBodyString = responseBody != null ? responseBody.string() : "{}";
@@ -1371,23 +1395,24 @@ public BaseSchematicHttpResponse listBillingProduct
HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
.newBuilder()
.addPathSegments("billing/products");
+ if (request.getIsActive().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "is_active", request.getIsActive().get(), false);
+ }
if (request.getName().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "name", request.getName().get(), false);
}
- if (request.getQ().isPresent()) {
- QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().get(), false);
- }
if (request.getPriceUsageType().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "price_usage_type", request.getPriceUsageType().get(), false);
}
- if (request.getWithoutLinkedToPlan().isPresent()) {
+ if (request.getProviderType().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl,
- "without_linked_to_plan",
- request.getWithoutLinkedToPlan().get(),
- false);
+ httpUrl, "provider_type", request.getProviderType().get(), false);
+ }
+ if (request.getQ().isPresent()) {
+ QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().get(), false);
}
if (request.getWithOneTimeCharges().isPresent()) {
QueryStringMapper.addQueryParameter(
@@ -1396,17 +1421,20 @@ public BaseSchematicHttpResponse listBillingProduct
request.getWithOneTimeCharges().get(),
false);
}
- if (request.getWithZeroPrice().isPresent()) {
- QueryStringMapper.addQueryParameter(
- httpUrl, "with_zero_price", request.getWithZeroPrice().get(), false);
- }
if (request.getWithPricesOnly().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "with_prices_only", request.getWithPricesOnly().get(), false);
}
- if (request.getIsActive().isPresent()) {
+ if (request.getWithZeroPrice().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl, "is_active", request.getIsActive().get(), false);
+ httpUrl, "with_zero_price", request.getWithZeroPrice().get(), false);
+ }
+ if (request.getWithoutLinkedToPlan().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl,
+ "without_linked_to_plan",
+ request.getWithoutLinkedToPlan().get(),
+ false);
}
if (request.getLimit().isPresent()) {
QueryStringMapper.addQueryParameter(
@@ -1482,23 +1510,24 @@ public BaseSchematicHttpResponse countBillingProdu
HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
.newBuilder()
.addPathSegments("billing/products/count");
+ if (request.getIsActive().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "is_active", request.getIsActive().get(), false);
+ }
if (request.getName().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "name", request.getName().get(), false);
}
- if (request.getQ().isPresent()) {
- QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().get(), false);
- }
if (request.getPriceUsageType().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "price_usage_type", request.getPriceUsageType().get(), false);
}
- if (request.getWithoutLinkedToPlan().isPresent()) {
+ if (request.getProviderType().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl,
- "without_linked_to_plan",
- request.getWithoutLinkedToPlan().get(),
- false);
+ httpUrl, "provider_type", request.getProviderType().get(), false);
+ }
+ if (request.getQ().isPresent()) {
+ QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().get(), false);
}
if (request.getWithOneTimeCharges().isPresent()) {
QueryStringMapper.addQueryParameter(
@@ -1507,17 +1536,20 @@ public BaseSchematicHttpResponse countBillingProdu
request.getWithOneTimeCharges().get(),
false);
}
- if (request.getWithZeroPrice().isPresent()) {
- QueryStringMapper.addQueryParameter(
- httpUrl, "with_zero_price", request.getWithZeroPrice().get(), false);
- }
if (request.getWithPricesOnly().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "with_prices_only", request.getWithPricesOnly().get(), false);
}
- if (request.getIsActive().isPresent()) {
+ if (request.getWithZeroPrice().isPresent()) {
QueryStringMapper.addQueryParameter(
- httpUrl, "is_active", request.getIsActive().get(), false);
+ httpUrl, "with_zero_price", request.getWithZeroPrice().get(), false);
+ }
+ if (request.getWithoutLinkedToPlan().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl,
+ "without_linked_to_plan",
+ request.getWithoutLinkedToPlan().get(),
+ false);
}
if (request.getLimit().isPresent()) {
QueryStringMapper.addQueryParameter(
diff --git a/src/main/java/com/schematic/api/resources/billing/requests/CountBillingProductsRequest.java b/src/main/java/com/schematic/api/resources/billing/requests/CountBillingProductsRequest.java
index 69ff4f0..cbd5b7b 100644
--- a/src/main/java/com/schematic/api/resources/billing/requests/CountBillingProductsRequest.java
+++ b/src/main/java/com/schematic/api/resources/billing/requests/CountBillingProductsRequest.java
@@ -12,7 +12,8 @@
import com.fasterxml.jackson.annotation.Nulls;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.schematic.api.core.ObjectMappers;
-import com.schematic.api.resources.billing.types.CountBillingProductsRequestPriceUsageType;
+import com.schematic.api.types.BillingPriceUsageType;
+import com.schematic.api.types.BillingProviderType;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
@@ -25,21 +26,23 @@
public final class CountBillingProductsRequest {
private final Optional> ids;
+ private final Optional isActive;
+
private final Optional name;
- private final Optional q;
+ private final Optional priceUsageType;
- private final Optional priceUsageType;
+ private final Optional providerType;
- private final Optional withoutLinkedToPlan;
+ private final Optional q;
private final Optional withOneTimeCharges;
- private final Optional withZeroPrice;
-
private final Optional withPricesOnly;
- private final Optional isActive;
+ private final Optional withZeroPrice;
+
+ private final Optional withoutLinkedToPlan;
private final Optional limit;
@@ -49,26 +52,28 @@ public final class CountBillingProductsRequest {
private CountBillingProductsRequest(
Optional> ids,
+ Optional isActive,
Optional name,
+ Optional priceUsageType,
+ Optional providerType,
Optional q,
- Optional priceUsageType,
- Optional withoutLinkedToPlan,
Optional withOneTimeCharges,
- Optional withZeroPrice,
Optional withPricesOnly,
- Optional isActive,
+ Optional withZeroPrice,
+ Optional withoutLinkedToPlan,
Optional limit,
Optional offset,
Map additionalProperties) {
this.ids = ids;
+ this.isActive = isActive;
this.name = name;
- this.q = q;
this.priceUsageType = priceUsageType;
- this.withoutLinkedToPlan = withoutLinkedToPlan;
+ this.providerType = providerType;
+ this.q = q;
this.withOneTimeCharges = withOneTimeCharges;
- this.withZeroPrice = withZeroPrice;
this.withPricesOnly = withPricesOnly;
- this.isActive = isActive;
+ this.withZeroPrice = withZeroPrice;
+ this.withoutLinkedToPlan = withoutLinkedToPlan;
this.limit = limit;
this.offset = offset;
this.additionalProperties = additionalProperties;
@@ -79,27 +84,32 @@ public Optional> getIds() {
return ids;
}
+ /**
+ * @return Filter products that are active. Defaults to true if not specified
+ */
+ @JsonProperty("is_active")
+ public Optional getIsActive() {
+ return isActive;
+ }
+
@JsonProperty("name")
public Optional getName() {
return name;
}
- @JsonProperty("q")
- public Optional getQ() {
- return q;
- }
-
@JsonProperty("price_usage_type")
- public Optional getPriceUsageType() {
+ public Optional getPriceUsageType() {
return priceUsageType;
}
- /**
- * @return Filter products that are not linked to any plan
- */
- @JsonProperty("without_linked_to_plan")
- public Optional getWithoutLinkedToPlan() {
- return withoutLinkedToPlan;
+ @JsonProperty("provider_type")
+ public Optional getProviderType() {
+ return providerType;
+ }
+
+ @JsonProperty("q")
+ public Optional getQ() {
+ return q;
}
/**
@@ -110,14 +120,6 @@ public Optional getWithOneTimeCharges() {
return withOneTimeCharges;
}
- /**
- * @return Filter products that have zero price for free subscription type
- */
- @JsonProperty("with_zero_price")
- public Optional getWithZeroPrice() {
- return withZeroPrice;
- }
-
/**
* @return Filter products that have prices
*/
@@ -127,11 +129,19 @@ public Optional getWithPricesOnly() {
}
/**
- * @return Filter products that are active
+ * @return Filter products that have zero price for free subscription type
*/
- @JsonProperty("is_active")
- public Optional getIsActive() {
- return isActive;
+ @JsonProperty("with_zero_price")
+ public Optional getWithZeroPrice() {
+ return withZeroPrice;
+ }
+
+ /**
+ * @return Filter products that are not linked to any plan
+ */
+ @JsonProperty("without_linked_to_plan")
+ public Optional getWithoutLinkedToPlan() {
+ return withoutLinkedToPlan;
}
/**
@@ -163,14 +173,15 @@ public Map getAdditionalProperties() {
private boolean equalTo(CountBillingProductsRequest other) {
return ids.equals(other.ids)
+ && isActive.equals(other.isActive)
&& name.equals(other.name)
- && q.equals(other.q)
&& priceUsageType.equals(other.priceUsageType)
- && withoutLinkedToPlan.equals(other.withoutLinkedToPlan)
+ && providerType.equals(other.providerType)
+ && q.equals(other.q)
&& withOneTimeCharges.equals(other.withOneTimeCharges)
- && withZeroPrice.equals(other.withZeroPrice)
&& withPricesOnly.equals(other.withPricesOnly)
- && isActive.equals(other.isActive)
+ && withZeroPrice.equals(other.withZeroPrice)
+ && withoutLinkedToPlan.equals(other.withoutLinkedToPlan)
&& limit.equals(other.limit)
&& offset.equals(other.offset);
}
@@ -179,14 +190,15 @@ private boolean equalTo(CountBillingProductsRequest other) {
public int hashCode() {
return Objects.hash(
this.ids,
+ this.isActive,
this.name,
- this.q,
this.priceUsageType,
- this.withoutLinkedToPlan,
+ this.providerType,
+ this.q,
this.withOneTimeCharges,
- this.withZeroPrice,
this.withPricesOnly,
- this.isActive,
+ this.withZeroPrice,
+ this.withoutLinkedToPlan,
this.limit,
this.offset);
}
@@ -204,21 +216,23 @@ public static Builder builder() {
public static final class Builder {
private Optional> ids = Optional.empty();
+ private Optional isActive = Optional.empty();
+
private Optional name = Optional.empty();
- private Optional q = Optional.empty();
+ private Optional priceUsageType = Optional.empty();
- private Optional priceUsageType = Optional.empty();
+ private Optional providerType = Optional.empty();
- private Optional withoutLinkedToPlan = Optional.empty();
+ private Optional q = Optional.empty();
private Optional withOneTimeCharges = Optional.empty();
- private Optional withZeroPrice = Optional.empty();
-
private Optional withPricesOnly = Optional.empty();
- private Optional isActive = Optional.empty();
+ private Optional withZeroPrice = Optional.empty();
+
+ private Optional withoutLinkedToPlan = Optional.empty();
private Optional limit = Optional.empty();
@@ -231,14 +245,15 @@ private Builder() {}
public Builder from(CountBillingProductsRequest other) {
ids(other.getIds());
+ isActive(other.getIsActive());
name(other.getName());
- q(other.getQ());
priceUsageType(other.getPriceUsageType());
- withoutLinkedToPlan(other.getWithoutLinkedToPlan());
+ providerType(other.getProviderType());
+ q(other.getQ());
withOneTimeCharges(other.getWithOneTimeCharges());
- withZeroPrice(other.getWithZeroPrice());
withPricesOnly(other.getWithPricesOnly());
- isActive(other.getIsActive());
+ withZeroPrice(other.getWithZeroPrice());
+ withoutLinkedToPlan(other.getWithoutLinkedToPlan());
limit(other.getLimit());
offset(other.getOffset());
return this;
@@ -260,6 +275,20 @@ public Builder ids(String ids) {
return this;
}
+ /**
+ * Filter products that are active. Defaults to true if not specified
+ */
+ @JsonSetter(value = "is_active", nulls = Nulls.SKIP)
+ public Builder isActive(Optional isActive) {
+ this.isActive = isActive;
+ return this;
+ }
+
+ public Builder isActive(Boolean isActive) {
+ this.isActive = Optional.ofNullable(isActive);
+ return this;
+ }
+
@JsonSetter(value = "name", nulls = Nulls.SKIP)
public Builder name(Optional name) {
this.name = name;
@@ -271,39 +300,36 @@ public Builder name(String name) {
return this;
}
- @JsonSetter(value = "q", nulls = Nulls.SKIP)
- public Builder q(Optional q) {
- this.q = q;
+ @JsonSetter(value = "price_usage_type", nulls = Nulls.SKIP)
+ public Builder priceUsageType(Optional priceUsageType) {
+ this.priceUsageType = priceUsageType;
return this;
}
- public Builder q(String q) {
- this.q = Optional.ofNullable(q);
+ public Builder priceUsageType(BillingPriceUsageType priceUsageType) {
+ this.priceUsageType = Optional.ofNullable(priceUsageType);
return this;
}
- @JsonSetter(value = "price_usage_type", nulls = Nulls.SKIP)
- public Builder priceUsageType(Optional priceUsageType) {
- this.priceUsageType = priceUsageType;
+ @JsonSetter(value = "provider_type", nulls = Nulls.SKIP)
+ public Builder providerType(Optional providerType) {
+ this.providerType = providerType;
return this;
}
- public Builder priceUsageType(CountBillingProductsRequestPriceUsageType priceUsageType) {
- this.priceUsageType = Optional.ofNullable(priceUsageType);
+ public Builder providerType(BillingProviderType providerType) {
+ this.providerType = Optional.ofNullable(providerType);
return this;
}
- /**
- * Filter products that are not linked to any plan
- */
- @JsonSetter(value = "without_linked_to_plan", nulls = Nulls.SKIP)
- public Builder withoutLinkedToPlan(Optional withoutLinkedToPlan) {
- this.withoutLinkedToPlan = withoutLinkedToPlan;
+ @JsonSetter(value = "q", nulls = Nulls.SKIP)
+ public Builder q(Optional q) {
+ this.q = q;
return this;
}
- public Builder withoutLinkedToPlan(Boolean withoutLinkedToPlan) {
- this.withoutLinkedToPlan = Optional.ofNullable(withoutLinkedToPlan);
+ public Builder q(String q) {
+ this.q = Optional.ofNullable(q);
return this;
}
@@ -322,44 +348,44 @@ public Builder withOneTimeCharges(Boolean withOneTimeCharges) {
}
/**
- * Filter products that have zero price for free subscription type
+ * Filter products that have prices
*/
- @JsonSetter(value = "with_zero_price", nulls = Nulls.SKIP)
- public Builder withZeroPrice(Optional withZeroPrice) {
- this.withZeroPrice = withZeroPrice;
+ @JsonSetter(value = "with_prices_only", nulls = Nulls.SKIP)
+ public Builder withPricesOnly(Optional withPricesOnly) {
+ this.withPricesOnly = withPricesOnly;
return this;
}
- public Builder withZeroPrice(Boolean withZeroPrice) {
- this.withZeroPrice = Optional.ofNullable(withZeroPrice);
+ public Builder withPricesOnly(Boolean withPricesOnly) {
+ this.withPricesOnly = Optional.ofNullable(withPricesOnly);
return this;
}
/**
- * Filter products that have prices
+ * Filter products that have zero price for free subscription type
*/
- @JsonSetter(value = "with_prices_only", nulls = Nulls.SKIP)
- public Builder withPricesOnly(Optional withPricesOnly) {
- this.withPricesOnly = withPricesOnly;
+ @JsonSetter(value = "with_zero_price", nulls = Nulls.SKIP)
+ public Builder withZeroPrice(Optional withZeroPrice) {
+ this.withZeroPrice = withZeroPrice;
return this;
}
- public Builder withPricesOnly(Boolean withPricesOnly) {
- this.withPricesOnly = Optional.ofNullable(withPricesOnly);
+ public Builder withZeroPrice(Boolean withZeroPrice) {
+ this.withZeroPrice = Optional.ofNullable(withZeroPrice);
return this;
}
/**
- * Filter products that are active
+ * Filter products that are not linked to any plan
*/
- @JsonSetter(value = "is_active", nulls = Nulls.SKIP)
- public Builder isActive(Optional isActive) {
- this.isActive = isActive;
+ @JsonSetter(value = "without_linked_to_plan", nulls = Nulls.SKIP)
+ public Builder withoutLinkedToPlan(Optional withoutLinkedToPlan) {
+ this.withoutLinkedToPlan = withoutLinkedToPlan;
return this;
}
- public Builder isActive(Boolean isActive) {
- this.isActive = Optional.ofNullable(isActive);
+ public Builder withoutLinkedToPlan(Boolean withoutLinkedToPlan) {
+ this.withoutLinkedToPlan = Optional.ofNullable(withoutLinkedToPlan);
return this;
}
@@ -394,14 +420,15 @@ public Builder offset(Integer offset) {
public CountBillingProductsRequest build() {
return new CountBillingProductsRequest(
ids,
+ isActive,
name,
- q,
priceUsageType,
- withoutLinkedToPlan,
+ providerType,
+ q,
withOneTimeCharges,
- withZeroPrice,
withPricesOnly,
- isActive,
+ withZeroPrice,
+ withoutLinkedToPlan,
limit,
offset,
additionalProperties);
diff --git a/src/main/java/com/schematic/api/resources/billing/requests/CountCustomersRequest.java b/src/main/java/com/schematic/api/resources/billing/requests/CountCustomersRequest.java
index f786a79..6eb10dc 100644
--- a/src/main/java/com/schematic/api/resources/billing/requests/CountCustomersRequest.java
+++ b/src/main/java/com/schematic/api/resources/billing/requests/CountCustomersRequest.java
@@ -12,6 +12,7 @@
import com.fasterxml.jackson.annotation.Nulls;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.schematic.api.core.ObjectMappers;
+import com.schematic.api.types.BillingProviderType;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
@@ -26,7 +27,7 @@ public final class CountCustomersRequest {
private final Optional name;
- private final Optional failedToImport;
+ private final Optional providerType;
private final Optional q;
@@ -39,14 +40,14 @@ public final class CountCustomersRequest {
private CountCustomersRequest(
Optional> companyIds,
Optional name,
- Optional failedToImport,
+ Optional providerType,
Optional q,
Optional limit,
Optional offset,
Map additionalProperties) {
this.companyIds = companyIds;
this.name = name;
- this.failedToImport = failedToImport;
+ this.providerType = providerType;
this.q = q;
this.limit = limit;
this.offset = offset;
@@ -63,9 +64,9 @@ public Optional getName() {
return name;
}
- @JsonProperty("failed_to_import")
- public Optional getFailedToImport() {
- return failedToImport;
+ @JsonProperty("provider_type")
+ public Optional getProviderType() {
+ return providerType;
}
@JsonProperty("q")
@@ -103,7 +104,7 @@ public Map getAdditionalProperties() {
private boolean equalTo(CountCustomersRequest other) {
return companyIds.equals(other.companyIds)
&& name.equals(other.name)
- && failedToImport.equals(other.failedToImport)
+ && providerType.equals(other.providerType)
&& q.equals(other.q)
&& limit.equals(other.limit)
&& offset.equals(other.offset);
@@ -111,7 +112,7 @@ private boolean equalTo(CountCustomersRequest other) {
@java.lang.Override
public int hashCode() {
- return Objects.hash(this.companyIds, this.name, this.failedToImport, this.q, this.limit, this.offset);
+ return Objects.hash(this.companyIds, this.name, this.providerType, this.q, this.limit, this.offset);
}
@java.lang.Override
@@ -129,7 +130,7 @@ public static final class Builder {
private Optional name = Optional.empty();
- private Optional failedToImport = Optional.empty();
+ private Optional providerType = Optional.empty();
private Optional q = Optional.empty();
@@ -145,7 +146,7 @@ private Builder() {}
public Builder from(CountCustomersRequest other) {
companyIds(other.getCompanyIds());
name(other.getName());
- failedToImport(other.getFailedToImport());
+ providerType(other.getProviderType());
q(other.getQ());
limit(other.getLimit());
offset(other.getOffset());
@@ -179,14 +180,14 @@ public Builder name(String name) {
return this;
}
- @JsonSetter(value = "failed_to_import", nulls = Nulls.SKIP)
- public Builder failedToImport(Optional failedToImport) {
- this.failedToImport = failedToImport;
+ @JsonSetter(value = "provider_type", nulls = Nulls.SKIP)
+ public Builder providerType(Optional providerType) {
+ this.providerType = providerType;
return this;
}
- public Builder failedToImport(Boolean failedToImport) {
- this.failedToImport = Optional.ofNullable(failedToImport);
+ public Builder providerType(BillingProviderType providerType) {
+ this.providerType = Optional.ofNullable(providerType);
return this;
}
@@ -230,7 +231,7 @@ public Builder offset(Integer offset) {
}
public CountCustomersRequest build() {
- return new CountCustomersRequest(companyIds, name, failedToImport, q, limit, offset, additionalProperties);
+ return new CountCustomersRequest(companyIds, name, providerType, q, limit, offset, additionalProperties);
}
}
}
diff --git a/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingCustomerRequestBody.java b/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingCustomerRequestBody.java
index 8c34ad6..415b17f 100644
--- a/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingCustomerRequestBody.java
+++ b/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingCustomerRequestBody.java
@@ -12,6 +12,7 @@
import com.fasterxml.jackson.annotation.Nulls;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.schematic.api.core.ObjectMappers;
+import com.schematic.api.types.BillingProviderType;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
@@ -30,12 +31,12 @@ public final class CreateBillingCustomerRequestBody {
private final String externalId;
- private final boolean failedToImport;
-
private final Map meta;
private final String name;
+ private final Optional providerType;
+
private final Map additionalProperties;
private CreateBillingCustomerRequestBody(
@@ -43,17 +44,17 @@ private CreateBillingCustomerRequestBody(
Optional defaultPaymentMethodId,
String email,
String externalId,
- boolean failedToImport,
Map meta,
String name,
+ Optional providerType,
Map additionalProperties) {
this.companyId = companyId;
this.defaultPaymentMethodId = defaultPaymentMethodId;
this.email = email;
this.externalId = externalId;
- this.failedToImport = failedToImport;
this.meta = meta;
this.name = name;
+ this.providerType = providerType;
this.additionalProperties = additionalProperties;
}
@@ -77,11 +78,6 @@ public String getExternalId() {
return externalId;
}
- @JsonProperty("failed_to_import")
- public boolean getFailedToImport() {
- return failedToImport;
- }
-
@JsonProperty("meta")
public Map getMeta() {
return meta;
@@ -92,6 +88,11 @@ public String getName() {
return name;
}
+ @JsonProperty("provider_type")
+ public Optional getProviderType() {
+ return providerType;
+ }
+
@java.lang.Override
public boolean equals(Object other) {
if (this == other) return true;
@@ -108,9 +109,9 @@ private boolean equalTo(CreateBillingCustomerRequestBody other) {
&& defaultPaymentMethodId.equals(other.defaultPaymentMethodId)
&& email.equals(other.email)
&& externalId.equals(other.externalId)
- && failedToImport == other.failedToImport
&& meta.equals(other.meta)
- && name.equals(other.name);
+ && name.equals(other.name)
+ && providerType.equals(other.providerType);
}
@java.lang.Override
@@ -120,9 +121,9 @@ public int hashCode() {
this.defaultPaymentMethodId,
this.email,
this.externalId,
- this.failedToImport,
this.meta,
- this.name);
+ this.name,
+ this.providerType);
}
@java.lang.Override
@@ -141,11 +142,7 @@ public interface EmailStage {
}
public interface ExternalIdStage {
- FailedToImportStage externalId(@NotNull String externalId);
- }
-
- public interface FailedToImportStage {
- NameStage failedToImport(boolean failedToImport);
+ NameStage externalId(@NotNull String externalId);
}
public interface NameStage {
@@ -168,19 +165,22 @@ public interface _FinalStage {
_FinalStage putAllMeta(Map meta);
_FinalStage meta(String key, String value);
+
+ _FinalStage providerType(Optional providerType);
+
+ _FinalStage providerType(BillingProviderType providerType);
}
@JsonIgnoreProperties(ignoreUnknown = true)
- public static final class Builder
- implements EmailStage, ExternalIdStage, FailedToImportStage, NameStage, _FinalStage {
+ public static final class Builder implements EmailStage, ExternalIdStage, NameStage, _FinalStage {
private String email;
private String externalId;
- private boolean failedToImport;
-
private String name;
+ private Optional providerType = Optional.empty();
+
private Map meta = new LinkedHashMap<>();
private Optional defaultPaymentMethodId = Optional.empty();
@@ -198,9 +198,9 @@ public Builder from(CreateBillingCustomerRequestBody other) {
defaultPaymentMethodId(other.getDefaultPaymentMethodId());
email(other.getEmail());
externalId(other.getExternalId());
- failedToImport(other.getFailedToImport());
meta(other.getMeta());
name(other.getName());
+ providerType(other.getProviderType());
return this;
}
@@ -213,22 +213,28 @@ public ExternalIdStage email(@NotNull String email) {
@java.lang.Override
@JsonSetter("external_id")
- public FailedToImportStage externalId(@NotNull String externalId) {
+ public NameStage externalId(@NotNull String externalId) {
this.externalId = Objects.requireNonNull(externalId, "externalId must not be null");
return this;
}
@java.lang.Override
- @JsonSetter("failed_to_import")
- public NameStage failedToImport(boolean failedToImport) {
- this.failedToImport = failedToImport;
+ @JsonSetter("name")
+ public _FinalStage name(@NotNull String name) {
+ this.name = Objects.requireNonNull(name, "name must not be null");
return this;
}
@java.lang.Override
- @JsonSetter("name")
- public _FinalStage name(@NotNull String name) {
- this.name = Objects.requireNonNull(name, "name must not be null");
+ public _FinalStage providerType(BillingProviderType providerType) {
+ this.providerType = Optional.ofNullable(providerType);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "provider_type", nulls = Nulls.SKIP)
+ public _FinalStage providerType(Optional providerType) {
+ this.providerType = providerType;
return this;
}
@@ -289,9 +295,9 @@ public CreateBillingCustomerRequestBody build() {
defaultPaymentMethodId,
email,
externalId,
- failedToImport,
meta,
name,
+ providerType,
additionalProperties);
}
}
diff --git a/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingPriceRequestBody.java b/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingPriceRequestBody.java
index a9212ba..a9b977a 100644
--- a/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingPriceRequestBody.java
+++ b/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingPriceRequestBody.java
@@ -12,9 +12,10 @@
import com.fasterxml.jackson.annotation.Nulls;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.schematic.api.core.ObjectMappers;
-import com.schematic.api.resources.billing.types.CreateBillingPriceRequestBodyBillingScheme;
-import com.schematic.api.resources.billing.types.CreateBillingPriceRequestBodyTiersMode;
-import com.schematic.api.resources.billing.types.CreateBillingPriceRequestBodyUsageType;
+import com.schematic.api.types.BillingPriceScheme;
+import com.schematic.api.types.BillingPriceUsageType;
+import com.schematic.api.types.BillingProviderType;
+import com.schematic.api.types.BillingTiersMode;
import com.schematic.api.types.CreateBillingPriceTierRequestBody;
import java.util.ArrayList;
import java.util.HashMap;
@@ -27,7 +28,7 @@
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = CreateBillingPriceRequestBody.Builder.class)
public final class CreateBillingPriceRequestBody {
- private final CreateBillingPriceRequestBodyBillingScheme billingScheme;
+ private final BillingPriceScheme billingScheme;
private final String currency;
@@ -51,14 +52,16 @@ public final class CreateBillingPriceRequestBody {
private final String productExternalId;
- private final Optional tiersMode;
+ private final Optional providerType;
- private final CreateBillingPriceRequestBodyUsageType usageType;
+ private final Optional tiersMode;
+
+ private final BillingPriceUsageType usageType;
private final Map additionalProperties;
private CreateBillingPriceRequestBody(
- CreateBillingPriceRequestBodyBillingScheme billingScheme,
+ BillingPriceScheme billingScheme,
String currency,
String externalAccountId,
String interval,
@@ -70,8 +73,9 @@ private CreateBillingPriceRequestBody(
String priceExternalId,
List priceTiers,
String productExternalId,
- Optional tiersMode,
- CreateBillingPriceRequestBodyUsageType usageType,
+ Optional