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": "deb8532a1f84f6daa08b5c611a66a5ec92f53f0e",
"originGitCommit": "1e5d567c7baf29c75ed5e08c9dd30b7e83de8e27",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "1.4.5",
"requestedVersion": "1.5.0",
"ciProvider": "github",
"sdkVersion": "1.4.5"
"sdkVersion": "1.5.0"
}
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ java {

group = 'com.schematichq'

version = '1.4.5'
version = '1.5.0'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand Down Expand Up @@ -83,7 +83,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.schematichq'
artifactId = 'schematic-java'
version = '1.4.5'
version = '1.5.0'
from components.java
pom {
name = 'Schematic'
Expand Down
98 changes: 98 additions & 0 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -3456,6 +3456,14 @@ client.billing().upsertBillingSubscription(
<dl>
<dd>

**companyId:** `Optional<String>`

</dd>
</dl>

<dl>
<dd>

**currency:** `String`

</dd>
Expand Down Expand Up @@ -7292,6 +7300,96 @@ client.companies().lookupCompany(
</dl>


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

<details><summary><code>client.companies.getCompanyBillingEntity() -> GetCompanyBillingEntityResponse</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```java
client.companies().getCompanyBillingEntity(
GetCompanyBillingEntityRequest
.builder()
.companyId("company_id")
.build()
);
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**companyId:** `Optional<String>`

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


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

<details><summary><code>client.companies.getBillingEntityChildSubscriptions() -> GetBillingEntityChildSubscriptionsResponse</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```java
client.companies().getBillingEntityChildSubscriptions(
GetBillingEntityChildSubscriptionsRequest
.builder()
.companyId("company_id")
.build()
);
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**companyId:** `Optional<String>`

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


</dd>
</dl>
</details>
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.4.5");
put("User-Agent", "com.schematichq:schematic-java/1.5.0");
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.schematic.fern:api-sdk");
put("X-Fern-SDK-Version", "1.4.5");
put("X-Fern-SDK-Version", "1.5.0");
}
});
this.headerSuppliers = headerSuppliers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public final class CreateBillingSubscriptionRequestBody {

private final boolean cancelAtPeriodEnd;

private final Optional<String> companyId;

private final String currency;

private final String customerExternalId;
Expand Down Expand Up @@ -75,6 +77,7 @@ private CreateBillingSubscriptionRequestBody(
Optional<String> applicationId,
Optional<Long> cancelAt,
boolean cancelAtPeriodEnd,
Optional<String> companyId,
String currency,
String customerExternalId,
Optional<String> defaultPaymentMethodExternalId,
Expand All @@ -96,6 +99,7 @@ private CreateBillingSubscriptionRequestBody(
this.applicationId = applicationId;
this.cancelAt = cancelAt;
this.cancelAtPeriodEnd = cancelAtPeriodEnd;
this.companyId = companyId;
this.currency = currency;
this.customerExternalId = customerExternalId;
this.defaultPaymentMethodExternalId = defaultPaymentMethodExternalId;
Expand Down Expand Up @@ -131,6 +135,11 @@ public boolean getCancelAtPeriodEnd() {
return cancelAtPeriodEnd;
}

@JsonProperty("company_id")
public Optional<String> getCompanyId() {
return companyId;
}

@JsonProperty("currency")
public String getCurrency() {
return currency;
Expand Down Expand Up @@ -232,6 +241,7 @@ private boolean equalTo(CreateBillingSubscriptionRequestBody other) {
return applicationId.equals(other.applicationId)
&& cancelAt.equals(other.cancelAt)
&& cancelAtPeriodEnd == other.cancelAtPeriodEnd
&& companyId.equals(other.companyId)
&& currency.equals(other.currency)
&& customerExternalId.equals(other.customerExternalId)
&& defaultPaymentMethodExternalId.equals(other.defaultPaymentMethodExternalId)
Expand All @@ -257,6 +267,7 @@ public int hashCode() {
this.applicationId,
this.cancelAt,
this.cancelAtPeriodEnd,
this.companyId,
this.currency,
this.customerExternalId,
this.defaultPaymentMethodExternalId,
Expand Down Expand Up @@ -326,6 +337,10 @@ public interface _FinalStage {

_FinalStage cancelAt(Long cancelAt);

_FinalStage companyId(Optional<String> companyId);

_FinalStage companyId(String companyId);

_FinalStage defaultPaymentMethodExternalId(Optional<String> defaultPaymentMethodExternalId);

_FinalStage defaultPaymentMethodExternalId(String defaultPaymentMethodExternalId);
Expand Down Expand Up @@ -424,6 +439,8 @@ public static final class Builder

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

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

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

private Optional<String> applicationId = Optional.empty();
Expand All @@ -438,6 +455,7 @@ public Builder from(CreateBillingSubscriptionRequestBody other) {
applicationId(other.getApplicationId());
cancelAt(other.getCancelAt());
cancelAtPeriodEnd(other.getCancelAtPeriodEnd());
companyId(other.getCompanyId());
currency(other.getCurrency());
customerExternalId(other.getCustomerExternalId());
defaultPaymentMethodExternalId(other.getDefaultPaymentMethodExternalId());
Expand Down Expand Up @@ -679,6 +697,19 @@ public _FinalStage defaultPaymentMethodExternalId(Optional<String> defaultPaymen
return this;
}

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

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

@java.lang.Override
public _FinalStage cancelAt(Long cancelAt) {
this.cancelAt = Optional.ofNullable(cancelAt);
Expand Down Expand Up @@ -711,6 +742,7 @@ public CreateBillingSubscriptionRequestBody build() {
applicationId,
cancelAt,
cancelAtPeriodEnd,
companyId,
currency,
customerExternalId,
defaultPaymentMethodExternalId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
import com.schematic.api.resources.companies.requests.CreateEntityTraitDefinitionRequestBody;
import com.schematic.api.resources.companies.requests.DeleteCompanyRequest;
import com.schematic.api.resources.companies.requests.GetActiveCompanySubscriptionRequest;
import com.schematic.api.resources.companies.requests.GetBillingEntityChildSubscriptionsRequest;
import com.schematic.api.resources.companies.requests.GetCompanyBillingEntityRequest;
import com.schematic.api.resources.companies.requests.GetEntityTraitValuesRequest;
import com.schematic.api.resources.companies.requests.GetOrCreateCompanyMembershipRequestBody;
import com.schematic.api.resources.companies.requests.ListCompaniesRequest;
Expand All @@ -39,6 +41,8 @@
import com.schematic.api.resources.companies.types.DeleteUserByKeysResponse;
import com.schematic.api.resources.companies.types.DeleteUserResponse;
import com.schematic.api.resources.companies.types.GetActiveCompanySubscriptionResponse;
import com.schematic.api.resources.companies.types.GetBillingEntityChildSubscriptionsResponse;
import com.schematic.api.resources.companies.types.GetCompanyBillingEntityResponse;
import com.schematic.api.resources.companies.types.GetCompanyResponse;
import com.schematic.api.resources.companies.types.GetEntityTraitDefinitionResponse;
import com.schematic.api.resources.companies.types.GetEntityTraitValuesResponse;
Expand Down Expand Up @@ -198,6 +202,45 @@ public CompletableFuture<LookupCompanyResponse> lookupCompany(
return this.rawClient.lookupCompany(request, requestOptions).thenApply(response -> response.body());
}

public CompletableFuture<GetCompanyBillingEntityResponse> getCompanyBillingEntity() {
return this.rawClient.getCompanyBillingEntity().thenApply(response -> response.body());
}

public CompletableFuture<GetCompanyBillingEntityResponse> getCompanyBillingEntity(RequestOptions requestOptions) {
return this.rawClient.getCompanyBillingEntity(requestOptions).thenApply(response -> response.body());
}

public CompletableFuture<GetCompanyBillingEntityResponse> getCompanyBillingEntity(
GetCompanyBillingEntityRequest request) {
return this.rawClient.getCompanyBillingEntity(request).thenApply(response -> response.body());
}

public CompletableFuture<GetCompanyBillingEntityResponse> getCompanyBillingEntity(
GetCompanyBillingEntityRequest request, RequestOptions requestOptions) {
return this.rawClient.getCompanyBillingEntity(request, requestOptions).thenApply(response -> response.body());
}

public CompletableFuture<GetBillingEntityChildSubscriptionsResponse> getBillingEntityChildSubscriptions() {
return this.rawClient.getBillingEntityChildSubscriptions().thenApply(response -> response.body());
}

public CompletableFuture<GetBillingEntityChildSubscriptionsResponse> getBillingEntityChildSubscriptions(
RequestOptions requestOptions) {
return this.rawClient.getBillingEntityChildSubscriptions(requestOptions).thenApply(response -> response.body());
}

public CompletableFuture<GetBillingEntityChildSubscriptionsResponse> getBillingEntityChildSubscriptions(
GetBillingEntityChildSubscriptionsRequest request) {
return this.rawClient.getBillingEntityChildSubscriptions(request).thenApply(response -> response.body());
}

public CompletableFuture<GetBillingEntityChildSubscriptionsResponse> getBillingEntityChildSubscriptions(
GetBillingEntityChildSubscriptionsRequest request, RequestOptions requestOptions) {
return this.rawClient
.getBillingEntityChildSubscriptions(request, requestOptions)
.thenApply(response -> response.body());
}

public CompletableFuture<ListCompanyMembershipsResponse> listCompanyMemberships() {
return this.rawClient.listCompanyMemberships().thenApply(response -> response.body());
}
Expand Down
Loading
Loading