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
4 changes: 2 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"cliVersion": "5.6.0",
"generatorName": "fernapi/fern-java-sdk",
"generatorVersion": "4.8.7",
"generatorVersion": "4.8.10",
"generatorConfig": {
"client-class-name": "BaseSchematic",
"generate-unknown-as-json-node": true,
Expand All @@ -14,7 +14,7 @@
"implementation redis.clients:jedis:5.2.0"
]
},
"originGitCommit": "a0658700ca9b3d362ce6594c0740c41d9286e429",
"originGitCommit": "470e0f433ab9bb0e88784674fa2e1efce62ebd9b",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "1.4.0",
Expand Down
10 changes: 10 additions & 0 deletions .fern/replay.lock

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

3 changes: 3 additions & 0 deletions .fernignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ src/test/java/com/schematic/api/TestSchematic.java
src/test/java/com/schematic/api/cache/RedisCacheProviderTest.java
src/test/java/com/schematic/api/datastream/
src/test/java/com/schematic/webhook/
.fern/replay.lock
.fern/replay.yml
.gitattributes
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.fern/replay.lock linguist-generated=true
226 changes: 226 additions & 0 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2063,6 +2063,46 @@ client.billing().upsertPaymentMethod(
</dl>


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

<details><summary><code>client.billing.deletePaymentMethodByExternalId(billingId) -> DeletePaymentMethodByExternalIdResponse</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```java
client.billing().deletePaymentMethodByExternalId("billing_id");
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**billingId:** `String` — billing_id

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


</dd>
</dl>
</details>
Expand Down Expand Up @@ -4893,6 +4933,192 @@ client.credits().listGrantsForCredit(
</dl>


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

<details><summary><code>client.credits.acquireCreditLease(request) -> AcquireCreditLeaseResponse</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```java
client.credits().acquireCreditLease(
AcquireCreditLeaseRequestBody
.builder()
.companyId("company_id")
.creditTypeId("credit_type_id")
.requestedAmount(1.1)
.build()
);
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**companyId:** `String`

</dd>
</dl>

<dl>
<dd>

**creditTypeId:** `String`

</dd>
</dl>

<dl>
<dd>

**expiresAt:** `Optional<OffsetDateTime>`

</dd>
</dl>

<dl>
<dd>

**requestedAmount:** `Double`

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


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

<details><summary><code>client.credits.extendCreditLease(leaseId, request) -> ExtendCreditLeaseResponse</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```java
client.credits().extendCreditLease(
"lease_id",
ExtendCreditLeaseRequestBody
.builder()
.additionalAmount(1.1)
.build()
);
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**leaseId:** `String` — lease_id

</dd>
</dl>

<dl>
<dd>

**additionalAmount:** `Double`

</dd>
</dl>

<dl>
<dd>

**expiresAt:** `Optional<OffsetDateTime>`

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


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

<details><summary><code>client.credits.releaseCreditLease(leaseId, request) -> ReleaseCreditLeaseResponse</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```java
client.credits().releaseCreditLease(
"lease_id",
new HashMap<String, JsonNode>() {{
put("key", ObjectMappers.JSON_MAPPER.valueToTree("value"));
}}
);
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**leaseId:** `String` — lease_id

</dd>
</dl>

<dl>
<dd>

**request:** `Map<String, Object>`

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


</dd>
</dl>
</details>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
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.DeletePaymentMethodByExternalIdResponse;
import com.schematic.api.resources.billing.types.DeleteProductPriceResponse;
import com.schematic.api.resources.billing.types.ListBillingPricesResponse;
import com.schematic.api.resources.billing.types.ListBillingProductPricesResponse;
Expand Down Expand Up @@ -197,6 +198,18 @@ public CompletableFuture<UpsertPaymentMethodResponse> upsertPaymentMethod(
return this.rawClient.upsertPaymentMethod(request, requestOptions).thenApply(response -> response.body());
}

public CompletableFuture<DeletePaymentMethodByExternalIdResponse> deletePaymentMethodByExternalId(
String billingId) {
return this.rawClient.deletePaymentMethodByExternalId(billingId).thenApply(response -> response.body());
}

public CompletableFuture<DeletePaymentMethodByExternalIdResponse> deletePaymentMethodByExternalId(
String billingId, RequestOptions requestOptions) {
return this.rawClient
.deletePaymentMethodByExternalId(billingId, requestOptions)
.thenApply(response -> response.body());
}

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