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 @@ -15,10 +15,10 @@
"testImplementation com.github.codemonstur:embedded-redis:1.4.3"
]
},
"originGitCommit": "1d6a1c9cf0e1d72ea8ede6e7e8f84d35ffbd8be3",
"originGitCommit": "4ca95f7ba356ea2c3b42db5e3e78c064477b3a8d",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "1.6.1",
"requestedVersion": "1.6.2",
"ciProvider": "github",
"sdkVersion": "1.6.1"
"sdkVersion": "1.6.2"
}
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 @@ -63,7 +63,7 @@ java {

group = 'com.schematichq'

version = '1.6.1'
version = '1.6.2'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand Down Expand Up @@ -94,7 +94,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.schematichq'
artifactId = 'schematic-java'
version = '1.6.1'
version = '1.6.2'
from components.java
pom {
name = 'Schematic'
Expand Down
14 changes: 11 additions & 3 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2043,6 +2043,14 @@ client.billing().upsertInvoice(
<dl>
<dd>

**total:** `Optional<Long>`

</dd>
</dl>

<dl>
<dd>

**url:** `Optional<String>`

</dd>
Expand Down Expand Up @@ -12997,7 +13005,7 @@ client.entitlements().createPlanEntitlement(
<dl>
<dd>

**usageQuantity:** `Optional<Long>` — The committed unit quantity for this entitlement. For custom plans this is the quantity the company is contractually committed to; for standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements. Note: this is not yet enforced/auto-provisioned as a true default — it is currently stored for downstream billing use.
**usageQuantity:** `Optional<Long>` — The committed unit quantity for this entitlement. For custom plans this is the minimum the company is contractually committed to: the company can buy more, and finalizing a new plan version sets the subscription quantity to the larger of this value and what the subscription already holds. For standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements.

</dd>
</dl>
Expand Down Expand Up @@ -13347,7 +13355,7 @@ client.entitlements().updatePlanEntitlement(
<dl>
<dd>

**usageQuantity:** `Optional<Long>` — The committed unit quantity for this entitlement. For custom plans this is the quantity the company is contractually committed to; for standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements. Note: this is not yet enforced/auto-provisioned as a true default — it is currently stored for downstream billing use.
**usageQuantity:** `Optional<Long>` — The committed unit quantity for this entitlement. For custom plans this is the minimum the company is contractually committed to: the company can buy more, and finalizing a new plan version sets the subscription quantity to the larger of this value and what the subscription already holds. For standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements.

</dd>
</dl>
Expand Down Expand Up @@ -13732,7 +13740,7 @@ client.entitlements().upsertPlanEntitlementForBillingProduct(
<dl>
<dd>

**usageQuantity:** `Optional<Long>` — The committed unit quantity for this entitlement. For custom plans this is the quantity the company is contractually committed to; for standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements. Note: this is not yet enforced/auto-provisioned as a true default — it is currently stored for downstream billing use.
**usageQuantity:** `Optional<Long>` — The committed unit quantity for this entitlement. For custom plans this is the minimum the company is contractually committed to: the company can buy more, and finalizing a new plan version sets the subscription quantity to the larger of this value and what the subscription already holds. For standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements.

</dd>
</dl>
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 @@ -47,10 +47,10 @@ private ClientOptions(
this.headers.putAll(headers);
this.headers.putAll(new HashMap<String, String>() {
{
put("User-Agent", "com.schematichq.schematic-java/1.6.1");
put("User-Agent", "com.schematichq.schematic-java/1.6.2");
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.schematichq:schematic-java");
put("X-Fern-SDK-Version", "1.6.1");
put("X-Fern-SDK-Version", "1.6.2");
}
});
this.headerSuppliers = headerSuppliers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ public final class CreateInvoiceRequestBody {

private final long subtotal;

private final Optional<Long> total;

private final Optional<String> url;

private final Map<String, Object> additionalProperties;
Expand All @@ -70,6 +72,7 @@ private CreateInvoiceRequestBody(
Optional<InvoiceStatus> status,
Optional<String> subscriptionExternalId,
long subtotal,
Optional<Long> total,
Optional<String> url,
Map<String, Object> additionalProperties) {
this.amountDue = amountDue;
Expand All @@ -86,6 +89,7 @@ private CreateInvoiceRequestBody(
this.status = status;
this.subscriptionExternalId = subscriptionExternalId;
this.subtotal = subtotal;
this.total = total;
this.url = url;
this.additionalProperties = additionalProperties;
}
Expand Down Expand Up @@ -160,6 +164,11 @@ public long getSubtotal() {
return subtotal;
}

@JsonProperty("total")
public Optional<Long> getTotal() {
return total;
}

@JsonProperty("url")
public Optional<String> getUrl() {
return url;
Expand Down Expand Up @@ -191,6 +200,7 @@ private boolean equalTo(CreateInvoiceRequestBody other) {
&& status.equals(other.status)
&& subscriptionExternalId.equals(other.subscriptionExternalId)
&& subtotal == other.subtotal
&& total.equals(other.total)
&& url.equals(other.url);
}

Expand All @@ -211,6 +221,7 @@ public int hashCode() {
this.status,
this.subscriptionExternalId,
this.subtotal,
this.total,
this.url);
}

Expand Down Expand Up @@ -288,6 +299,10 @@ public interface _FinalStage {

_FinalStage subscriptionExternalId(String subscriptionExternalId);

_FinalStage total(Optional<Long> total);

_FinalStage total(Long total);

_FinalStage url(Optional<String> url);

_FinalStage url(String url);
Expand Down Expand Up @@ -319,6 +334,8 @@ public static final class Builder

private Optional<String> url = Optional.empty();

private Optional<Long> total = Optional.empty();

private Optional<String> subscriptionExternalId = Optional.empty();

private Optional<InvoiceStatus> status = Optional.empty();
Expand Down Expand Up @@ -354,6 +371,7 @@ public Builder from(CreateInvoiceRequestBody other) {
status(other.getStatus());
subscriptionExternalId(other.getSubscriptionExternalId());
subtotal(other.getSubtotal());
total(other.getTotal());
url(other.getUrl());
return this;
}
Expand Down Expand Up @@ -420,6 +438,19 @@ public _FinalStage url(Optional<String> url) {
return this;
}

@java.lang.Override
public _FinalStage total(Long total) {
this.total = Optional.ofNullable(total);
return this;
}

@java.lang.Override
@JsonSetter(value = "total", nulls = Nulls.SKIP)
public _FinalStage total(Optional<Long> total) {
this.total = total;
return this;
}

@java.lang.Override
public _FinalStage subscriptionExternalId(String subscriptionExternalId) {
this.subscriptionExternalId = Optional.ofNullable(subscriptionExternalId);
Expand Down Expand Up @@ -528,6 +559,7 @@ public CreateInvoiceRequestBody build() {
status,
subscriptionExternalId,
subtotal,
total,
url,
additionalProperties);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public Optional<BillingTiersMode> getTierMode() {
}

/**
* @return The committed unit quantity for this entitlement. For custom plans this is the quantity the company is contractually committed to; for standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements. Note: this is not yet enforced/auto-provisioned as a true default — it is currently stored for downstream billing use.
* @return The committed unit quantity for this entitlement. For custom plans this is the minimum the company is contractually committed to: the company can buy more, and finalizing a new plan version sets the subscription quantity to the larger of this value and what the subscription already holds. For standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements.
*/
@JsonProperty("usage_quantity")
public Optional<Long> getUsageQuantity() {
Expand Down Expand Up @@ -630,7 +630,7 @@ public interface _FinalStage {
_FinalStage tierMode(BillingTiersMode tierMode);

/**
* <p>The committed unit quantity for this entitlement. For custom plans this is the quantity the company is contractually committed to; for standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements. Note: this is not yet enforced/auto-provisioned as a true default — it is currently stored for downstream billing use.</p>
* <p>The committed unit quantity for this entitlement. For custom plans this is the minimum the company is contractually committed to: the company can buy more, and finalizing a new plan version sets the subscription quantity to the larger of this value and what the subscription already holds. For standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements.</p>
*/
_FinalStage usageQuantity(Optional<Long> usageQuantity);

Expand Down Expand Up @@ -958,7 +958,7 @@ public _FinalStage valueBool(Optional<Boolean> valueBool) {
}

/**
* <p>The committed unit quantity for this entitlement. For custom plans this is the quantity the company is contractually committed to; for standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements. Note: this is not yet enforced/auto-provisioned as a true default — it is currently stored for downstream billing use.</p>
* <p>The committed unit quantity for this entitlement. For custom plans this is the minimum the company is contractually committed to: the company can buy more, and finalizing a new plan version sets the subscription quantity to the larger of this value and what the subscription already holds. For standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements.</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
Expand All @@ -968,7 +968,7 @@ public _FinalStage usageQuantity(Long usageQuantity) {
}

/**
* <p>The committed unit quantity for this entitlement. For custom plans this is the quantity the company is contractually committed to; for standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements. Note: this is not yet enforced/auto-provisioned as a true default — it is currently stored for downstream billing use.</p>
* <p>The committed unit quantity for this entitlement. For custom plans this is the minimum the company is contractually committed to: the company can buy more, and finalizing a new plan version sets the subscription quantity to the larger of this value and what the subscription already holds. For standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements.</p>
*/
@java.lang.Override
@JsonSetter(value = "usage_quantity", nulls = Nulls.SKIP)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public Optional<BillingTiersMode> getTierMode() {
}

/**
* @return The committed unit quantity for this entitlement. For custom plans this is the quantity the company is contractually committed to; for standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements. Note: this is not yet enforced/auto-provisioned as a true default — it is currently stored for downstream billing use.
* @return The committed unit quantity for this entitlement. For custom plans this is the minimum the company is contractually committed to: the company can buy more, and finalizing a new plan version sets the subscription quantity to the larger of this value and what the subscription already holds. For standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements.
*/
@JsonProperty("usage_quantity")
public Optional<Long> getUsageQuantity() {
Expand Down Expand Up @@ -598,7 +598,7 @@ public interface _FinalStage {
_FinalStage tierMode(BillingTiersMode tierMode);

/**
* <p>The committed unit quantity for this entitlement. For custom plans this is the quantity the company is contractually committed to; for standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements. Note: this is not yet enforced/auto-provisioned as a true default — it is currently stored for downstream billing use.</p>
* <p>The committed unit quantity for this entitlement. For custom plans this is the minimum the company is contractually committed to: the company can buy more, and finalizing a new plan version sets the subscription quantity to the larger of this value and what the subscription already holds. For standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements.</p>
*/
_FinalStage usageQuantity(Optional<Long> usageQuantity);

Expand Down Expand Up @@ -900,7 +900,7 @@ public _FinalStage valueBool(Optional<Boolean> valueBool) {
}

/**
* <p>The committed unit quantity for this entitlement. For custom plans this is the quantity the company is contractually committed to; for standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements. Note: this is not yet enforced/auto-provisioned as a true default — it is currently stored for downstream billing use.</p>
* <p>The committed unit quantity for this entitlement. For custom plans this is the minimum the company is contractually committed to: the company can buy more, and finalizing a new plan version sets the subscription quantity to the larger of this value and what the subscription already holds. For standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements.</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
Expand All @@ -910,7 +910,7 @@ public _FinalStage usageQuantity(Long usageQuantity) {
}

/**
* <p>The committed unit quantity for this entitlement. For custom plans this is the quantity the company is contractually committed to; for standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements. Note: this is not yet enforced/auto-provisioned as a true default — it is currently stored for downstream billing use.</p>
* <p>The committed unit quantity for this entitlement. For custom plans this is the minimum the company is contractually committed to: the company can buy more, and finalizing a new plan version sets the subscription quantity to the larger of this value and what the subscription already holds. For standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements.</p>
*/
@java.lang.Override
@JsonSetter(value = "usage_quantity", nulls = Nulls.SKIP)
Expand Down
Loading
Loading