diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 5ba086cf..141e7cde 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.46.1"
+ ".": "0.47.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 58bce287..f6e24a32 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,2 +1,2 @@
configured_endpoints: 103
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-6797b438a8e6a6856e28f4304a5a3c81bb67e74fa2d6fcc20e734880c725295a.yml
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-04f02fa57c3ab8d15ecf0a16a41a83814c21cdc2a830fae4d65f1b7b2196d819.yml
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4ed86daa..422a9a0d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,25 @@
# Changelog
+## 0.47.0 (2025-03-10)
+
+Full Changelog: [v0.46.1...v0.47.0](https://github.com/orbcorp/orb-java/compare/v0.46.1...v0.47.0)
+
+### Features
+
+* **api:** api update ([#331](https://github.com/orbcorp/orb-java/issues/331)) ([6aea587](https://github.com/orbcorp/orb-java/commit/6aea5874c48a82b78b072e04f5773bb07ed896b6))
+
+
+### Chores
+
+* **internal:** don't use `JvmOverloads` in interfaces ([19acfcf](https://github.com/orbcorp/orb-java/commit/19acfcfd105bacde55593bc1d6d7b1c9621fc996))
+* **internal:** reenable warnings as errors ([#327](https://github.com/orbcorp/orb-java/issues/327)) ([19acfcf](https://github.com/orbcorp/orb-java/commit/19acfcfd105bacde55593bc1d6d7b1c9621fc996))
+
+
+### Documentation
+
+* document `JsonValue` construction in readme ([#330](https://github.com/orbcorp/orb-java/issues/330)) ([9401e34](https://github.com/orbcorp/orb-java/commit/9401e349149fe4cbc37ee2174e8609cf60d107b0))
+* revise readme docs about nested params ([#329](https://github.com/orbcorp/orb-java/issues/329)) ([9a2a812](https://github.com/orbcorp/orb-java/commit/9a2a812cc9aa3b4ab369a28784e0afaaf37badb4))
+
## 0.46.1 (2025-03-07)
Full Changelog: [v0.46.0...v0.46.1](https://github.com/orbcorp/orb-java/compare/v0.46.0...v0.46.1)
diff --git a/README.md b/README.md
index 928d92f0..e279c294 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
-[](https://central.sonatype.com/artifact/com.withorb.api/orb-java/0.46.1)
+[](https://central.sonatype.com/artifact/com.withorb.api/orb-java/0.47.0)
@@ -19,7 +19,7 @@ The REST API documentation can be found on [docs.withorb.com](https://docs.witho
### Gradle
```kotlin
-implementation("com.withorb.api:orb-java:0.46.1")
+implementation("com.withorb.api:orb-java:0.47.0")
```
### Maven
@@ -28,7 +28,7 @@ implementation("com.withorb.api:orb-java:0.46.1")
com.withorb.api
orb-java
- 0.46.1
+ 0.47.0
```
@@ -385,9 +385,24 @@ CustomerCreateParams params = CustomerCreateParams.builder()
.build();
```
-These can be accessed on the built object later using the `_additionalHeaders()`, `_additionalQueryParams()`, and `_additionalBodyProperties()` methods. You can also set undocumented parameters on nested headers, query params, or body classes using the `putAdditionalProperty` method. These properties can be accessed on the built object later using the `_additionalProperties()` method.
+These can be accessed on the built object later using the `_additionalHeaders()`, `_additionalQueryParams()`, and `_additionalBodyProperties()` methods.
-To set a documented parameter or property to an undocumented or not yet supported _value_, pass a [`JsonValue`](orb-java-core/src/main/kotlin/com/withorb/api/core/JsonValue.kt) object to its setter:
+To set undocumented parameters on _nested_ headers, query params, or body classes, call the `putAdditionalProperty` method on the nested class:
+
+```java
+import com.withorb.api.core.JsonValue;
+import com.withorb.api.models.CustomerCreateParams;
+
+CustomerCreateParams params = CustomerCreateParams.builder()
+ .billingAddress(CustomerCreateParams.BillingAddress.builder()
+ .putAdditionalProperty("secretProperty", JsonValue.from("42"))
+ .build())
+ .build();
+```
+
+These properties can be accessed on the nested built object later using the `_additionalProperties()` method.
+
+To set a documented parameter or property to an undocumented or not yet supported _value_, pass a [`JsonValue`](orb-java-core/src/main/kotlin/com/withorb/api/core/Values.kt) object to its setter:
```java
import com.withorb.api.core.JsonValue;
@@ -399,6 +414,45 @@ CustomerCreateParams params = CustomerCreateParams.builder()
.build();
```
+The most straightforward way to create a [`JsonValue`](orb-java-core/src/main/kotlin/com/withorb/api/core/Values.kt) is using its `from(...)` method:
+
+```java
+import com.withorb.api.core.JsonValue;
+import java.util.List;
+import java.util.Map;
+
+// Create primitive JSON values
+JsonValue nullValue = JsonValue.from(null);
+JsonValue booleanValue = JsonValue.from(true);
+JsonValue numberValue = JsonValue.from(42);
+JsonValue stringValue = JsonValue.from("Hello World!");
+
+// Create a JSON array value equivalent to `["Hello", "World"]`
+JsonValue arrayValue = JsonValue.from(List.of(
+ "Hello", "World"
+));
+
+// Create a JSON object value equivalent to `{ "a": 1, "b": 2 }`
+JsonValue objectValue = JsonValue.from(Map.of(
+ "a", 1,
+ "b", 2
+));
+
+// Create an arbitrarily nested JSON equivalent to:
+// {
+// "a": [1, 2],
+// "b": [3, 4]
+// }
+JsonValue complexValue = JsonValue.from(Map.of(
+ "a", List.of(
+ 1, 2
+ ),
+ "b", List.of(
+ 3, 4
+ )
+));
+```
+
### Response properties
To access undocumented response properties, call the `_additionalProperties()` method:
diff --git a/build.gradle.kts b/build.gradle.kts
index 45f8d5a0..b029c0ed 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -1,4 +1,4 @@
allprojects {
group = "com.withorb.api"
- version = "0.46.1" // x-release-please-version
+ version = "0.47.0" // x-release-please-version
}
diff --git a/buildSrc/src/main/kotlin/orb.kotlin.gradle.kts b/buildSrc/src/main/kotlin/orb.kotlin.gradle.kts
index 1cf56f97..b4bc5d0d 100644
--- a/buildSrc/src/main/kotlin/orb.kotlin.gradle.kts
+++ b/buildSrc/src/main/kotlin/orb.kotlin.gradle.kts
@@ -22,11 +22,12 @@ configure {
tasks.withType().configureEach {
compilerOptions {
+ allWarningsAsErrors = true
freeCompilerArgs = listOf(
- "-Xjvm-default=all",
- "-Xjdk-release=1.8",
- // Suppress deprecation warnings because we may still reference and test deprecated members.
- "-Xsuppress-warning=DEPRECATION"
+ "-Xjvm-default=all",
+ "-Xjdk-release=1.8",
+ // Suppress deprecation warnings because we may still reference and test deprecated members.
+ "-Xsuppress-warning=DEPRECATION"
)
jvmTarget.set(JvmTarget.JVM_1_8)
}
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/core/http/HttpClient.kt b/orb-java-core/src/main/kotlin/com/withorb/api/core/http/HttpClient.kt
index d035290d..5fe830d6 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/core/http/HttpClient.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/core/http/HttpClient.kt
@@ -1,5 +1,3 @@
-@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-
package com.withorb.api.core.http
import com.withorb.api.core.RequestOptions
@@ -8,18 +6,21 @@ import java.util.concurrent.CompletableFuture
interface HttpClient : AutoCloseable {
- @JvmOverloads
fun execute(
request: HttpRequest,
requestOptions: RequestOptions = RequestOptions.none(),
): HttpResponse
- @JvmOverloads
+ fun execute(request: HttpRequest): HttpResponse = execute(request, RequestOptions.none())
+
fun executeAsync(
request: HttpRequest,
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
+ fun executeAsync(request: HttpRequest): CompletableFuture =
+ executeAsync(request, RequestOptions.none())
+
/** Overridden from [AutoCloseable] to not have a checked exception in its signature. */
override fun close()
}
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionPriceIntervalsParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionPriceIntervalsParams.kt
index 3c47565b..e80a87dd 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionPriceIntervalsParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionPriceIntervalsParams.kt
@@ -49642,13 +49642,17 @@ private constructor(
/**
* The start date of the adjustment interval. This is the date that the adjustment will
- * start affecting prices on the subscription.
+ * start affecting prices on the subscription. The adjustment will apply to invoice dates
+ * that overlap with this `start_date`. This `start_date` is treated as inclusive for
+ * in-advance prices, and exclusive for in-arrears prices.
*/
fun startDate(): StartDate = startDate.getRequired("start_date")
/**
* The end date of the adjustment interval. This is the date that the adjustment will stop
- * affecting prices on the subscription.
+ * affecting prices on the subscription. The adjustment will apply to invoice dates that
+ * overlap with this `end_date`.This `end_date` is treated as exclusive for in-advance
+ * prices, and inclusive for in-arrears prices.
*/
fun endDate(): Optional = Optional.ofNullable(endDate.getNullable("end_date"))
@@ -49659,7 +49663,9 @@ private constructor(
/**
* The start date of the adjustment interval. This is the date that the adjustment will
- * start affecting prices on the subscription.
+ * start affecting prices on the subscription. The adjustment will apply to invoice dates
+ * that overlap with this `start_date`. This `start_date` is treated as inclusive for
+ * in-advance prices, and exclusive for in-arrears prices.
*/
@JsonProperty("start_date")
@ExcludeMissing
@@ -49667,7 +49673,9 @@ private constructor(
/**
* The end date of the adjustment interval. This is the date that the adjustment will stop
- * affecting prices on the subscription.
+ * affecting prices on the subscription. The adjustment will apply to invoice dates that
+ * overlap with this `end_date`.This `end_date` is treated as exclusive for in-advance
+ * prices, and inclusive for in-arrears prices.
*/
@JsonProperty("end_date") @ExcludeMissing fun _endDate(): JsonField = endDate
@@ -49750,56 +49758,74 @@ private constructor(
/**
* The start date of the adjustment interval. This is the date that the adjustment will
- * start affecting prices on the subscription.
+ * start affecting prices on the subscription. The adjustment will apply to invoice
+ * dates that overlap with this `start_date`. This `start_date` is treated as inclusive
+ * for in-advance prices, and exclusive for in-arrears prices.
*/
fun startDate(startDate: StartDate) = startDate(JsonField.of(startDate))
/**
* The start date of the adjustment interval. This is the date that the adjustment will
- * start affecting prices on the subscription.
+ * start affecting prices on the subscription. The adjustment will apply to invoice
+ * dates that overlap with this `start_date`. This `start_date` is treated as inclusive
+ * for in-advance prices, and exclusive for in-arrears prices.
*/
fun startDate(startDate: JsonField) = apply { this.startDate = startDate }
/**
* The start date of the adjustment interval. This is the date that the adjustment will
- * start affecting prices on the subscription.
+ * start affecting prices on the subscription. The adjustment will apply to invoice
+ * dates that overlap with this `start_date`. This `start_date` is treated as inclusive
+ * for in-advance prices, and exclusive for in-arrears prices.
*/
fun startDate(dateTime: OffsetDateTime) = startDate(StartDate.ofDateTime(dateTime))
/**
* The start date of the adjustment interval. This is the date that the adjustment will
- * start affecting prices on the subscription.
+ * start affecting prices on the subscription. The adjustment will apply to invoice
+ * dates that overlap with this `start_date`. This `start_date` is treated as inclusive
+ * for in-advance prices, and exclusive for in-arrears prices.
*/
fun startDate(billingCycleRelative: BillingCycleRelativeDate) =
startDate(StartDate.ofBillingCycleRelative(billingCycleRelative))
/**
* The end date of the adjustment interval. This is the date that the adjustment will
- * stop affecting prices on the subscription.
+ * stop affecting prices on the subscription. The adjustment will apply to invoice dates
+ * that overlap with this `end_date`.This `end_date` is treated as exclusive for
+ * in-advance prices, and inclusive for in-arrears prices.
*/
fun endDate(endDate: EndDate?) = endDate(JsonField.ofNullable(endDate))
/**
* The end date of the adjustment interval. This is the date that the adjustment will
- * stop affecting prices on the subscription.
+ * stop affecting prices on the subscription. The adjustment will apply to invoice dates
+ * that overlap with this `end_date`.This `end_date` is treated as exclusive for
+ * in-advance prices, and inclusive for in-arrears prices.
*/
fun endDate(endDate: Optional) = endDate(endDate.getOrNull())
/**
* The end date of the adjustment interval. This is the date that the adjustment will
- * stop affecting prices on the subscription.
+ * stop affecting prices on the subscription. The adjustment will apply to invoice dates
+ * that overlap with this `end_date`.This `end_date` is treated as exclusive for
+ * in-advance prices, and inclusive for in-arrears prices.
*/
fun endDate(endDate: JsonField) = apply { this.endDate = endDate }
/**
* The end date of the adjustment interval. This is the date that the adjustment will
- * stop affecting prices on the subscription.
+ * stop affecting prices on the subscription. The adjustment will apply to invoice dates
+ * that overlap with this `end_date`.This `end_date` is treated as exclusive for
+ * in-advance prices, and inclusive for in-arrears prices.
*/
fun endDate(dateTime: OffsetDateTime) = endDate(EndDate.ofDateTime(dateTime))
/**
* The end date of the adjustment interval. This is the date that the adjustment will
- * stop affecting prices on the subscription.
+ * stop affecting prices on the subscription. The adjustment will apply to invoice dates
+ * that overlap with this `end_date`.This `end_date` is treated as exclusive for
+ * in-advance prices, and inclusive for in-arrears prices.
*/
fun endDate(billingCycleRelative: BillingCycleRelativeDate) =
endDate(EndDate.ofBillingCycleRelative(billingCycleRelative))
@@ -51651,7 +51677,9 @@ private constructor(
/**
* The start date of the adjustment interval. This is the date that the adjustment will
- * start affecting prices on the subscription.
+ * start affecting prices on the subscription. The adjustment will apply to invoice dates
+ * that overlap with this `start_date`. This `start_date` is treated as inclusive for
+ * in-advance prices, and exclusive for in-arrears prices.
*/
@JsonDeserialize(using = StartDate.Deserializer::class)
@JsonSerialize(using = StartDate.Serializer::class)
@@ -51795,7 +51823,9 @@ private constructor(
/**
* The end date of the adjustment interval. This is the date that the adjustment will stop
- * affecting prices on the subscription.
+ * affecting prices on the subscription. The adjustment will apply to invoice dates that
+ * overlap with this `end_date`.This `end_date` is treated as exclusive for in-advance
+ * prices, and inclusive for in-arrears prices.
*/
@JsonDeserialize(using = EndDate.Deserializer::class)
@JsonSerialize(using = EndDate.Serializer::class)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/AlertServiceAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/AlertServiceAsync.kt
index 56bf4b3e..c2b19190 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/AlertServiceAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/AlertServiceAsync.kt
@@ -1,7 +1,5 @@
// File generated from our OpenAPI spec by Stainless.
-@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-
package com.withorb.api.services.async
import com.google.errorprone.annotations.MustBeClosed
@@ -27,14 +25,20 @@ interface AlertServiceAsync {
fun withRawResponse(): WithRawResponse
/** This endpoint retrieves an alert by its ID. */
- @JvmOverloads
+ fun retrieve(params: AlertRetrieveParams): CompletableFuture =
+ retrieve(params, RequestOptions.none())
+
+ /** @see [retrieve] */
fun retrieve(
params: AlertRetrieveParams,
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
/** This endpoint updates the thresholds of an alert. */
- @JvmOverloads
+ fun update(params: AlertUpdateParams): CompletableFuture =
+ update(params, RequestOptions.none())
+
+ /** @see [update] */
fun update(
params: AlertUpdateParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -51,23 +55,20 @@ interface AlertServiceAsync {
* The list of alerts is ordered starting from the most recently created alert. This endpoint
* follows Orb's [standardized pagination format](/api-reference/pagination).
*/
- @JvmOverloads
+ fun list(): CompletableFuture = list(AlertListParams.none())
+
+ /** @see [list] */
fun list(
params: AlertListParams = AlertListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
- /**
- * This endpoint returns a list of alerts within Orb.
- *
- * The request must specify one of `customer_id`, `external_customer_id`, or `subscription_id`.
- *
- * If querying by subscripion_id, the endpoint will return the subscription level alerts as well
- * as the plan level alerts associated with the subscription.
- *
- * The list of alerts is ordered starting from the most recently created alert. This endpoint
- * follows Orb's [standardized pagination format](/api-reference/pagination).
- */
+ /** @see [list] */
+ fun list(
+ params: AlertListParams = AlertListParams.none()
+ ): CompletableFuture = list(params, RequestOptions.none())
+
+ /** @see [list] */
fun list(requestOptions: RequestOptions): CompletableFuture =
list(AlertListParams.none(), requestOptions)
@@ -79,7 +80,10 @@ interface AlertServiceAsync {
* `credit_balance_dropped` alerts require a list of thresholds to be provided while
* `credit_balance_depleted` and `credit_balance_recovered` alerts do not require thresholds.
*/
- @JvmOverloads
+ fun createForCustomer(params: AlertCreateForCustomerParams): CompletableFuture =
+ createForCustomer(params, RequestOptions.none())
+
+ /** @see [createForCustomer] */
fun createForCustomer(
params: AlertCreateForCustomerParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -93,7 +97,11 @@ interface AlertServiceAsync {
* `credit_balance_dropped` alerts require a list of thresholds to be provided while
* `credit_balance_depleted` and `credit_balance_recovered` alerts do not require thresholds.
*/
- @JvmOverloads
+ fun createForExternalCustomer(
+ params: AlertCreateForExternalCustomerParams
+ ): CompletableFuture = createForExternalCustomer(params, RequestOptions.none())
+
+ /** @see [createForExternalCustomer] */
fun createForExternalCustomer(
params: AlertCreateForExternalCustomerParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -111,7 +119,10 @@ interface AlertServiceAsync {
* per metric that is a part of the subscription. Alerts are triggered based on usage or cost
* conditions met during the current billing cycle.
*/
- @JvmOverloads
+ fun createForSubscription(params: AlertCreateForSubscriptionParams): CompletableFuture =
+ createForSubscription(params, RequestOptions.none())
+
+ /** @see [createForSubscription] */
fun createForSubscription(
params: AlertCreateForSubscriptionParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -122,7 +133,10 @@ interface AlertServiceAsync {
* subscription, you must include the `subscription_id`. The `subscription_id` is not required
* for customer or subscription level alerts.
*/
- @JvmOverloads
+ fun disable(params: AlertDisableParams): CompletableFuture =
+ disable(params, RequestOptions.none())
+
+ /** @see [disable] */
fun disable(
params: AlertDisableParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -133,7 +147,10 @@ interface AlertServiceAsync {
* subscription, you must include the `subscription_id`. The `subscription_id` is not required
* for customer or subscription level alerts.
*/
- @JvmOverloads
+ fun enable(params: AlertEnableParams): CompletableFuture =
+ enable(params, RequestOptions.none())
+
+ /** @see [enable] */
fun enable(
params: AlertEnableParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -146,7 +163,11 @@ interface AlertServiceAsync {
* Returns a raw HTTP response for `get /alerts/{alert_id}`, but is otherwise the same as
* [AlertServiceAsync.retrieve].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun retrieve(params: AlertRetrieveParams): CompletableFuture> =
+ retrieve(params, RequestOptions.none())
+
+ /** @see [retrieve] */
@MustBeClosed
fun retrieve(
params: AlertRetrieveParams,
@@ -157,7 +178,11 @@ interface AlertServiceAsync {
* Returns a raw HTTP response for `put /alerts/{alert_configuration_id}`, but is otherwise
* the same as [AlertServiceAsync.update].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun update(params: AlertUpdateParams): CompletableFuture> =
+ update(params, RequestOptions.none())
+
+ /** @see [update] */
@MustBeClosed
fun update(
params: AlertUpdateParams,
@@ -168,17 +193,25 @@ interface AlertServiceAsync {
* Returns a raw HTTP response for `get /alerts`, but is otherwise the same as
* [AlertServiceAsync.list].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun list(): CompletableFuture> =
+ list(AlertListParams.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
params: AlertListParams = AlertListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture>
- /**
- * Returns a raw HTTP response for `get /alerts`, but is otherwise the same as
- * [AlertServiceAsync.list].
- */
+ /** @see [list] */
+ @MustBeClosed
+ fun list(
+ params: AlertListParams = AlertListParams.none()
+ ): CompletableFuture> =
+ list(params, RequestOptions.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
requestOptions: RequestOptions
@@ -189,7 +222,13 @@ interface AlertServiceAsync {
* Returns a raw HTTP response for `post /alerts/customer_id/{customer_id}`, but is
* otherwise the same as [AlertServiceAsync.createForCustomer].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun createForCustomer(
+ params: AlertCreateForCustomerParams
+ ): CompletableFuture> =
+ createForCustomer(params, RequestOptions.none())
+
+ /** @see [createForCustomer] */
@MustBeClosed
fun createForCustomer(
params: AlertCreateForCustomerParams,
@@ -201,7 +240,13 @@ interface AlertServiceAsync {
* /alerts/external_customer_id/{external_customer_id}`, but is otherwise the same as
* [AlertServiceAsync.createForExternalCustomer].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun createForExternalCustomer(
+ params: AlertCreateForExternalCustomerParams
+ ): CompletableFuture> =
+ createForExternalCustomer(params, RequestOptions.none())
+
+ /** @see [createForExternalCustomer] */
@MustBeClosed
fun createForExternalCustomer(
params: AlertCreateForExternalCustomerParams,
@@ -212,7 +257,13 @@ interface AlertServiceAsync {
* Returns a raw HTTP response for `post /alerts/subscription_id/{subscription_id}`, but is
* otherwise the same as [AlertServiceAsync.createForSubscription].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun createForSubscription(
+ params: AlertCreateForSubscriptionParams
+ ): CompletableFuture> =
+ createForSubscription(params, RequestOptions.none())
+
+ /** @see [createForSubscription] */
@MustBeClosed
fun createForSubscription(
params: AlertCreateForSubscriptionParams,
@@ -223,7 +274,11 @@ interface AlertServiceAsync {
* Returns a raw HTTP response for `post /alerts/{alert_configuration_id}/disable`, but is
* otherwise the same as [AlertServiceAsync.disable].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun disable(params: AlertDisableParams): CompletableFuture> =
+ disable(params, RequestOptions.none())
+
+ /** @see [disable] */
@MustBeClosed
fun disable(
params: AlertDisableParams,
@@ -234,7 +289,11 @@ interface AlertServiceAsync {
* Returns a raw HTTP response for `post /alerts/{alert_configuration_id}/enable`, but is
* otherwise the same as [AlertServiceAsync.enable].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun enable(params: AlertEnableParams): CompletableFuture> =
+ enable(params, RequestOptions.none())
+
+ /** @see [enable] */
@MustBeClosed
fun enable(
params: AlertEnableParams,
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/CouponServiceAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/CouponServiceAsync.kt
index 9b15744c..d3cbe42e 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/CouponServiceAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/CouponServiceAsync.kt
@@ -1,7 +1,5 @@
// File generated from our OpenAPI spec by Stainless.
-@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-
package com.withorb.api.services.async
import com.google.errorprone.annotations.MustBeClosed
@@ -29,7 +27,10 @@ interface CouponServiceAsync {
* This endpoint allows the creation of coupons, which can then be redeemed at subscription
* creation or plan change.
*/
- @JvmOverloads
+ fun create(params: CouponCreateParams): CompletableFuture =
+ create(params, RequestOptions.none())
+
+ /** @see [create] */
fun create(
params: CouponCreateParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -43,20 +44,20 @@ interface CouponServiceAsync {
* if they exist. More information about pagination can be found in the Pagination-metadata
* schema.
*/
- @JvmOverloads
+ fun list(): CompletableFuture = list(CouponListParams.none())
+
+ /** @see [list] */
fun list(
params: CouponListParams = CouponListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
- /**
- * This endpoint returns a list of all coupons for an account in a list format.
- *
- * The list of coupons is ordered starting from the most recently created coupon. The response
- * also includes `pagination_metadata`, which lets the caller retrieve the next page of results
- * if they exist. More information about pagination can be found in the Pagination-metadata
- * schema.
- */
+ /** @see [list] */
+ fun list(
+ params: CouponListParams = CouponListParams.none()
+ ): CompletableFuture = list(params, RequestOptions.none())
+
+ /** @see [list] */
fun list(requestOptions: RequestOptions): CompletableFuture =
list(CouponListParams.none(), requestOptions)
@@ -65,7 +66,10 @@ interface CouponServiceAsync {
* will be hidden from lists of active coupons. Additionally, once a coupon is archived, its
* redemption code can be reused for a different coupon.
*/
- @JvmOverloads
+ fun archive(params: CouponArchiveParams): CompletableFuture =
+ archive(params, RequestOptions.none())
+
+ /** @see [archive] */
fun archive(
params: CouponArchiveParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -75,7 +79,10 @@ interface CouponServiceAsync {
* This endpoint retrieves a coupon by its ID. To fetch coupons by their redemption code, use
* the [List coupons](list-coupons) endpoint with the redemption_code parameter.
*/
- @JvmOverloads
+ fun fetch(params: CouponFetchParams): CompletableFuture =
+ fetch(params, RequestOptions.none())
+
+ /** @see [fetch] */
fun fetch(
params: CouponFetchParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -92,7 +99,11 @@ interface CouponServiceAsync {
* Returns a raw HTTP response for `post /coupons`, but is otherwise the same as
* [CouponServiceAsync.create].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun create(params: CouponCreateParams): CompletableFuture> =
+ create(params, RequestOptions.none())
+
+ /** @see [create] */
@MustBeClosed
fun create(
params: CouponCreateParams,
@@ -103,17 +114,25 @@ interface CouponServiceAsync {
* Returns a raw HTTP response for `get /coupons`, but is otherwise the same as
* [CouponServiceAsync.list].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun list(): CompletableFuture> =
+ list(CouponListParams.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
params: CouponListParams = CouponListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture>
- /**
- * Returns a raw HTTP response for `get /coupons`, but is otherwise the same as
- * [CouponServiceAsync.list].
- */
+ /** @see [list] */
+ @MustBeClosed
+ fun list(
+ params: CouponListParams = CouponListParams.none()
+ ): CompletableFuture> =
+ list(params, RequestOptions.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
requestOptions: RequestOptions
@@ -124,7 +143,11 @@ interface CouponServiceAsync {
* Returns a raw HTTP response for `post /coupons/{coupon_id}/archive`, but is otherwise the
* same as [CouponServiceAsync.archive].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun archive(params: CouponArchiveParams): CompletableFuture> =
+ archive(params, RequestOptions.none())
+
+ /** @see [archive] */
@MustBeClosed
fun archive(
params: CouponArchiveParams,
@@ -135,7 +158,11 @@ interface CouponServiceAsync {
* Returns a raw HTTP response for `get /coupons/{coupon_id}`, but is otherwise the same as
* [CouponServiceAsync.fetch].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun fetch(params: CouponFetchParams): CompletableFuture> =
+ fetch(params, RequestOptions.none())
+
+ /** @see [fetch] */
@MustBeClosed
fun fetch(
params: CouponFetchParams,
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/CreditNoteServiceAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/CreditNoteServiceAsync.kt
index 652339bf..dbf8afee 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/CreditNoteServiceAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/CreditNoteServiceAsync.kt
@@ -1,7 +1,5 @@
// File generated from our OpenAPI spec by Stainless.
-@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-
package com.withorb.api.services.async
import com.google.errorprone.annotations.MustBeClosed
@@ -22,7 +20,10 @@ interface CreditNoteServiceAsync {
fun withRawResponse(): WithRawResponse
/** This endpoint is used to create a single [`Credit Note`](/invoicing/credit-notes). */
- @JvmOverloads
+ fun create(params: CreditNoteCreateParams): CompletableFuture =
+ create(params, RequestOptions.none())
+
+ /** @see [create] */
fun create(
params: CreditNoteCreateParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -33,17 +34,20 @@ interface CreditNoteServiceAsync {
* or external_customer_id. The credit notes will be returned in reverse chronological order by
* `creation_time`.
*/
- @JvmOverloads
+ fun list(): CompletableFuture = list(CreditNoteListParams.none())
+
+ /** @see [list] */
fun list(
params: CreditNoteListParams = CreditNoteListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
- /**
- * Get a paginated list of CreditNotes. Users can also filter by customer_id, subscription_id,
- * or external_customer_id. The credit notes will be returned in reverse chronological order by
- * `creation_time`.
- */
+ /** @see [list] */
+ fun list(
+ params: CreditNoteListParams = CreditNoteListParams.none()
+ ): CompletableFuture = list(params, RequestOptions.none())
+
+ /** @see [list] */
fun list(requestOptions: RequestOptions): CompletableFuture =
list(CreditNoteListParams.none(), requestOptions)
@@ -51,7 +55,10 @@ interface CreditNoteServiceAsync {
* This endpoint is used to fetch a single [`Credit Note`](/invoicing/credit-notes) given an
* identifier.
*/
- @JvmOverloads
+ fun fetch(params: CreditNoteFetchParams): CompletableFuture =
+ fetch(params, RequestOptions.none())
+
+ /** @see [fetch] */
fun fetch(
params: CreditNoteFetchParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -67,7 +74,11 @@ interface CreditNoteServiceAsync {
* Returns a raw HTTP response for `post /credit_notes`, but is otherwise the same as
* [CreditNoteServiceAsync.create].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun create(params: CreditNoteCreateParams): CompletableFuture> =
+ create(params, RequestOptions.none())
+
+ /** @see [create] */
@MustBeClosed
fun create(
params: CreditNoteCreateParams,
@@ -78,17 +89,25 @@ interface CreditNoteServiceAsync {
* Returns a raw HTTP response for `get /credit_notes`, but is otherwise the same as
* [CreditNoteServiceAsync.list].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun list(): CompletableFuture> =
+ list(CreditNoteListParams.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
params: CreditNoteListParams = CreditNoteListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture>
- /**
- * Returns a raw HTTP response for `get /credit_notes`, but is otherwise the same as
- * [CreditNoteServiceAsync.list].
- */
+ /** @see [list] */
+ @MustBeClosed
+ fun list(
+ params: CreditNoteListParams = CreditNoteListParams.none()
+ ): CompletableFuture> =
+ list(params, RequestOptions.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
requestOptions: RequestOptions
@@ -99,7 +118,11 @@ interface CreditNoteServiceAsync {
* Returns a raw HTTP response for `get /credit_notes/{credit_note_id}`, but is otherwise
* the same as [CreditNoteServiceAsync.fetch].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun fetch(params: CreditNoteFetchParams): CompletableFuture> =
+ fetch(params, RequestOptions.none())
+
+ /** @see [fetch] */
@MustBeClosed
fun fetch(
params: CreditNoteFetchParams,
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/CustomerServiceAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/CustomerServiceAsync.kt
index edaa48d4..89ee4cb0 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/CustomerServiceAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/CustomerServiceAsync.kt
@@ -1,7 +1,5 @@
// File generated from our OpenAPI spec by Stainless.
-@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-
package com.withorb.api.services.async
import com.google.errorprone.annotations.MustBeClosed
@@ -50,7 +48,10 @@ interface CustomerServiceAsync {
* - [Timezone localization](/essentials/timezones) can be configured on a per-customer basis by
* setting the `timezone` parameter
*/
- @JvmOverloads
+ fun create(params: CustomerCreateParams): CompletableFuture =
+ create(params, RequestOptions.none())
+
+ /** @see [create] */
fun create(
params: CustomerCreateParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -62,7 +63,10 @@ interface CustomerServiceAsync {
* `billing_address`, and `additional_emails` of an existing customer. Other fields on a
* customer are currently immutable.
*/
- @JvmOverloads
+ fun update(params: CustomerUpdateParams): CompletableFuture =
+ update(params, RequestOptions.none())
+
+ /** @see [update] */
fun update(
params: CustomerUpdateParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -75,19 +79,20 @@ interface CustomerServiceAsync {
*
* See [Customer](/core-concepts##customer) for an overview of the customer model.
*/
- @JvmOverloads
+ fun list(): CompletableFuture = list(CustomerListParams.none())
+
+ /** @see [list] */
fun list(
params: CustomerListParams = CustomerListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
- /**
- * This endpoint returns a list of all customers for an account. The list of customers is
- * ordered starting from the most recently created customer. This endpoint follows Orb's
- * [standardized pagination format](/api-reference/pagination).
- *
- * See [Customer](/core-concepts##customer) for an overview of the customer model.
- */
+ /** @see [list] */
+ fun list(
+ params: CustomerListParams = CustomerListParams.none()
+ ): CompletableFuture = list(params, RequestOptions.none())
+
+ /** @see [list] */
fun list(requestOptions: RequestOptions): CompletableFuture =
list(CustomerListParams.none(), requestOptions)
@@ -106,7 +111,10 @@ interface CustomerServiceAsync {
*
* On successful processing, this returns an empty dictionary (`{}`) in the API.
*/
- @JvmOverloads
+ fun delete(params: CustomerDeleteParams): CompletableFuture =
+ delete(params, RequestOptions.none())
+
+ /** @see [delete] */
fun delete(
params: CustomerDeleteParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -119,7 +127,10 @@ interface CustomerServiceAsync {
* See the [Customer resource](/core-concepts#customer) for a full discussion of the Customer
* model.
*/
- @JvmOverloads
+ fun fetch(params: CustomerFetchParams): CompletableFuture =
+ fetch(params, RequestOptions.none())
+
+ /** @see [fetch] */
fun fetch(
params: CustomerFetchParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -132,7 +143,10 @@ interface CustomerServiceAsync {
* Note that the resource and semantics of this endpoint exactly mirror
* [Get Customer](fetch-customer).
*/
- @JvmOverloads
+ fun fetchByExternalId(params: CustomerFetchByExternalIdParams): CompletableFuture =
+ fetchByExternalId(params, RequestOptions.none())
+
+ /** @see [fetchByExternalId] */
fun fetchByExternalId(
params: CustomerFetchByExternalIdParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -146,7 +160,11 @@ interface CustomerServiceAsync {
*
* **Note**: This functionality is currently only available for Stripe.
*/
- @JvmOverloads
+ fun syncPaymentMethodsFromGateway(
+ params: CustomerSyncPaymentMethodsFromGatewayParams
+ ): CompletableFuture = syncPaymentMethodsFromGateway(params, RequestOptions.none())
+
+ /** @see [syncPaymentMethodsFromGateway] */
fun syncPaymentMethodsFromGateway(
params: CustomerSyncPaymentMethodsFromGatewayParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -160,7 +178,12 @@ interface CustomerServiceAsync {
*
* **Note**: This functionality is currently only available for Stripe.
*/
- @JvmOverloads
+ fun syncPaymentMethodsFromGatewayByExternalCustomerId(
+ params: CustomerSyncPaymentMethodsFromGatewayByExternalCustomerIdParams
+ ): CompletableFuture =
+ syncPaymentMethodsFromGatewayByExternalCustomerId(params, RequestOptions.none())
+
+ /** @see [syncPaymentMethodsFromGatewayByExternalCustomerId] */
fun syncPaymentMethodsFromGatewayByExternalCustomerId(
params: CustomerSyncPaymentMethodsFromGatewayByExternalCustomerIdParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -171,7 +194,10 @@ interface CustomerServiceAsync {
* [Customer ID Aliases](/events-and-metrics/customer-aliases)). Note that the resource and
* semantics of this endpoint exactly mirror [Update Customer](update-customer).
*/
- @JvmOverloads
+ fun updateByExternalId(params: CustomerUpdateByExternalIdParams): CompletableFuture =
+ updateByExternalId(params, RequestOptions.none())
+
+ /** @see [updateByExternalId] */
fun updateByExternalId(
params: CustomerUpdateByExternalIdParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -192,7 +218,11 @@ interface CustomerServiceAsync {
* Returns a raw HTTP response for `post /customers`, but is otherwise the same as
* [CustomerServiceAsync.create].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun create(params: CustomerCreateParams): CompletableFuture> =
+ create(params, RequestOptions.none())
+
+ /** @see [create] */
@MustBeClosed
fun create(
params: CustomerCreateParams,
@@ -203,7 +233,11 @@ interface CustomerServiceAsync {
* Returns a raw HTTP response for `put /customers/{customer_id}`, but is otherwise the same
* as [CustomerServiceAsync.update].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun update(params: CustomerUpdateParams): CompletableFuture> =
+ update(params, RequestOptions.none())
+
+ /** @see [update] */
@MustBeClosed
fun update(
params: CustomerUpdateParams,
@@ -214,17 +248,25 @@ interface CustomerServiceAsync {
* Returns a raw HTTP response for `get /customers`, but is otherwise the same as
* [CustomerServiceAsync.list].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun list(): CompletableFuture> =
+ list(CustomerListParams.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
params: CustomerListParams = CustomerListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture>
- /**
- * Returns a raw HTTP response for `get /customers`, but is otherwise the same as
- * [CustomerServiceAsync.list].
- */
+ /** @see [list] */
+ @MustBeClosed
+ fun list(
+ params: CustomerListParams = CustomerListParams.none()
+ ): CompletableFuture> =
+ list(params, RequestOptions.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
requestOptions: RequestOptions
@@ -235,7 +277,11 @@ interface CustomerServiceAsync {
* Returns a raw HTTP response for `delete /customers/{customer_id}`, but is otherwise the
* same as [CustomerServiceAsync.delete].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun delete(params: CustomerDeleteParams): CompletableFuture =
+ delete(params, RequestOptions.none())
+
+ /** @see [delete] */
@MustBeClosed
fun delete(
params: CustomerDeleteParams,
@@ -246,7 +292,11 @@ interface CustomerServiceAsync {
* Returns a raw HTTP response for `get /customers/{customer_id}`, but is otherwise the same
* as [CustomerServiceAsync.fetch].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun fetch(params: CustomerFetchParams): CompletableFuture> =
+ fetch(params, RequestOptions.none())
+
+ /** @see [fetch] */
@MustBeClosed
fun fetch(
params: CustomerFetchParams,
@@ -258,7 +308,13 @@ interface CustomerServiceAsync {
* /customers/external_customer_id/{external_customer_id}`, but is otherwise the same as
* [CustomerServiceAsync.fetchByExternalId].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun fetchByExternalId(
+ params: CustomerFetchByExternalIdParams
+ ): CompletableFuture> =
+ fetchByExternalId(params, RequestOptions.none())
+
+ /** @see [fetchByExternalId] */
@MustBeClosed
fun fetchByExternalId(
params: CustomerFetchByExternalIdParams,
@@ -270,7 +326,13 @@ interface CustomerServiceAsync {
* /customers/external_customer_id/{external_customer_id}/sync_payment_methods_from_gateway`,
* but is otherwise the same as [CustomerServiceAsync.syncPaymentMethodsFromGateway].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun syncPaymentMethodsFromGateway(
+ params: CustomerSyncPaymentMethodsFromGatewayParams
+ ): CompletableFuture =
+ syncPaymentMethodsFromGateway(params, RequestOptions.none())
+
+ /** @see [syncPaymentMethodsFromGateway] */
@MustBeClosed
fun syncPaymentMethodsFromGateway(
params: CustomerSyncPaymentMethodsFromGatewayParams,
@@ -282,7 +344,13 @@ interface CustomerServiceAsync {
* /customers/{customer_id}/sync_payment_methods_from_gateway`, but is otherwise the same as
* [CustomerServiceAsync.syncPaymentMethodsFromGatewayByExternalCustomerId].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun syncPaymentMethodsFromGatewayByExternalCustomerId(
+ params: CustomerSyncPaymentMethodsFromGatewayByExternalCustomerIdParams
+ ): CompletableFuture =
+ syncPaymentMethodsFromGatewayByExternalCustomerId(params, RequestOptions.none())
+
+ /** @see [syncPaymentMethodsFromGatewayByExternalCustomerId] */
@MustBeClosed
fun syncPaymentMethodsFromGatewayByExternalCustomerId(
params: CustomerSyncPaymentMethodsFromGatewayByExternalCustomerIdParams,
@@ -294,7 +362,13 @@ interface CustomerServiceAsync {
* /customers/external_customer_id/{external_customer_id}`, but is otherwise the same as
* [CustomerServiceAsync.updateByExternalId].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun updateByExternalId(
+ params: CustomerUpdateByExternalIdParams
+ ): CompletableFuture> =
+ updateByExternalId(params, RequestOptions.none())
+
+ /** @see [updateByExternalId] */
@MustBeClosed
fun updateByExternalId(
params: CustomerUpdateByExternalIdParams,
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/DimensionalPriceGroupServiceAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/DimensionalPriceGroupServiceAsync.kt
index 9ab07e06..d50338f5 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/DimensionalPriceGroupServiceAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/DimensionalPriceGroupServiceAsync.kt
@@ -1,7 +1,5 @@
// File generated from our OpenAPI spec by Stainless.
-@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-
package com.withorb.api.services.async
import com.google.errorprone.annotations.MustBeClosed
@@ -33,27 +31,43 @@ interface DimensionalPriceGroupServiceAsync {
* group with a dimension "color" and two prices: one that charges $10 per red widget and one
* that charges $20 per blue widget.
*/
- @JvmOverloads
+ fun create(
+ params: DimensionalPriceGroupCreateParams
+ ): CompletableFuture = create(params, RequestOptions.none())
+
+ /** @see [create] */
fun create(
params: DimensionalPriceGroupCreateParams,
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
/** Fetch dimensional price group */
- @JvmOverloads
+ fun retrieve(
+ params: DimensionalPriceGroupRetrieveParams
+ ): CompletableFuture = retrieve(params, RequestOptions.none())
+
+ /** @see [retrieve] */
fun retrieve(
params: DimensionalPriceGroupRetrieveParams,
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
/** List dimensional price groups */
- @JvmOverloads
+ fun list(): CompletableFuture =
+ list(DimensionalPriceGroupListParams.none())
+
+ /** @see [list] */
fun list(
params: DimensionalPriceGroupListParams = DimensionalPriceGroupListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
- /** List dimensional price groups */
+ /** @see [list] */
+ fun list(
+ params: DimensionalPriceGroupListParams = DimensionalPriceGroupListParams.none()
+ ): CompletableFuture = list(params, RequestOptions.none())
+
+ /** @see [list] */
fun list(
requestOptions: RequestOptions
): CompletableFuture =
@@ -72,7 +86,13 @@ interface DimensionalPriceGroupServiceAsync {
* Returns a raw HTTP response for `post /dimensional_price_groups`, but is otherwise the
* same as [DimensionalPriceGroupServiceAsync.create].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun create(
+ params: DimensionalPriceGroupCreateParams
+ ): CompletableFuture> =
+ create(params, RequestOptions.none())
+
+ /** @see [create] */
@MustBeClosed
fun create(
params: DimensionalPriceGroupCreateParams,
@@ -84,7 +104,13 @@ interface DimensionalPriceGroupServiceAsync {
* /dimensional_price_groups/{dimensional_price_group_id}`, but is otherwise the same as
* [DimensionalPriceGroupServiceAsync.retrieve].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun retrieve(
+ params: DimensionalPriceGroupRetrieveParams
+ ): CompletableFuture> =
+ retrieve(params, RequestOptions.none())
+
+ /** @see [retrieve] */
@MustBeClosed
fun retrieve(
params: DimensionalPriceGroupRetrieveParams,
@@ -95,17 +121,25 @@ interface DimensionalPriceGroupServiceAsync {
* Returns a raw HTTP response for `get /dimensional_price_groups`, but is otherwise the
* same as [DimensionalPriceGroupServiceAsync.list].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun list(): CompletableFuture> =
+ list(DimensionalPriceGroupListParams.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
params: DimensionalPriceGroupListParams = DimensionalPriceGroupListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture>
- /**
- * Returns a raw HTTP response for `get /dimensional_price_groups`, but is otherwise the
- * same as [DimensionalPriceGroupServiceAsync.list].
- */
+ /** @see [list] */
+ @MustBeClosed
+ fun list(
+ params: DimensionalPriceGroupListParams = DimensionalPriceGroupListParams.none()
+ ): CompletableFuture> =
+ list(params, RequestOptions.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
requestOptions: RequestOptions
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/EventServiceAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/EventServiceAsync.kt
index 26e89877..8d64fda3 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/EventServiceAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/EventServiceAsync.kt
@@ -1,7 +1,5 @@
// File generated from our OpenAPI spec by Stainless.
-@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-
package com.withorb.api.services.async
import com.google.errorprone.annotations.MustBeClosed
@@ -71,7 +69,10 @@ interface EventServiceAsync {
* period. For higher volume updates, consider using the [event backfill](create-backfill)
* endpoint.
*/
- @JvmOverloads
+ fun update(params: EventUpdateParams): CompletableFuture =
+ update(params, RequestOptions.none())
+
+ /** @see [update] */
fun update(
params: EventUpdateParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -113,7 +114,10 @@ interface EventServiceAsync {
* period. For higher volume updates, consider using the [event backfill](create-backfill)
* endpoint.
*/
- @JvmOverloads
+ fun deprecate(params: EventDeprecateParams): CompletableFuture =
+ deprecate(params, RequestOptions.none())
+
+ /** @see [deprecate] */
fun deprecate(
params: EventDeprecateParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -310,7 +314,10 @@ interface EventServiceAsync {
* }
* ```
*/
- @JvmOverloads
+ fun ingest(params: EventIngestParams): CompletableFuture =
+ ingest(params, RequestOptions.none())
+
+ /** @see [ingest] */
fun ingest(
params: EventIngestParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -332,7 +339,10 @@ interface EventServiceAsync {
* By default, Orb will not throw a `404` if no events matched, Orb will return an empty array
* for `data` instead.
*/
- @JvmOverloads
+ fun search(params: EventSearchParams): CompletableFuture =
+ search(params, RequestOptions.none())
+
+ /** @see [search] */
fun search(
params: EventSearchParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -349,7 +359,13 @@ interface EventServiceAsync {
* Returns a raw HTTP response for `put /events/{event_id}`, but is otherwise the same as
* [EventServiceAsync.update].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun update(
+ params: EventUpdateParams
+ ): CompletableFuture> =
+ update(params, RequestOptions.none())
+
+ /** @see [update] */
@MustBeClosed
fun update(
params: EventUpdateParams,
@@ -360,7 +376,13 @@ interface EventServiceAsync {
* Returns a raw HTTP response for `put /events/{event_id}/deprecate`, but is otherwise the
* same as [EventServiceAsync.deprecate].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun deprecate(
+ params: EventDeprecateParams
+ ): CompletableFuture> =
+ deprecate(params, RequestOptions.none())
+
+ /** @see [deprecate] */
@MustBeClosed
fun deprecate(
params: EventDeprecateParams,
@@ -371,7 +393,13 @@ interface EventServiceAsync {
* Returns a raw HTTP response for `post /ingest`, but is otherwise the same as
* [EventServiceAsync.ingest].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun ingest(
+ params: EventIngestParams
+ ): CompletableFuture> =
+ ingest(params, RequestOptions.none())
+
+ /** @see [ingest] */
@MustBeClosed
fun ingest(
params: EventIngestParams,
@@ -382,7 +410,13 @@ interface EventServiceAsync {
* Returns a raw HTTP response for `post /events/search`, but is otherwise the same as
* [EventServiceAsync.search].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun search(
+ params: EventSearchParams
+ ): CompletableFuture> =
+ search(params, RequestOptions.none())
+
+ /** @see [search] */
@MustBeClosed
fun search(
params: EventSearchParams,
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/InvoiceLineItemServiceAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/InvoiceLineItemServiceAsync.kt
index 103cc5ce..9a14d344 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/InvoiceLineItemServiceAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/InvoiceLineItemServiceAsync.kt
@@ -1,7 +1,5 @@
// File generated from our OpenAPI spec by Stainless.
-@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-
package com.withorb.api.services.async
import com.google.errorprone.annotations.MustBeClosed
@@ -22,7 +20,11 @@ interface InvoiceLineItemServiceAsync {
* This creates a one-off fixed fee invoice line item on an Invoice. This can only be done for
* invoices that are in a `draft` status.
*/
- @JvmOverloads
+ fun create(
+ params: InvoiceLineItemCreateParams
+ ): CompletableFuture = create(params, RequestOptions.none())
+
+ /** @see [create] */
fun create(
params: InvoiceLineItemCreateParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -38,7 +40,13 @@ interface InvoiceLineItemServiceAsync {
* Returns a raw HTTP response for `post /invoice_line_items`, but is otherwise the same as
* [InvoiceLineItemServiceAsync.create].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun create(
+ params: InvoiceLineItemCreateParams
+ ): CompletableFuture> =
+ create(params, RequestOptions.none())
+
+ /** @see [create] */
@MustBeClosed
fun create(
params: InvoiceLineItemCreateParams,
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/InvoiceServiceAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/InvoiceServiceAsync.kt
index 3193efcf..46eeeaa5 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/InvoiceServiceAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/InvoiceServiceAsync.kt
@@ -1,7 +1,5 @@
// File generated from our OpenAPI spec by Stainless.
-@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-
package com.withorb.api.services.async
import com.google.errorprone.annotations.MustBeClosed
@@ -29,7 +27,10 @@ interface InvoiceServiceAsync {
fun withRawResponse(): WithRawResponse
/** This endpoint is used to create a one-off invoice for a customer. */
- @JvmOverloads
+ fun create(params: InvoiceCreateParams): CompletableFuture =
+ create(params, RequestOptions.none())
+
+ /** @see [create] */
fun create(
params: InvoiceCreateParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -41,7 +42,10 @@ interface InvoiceServiceAsync {
*
* `metadata` can be modified regardless of invoice state.
*/
- @JvmOverloads
+ fun update(params: InvoiceUpdateParams): CompletableFuture =
+ update(params, RequestOptions.none())
+
+ /** @see [update] */
fun update(
params: InvoiceUpdateParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -61,33 +65,30 @@ interface InvoiceServiceAsync {
* draft invoice, which may not always be up-to-date since Orb regularly refreshes invoices
* asynchronously.
*/
- @JvmOverloads
+ fun list(): CompletableFuture = list(InvoiceListParams.none())
+
+ /** @see [list] */
fun list(
params: InvoiceListParams = InvoiceListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
- /**
- * This endpoint returns a list of all [`Invoice`](/core-concepts#invoice)s for an account in a
- * list format.
- *
- * The list of invoices is ordered starting from the most recently issued invoice date. The
- * response also includes [`pagination_metadata`](/api-reference/pagination), which lets the
- * caller retrieve the next page of results if they exist.
- *
- * By default, this only returns invoices that are `issued`, `paid`, or `synced`.
- *
- * When fetching any `draft` invoices, this returns the last-computed invoice values for each
- * draft invoice, which may not always be up-to-date since Orb regularly refreshes invoices
- * asynchronously.
- */
+ /** @see [list] */
+ fun list(
+ params: InvoiceListParams = InvoiceListParams.none()
+ ): CompletableFuture = list(params, RequestOptions.none())
+
+ /** @see [list] */
fun list(requestOptions: RequestOptions): CompletableFuture =
list(InvoiceListParams.none(), requestOptions)
/**
* This endpoint is used to fetch an [`Invoice`](/core-concepts#invoice) given an identifier.
*/
- @JvmOverloads
+ fun fetch(params: InvoiceFetchParams): CompletableFuture =
+ fetch(params, RequestOptions.none())
+
+ /** @see [fetch] */
fun fetch(
params: InvoiceFetchParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -97,7 +98,12 @@ interface InvoiceServiceAsync {
* This endpoint can be used to fetch the upcoming [invoice](/core-concepts#invoice) for the
* current billing period given a subscription.
*/
- @JvmOverloads
+ fun fetchUpcoming(
+ params: InvoiceFetchUpcomingParams
+ ): CompletableFuture =
+ fetchUpcoming(params, RequestOptions.none())
+
+ /** @see [fetchUpcoming] */
fun fetchUpcoming(
params: InvoiceFetchUpcomingParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -110,7 +116,10 @@ interface InvoiceServiceAsync {
* could be customer-visible (e.g. sending emails, auto-collecting payment, syncing the invoice
* to external providers, etc).
*/
- @JvmOverloads
+ fun issue(params: InvoiceIssueParams): CompletableFuture =
+ issue(params, RequestOptions.none())
+
+ /** @see [issue] */
fun issue(
params: InvoiceIssueParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -120,7 +129,10 @@ interface InvoiceServiceAsync {
* This endpoint allows an invoice's status to be set the `paid` status. This can only be done
* to invoices that are in the `issued` status.
*/
- @JvmOverloads
+ fun markPaid(params: InvoiceMarkPaidParams): CompletableFuture =
+ markPaid(params, RequestOptions.none())
+
+ /** @see [markPaid] */
fun markPaid(
params: InvoiceMarkPaidParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -130,7 +142,10 @@ interface InvoiceServiceAsync {
* This endpoint collects payment for an invoice using the customer's default payment method.
* This action can only be taken on invoices with status "issued".
*/
- @JvmOverloads
+ fun pay(params: InvoicePayParams): CompletableFuture =
+ pay(params, RequestOptions.none())
+
+ /** @see [pay] */
fun pay(
params: InvoicePayParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -148,7 +163,10 @@ interface InvoiceServiceAsync {
* credit block will be voided. If the invoice was created due to a top-up, the top-up will be
* disabled.
*/
- @JvmOverloads
+ fun voidInvoice(params: InvoiceVoidInvoiceParams): CompletableFuture =
+ voidInvoice(params, RequestOptions.none())
+
+ /** @see [voidInvoice] */
fun voidInvoice(
params: InvoiceVoidInvoiceParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -163,7 +181,11 @@ interface InvoiceServiceAsync {
* Returns a raw HTTP response for `post /invoices`, but is otherwise the same as
* [InvoiceServiceAsync.create].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun create(params: InvoiceCreateParams): CompletableFuture> =
+ create(params, RequestOptions.none())
+
+ /** @see [create] */
@MustBeClosed
fun create(
params: InvoiceCreateParams,
@@ -174,7 +196,11 @@ interface InvoiceServiceAsync {
* Returns a raw HTTP response for `put /invoices/{invoice_id}`, but is otherwise the same
* as [InvoiceServiceAsync.update].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun update(params: InvoiceUpdateParams): CompletableFuture> =
+ update(params, RequestOptions.none())
+
+ /** @see [update] */
@MustBeClosed
fun update(
params: InvoiceUpdateParams,
@@ -185,17 +211,25 @@ interface InvoiceServiceAsync {
* Returns a raw HTTP response for `get /invoices`, but is otherwise the same as
* [InvoiceServiceAsync.list].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun list(): CompletableFuture> =
+ list(InvoiceListParams.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
params: InvoiceListParams = InvoiceListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture>
- /**
- * Returns a raw HTTP response for `get /invoices`, but is otherwise the same as
- * [InvoiceServiceAsync.list].
- */
+ /** @see [list] */
+ @MustBeClosed
+ fun list(
+ params: InvoiceListParams = InvoiceListParams.none()
+ ): CompletableFuture> =
+ list(params, RequestOptions.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
requestOptions: RequestOptions
@@ -206,7 +240,11 @@ interface InvoiceServiceAsync {
* Returns a raw HTTP response for `get /invoices/{invoice_id}`, but is otherwise the same
* as [InvoiceServiceAsync.fetch].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun fetch(params: InvoiceFetchParams): CompletableFuture> =
+ fetch(params, RequestOptions.none())
+
+ /** @see [fetch] */
@MustBeClosed
fun fetch(
params: InvoiceFetchParams,
@@ -217,7 +255,13 @@ interface InvoiceServiceAsync {
* Returns a raw HTTP response for `get /invoices/upcoming`, but is otherwise the same as
* [InvoiceServiceAsync.fetchUpcoming].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun fetchUpcoming(
+ params: InvoiceFetchUpcomingParams
+ ): CompletableFuture> =
+ fetchUpcoming(params, RequestOptions.none())
+
+ /** @see [fetchUpcoming] */
@MustBeClosed
fun fetchUpcoming(
params: InvoiceFetchUpcomingParams,
@@ -228,7 +272,11 @@ interface InvoiceServiceAsync {
* Returns a raw HTTP response for `post /invoices/{invoice_id}/issue`, but is otherwise the
* same as [InvoiceServiceAsync.issue].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun issue(params: InvoiceIssueParams): CompletableFuture> =
+ issue(params, RequestOptions.none())
+
+ /** @see [issue] */
@MustBeClosed
fun issue(
params: InvoiceIssueParams,
@@ -239,7 +287,11 @@ interface InvoiceServiceAsync {
* Returns a raw HTTP response for `post /invoices/{invoice_id}/mark_paid`, but is otherwise
* the same as [InvoiceServiceAsync.markPaid].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun markPaid(params: InvoiceMarkPaidParams): CompletableFuture> =
+ markPaid(params, RequestOptions.none())
+
+ /** @see [markPaid] */
@MustBeClosed
fun markPaid(
params: InvoiceMarkPaidParams,
@@ -250,7 +302,11 @@ interface InvoiceServiceAsync {
* Returns a raw HTTP response for `post /invoices/{invoice_id}/pay`, but is otherwise the
* same as [InvoiceServiceAsync.pay].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun pay(params: InvoicePayParams): CompletableFuture> =
+ pay(params, RequestOptions.none())
+
+ /** @see [pay] */
@MustBeClosed
fun pay(
params: InvoicePayParams,
@@ -261,7 +317,12 @@ interface InvoiceServiceAsync {
* Returns a raw HTTP response for `post /invoices/{invoice_id}/void`, but is otherwise the
* same as [InvoiceServiceAsync.voidInvoice].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun voidInvoice(
+ params: InvoiceVoidInvoiceParams
+ ): CompletableFuture> = voidInvoice(params, RequestOptions.none())
+
+ /** @see [voidInvoice] */
@MustBeClosed
fun voidInvoice(
params: InvoiceVoidInvoiceParams,
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/ItemServiceAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/ItemServiceAsync.kt
index fb3b5075..2cb003e2 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/ItemServiceAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/ItemServiceAsync.kt
@@ -1,7 +1,5 @@
// File generated from our OpenAPI spec by Stainless.
-@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-
package com.withorb.api.services.async
import com.google.errorprone.annotations.MustBeClosed
@@ -23,32 +21,47 @@ interface ItemServiceAsync {
fun withRawResponse(): WithRawResponse
/** This endpoint is used to create an [Item](/core-concepts#item). */
- @JvmOverloads
+ fun create(params: ItemCreateParams): CompletableFuture- =
+ create(params, RequestOptions.none())
+
+ /** @see [create] */
fun create(
params: ItemCreateParams,
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
-
/** This endpoint can be used to update properties on the Item. */
- @JvmOverloads
+ fun update(params: ItemUpdateParams): CompletableFuture
- =
+ update(params, RequestOptions.none())
+
+ /** @see [update] */
fun update(
params: ItemUpdateParams,
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
-
/** This endpoint returns a list of all Items, ordered in descending order by creation time. */
- @JvmOverloads
+ fun list(): CompletableFuture = list(ItemListParams.none())
+
+ /** @see [list] */
fun list(
params: ItemListParams = ItemListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
- /** This endpoint returns a list of all Items, ordered in descending order by creation time. */
+ /** @see [list] */
+ fun list(params: ItemListParams = ItemListParams.none()): CompletableFuture =
+ list(params, RequestOptions.none())
+
+ /** @see [list] */
fun list(requestOptions: RequestOptions): CompletableFuture =
list(ItemListParams.none(), requestOptions)
/** This endpoint returns an item identified by its item_id. */
- @JvmOverloads
+ fun fetch(params: ItemFetchParams): CompletableFuture
- =
+ fetch(params, RequestOptions.none())
+
+ /** @see [fetch] */
fun fetch(
params: ItemFetchParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -61,7 +74,11 @@ interface ItemServiceAsync {
* Returns a raw HTTP response for `post /items`, but is otherwise the same as
* [ItemServiceAsync.create].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun create(params: ItemCreateParams): CompletableFuture> =
+ create(params, RequestOptions.none())
+
+ /** @see [create] */
@MustBeClosed
fun create(
params: ItemCreateParams,
@@ -72,7 +89,11 @@ interface ItemServiceAsync {
* Returns a raw HTTP response for `put /items/{item_id}`, but is otherwise the same as
* [ItemServiceAsync.update].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun update(params: ItemUpdateParams): CompletableFuture> =
+ update(params, RequestOptions.none())
+
+ /** @see [update] */
@MustBeClosed
fun update(
params: ItemUpdateParams,
@@ -83,17 +104,25 @@ interface ItemServiceAsync {
* Returns a raw HTTP response for `get /items`, but is otherwise the same as
* [ItemServiceAsync.list].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun list(): CompletableFuture> =
+ list(ItemListParams.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
params: ItemListParams = ItemListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture>
- /**
- * Returns a raw HTTP response for `get /items`, but is otherwise the same as
- * [ItemServiceAsync.list].
- */
+ /** @see [list] */
+ @MustBeClosed
+ fun list(
+ params: ItemListParams = ItemListParams.none()
+ ): CompletableFuture> =
+ list(params, RequestOptions.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
requestOptions: RequestOptions
@@ -104,7 +133,11 @@ interface ItemServiceAsync {
* Returns a raw HTTP response for `get /items/{item_id}`, but is otherwise the same as
* [ItemServiceAsync.fetch].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun fetch(params: ItemFetchParams): CompletableFuture> =
+ fetch(params, RequestOptions.none())
+
+ /** @see [fetch] */
@MustBeClosed
fun fetch(
params: ItemFetchParams,
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/MetricServiceAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/MetricServiceAsync.kt
index 2668fe5c..554e58ce 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/MetricServiceAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/MetricServiceAsync.kt
@@ -1,7 +1,5 @@
// File generated from our OpenAPI spec by Stainless.
-@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-
package com.withorb.api.services.async
import com.google.errorprone.annotations.MustBeClosed
@@ -27,7 +25,10 @@ interface MetricServiceAsync {
* [SQL support](/extensibility/advanced-metrics#sql-support) for a description of constructing
* SQL queries with examples.
*/
- @JvmOverloads
+ fun create(params: MetricCreateParams): CompletableFuture =
+ create(params, RequestOptions.none())
+
+ /** @see [create] */
fun create(
params: MetricCreateParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -37,7 +38,10 @@ interface MetricServiceAsync {
* This endpoint allows you to update the `metadata` property on a metric. If you pass `null`
* for the metadata value, it will clear any existing metadata for that invoice.
*/
- @JvmOverloads
+ fun update(params: MetricUpdateParams): CompletableFuture =
+ update(params, RequestOptions.none())
+
+ /** @see [update] */
fun update(
params: MetricUpdateParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -48,17 +52,20 @@ interface MetricServiceAsync {
* identifier. It returns information about the metrics including its name, description, and
* item.
*/
- @JvmOverloads
+ fun list(): CompletableFuture = list(MetricListParams.none())
+
+ /** @see [list] */
fun list(
params: MetricListParams = MetricListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
- /**
- * This endpoint is used to fetch [metric](/core-concepts##metric) details given a metric
- * identifier. It returns information about the metrics including its name, description, and
- * item.
- */
+ /** @see [list] */
+ fun list(
+ params: MetricListParams = MetricListParams.none()
+ ): CompletableFuture = list(params, RequestOptions.none())
+
+ /** @see [list] */
fun list(requestOptions: RequestOptions): CompletableFuture =
list(MetricListParams.none(), requestOptions)
@@ -66,7 +73,10 @@ interface MetricServiceAsync {
* This endpoint is used to list [metrics](/core-concepts#metric). It returns information about
* the metrics including its name, description, and item.
*/
- @JvmOverloads
+ fun fetch(params: MetricFetchParams): CompletableFuture =
+ fetch(params, RequestOptions.none())
+
+ /** @see [fetch] */
fun fetch(
params: MetricFetchParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -81,7 +91,11 @@ interface MetricServiceAsync {
* Returns a raw HTTP response for `post /metrics`, but is otherwise the same as
* [MetricServiceAsync.create].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun create(params: MetricCreateParams): CompletableFuture> =
+ create(params, RequestOptions.none())
+
+ /** @see [create] */
@MustBeClosed
fun create(
params: MetricCreateParams,
@@ -92,7 +106,11 @@ interface MetricServiceAsync {
* Returns a raw HTTP response for `put /metrics/{metric_id}`, but is otherwise the same as
* [MetricServiceAsync.update].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun update(params: MetricUpdateParams): CompletableFuture> =
+ update(params, RequestOptions.none())
+
+ /** @see [update] */
@MustBeClosed
fun update(
params: MetricUpdateParams,
@@ -103,17 +121,25 @@ interface MetricServiceAsync {
* Returns a raw HTTP response for `get /metrics`, but is otherwise the same as
* [MetricServiceAsync.list].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun list(): CompletableFuture> =
+ list(MetricListParams.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
params: MetricListParams = MetricListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture>
- /**
- * Returns a raw HTTP response for `get /metrics`, but is otherwise the same as
- * [MetricServiceAsync.list].
- */
+ /** @see [list] */
+ @MustBeClosed
+ fun list(
+ params: MetricListParams = MetricListParams.none()
+ ): CompletableFuture> =
+ list(params, RequestOptions.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
requestOptions: RequestOptions
@@ -124,7 +150,11 @@ interface MetricServiceAsync {
* Returns a raw HTTP response for `get /metrics/{metric_id}`, but is otherwise the same as
* [MetricServiceAsync.fetch].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun fetch(params: MetricFetchParams): CompletableFuture> =
+ fetch(params, RequestOptions.none())
+
+ /** @see [fetch] */
@MustBeClosed
fun fetch(
params: MetricFetchParams,
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/PlanServiceAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/PlanServiceAsync.kt
index 7c238c0a..28590f41 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/PlanServiceAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/PlanServiceAsync.kt
@@ -1,7 +1,5 @@
// File generated from our OpenAPI spec by Stainless.
-@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-
package com.withorb.api.services.async
import com.google.errorprone.annotations.MustBeClosed
@@ -26,7 +24,10 @@ interface PlanServiceAsync {
fun externalPlanId(): ExternalPlanIdServiceAsync
/** This endpoint allows creation of plans including their prices. */
- @JvmOverloads
+ fun create(params: PlanCreateParams): CompletableFuture =
+ create(params, RequestOptions.none())
+
+ /** @see [create] */
fun create(
params: PlanCreateParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -38,7 +39,10 @@ interface PlanServiceAsync {
*
* Other fields on a customer are currently immutable.
*/
- @JvmOverloads
+ fun update(params: PlanUpdateParams): CompletableFuture =
+ update(params, RequestOptions.none())
+
+ /** @see [update] */
fun update(
params: PlanUpdateParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -50,18 +54,19 @@ interface PlanServiceAsync {
* response also includes [`pagination_metadata`](/api-reference/pagination), which lets the
* caller retrieve the next page of results if they exist.
*/
- @JvmOverloads
+ fun list(): CompletableFuture = list(PlanListParams.none())
+
+ /** @see [list] */
fun list(
params: PlanListParams = PlanListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
- /**
- * This endpoint returns a list of all [plans](/core-concepts#plan-and-price) for an account in
- * a list format. The list of plans is ordered starting from the most recently created plan. The
- * response also includes [`pagination_metadata`](/api-reference/pagination), which lets the
- * caller retrieve the next page of results if they exist.
- */
+ /** @see [list] */
+ fun list(params: PlanListParams = PlanListParams.none()): CompletableFuture =
+ list(params, RequestOptions.none())
+
+ /** @see [list] */
fun list(requestOptions: RequestOptions): CompletableFuture =
list(PlanListParams.none(), requestOptions)
@@ -83,7 +88,10 @@ interface PlanServiceAsync {
* Orb supports plan phases, also known as contract ramps. For plans with phases, the serialized
* prices refer to all prices across all phases.
*/
- @JvmOverloads
+ fun fetch(params: PlanFetchParams): CompletableFuture =
+ fetch(params, RequestOptions.none())
+
+ /** @see [fetch] */
fun fetch(
params: PlanFetchParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -98,7 +106,11 @@ interface PlanServiceAsync {
* Returns a raw HTTP response for `post /plans`, but is otherwise the same as
* [PlanServiceAsync.create].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun create(params: PlanCreateParams): CompletableFuture> =
+ create(params, RequestOptions.none())
+
+ /** @see [create] */
@MustBeClosed
fun create(
params: PlanCreateParams,
@@ -109,7 +121,11 @@ interface PlanServiceAsync {
* Returns a raw HTTP response for `put /plans/{plan_id}`, but is otherwise the same as
* [PlanServiceAsync.update].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun update(params: PlanUpdateParams): CompletableFuture> =
+ update(params, RequestOptions.none())
+
+ /** @see [update] */
@MustBeClosed
fun update(
params: PlanUpdateParams,
@@ -120,17 +136,25 @@ interface PlanServiceAsync {
* Returns a raw HTTP response for `get /plans`, but is otherwise the same as
* [PlanServiceAsync.list].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun list(): CompletableFuture> =
+ list(PlanListParams.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
params: PlanListParams = PlanListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture>
- /**
- * Returns a raw HTTP response for `get /plans`, but is otherwise the same as
- * [PlanServiceAsync.list].
- */
+ /** @see [list] */
+ @MustBeClosed
+ fun list(
+ params: PlanListParams = PlanListParams.none()
+ ): CompletableFuture> =
+ list(params, RequestOptions.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
requestOptions: RequestOptions
@@ -141,7 +165,11 @@ interface PlanServiceAsync {
* Returns a raw HTTP response for `get /plans/{plan_id}`, but is otherwise the same as
* [PlanServiceAsync.fetch].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun fetch(params: PlanFetchParams): CompletableFuture> =
+ fetch(params, RequestOptions.none())
+
+ /** @see [fetch] */
@MustBeClosed
fun fetch(
params: PlanFetchParams,
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/PriceServiceAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/PriceServiceAsync.kt
index ab40d8b9..ae0f5ebb 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/PriceServiceAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/PriceServiceAsync.kt
@@ -1,7 +1,5 @@
// File generated from our OpenAPI spec by Stainless.
-@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-
package com.withorb.api.services.async
import com.google.errorprone.annotations.MustBeClosed
@@ -39,7 +37,10 @@ interface PriceServiceAsync {
* See the [Price resource](/product-catalog/price-configuration) for the specification of
* different price model configurations possible in this endpoint.
*/
- @JvmOverloads
+ fun create(params: PriceCreateParams): CompletableFuture =
+ create(params, RequestOptions.none())
+
+ /** @see [create] */
fun create(
params: PriceCreateParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -49,7 +50,10 @@ interface PriceServiceAsync {
* This endpoint allows you to update the `metadata` property on a price. If you pass null for
* the metadata value, it will clear any existing metadata for that price.
*/
- @JvmOverloads
+ fun update(params: PriceUpdateParams): CompletableFuture =
+ update(params, RequestOptions.none())
+
+ /** @see [update] */
fun update(
params: PriceUpdateParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -59,16 +63,20 @@ interface PriceServiceAsync {
* This endpoint is used to list all add-on prices created using the
* [price creation endpoint](/api-reference/price/create-price).
*/
- @JvmOverloads
+ fun list(): CompletableFuture = list(PriceListParams.none())
+
+ /** @see [list] */
fun list(
params: PriceListParams = PriceListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
- /**
- * This endpoint is used to list all add-on prices created using the
- * [price creation endpoint](/api-reference/price/create-price).
- */
+ /** @see [list] */
+ fun list(
+ params: PriceListParams = PriceListParams.none()
+ ): CompletableFuture = list(params, RequestOptions.none())
+
+ /** @see [list] */
fun list(requestOptions: RequestOptions): CompletableFuture =
list(PriceListParams.none(), requestOptions)
@@ -91,14 +99,20 @@ interface PriceServiceAsync {
* the results must be no greater than 1000. Note that this is a POST endpoint rather than a GET
* endpoint because it employs a JSON body rather than query parameters.
*/
- @JvmOverloads
+ fun evaluate(params: PriceEvaluateParams): CompletableFuture =
+ evaluate(params, RequestOptions.none())
+
+ /** @see [evaluate] */
fun evaluate(
params: PriceEvaluateParams,
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
/** This endpoint returns a price given an identifier. */
- @JvmOverloads
+ fun fetch(params: PriceFetchParams): CompletableFuture =
+ fetch(params, RequestOptions.none())
+
+ /** @see [fetch] */
fun fetch(
params: PriceFetchParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -113,7 +127,11 @@ interface PriceServiceAsync {
* Returns a raw HTTP response for `post /prices`, but is otherwise the same as
* [PriceServiceAsync.create].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun create(params: PriceCreateParams): CompletableFuture> =
+ create(params, RequestOptions.none())
+
+ /** @see [create] */
@MustBeClosed
fun create(
params: PriceCreateParams,
@@ -124,7 +142,11 @@ interface PriceServiceAsync {
* Returns a raw HTTP response for `put /prices/{price_id}`, but is otherwise the same as
* [PriceServiceAsync.update].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun update(params: PriceUpdateParams): CompletableFuture> =
+ update(params, RequestOptions.none())
+
+ /** @see [update] */
@MustBeClosed
fun update(
params: PriceUpdateParams,
@@ -135,17 +157,25 @@ interface PriceServiceAsync {
* Returns a raw HTTP response for `get /prices`, but is otherwise the same as
* [PriceServiceAsync.list].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun list(): CompletableFuture> =
+ list(PriceListParams.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
params: PriceListParams = PriceListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture>
- /**
- * Returns a raw HTTP response for `get /prices`, but is otherwise the same as
- * [PriceServiceAsync.list].
- */
+ /** @see [list] */
+ @MustBeClosed
+ fun list(
+ params: PriceListParams = PriceListParams.none()
+ ): CompletableFuture> =
+ list(params, RequestOptions.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
requestOptions: RequestOptions
@@ -156,7 +186,13 @@ interface PriceServiceAsync {
* Returns a raw HTTP response for `post /prices/{price_id}/evaluate`, but is otherwise the
* same as [PriceServiceAsync.evaluate].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun evaluate(
+ params: PriceEvaluateParams
+ ): CompletableFuture> =
+ evaluate(params, RequestOptions.none())
+
+ /** @see [evaluate] */
@MustBeClosed
fun evaluate(
params: PriceEvaluateParams,
@@ -167,7 +203,11 @@ interface PriceServiceAsync {
* Returns a raw HTTP response for `get /prices/{price_id}`, but is otherwise the same as
* [PriceServiceAsync.fetch].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun fetch(params: PriceFetchParams): CompletableFuture> =
+ fetch(params, RequestOptions.none())
+
+ /** @see [fetch] */
@MustBeClosed
fun fetch(
params: PriceFetchParams,
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/SubscriptionServiceAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/SubscriptionServiceAsync.kt
index 1412610c..8796f2ad 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/SubscriptionServiceAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/SubscriptionServiceAsync.kt
@@ -1,7 +1,5 @@
// File generated from our OpenAPI spec by Stainless.
-@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-
package com.withorb.api.services.async
import com.google.errorprone.annotations.MustBeClosed
@@ -285,7 +283,10 @@ interface SubscriptionServiceAsync {
* subscription's invoicing currency, when creating a subscription. E.g. pass in `10.00` to
* issue an invoice when usage amounts hit $10.00 for a subscription that invoices in USD.
*/
- @JvmOverloads
+ fun create(params: SubscriptionCreateParams): CompletableFuture =
+ create(params, RequestOptions.none())
+
+ /** @see [create] */
fun create(
params: SubscriptionCreateParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -295,7 +296,10 @@ interface SubscriptionServiceAsync {
* This endpoint can be used to update the `metadata`, `net terms`, `auto_collection`,
* `invoicing_threshold`, and `default_invoice_memo` properties on a subscription.
*/
- @JvmOverloads
+ fun update(params: SubscriptionUpdateParams): CompletableFuture =
+ update(params, RequestOptions.none())
+
+ /** @see [update] */
fun update(
params: SubscriptionUpdateParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -311,22 +315,20 @@ interface SubscriptionServiceAsync {
* external_customer_id query parameters. To filter subscriptions for multiple customers, use
* the customer_id[] or external_customer_id[] query parameters.
*/
- @JvmOverloads
+ fun list(): CompletableFuture = list(SubscriptionListParams.none())
+
+ /** @see [list] */
fun list(
params: SubscriptionListParams = SubscriptionListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
- /**
- * This endpoint returns a list of all subscriptions for an account as a
- * [paginated](/api-reference/pagination) list, ordered starting from the most recently created
- * subscription. For a full discussion of the subscription resource, see
- * [Subscription](/core-concepts##subscription).
- *
- * Subscriptions can be filtered for a specific customer by using either the customer_id or
- * external_customer_id query parameters. To filter subscriptions for multiple customers, use
- * the customer_id[] or external_customer_id[] query parameters.
- */
+ /** @see [list] */
+ fun list(
+ params: SubscriptionListParams = SubscriptionListParams.none()
+ ): CompletableFuture = list(params, RequestOptions.none())
+
+ /** @see [list] */
fun list(requestOptions: RequestOptions): CompletableFuture =
list(SubscriptionListParams.none(), requestOptions)
@@ -383,7 +385,10 @@ interface SubscriptionServiceAsync {
* invoice and generate a new one based on the new dates for the subscription. See the section
* on [cancellation behaviors](/product-catalog/creating-subscriptions#cancellation-behaviors).
*/
- @JvmOverloads
+ fun cancel(params: SubscriptionCancelParams): CompletableFuture =
+ cancel(params, RequestOptions.none())
+
+ /** @see [cancel] */
fun cancel(
params: SubscriptionCancelParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -393,7 +398,10 @@ interface SubscriptionServiceAsync {
* This endpoint is used to fetch a [Subscription](/core-concepts##subscription) given an
* identifier.
*/
- @JvmOverloads
+ fun fetch(params: SubscriptionFetchParams): CompletableFuture =
+ fetch(params, RequestOptions.none())
+
+ /** @see [fetch] */
fun fetch(
params: SubscriptionFetchParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -410,7 +418,11 @@ interface SubscriptionServiceAsync {
* of costs to a specific subscription for the customer (e.g. to de-aggregate costs when a
* customer's subscription has started and stopped on the same day).
*/
- @JvmOverloads
+ fun fetchCosts(
+ params: SubscriptionFetchCostsParams
+ ): CompletableFuture = fetchCosts(params, RequestOptions.none())
+
+ /** @see [fetchCosts] */
fun fetchCosts(
params: SubscriptionFetchCostsParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -421,7 +433,12 @@ interface SubscriptionServiceAsync {
* with a subscription along with their start and end dates. This list contains the
* subscription's initial plan along with past and future plan changes.
*/
- @JvmOverloads
+ fun fetchSchedule(
+ params: SubscriptionFetchScheduleParams
+ ): CompletableFuture =
+ fetchSchedule(params, RequestOptions.none())
+
+ /** @see [fetchSchedule] */
fun fetchSchedule(
params: SubscriptionFetchScheduleParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -604,7 +621,10 @@ interface SubscriptionServiceAsync {
* - `second_dimension_key`: `provider`
* - `second_dimension_value`: `aws`
*/
- @JvmOverloads
+ fun fetchUsage(params: SubscriptionFetchUsageParams): CompletableFuture =
+ fetchUsage(params, RequestOptions.none())
+
+ /** @see [fetchUsage] */
fun fetchUsage(
params: SubscriptionFetchUsageParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -677,7 +697,12 @@ interface SubscriptionServiceAsync {
* using the `fixed_fee_quantity_transitions` property on a subscription’s serialized price
* intervals.
*/
- @JvmOverloads
+ fun priceIntervals(
+ params: SubscriptionPriceIntervalsParams
+ ): CompletableFuture =
+ priceIntervals(params, RequestOptions.none())
+
+ /** @see [priceIntervals] */
fun priceIntervals(
params: SubscriptionPriceIntervalsParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -849,7 +874,12 @@ interface SubscriptionServiceAsync {
* change, adjusting the customer balance as needed. For details on this behavior, see
* [Modifying subscriptions](/product-catalog/modifying-subscriptions#prorations-for-in-advance-fees).
*/
- @JvmOverloads
+ fun schedulePlanChange(
+ params: SubscriptionSchedulePlanChangeParams
+ ): CompletableFuture =
+ schedulePlanChange(params, RequestOptions.none())
+
+ /** @see [schedulePlanChange] */
fun schedulePlanChange(
params: SubscriptionSchedulePlanChangeParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -858,7 +888,12 @@ interface SubscriptionServiceAsync {
/**
* Manually trigger a phase, effective the given date (or the current time, if not specified).
*/
- @JvmOverloads
+ fun triggerPhase(
+ params: SubscriptionTriggerPhaseParams
+ ): CompletableFuture =
+ triggerPhase(params, RequestOptions.none())
+
+ /** @see [triggerPhase] */
fun triggerPhase(
params: SubscriptionTriggerPhaseParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -871,7 +906,12 @@ interface SubscriptionServiceAsync {
* This operation will turn on auto-renew, ensuring that the subscription does not end at the
* currently scheduled cancellation time.
*/
- @JvmOverloads
+ fun unscheduleCancellation(
+ params: SubscriptionUnscheduleCancellationParams
+ ): CompletableFuture =
+ unscheduleCancellation(params, RequestOptions.none())
+
+ /** @see [unscheduleCancellation] */
fun unscheduleCancellation(
params: SubscriptionUnscheduleCancellationParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -883,7 +923,12 @@ interface SubscriptionServiceAsync {
* If there are no updates scheduled, a request validation error will be returned with a 400
* status code.
*/
- @JvmOverloads
+ fun unscheduleFixedFeeQuantityUpdates(
+ params: SubscriptionUnscheduleFixedFeeQuantityUpdatesParams
+ ): CompletableFuture =
+ unscheduleFixedFeeQuantityUpdates(params, RequestOptions.none())
+
+ /** @see [unscheduleFixedFeeQuantityUpdates] */
fun unscheduleFixedFeeQuantityUpdates(
params: SubscriptionUnscheduleFixedFeeQuantityUpdatesParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -892,7 +937,12 @@ interface SubscriptionServiceAsync {
/**
* This endpoint can be used to unschedule any pending plan changes on an existing subscription.
*/
- @JvmOverloads
+ fun unschedulePendingPlanChanges(
+ params: SubscriptionUnschedulePendingPlanChangesParams
+ ): CompletableFuture =
+ unschedulePendingPlanChanges(params, RequestOptions.none())
+
+ /** @see [unschedulePendingPlanChanges] */
fun unschedulePendingPlanChanges(
params: SubscriptionUnschedulePendingPlanChangesParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -912,7 +962,12 @@ interface SubscriptionServiceAsync {
* If the fee is an in-advance fixed fee, it will also issue an immediate invoice for the
* difference for the remainder of the billing period.
*/
- @JvmOverloads
+ fun updateFixedFeeQuantity(
+ params: SubscriptionUpdateFixedFeeQuantityParams
+ ): CompletableFuture =
+ updateFixedFeeQuantity(params, RequestOptions.none())
+
+ /** @see [updateFixedFeeQuantity] */
fun updateFixedFeeQuantity(
params: SubscriptionUpdateFixedFeeQuantityParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -936,7 +991,12 @@ interface SubscriptionServiceAsync {
* scheduled or an add-on price was added, that change will be pushed back by the same amount of
* time the trial is extended).
*/
- @JvmOverloads
+ fun updateTrial(
+ params: SubscriptionUpdateTrialParams
+ ): CompletableFuture =
+ updateTrial(params, RequestOptions.none())
+
+ /** @see [updateTrial] */
fun updateTrial(
params: SubscriptionUpdateTrialParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -952,7 +1012,13 @@ interface SubscriptionServiceAsync {
* Returns a raw HTTP response for `post /subscriptions`, but is otherwise the same as
* [SubscriptionServiceAsync.create].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun create(
+ params: SubscriptionCreateParams
+ ): CompletableFuture> =
+ create(params, RequestOptions.none())
+
+ /** @see [create] */
@MustBeClosed
fun create(
params: SubscriptionCreateParams,
@@ -963,7 +1029,12 @@ interface SubscriptionServiceAsync {
* Returns a raw HTTP response for `put /subscriptions/{subscription_id}`, but is otherwise
* the same as [SubscriptionServiceAsync.update].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun update(
+ params: SubscriptionUpdateParams
+ ): CompletableFuture> = update(params, RequestOptions.none())
+
+ /** @see [update] */
@MustBeClosed
fun update(
params: SubscriptionUpdateParams,
@@ -974,17 +1045,25 @@ interface SubscriptionServiceAsync {
* Returns a raw HTTP response for `get /subscriptions`, but is otherwise the same as
* [SubscriptionServiceAsync.list].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun list(): CompletableFuture> =
+ list(SubscriptionListParams.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
params: SubscriptionListParams = SubscriptionListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture>
- /**
- * Returns a raw HTTP response for `get /subscriptions`, but is otherwise the same as
- * [SubscriptionServiceAsync.list].
- */
+ /** @see [list] */
+ @MustBeClosed
+ fun list(
+ params: SubscriptionListParams = SubscriptionListParams.none()
+ ): CompletableFuture> =
+ list(params, RequestOptions.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
requestOptions: RequestOptions
@@ -995,7 +1074,13 @@ interface SubscriptionServiceAsync {
* Returns a raw HTTP response for `post /subscriptions/{subscription_id}/cancel`, but is
* otherwise the same as [SubscriptionServiceAsync.cancel].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun cancel(
+ params: SubscriptionCancelParams
+ ): CompletableFuture> =
+ cancel(params, RequestOptions.none())
+
+ /** @see [cancel] */
@MustBeClosed
fun cancel(
params: SubscriptionCancelParams,
@@ -1006,7 +1091,12 @@ interface SubscriptionServiceAsync {
* Returns a raw HTTP response for `get /subscriptions/{subscription_id}`, but is otherwise
* the same as [SubscriptionServiceAsync.fetch].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun fetch(
+ params: SubscriptionFetchParams
+ ): CompletableFuture> = fetch(params, RequestOptions.none())
+
+ /** @see [fetch] */
@MustBeClosed
fun fetch(
params: SubscriptionFetchParams,
@@ -1017,7 +1107,13 @@ interface SubscriptionServiceAsync {
* Returns a raw HTTP response for `get /subscriptions/{subscription_id}/costs`, but is
* otherwise the same as [SubscriptionServiceAsync.fetchCosts].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun fetchCosts(
+ params: SubscriptionFetchCostsParams
+ ): CompletableFuture> =
+ fetchCosts(params, RequestOptions.none())
+
+ /** @see [fetchCosts] */
@MustBeClosed
fun fetchCosts(
params: SubscriptionFetchCostsParams,
@@ -1028,7 +1124,13 @@ interface SubscriptionServiceAsync {
* Returns a raw HTTP response for `get /subscriptions/{subscription_id}/schedule`, but is
* otherwise the same as [SubscriptionServiceAsync.fetchSchedule].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun fetchSchedule(
+ params: SubscriptionFetchScheduleParams
+ ): CompletableFuture> =
+ fetchSchedule(params, RequestOptions.none())
+
+ /** @see [fetchSchedule] */
@MustBeClosed
fun fetchSchedule(
params: SubscriptionFetchScheduleParams,
@@ -1039,7 +1141,13 @@ interface SubscriptionServiceAsync {
* Returns a raw HTTP response for `get /subscriptions/{subscription_id}/usage`, but is
* otherwise the same as [SubscriptionServiceAsync.fetchUsage].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun fetchUsage(
+ params: SubscriptionFetchUsageParams
+ ): CompletableFuture> =
+ fetchUsage(params, RequestOptions.none())
+
+ /** @see [fetchUsage] */
@MustBeClosed
fun fetchUsage(
params: SubscriptionFetchUsageParams,
@@ -1050,7 +1158,13 @@ interface SubscriptionServiceAsync {
* Returns a raw HTTP response for `post /subscriptions/{subscription_id}/price_intervals`,
* but is otherwise the same as [SubscriptionServiceAsync.priceIntervals].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun priceIntervals(
+ params: SubscriptionPriceIntervalsParams
+ ): CompletableFuture> =
+ priceIntervals(params, RequestOptions.none())
+
+ /** @see [priceIntervals] */
@MustBeClosed
fun priceIntervals(
params: SubscriptionPriceIntervalsParams,
@@ -1062,7 +1176,13 @@ interface SubscriptionServiceAsync {
* /subscriptions/{subscription_id}/schedule_plan_change`, but is otherwise the same as
* [SubscriptionServiceAsync.schedulePlanChange].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun schedulePlanChange(
+ params: SubscriptionSchedulePlanChangeParams
+ ): CompletableFuture> =
+ schedulePlanChange(params, RequestOptions.none())
+
+ /** @see [schedulePlanChange] */
@MustBeClosed
fun schedulePlanChange(
params: SubscriptionSchedulePlanChangeParams,
@@ -1073,7 +1193,13 @@ interface SubscriptionServiceAsync {
* Returns a raw HTTP response for `post /subscriptions/{subscription_id}/trigger_phase`,
* but is otherwise the same as [SubscriptionServiceAsync.triggerPhase].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun triggerPhase(
+ params: SubscriptionTriggerPhaseParams
+ ): CompletableFuture> =
+ triggerPhase(params, RequestOptions.none())
+
+ /** @see [triggerPhase] */
@MustBeClosed
fun triggerPhase(
params: SubscriptionTriggerPhaseParams,
@@ -1085,7 +1211,13 @@ interface SubscriptionServiceAsync {
* /subscriptions/{subscription_id}/unschedule_cancellation`, but is otherwise the same as
* [SubscriptionServiceAsync.unscheduleCancellation].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun unscheduleCancellation(
+ params: SubscriptionUnscheduleCancellationParams
+ ): CompletableFuture> =
+ unscheduleCancellation(params, RequestOptions.none())
+
+ /** @see [unscheduleCancellation] */
@MustBeClosed
fun unscheduleCancellation(
params: SubscriptionUnscheduleCancellationParams,
@@ -1097,7 +1229,14 @@ interface SubscriptionServiceAsync {
* /subscriptions/{subscription_id}/unschedule_fixed_fee_quantity_updates`, but is otherwise
* the same as [SubscriptionServiceAsync.unscheduleFixedFeeQuantityUpdates].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun unscheduleFixedFeeQuantityUpdates(
+ params: SubscriptionUnscheduleFixedFeeQuantityUpdatesParams
+ ): CompletableFuture<
+ HttpResponseFor
+ > = unscheduleFixedFeeQuantityUpdates(params, RequestOptions.none())
+
+ /** @see [unscheduleFixedFeeQuantityUpdates] */
@MustBeClosed
fun unscheduleFixedFeeQuantityUpdates(
params: SubscriptionUnscheduleFixedFeeQuantityUpdatesParams,
@@ -1109,7 +1248,13 @@ interface SubscriptionServiceAsync {
* /subscriptions/{subscription_id}/unschedule_pending_plan_changes`, but is otherwise the
* same as [SubscriptionServiceAsync.unschedulePendingPlanChanges].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun unschedulePendingPlanChanges(
+ params: SubscriptionUnschedulePendingPlanChangesParams
+ ): CompletableFuture> =
+ unschedulePendingPlanChanges(params, RequestOptions.none())
+
+ /** @see [unschedulePendingPlanChanges] */
@MustBeClosed
fun unschedulePendingPlanChanges(
params: SubscriptionUnschedulePendingPlanChangesParams,
@@ -1121,7 +1266,13 @@ interface SubscriptionServiceAsync {
* /subscriptions/{subscription_id}/update_fixed_fee_quantity`, but is otherwise the same as
* [SubscriptionServiceAsync.updateFixedFeeQuantity].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun updateFixedFeeQuantity(
+ params: SubscriptionUpdateFixedFeeQuantityParams
+ ): CompletableFuture> =
+ updateFixedFeeQuantity(params, RequestOptions.none())
+
+ /** @see [updateFixedFeeQuantity] */
@MustBeClosed
fun updateFixedFeeQuantity(
params: SubscriptionUpdateFixedFeeQuantityParams,
@@ -1132,7 +1283,13 @@ interface SubscriptionServiceAsync {
* Returns a raw HTTP response for `post /subscriptions/{subscription_id}/update_trial`, but
* is otherwise the same as [SubscriptionServiceAsync.updateTrial].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun updateTrial(
+ params: SubscriptionUpdateTrialParams
+ ): CompletableFuture> =
+ updateTrial(params, RequestOptions.none())
+
+ /** @see [updateTrial] */
@MustBeClosed
fun updateTrial(
params: SubscriptionUpdateTrialParams,
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/TopLevelServiceAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/TopLevelServiceAsync.kt
index 451fdb1b..d482a3af 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/TopLevelServiceAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/TopLevelServiceAsync.kt
@@ -1,7 +1,5 @@
// File generated from our OpenAPI spec by Stainless.
-@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-
package com.withorb.api.services.async
import com.google.errorprone.annotations.MustBeClosed
@@ -26,20 +24,20 @@ interface TopLevelServiceAsync {
*
* This API does not have any side-effects or return any Orb resources.
*/
- @JvmOverloads
+ fun ping(): CompletableFuture = ping(TopLevelPingParams.none())
+
+ /** @see [ping] */
fun ping(
params: TopLevelPingParams = TopLevelPingParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
- /**
- * This endpoint allows you to test your connection to the Orb API and check the validity of
- * your API key, passed in the Authorization header. This is particularly useful for checking
- * that your environment is set up properly, and is a great choice for connectors and
- * integrations.
- *
- * This API does not have any side-effects or return any Orb resources.
- */
+ /** @see [ping] */
+ fun ping(
+ params: TopLevelPingParams = TopLevelPingParams.none()
+ ): CompletableFuture = ping(params, RequestOptions.none())
+
+ /** @see [ping] */
fun ping(requestOptions: RequestOptions): CompletableFuture =
ping(TopLevelPingParams.none(), requestOptions)
@@ -52,17 +50,25 @@ interface TopLevelServiceAsync {
* Returns a raw HTTP response for `get /ping`, but is otherwise the same as
* [TopLevelServiceAsync.ping].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun ping(): CompletableFuture> =
+ ping(TopLevelPingParams.none())
+
+ /** @see [ping] */
@MustBeClosed
fun ping(
params: TopLevelPingParams = TopLevelPingParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture>
- /**
- * Returns a raw HTTP response for `get /ping`, but is otherwise the same as
- * [TopLevelServiceAsync.ping].
- */
+ /** @see [ping] */
+ @MustBeClosed
+ fun ping(
+ params: TopLevelPingParams = TopLevelPingParams.none()
+ ): CompletableFuture> =
+ ping(params, RequestOptions.none())
+
+ /** @see [ping] */
@MustBeClosed
fun ping(
requestOptions: RequestOptions
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/coupons/SubscriptionServiceAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/coupons/SubscriptionServiceAsync.kt
index 8a33f595..751bbd3c 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/coupons/SubscriptionServiceAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/coupons/SubscriptionServiceAsync.kt
@@ -1,7 +1,5 @@
// File generated from our OpenAPI spec by Stainless.
-@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-
package com.withorb.api.services.async.coupons
import com.google.errorprone.annotations.MustBeClosed
@@ -24,7 +22,11 @@ interface SubscriptionServiceAsync {
* subscription. For a full discussion of the subscription resource, see
* [Subscription](/core-concepts#subscription).
*/
- @JvmOverloads
+ fun list(
+ params: CouponSubscriptionListParams
+ ): CompletableFuture = list(params, RequestOptions.none())
+
+ /** @see [list] */
fun list(
params: CouponSubscriptionListParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -40,7 +42,13 @@ interface SubscriptionServiceAsync {
* Returns a raw HTTP response for `get /coupons/{coupon_id}/subscriptions`, but is
* otherwise the same as [SubscriptionServiceAsync.list].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun list(
+ params: CouponSubscriptionListParams
+ ): CompletableFuture> =
+ list(params, RequestOptions.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
params: CouponSubscriptionListParams,
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/customers/BalanceTransactionServiceAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/customers/BalanceTransactionServiceAsync.kt
index a470a235..7cbf4b6a 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/customers/BalanceTransactionServiceAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/customers/BalanceTransactionServiceAsync.kt
@@ -1,7 +1,5 @@
// File generated from our OpenAPI spec by Stainless.
-@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-
package com.withorb.api.services.async.customers
import com.google.errorprone.annotations.MustBeClosed
@@ -24,7 +22,12 @@ interface BalanceTransactionServiceAsync {
* Creates an immutable balance transaction that updates the customer's balance and returns back
* the newly created transaction.
*/
- @JvmOverloads
+ fun create(
+ params: CustomerBalanceTransactionCreateParams
+ ): CompletableFuture =
+ create(params, RequestOptions.none())
+
+ /** @see [create] */
fun create(
params: CustomerBalanceTransactionCreateParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -57,7 +60,12 @@ interface BalanceTransactionServiceAsync {
* synced to a separate invoicing provider. If a payment gateway such as Stripe is used, the
* balance will be applied to the invoice before forwarding payment to the gateway.
*/
- @JvmOverloads
+ fun list(
+ params: CustomerBalanceTransactionListParams
+ ): CompletableFuture =
+ list(params, RequestOptions.none())
+
+ /** @see [list] */
fun list(
params: CustomerBalanceTransactionListParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -73,7 +81,13 @@ interface BalanceTransactionServiceAsync {
* Returns a raw HTTP response for `post /customers/{customer_id}/balance_transactions`, but
* is otherwise the same as [BalanceTransactionServiceAsync.create].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun create(
+ params: CustomerBalanceTransactionCreateParams
+ ): CompletableFuture> =
+ create(params, RequestOptions.none())
+
+ /** @see [create] */
@MustBeClosed
fun create(
params: CustomerBalanceTransactionCreateParams,
@@ -84,7 +98,13 @@ interface BalanceTransactionServiceAsync {
* Returns a raw HTTP response for `get /customers/{customer_id}/balance_transactions`, but
* is otherwise the same as [BalanceTransactionServiceAsync.list].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun list(
+ params: CustomerBalanceTransactionListParams
+ ): CompletableFuture> =
+ list(params, RequestOptions.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
params: CustomerBalanceTransactionListParams,
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/customers/CostServiceAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/customers/CostServiceAsync.kt
index c8fd9f8d..1474003b 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/customers/CostServiceAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/customers/CostServiceAsync.kt
@@ -1,7 +1,5 @@
// File generated from our OpenAPI spec by Stainless.
-@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-
package com.withorb.api.services.async.customers
import com.google.errorprone.annotations.MustBeClosed
@@ -130,7 +128,10 @@ interface CostServiceAsync {
* `secondary_grouping_key` based on the matrix price definition, for each `grouping_value` and
* `secondary_grouping_value` available.
*/
- @JvmOverloads
+ fun list(params: CustomerCostListParams): CompletableFuture =
+ list(params, RequestOptions.none())
+
+ /** @see [list] */
fun list(
params: CustomerCostListParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -246,7 +247,12 @@ interface CostServiceAsync {
* `secondary_grouping_key` based on the matrix price definition, for each `grouping_value` and
* `secondary_grouping_value` available.
*/
- @JvmOverloads
+ fun listByExternalId(
+ params: CustomerCostListByExternalIdParams
+ ): CompletableFuture =
+ listByExternalId(params, RequestOptions.none())
+
+ /** @see [listByExternalId] */
fun listByExternalId(
params: CustomerCostListByExternalIdParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -259,7 +265,13 @@ interface CostServiceAsync {
* Returns a raw HTTP response for `get /customers/{customer_id}/costs`, but is otherwise
* the same as [CostServiceAsync.list].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun list(
+ params: CustomerCostListParams
+ ): CompletableFuture> =
+ list(params, RequestOptions.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
params: CustomerCostListParams,
@@ -271,7 +283,13 @@ interface CostServiceAsync {
* /customers/external_customer_id/{external_customer_id}/costs`, but is otherwise the same
* as [CostServiceAsync.listByExternalId].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun listByExternalId(
+ params: CustomerCostListByExternalIdParams
+ ): CompletableFuture> =
+ listByExternalId(params, RequestOptions.none())
+
+ /** @see [listByExternalId] */
@MustBeClosed
fun listByExternalId(
params: CustomerCostListByExternalIdParams,
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/customers/CreditServiceAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/customers/CreditServiceAsync.kt
index f8602de8..a07d73d2 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/customers/CreditServiceAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/customers/CreditServiceAsync.kt
@@ -1,7 +1,5 @@
// File generated from our OpenAPI spec by Stainless.
-@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-
package com.withorb.api.services.async.customers
import com.google.errorprone.annotations.MustBeClosed
@@ -35,7 +33,10 @@ interface CreditServiceAsync {
* Note that `currency` defaults to credits if not specified. To use a real world currency, set
* `currency` to an ISO 4217 string.
*/
- @JvmOverloads
+ fun list(params: CustomerCreditListParams): CompletableFuture =
+ list(params, RequestOptions.none())
+
+ /** @see [list] */
fun list(
params: CustomerCreditListParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -50,7 +51,12 @@ interface CreditServiceAsync {
* Note that `currency` defaults to credits if not specified. To use a real world currency, set
* `currency` to an ISO 4217 string.
*/
- @JvmOverloads
+ fun listByExternalId(
+ params: CustomerCreditListByExternalIdParams
+ ): CompletableFuture =
+ listByExternalId(params, RequestOptions.none())
+
+ /** @see [listByExternalId] */
fun listByExternalId(
params: CustomerCreditListByExternalIdParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -69,7 +75,13 @@ interface CreditServiceAsync {
* Returns a raw HTTP response for `get /customers/{customer_id}/credits`, but is otherwise
* the same as [CreditServiceAsync.list].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun list(
+ params: CustomerCreditListParams
+ ): CompletableFuture> =
+ list(params, RequestOptions.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
params: CustomerCreditListParams,
@@ -81,7 +93,13 @@ interface CreditServiceAsync {
* /customers/external_customer_id/{external_customer_id}/credits`, but is otherwise the
* same as [CreditServiceAsync.listByExternalId].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun listByExternalId(
+ params: CustomerCreditListByExternalIdParams
+ ): CompletableFuture> =
+ listByExternalId(params, RequestOptions.none())
+
+ /** @see [listByExternalId] */
@MustBeClosed
fun listByExternalId(
params: CustomerCreditListByExternalIdParams,
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/customers/credits/LedgerServiceAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/customers/credits/LedgerServiceAsync.kt
index a96b7e82..3b9bc08a 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/customers/credits/LedgerServiceAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/customers/credits/LedgerServiceAsync.kt
@@ -1,7 +1,5 @@
// File generated from our OpenAPI spec by Stainless.
-@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-
package com.withorb.api.services.async.customers.credits
import com.google.errorprone.annotations.MustBeClosed
@@ -103,7 +101,11 @@ interface LedgerServiceAsync {
* When credits are added to a customer's balance as a result of a correction, this entry will
* be added to the ledger to indicate the adjustment of credits.
*/
- @JvmOverloads
+ fun list(
+ params: CustomerCreditLedgerListParams
+ ): CompletableFuture = list(params, RequestOptions.none())
+
+ /** @see [list] */
fun list(
params: CustomerCreditLedgerListParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -212,7 +214,12 @@ interface LedgerServiceAsync {
* decremented from, and `amount` indicates how many credits to return to the customer, up to
* the block's initial balance.
*/
- @JvmOverloads
+ fun createEntry(
+ params: CustomerCreditLedgerCreateEntryParams
+ ): CompletableFuture =
+ createEntry(params, RequestOptions.none())
+
+ /** @see [createEntry] */
fun createEntry(
params: CustomerCreditLedgerCreateEntryParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -321,7 +328,12 @@ interface LedgerServiceAsync {
* decremented from, and `amount` indicates how many credits to return to the customer, up to
* the block's initial balance.
*/
- @JvmOverloads
+ fun createEntryByExternalId(
+ params: CustomerCreditLedgerCreateEntryByExternalIdParams
+ ): CompletableFuture =
+ createEntryByExternalId(params, RequestOptions.none())
+
+ /** @see [createEntryByExternalId] */
fun createEntryByExternalId(
params: CustomerCreditLedgerCreateEntryByExternalIdParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -406,7 +418,12 @@ interface LedgerServiceAsync {
* When credits are added to a customer's balance as a result of a correction, this entry will
* be added to the ledger to indicate the adjustment of credits.
*/
- @JvmOverloads
+ fun listByExternalId(
+ params: CustomerCreditLedgerListByExternalIdParams
+ ): CompletableFuture =
+ listByExternalId(params, RequestOptions.none())
+
+ /** @see [listByExternalId] */
fun listByExternalId(
params: CustomerCreditLedgerListByExternalIdParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -421,7 +438,13 @@ interface LedgerServiceAsync {
* Returns a raw HTTP response for `get /customers/{customer_id}/credits/ledger`, but is
* otherwise the same as [LedgerServiceAsync.list].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun list(
+ params: CustomerCreditLedgerListParams
+ ): CompletableFuture> =
+ list(params, RequestOptions.none())
+
+ /** @see [list] */
@MustBeClosed
fun list(
params: CustomerCreditLedgerListParams,
@@ -432,7 +455,13 @@ interface LedgerServiceAsync {
* Returns a raw HTTP response for `post /customers/{customer_id}/credits/ledger_entry`, but
* is otherwise the same as [LedgerServiceAsync.createEntry].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun createEntry(
+ params: CustomerCreditLedgerCreateEntryParams
+ ): CompletableFuture> =
+ createEntry(params, RequestOptions.none())
+
+ /** @see [createEntry] */
@MustBeClosed
fun createEntry(
params: CustomerCreditLedgerCreateEntryParams,
@@ -444,7 +473,13 @@ interface LedgerServiceAsync {
* /customers/external_customer_id/{external_customer_id}/credits/ledger_entry`, but is
* otherwise the same as [LedgerServiceAsync.createEntryByExternalId].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun createEntryByExternalId(
+ params: CustomerCreditLedgerCreateEntryByExternalIdParams
+ ): CompletableFuture> =
+ createEntryByExternalId(params, RequestOptions.none())
+
+ /** @see [createEntryByExternalId] */
@MustBeClosed
fun createEntryByExternalId(
params: CustomerCreditLedgerCreateEntryByExternalIdParams,
@@ -456,7 +491,13 @@ interface LedgerServiceAsync {
* /customers/external_customer_id/{external_customer_id}/credits/ledger`, but is otherwise
* the same as [LedgerServiceAsync.listByExternalId].
*/
- @JvmOverloads
+ @MustBeClosed
+ fun listByExternalId(
+ params: CustomerCreditLedgerListByExternalIdParams
+ ): CompletableFuture> =
+ listByExternalId(params, RequestOptions.none())
+
+ /** @see [listByExternalId] */
@MustBeClosed
fun listByExternalId(
params: CustomerCreditLedgerListByExternalIdParams,
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/customers/credits/TopUpServiceAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/customers/credits/TopUpServiceAsync.kt
index d3f4a846..0dce0c98 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/services/async/customers/credits/TopUpServiceAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/services/async/customers/credits/TopUpServiceAsync.kt
@@ -1,7 +1,5 @@
// File generated from our OpenAPI spec by Stainless.
-@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-
package com.withorb.api.services.async.customers.credits
import com.google.errorprone.annotations.MustBeClosed
@@ -35,14 +33,22 @@ interface TopUpServiceAsync {
* If a top-up already exists for this customer in the same currency, the existing top-up will
* be replaced.
*/
- @JvmOverloads
+ fun create(
+ params: CustomerCreditTopUpCreateParams
+ ): CompletableFuture = create(params, RequestOptions.none())
+
+ /** @see [create] */
fun create(
params: CustomerCreditTopUpCreateParams,
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
/** List top-ups */
- @JvmOverloads
+ fun list(
+ params: CustomerCreditTopUpListParams
+ ): CompletableFuture = list(params, RequestOptions.none())
+
+ /** @see [list] */
fun list(
params: CustomerCreditTopUpListParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -52,7 +58,10 @@ interface TopUpServiceAsync {
* This deactivates the top-up and voids any invoices associated with pending credit blocks
* purchased through the top-up.
*/
- @JvmOverloads
+ fun delete(params: CustomerCreditTopUpDeleteParams): CompletableFuture =
+ delete(params, RequestOptions.none())
+
+ /** @see [delete] */
fun delete(
params: CustomerCreditTopUpDeleteParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -66,7 +75,12 @@ interface TopUpServiceAsync {
* If a top-up already exists for this customer in the same currency, the existing top-up will
* be replaced.
*/
- @JvmOverloads
+ fun createByExternalId(
+ params: CustomerCreditTopUpCreateByExternalIdParams
+ ): CompletableFuture =
+ createByExternalId(params, RequestOptions.none())
+
+ /** @see [createByExternalId] */
fun createByExternalId(
params: CustomerCreditTopUpCreateByExternalIdParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -76,14 +90,23 @@ interface TopUpServiceAsync {
* This deactivates the top-up and voids any invoices associated with pending credit blocks
* purchased through the top-up.
*/
- @JvmOverloads
+ fun deleteByExternalId(
+ params: CustomerCreditTopUpDeleteByExternalIdParams
+ ): CompletableFuture = deleteByExternalId(params, RequestOptions.none())
+
+ /** @see [deleteByExternalId] */
fun deleteByExternalId(
params: CustomerCreditTopUpDeleteByExternalIdParams,
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
/** List top-ups by external ID */
- @JvmOverloads
+ fun listByExternalId(
+ params: CustomerCreditTopUpListByExternalIdParams
+ ): CompletableFuture