Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"implementation redis.clients:jedis:5.2.0"
]
},
"originGitCommit": "340529eacf4f1dcc5522e771872c1dd94b9c4891",
"originGitCommit": "a9fc73b97dcfa602bff97a7d41d980a55c9c9030",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "1.5.3",
"requestedVersion": "1.5.4",
"ciProvider": "github",
"sdkVersion": "1.5.3"
"sdkVersion": "1.5.4"
}
8 changes: 7 additions & 1 deletion .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ java {

group = 'com.schematichq'

version = '1.5.3'
version = '1.5.4'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand Down Expand Up @@ -93,7 +93,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.schematichq'
artifactId = 'schematic-java'
version = '1.5.3'
version = '1.5.4'
from components.java
pom {
name = 'Schematic'
Expand Down
243 changes: 234 additions & 9 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,14 @@ client.accounts().createApiKey(
<dl>
<dd>

**rateLimitPercent:** `Optional<Long>`

</dd>
</dl>

<dl>
<dd>

**readonly:** `Optional<Boolean>`

</dd>
Expand Down Expand Up @@ -463,6 +471,14 @@ client.accounts().updateApiKey(

**name:** `Optional<String>`

</dd>
</dl>

<dl>
<dd>

**rateLimitPercent:** `Optional<Long>`

</dd>
</dl>
</dd>
Expand Down Expand Up @@ -2386,6 +2402,7 @@ client.billing().listBillingPrices(
.forInitialPlan(true)
.forTrialExpiryPlan(true)
.interval("interval")
.intervalCount(1000000L)
.isActive(true)
.planVersionId("plan_version_id")
.price(1000000L)
Expand Down Expand Up @@ -2453,6 +2470,14 @@ client.billing().listBillingPrices(
<dl>
<dd>

**intervalCount:** `Optional<Long>` — Filter for prices billed every N intervals; combine with interval (e.g. interval=month, interval_count=3 for quarterly)

</dd>
</dl>

<dl>
<dd>

**isActive:** `Optional<Boolean>` — Filter for active prices on active products (defaults to true if not specified)

</dd>
Expand Down Expand Up @@ -2808,6 +2833,7 @@ client.billing().listBillingProductPrices(
.forInitialPlan(true)
.forTrialExpiryPlan(true)
.interval("interval")
.intervalCount(1000000L)
.isActive(true)
.planVersionId("plan_version_id")
.price(1000000L)
Expand Down Expand Up @@ -2875,6 +2901,14 @@ client.billing().listBillingProductPrices(
<dl>
<dd>

**intervalCount:** `Optional<Long>` — Filter for prices billed every N intervals; combine with interval (e.g. interval=month, interval_count=3 for quarterly)

</dd>
</dl>

<dl>
<dd>

**isActive:** `Optional<Boolean>` — Filter for active prices on active products (defaults to true if not specified)

</dd>
Expand Down Expand Up @@ -6133,7 +6167,6 @@ client.catalogs().listCatalogs(
client.catalogs().createCatalog(
CreateCatalogRequestBody
.builder()
.isDefault(true)
.name("name")
.build()
);
Expand All @@ -6159,14 +6192,6 @@ client.catalogs().createCatalog(
<dl>
<dd>

**isDefault:** `Boolean`

</dd>
</dl>

<dl>
<dd>

**name:** `String`

</dd>
Expand Down Expand Up @@ -7157,6 +7182,14 @@ client.checkout().updateCompanyBillingDetails(
<dl>
<dd>

**taxId:** `Optional<TaxIdInput>`

</dd>
</dl>

<dl>
<dd>

**values:** `List<CheckoutFieldValue>`

</dd>
Expand Down Expand Up @@ -12760,6 +12793,150 @@ client.entitlements().getFeatureUsageByCompany(
</dl>


</dd>
</dl>
</details>

<details><summary><code>client.entitlements.getUserUsageByCompany() -> GetUserUsageByCompanyResponse</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```java
client.entitlements().getUserUsageByCompany(
GetUserUsageByCompanyRequest
.builder()
.companyId("company_id")
.endTime(OffsetDateTime.parse("2024-01-15T09:30:00Z"))
.featureId("feature_id")
.startTime(OffsetDateTime.parse("2024-01-15T09:30:00Z"))
.build()
);
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**companyId:** `String` — Company to break usage down for

</dd>
</dl>

<dl>
<dd>

**endTime:** `Optional<OffsetDateTime>` — End of the usage window (exclusive); defaults to now

</dd>
</dl>

<dl>
<dd>

**featureId:** `Optional<String>` — Restrict to a single event-based feature

</dd>
</dl>

<dl>
<dd>

**startTime:** `Optional<OffsetDateTime>` — Start of the usage window; defaults to 30 days before the end

</dd>
</dl>
</dd>
</dl>


</dd>
</dl>
</details>

<details><summary><code>client.entitlements.getUserUsageDetail() -> GetUserUsageDetailResponse</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```java
client.entitlements().getUserUsageDetail(
GetUserUsageDetailRequest
.builder()
.companyId("company_id")
.userId("user_id")
.endTime(OffsetDateTime.parse("2024-01-15T09:30:00Z"))
.startTime(OffsetDateTime.parse("2024-01-15T09:30:00Z"))
.build()
);
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**companyId:** `String` — Company the user belongs to

</dd>
</dl>

<dl>
<dd>

**endTime:** `Optional<OffsetDateTime>` — End of the usage window (exclusive); defaults to now

</dd>
</dl>

<dl>
<dd>

**startTime:** `Optional<OffsetDateTime>` — Start of the usage window; defaults to 30 days before the end

</dd>
</dl>

<dl>
<dd>

**userId:** `String` — User to break usage down for

</dd>
</dl>
</dd>
</dl>


</dd>
</dl>
</details>
Expand Down Expand Up @@ -13034,6 +13211,14 @@ client.plans().retryCustomPlanBilling(

**daysUntilDue:** `Optional<Long>`

</dd>
</dl>

<dl>
<dd>

**sendInvoice:** `Optional<Boolean>` — Whether Stripe emails the invoice when it is finalized. Defaults to true.

</dd>
</dl>
</dd>
Expand Down Expand Up @@ -14157,6 +14342,14 @@ client.plans().publishPlanVersion(
<dl>
<dd>

**address:** `Optional<CustomerBillingAddress>`

</dd>
</dl>

<dl>
<dd>

**couponExternalId:** `Optional<String>`

</dd>
Expand All @@ -14165,6 +14358,14 @@ client.plans().publishPlanVersion(
<dl>
<dd>

**customFieldValues:** `Optional<List<CheckoutFieldValue>>`

</dd>
</dl>

<dl>
<dd>

**customerEmail:** `Optional<String>`

</dd>
Expand All @@ -14191,6 +14392,30 @@ client.plans().publishPlanVersion(

**migrationStrategy:** `PlanVersionMigrationStrategy`

</dd>
</dl>

<dl>
<dd>

**phone:** `Optional<String>`

</dd>
</dl>

<dl>
<dd>

**sendInvoice:** `Optional<Boolean>` — Whether Stripe emails the invoice when it is finalized. Defaults to true.

</dd>
</dl>

<dl>
<dd>

**taxId:** `Optional<TaxIdInput>`

</dd>
</dl>
</dd>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/schematic/api/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ private ClientOptions(
this.headers.putAll(headers);
this.headers.putAll(new HashMap<String, String>() {
{
put("User-Agent", "com.schematichq:schematic-java/1.5.3");
put("User-Agent", "com.schematichq:schematic-java/1.5.4");
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.schematic.fern:api-sdk");
put("X-Fern-SDK-Version", "1.5.3");
put("X-Fern-SDK-Version", "1.5.4");
}
});
this.headerSuppliers = headerSuppliers;
Expand Down
Loading
Loading