diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index cce9d1c6..c523ce19 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "1.7.0"
+ ".": "1.8.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 5a4c2212..82cec55f 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 116
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-a44cccd16bb58080f7cc0669999403f6ed3f77287fad901caa6fd2523f2fbafd.yml
-openapi_spec_hash: af6444648d0b2a70b7f7ad234bd37541
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-1aabbd8715a871e993abf67f0bf9c1d6793b4f197c4b2f11fc7a76453590cd6c.yml
+openapi_spec_hash: 3e5878f87e74881d882a69e1ccdc25a3
config_hash: 1f535c1fa222aacf28b636eed21bec72
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cb637c52..80798a38 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,25 @@
# Changelog
+## 1.8.0 (2025-07-24)
+
+Full Changelog: [v1.7.0...v1.8.0](https://github.com/orbcorp/orb-java/compare/v1.7.0...v1.8.0)
+
+### Features
+
+* **api:** api update ([d9b5f74](https://github.com/orbcorp/orb-java/commit/d9b5f744ddeb6fd8e74ad62bc7e36cf187d3078d))
+* **client:** add `{QueryParams,Headers}#put(String, JsonValue)` methods ([1985d12](https://github.com/orbcorp/orb-java/commit/1985d1259d8f0737819b815e198ee4b3455499ce))
+
+
+### Chores
+
+* **internal:** remove unnecessary `[...]` in `[@see](https://github.com/see)` ([cc42cf6](https://github.com/orbcorp/orb-java/commit/cc42cf60494abf45d48cf3043735349e04787805))
+
+
+### Documentation
+
+* fix missing readme comment ([3c649f1](https://github.com/orbcorp/orb-java/commit/3c649f13490f3f6a9c2ac40f0b13c92671314af3))
+* more code comments ([0fac99b](https://github.com/orbcorp/orb-java/commit/0fac99b1da5ef2ddc8b7a73c3d5aa2601d9a8958))
+
## 1.7.0 (2025-07-21)
Full Changelog: [v1.6.0...v1.7.0](https://github.com/orbcorp/orb-java/compare/v1.6.0...v1.7.0)
diff --git a/README.md b/README.md
index 9dd70642..cdb8cd80 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
-[](https://central.sonatype.com/artifact/com.withorb.api/orb-java/1.7.0)
+[](https://central.sonatype.com/artifact/com.withorb.api/orb-java/1.8.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:1.7.0")
+implementation("com.withorb.api:orb-java:1.8.0")
```
### Maven
@@ -28,7 +28,7 @@ implementation("com.withorb.api:orb-java:1.7.0")
com.withorb.api
orb-java
- 1.7.0
+ 1.8.0
```
@@ -89,7 +89,7 @@ import com.withorb.api.client.okhttp.OrbOkHttpClient;
OrbClient client = OrbOkHttpClient.builder()
// Configures using the `orb.apiKey`, `orb.webhookSecret` and `orb.baseUrl` system properties
- Or configures using the `ORB_API_KEY`, `ORB_WEBHOOK_SECRET` and `ORB_BASE_URL` environment variables
+ // Or configures using the `ORB_API_KEY`, `ORB_WEBHOOK_SECRET` and `ORB_BASE_URL` environment variables
.fromEnv()
.apiKey("My API Key")
.build();
@@ -376,7 +376,7 @@ If the SDK threw an exception, but you're _certain_ the version is compatible, t
### Retries
-The SDK automatically retries 2 times by default, with a short exponential backoff.
+The SDK automatically retries 2 times by default, with a short exponential backoff between requests.
Only the following error types are retried:
@@ -386,7 +386,7 @@ Only the following error types are retried:
- 429 Rate Limit
- 5xx Internal
-The API may also explicitly instruct the SDK to retry or not retry a response.
+The API may also explicitly instruct the SDK to retry or not retry a request.
To set a custom number of retries, configure the client using the `maxRetries` method:
diff --git a/build.gradle.kts b/build.gradle.kts
index 4001ae68..18b4cd8b 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -1,4 +1,4 @@
allprojects {
group = "com.withorb.api"
- version = "1.7.0" // x-release-please-version
+ version = "1.8.0" // x-release-please-version
}
diff --git a/orb-java-client-okhttp/src/main/kotlin/com/withorb/api/client/okhttp/OrbOkHttpClient.kt b/orb-java-client-okhttp/src/main/kotlin/com/withorb/api/client/okhttp/OrbOkHttpClient.kt
index dc227b7d..931e530c 100644
--- a/orb-java-client-okhttp/src/main/kotlin/com/withorb/api/client/okhttp/OrbOkHttpClient.kt
+++ b/orb-java-client-okhttp/src/main/kotlin/com/withorb/api/client/okhttp/OrbOkHttpClient.kt
@@ -7,7 +7,9 @@ import com.withorb.api.client.OrbClient
import com.withorb.api.client.OrbClientImpl
import com.withorb.api.core.ClientOptions
import com.withorb.api.core.Timeout
+import com.withorb.api.core.http.AsyncStreamResponse
import com.withorb.api.core.http.Headers
+import com.withorb.api.core.http.HttpClient
import com.withorb.api.core.http.QueryParams
import com.withorb.api.core.jsonMapper
import java.net.Proxy
@@ -20,13 +22,22 @@ import javax.net.ssl.SSLSocketFactory
import javax.net.ssl.X509TrustManager
import kotlin.jvm.optionals.getOrNull
+/**
+ * A class that allows building an instance of [OrbClient] with [OkHttpClient] as the underlying
+ * [HttpClient].
+ */
class OrbOkHttpClient private constructor() {
companion object {
- /** Returns a mutable builder for constructing an instance of [OrbOkHttpClient]. */
+ /** Returns a mutable builder for constructing an instance of [OrbClient]. */
@JvmStatic fun builder() = Builder()
+ /**
+ * Returns a client configured using system properties and environment variables.
+ *
+ * @see ClientOptions.Builder.fromEnv
+ */
@JvmStatic fun fromEnv(): OrbClient = builder().fromEnv().build()
}
@@ -103,23 +114,58 @@ class OrbOkHttpClient private constructor() {
clientOptions.checkJacksonVersionCompatibility(checkJacksonVersionCompatibility)
}
+ /**
+ * The Jackson JSON mapper to use for serializing and deserializing JSON.
+ *
+ * Defaults to [com.withorb.api.core.jsonMapper]. The default is usually sufficient and
+ * rarely needs to be overridden.
+ */
fun jsonMapper(jsonMapper: JsonMapper) = apply { clientOptions.jsonMapper(jsonMapper) }
+ /**
+ * The executor to use for running [AsyncStreamResponse.Handler] callbacks.
+ *
+ * Defaults to a dedicated cached thread pool.
+ */
fun streamHandlerExecutor(streamHandlerExecutor: Executor) = apply {
clientOptions.streamHandlerExecutor(streamHandlerExecutor)
}
+ /**
+ * The clock to use for operations that require timing, like retries.
+ *
+ * This is primarily useful for using a fake clock in tests.
+ *
+ * Defaults to [Clock.systemUTC].
+ */
fun clock(clock: Clock) = apply { clientOptions.clock(clock) }
+ /**
+ * The base URL to use for every request.
+ *
+ * Defaults to the production environment: `https://api.withorb.com/v1`.
+ */
fun baseUrl(baseUrl: String?) = apply { clientOptions.baseUrl(baseUrl) }
/** Alias for calling [Builder.baseUrl] with `baseUrl.orElse(null)`. */
fun baseUrl(baseUrl: Optional) = baseUrl(baseUrl.getOrNull())
+ /**
+ * Whether to call `validate` on every response before returning it.
+ *
+ * Defaults to false, which means the shape of the response will not be validated upfront.
+ * Instead, validation will only occur for the parts of the response that are accessed.
+ */
fun responseValidation(responseValidation: Boolean) = apply {
clientOptions.responseValidation(responseValidation)
}
+ /**
+ * Sets the maximum time allowed for various parts of an HTTP call's lifecycle, excluding
+ * retries.
+ *
+ * Defaults to [Timeout.default].
+ */
fun timeout(timeout: Timeout) = apply { clientOptions.timeout(timeout) }
/**
@@ -131,6 +177,21 @@ class OrbOkHttpClient private constructor() {
*/
fun timeout(timeout: Duration) = apply { clientOptions.timeout(timeout) }
+ /**
+ * The maximum number of times to retry failed requests, with a short exponential backoff
+ * between requests.
+ *
+ * Only the following error types are retried:
+ * - Connection errors (for example, due to a network connectivity problem)
+ * - 408 Request Timeout
+ * - 409 Conflict
+ * - 429 Rate Limit
+ * - 5xx Internal
+ *
+ * The API may also explicitly instruct the SDK to retry or not retry a request.
+ *
+ * Defaults to 2.
+ */
fun maxRetries(maxRetries: Int) = apply { clientOptions.maxRetries(maxRetries) }
fun apiKey(apiKey: String) = apply { clientOptions.apiKey(apiKey) }
@@ -223,6 +284,11 @@ class OrbOkHttpClient private constructor() {
clientOptions.removeAllQueryParams(keys)
}
+ /**
+ * Updates configuration using system properties and environment variables.
+ *
+ * @see ClientOptions.Builder.fromEnv
+ */
fun fromEnv() = apply { clientOptions.fromEnv() }
/**
diff --git a/orb-java-client-okhttp/src/main/kotlin/com/withorb/api/client/okhttp/OrbOkHttpClientAsync.kt b/orb-java-client-okhttp/src/main/kotlin/com/withorb/api/client/okhttp/OrbOkHttpClientAsync.kt
index 58d1b076..7c2423c7 100644
--- a/orb-java-client-okhttp/src/main/kotlin/com/withorb/api/client/okhttp/OrbOkHttpClientAsync.kt
+++ b/orb-java-client-okhttp/src/main/kotlin/com/withorb/api/client/okhttp/OrbOkHttpClientAsync.kt
@@ -7,7 +7,9 @@ import com.withorb.api.client.OrbClientAsync
import com.withorb.api.client.OrbClientAsyncImpl
import com.withorb.api.core.ClientOptions
import com.withorb.api.core.Timeout
+import com.withorb.api.core.http.AsyncStreamResponse
import com.withorb.api.core.http.Headers
+import com.withorb.api.core.http.HttpClient
import com.withorb.api.core.http.QueryParams
import com.withorb.api.core.jsonMapper
import java.net.Proxy
@@ -20,13 +22,22 @@ import javax.net.ssl.SSLSocketFactory
import javax.net.ssl.X509TrustManager
import kotlin.jvm.optionals.getOrNull
+/**
+ * A class that allows building an instance of [OrbClientAsync] with [OkHttpClient] as the
+ * underlying [HttpClient].
+ */
class OrbOkHttpClientAsync private constructor() {
companion object {
- /** Returns a mutable builder for constructing an instance of [OrbOkHttpClientAsync]. */
+ /** Returns a mutable builder for constructing an instance of [OrbClientAsync]. */
@JvmStatic fun builder() = Builder()
+ /**
+ * Returns a client configured using system properties and environment variables.
+ *
+ * @see ClientOptions.Builder.fromEnv
+ */
@JvmStatic fun fromEnv(): OrbClientAsync = builder().fromEnv().build()
}
@@ -103,23 +114,58 @@ class OrbOkHttpClientAsync private constructor() {
clientOptions.checkJacksonVersionCompatibility(checkJacksonVersionCompatibility)
}
+ /**
+ * The Jackson JSON mapper to use for serializing and deserializing JSON.
+ *
+ * Defaults to [com.withorb.api.core.jsonMapper]. The default is usually sufficient and
+ * rarely needs to be overridden.
+ */
fun jsonMapper(jsonMapper: JsonMapper) = apply { clientOptions.jsonMapper(jsonMapper) }
+ /**
+ * The executor to use for running [AsyncStreamResponse.Handler] callbacks.
+ *
+ * Defaults to a dedicated cached thread pool.
+ */
fun streamHandlerExecutor(streamHandlerExecutor: Executor) = apply {
clientOptions.streamHandlerExecutor(streamHandlerExecutor)
}
+ /**
+ * The clock to use for operations that require timing, like retries.
+ *
+ * This is primarily useful for using a fake clock in tests.
+ *
+ * Defaults to [Clock.systemUTC].
+ */
fun clock(clock: Clock) = apply { clientOptions.clock(clock) }
+ /**
+ * The base URL to use for every request.
+ *
+ * Defaults to the production environment: `https://api.withorb.com/v1`.
+ */
fun baseUrl(baseUrl: String?) = apply { clientOptions.baseUrl(baseUrl) }
/** Alias for calling [Builder.baseUrl] with `baseUrl.orElse(null)`. */
fun baseUrl(baseUrl: Optional) = baseUrl(baseUrl.getOrNull())
+ /**
+ * Whether to call `validate` on every response before returning it.
+ *
+ * Defaults to false, which means the shape of the response will not be validated upfront.
+ * Instead, validation will only occur for the parts of the response that are accessed.
+ */
fun responseValidation(responseValidation: Boolean) = apply {
clientOptions.responseValidation(responseValidation)
}
+ /**
+ * Sets the maximum time allowed for various parts of an HTTP call's lifecycle, excluding
+ * retries.
+ *
+ * Defaults to [Timeout.default].
+ */
fun timeout(timeout: Timeout) = apply { clientOptions.timeout(timeout) }
/**
@@ -131,6 +177,21 @@ class OrbOkHttpClientAsync private constructor() {
*/
fun timeout(timeout: Duration) = apply { clientOptions.timeout(timeout) }
+ /**
+ * The maximum number of times to retry failed requests, with a short exponential backoff
+ * between requests.
+ *
+ * Only the following error types are retried:
+ * - Connection errors (for example, due to a network connectivity problem)
+ * - 408 Request Timeout
+ * - 409 Conflict
+ * - 429 Rate Limit
+ * - 5xx Internal
+ *
+ * The API may also explicitly instruct the SDK to retry or not retry a request.
+ *
+ * Defaults to 2.
+ */
fun maxRetries(maxRetries: Int) = apply { clientOptions.maxRetries(maxRetries) }
fun apiKey(apiKey: String) = apply { clientOptions.apiKey(apiKey) }
@@ -223,6 +284,11 @@ class OrbOkHttpClientAsync private constructor() {
clientOptions.removeAllQueryParams(keys)
}
+ /**
+ * Updates configuration using system properties and environment variables.
+ *
+ * @see ClientOptions.Builder.fromEnv
+ */
fun fromEnv() = apply { clientOptions.fromEnv() }
/**
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/core/ClientOptions.kt b/orb-java-core/src/main/kotlin/com/withorb/api/core/ClientOptions.kt
index 5a266c80..b2464f27 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/core/ClientOptions.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/core/ClientOptions.kt
@@ -3,6 +3,7 @@
package com.withorb.api.core
import com.fasterxml.jackson.databind.json.JsonMapper
+import com.withorb.api.core.http.AsyncStreamResponse
import com.withorb.api.core.http.Headers
import com.withorb.api.core.http.HttpClient
import com.withorb.api.core.http.PhantomReachableClosingHttpClient
@@ -17,9 +18,15 @@ import java.util.concurrent.ThreadFactory
import java.util.concurrent.atomic.AtomicLong
import kotlin.jvm.optionals.getOrNull
+/** A class representing the SDK client configuration. */
class ClientOptions
private constructor(
private val originalHttpClient: HttpClient,
+ /**
+ * The HTTP client to use in the SDK.
+ *
+ * Use the one published in `orb-java-client-okhttp` or implement your own.
+ */
@get:JvmName("httpClient") val httpClient: HttpClient,
/**
* Whether to throw an exception if any of the Jackson versions detected at runtime are
@@ -29,14 +36,61 @@ private constructor(
* the SDK will work correctly when using an incompatible Jackson version.
*/
@get:JvmName("checkJacksonVersionCompatibility") val checkJacksonVersionCompatibility: Boolean,
+ /**
+ * The Jackson JSON mapper to use for serializing and deserializing JSON.
+ *
+ * Defaults to [com.withorb.api.core.jsonMapper]. The default is usually sufficient and rarely
+ * needs to be overridden.
+ */
@get:JvmName("jsonMapper") val jsonMapper: JsonMapper,
+ /**
+ * The executor to use for running [AsyncStreamResponse.Handler] callbacks.
+ *
+ * Defaults to a dedicated cached thread pool.
+ */
@get:JvmName("streamHandlerExecutor") val streamHandlerExecutor: Executor,
+ /**
+ * The clock to use for operations that require timing, like retries.
+ *
+ * This is primarily useful for using a fake clock in tests.
+ *
+ * Defaults to [Clock.systemUTC].
+ */
@get:JvmName("clock") val clock: Clock,
private val baseUrl: String?,
+ /** Headers to send with the request. */
@get:JvmName("headers") val headers: Headers,
+ /** Query params to send with the request. */
@get:JvmName("queryParams") val queryParams: QueryParams,
+ /**
+ * Whether to call `validate` on every response before returning it.
+ *
+ * Defaults to false, which means the shape of the response will not be validated upfront.
+ * Instead, validation will only occur for the parts of the response that are accessed.
+ */
@get:JvmName("responseValidation") val responseValidation: Boolean,
+ /**
+ * Sets the maximum time allowed for various parts of an HTTP call's lifecycle, excluding
+ * retries.
+ *
+ * Defaults to [Timeout.default].
+ */
@get:JvmName("timeout") val timeout: Timeout,
+ /**
+ * The maximum number of times to retry failed requests, with a short exponential backoff
+ * between requests.
+ *
+ * Only the following error types are retried:
+ * - Connection errors (for example, due to a network connectivity problem)
+ * - 408 Request Timeout
+ * - 409 Conflict
+ * - 429 Rate Limit
+ * - 5xx Internal
+ *
+ * The API may also explicitly instruct the SDK to retry or not retry a request.
+ *
+ * Defaults to 2.
+ */
@get:JvmName("maxRetries") val maxRetries: Int,
@get:JvmName("apiKey") val apiKey: String,
private val webhookSecret: String?,
@@ -48,6 +102,11 @@ private constructor(
}
}
+ /**
+ * The base URL to use for every request.
+ *
+ * Defaults to the production environment: `https://api.withorb.com/v1`.
+ */
fun baseUrl(): String = baseUrl ?: PRODUCTION_URL
fun webhookSecret(): Optional = Optional.ofNullable(webhookSecret)
@@ -69,6 +128,11 @@ private constructor(
*/
@JvmStatic fun builder() = Builder()
+ /**
+ * Returns options configured using system properties and environment variables.
+ *
+ * @see Builder.fromEnv
+ */
@JvmStatic fun fromEnv(): ClientOptions = builder().fromEnv().build()
}
@@ -106,6 +170,11 @@ private constructor(
webhookSecret = clientOptions.webhookSecret
}
+ /**
+ * The HTTP client to use in the SDK.
+ *
+ * Use the one published in `orb-java-client-okhttp` or implement your own.
+ */
fun httpClient(httpClient: HttpClient) = apply {
this.httpClient = PhantomReachableClosingHttpClient(httpClient)
}
@@ -121,23 +190,58 @@ private constructor(
this.checkJacksonVersionCompatibility = checkJacksonVersionCompatibility
}
+ /**
+ * The Jackson JSON mapper to use for serializing and deserializing JSON.
+ *
+ * Defaults to [com.withorb.api.core.jsonMapper]. The default is usually sufficient and
+ * rarely needs to be overridden.
+ */
fun jsonMapper(jsonMapper: JsonMapper) = apply { this.jsonMapper = jsonMapper }
+ /**
+ * The executor to use for running [AsyncStreamResponse.Handler] callbacks.
+ *
+ * Defaults to a dedicated cached thread pool.
+ */
fun streamHandlerExecutor(streamHandlerExecutor: Executor) = apply {
this.streamHandlerExecutor = streamHandlerExecutor
}
+ /**
+ * The clock to use for operations that require timing, like retries.
+ *
+ * This is primarily useful for using a fake clock in tests.
+ *
+ * Defaults to [Clock.systemUTC].
+ */
fun clock(clock: Clock) = apply { this.clock = clock }
+ /**
+ * The base URL to use for every request.
+ *
+ * Defaults to the production environment: `https://api.withorb.com/v1`.
+ */
fun baseUrl(baseUrl: String?) = apply { this.baseUrl = baseUrl }
/** Alias for calling [Builder.baseUrl] with `baseUrl.orElse(null)`. */
fun baseUrl(baseUrl: Optional) = baseUrl(baseUrl.getOrNull())
+ /**
+ * Whether to call `validate` on every response before returning it.
+ *
+ * Defaults to false, which means the shape of the response will not be validated upfront.
+ * Instead, validation will only occur for the parts of the response that are accessed.
+ */
fun responseValidation(responseValidation: Boolean) = apply {
this.responseValidation = responseValidation
}
+ /**
+ * Sets the maximum time allowed for various parts of an HTTP call's lifecycle, excluding
+ * retries.
+ *
+ * Defaults to [Timeout.default].
+ */
fun timeout(timeout: Timeout) = apply { this.timeout = timeout }
/**
@@ -149,6 +253,21 @@ private constructor(
*/
fun timeout(timeout: Duration) = timeout(Timeout.builder().request(timeout).build())
+ /**
+ * The maximum number of times to retry failed requests, with a short exponential backoff
+ * between requests.
+ *
+ * Only the following error types are retried:
+ * - Connection errors (for example, due to a network connectivity problem)
+ * - 408 Request Timeout
+ * - 409 Conflict
+ * - 429 Rate Limit
+ * - 5xx Internal
+ *
+ * The API may also explicitly instruct the SDK to retry or not retry a request.
+ *
+ * Defaults to 2.
+ */
fun maxRetries(maxRetries: Int) = apply { this.maxRetries = maxRetries }
fun apiKey(apiKey: String) = apply { this.apiKey = apiKey }
@@ -241,6 +360,19 @@ private constructor(
fun timeout(): Timeout = timeout
+ /**
+ * Updates configuration using system properties and environment variables.
+ *
+ * See this table for the available options:
+ *
+ * |Setter |System property |Environment variable|Required|Default value |
+ * |---------------|-------------------|--------------------|--------|------------------------------|
+ * |`apiKey` |`orb.apiKey` |`ORB_API_KEY` |true |- |
+ * |`webhookSecret`|`orb.webhookSecret`|`ORB_WEBHOOK_SECRET`|false |- |
+ * |`baseUrl` |`orb.baseUrl` |`ORB_BASE_URL` |true |`"https://api.withorb.com/v1"`|
+ *
+ * System properties take precedence over environment variables.
+ */
fun fromEnv() = apply {
(System.getProperty("orb.baseUrl") ?: System.getenv("ORB_BASE_URL"))?.let {
baseUrl(it)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/core/http/Headers.kt b/orb-java-core/src/main/kotlin/com/withorb/api/core/http/Headers.kt
index 47369c39..eb84fc92 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/core/http/Headers.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/core/http/Headers.kt
@@ -1,5 +1,15 @@
+// File generated from our OpenAPI spec by Stainless.
+
package com.withorb.api.core.http
+import com.withorb.api.core.JsonArray
+import com.withorb.api.core.JsonBoolean
+import com.withorb.api.core.JsonMissing
+import com.withorb.api.core.JsonNull
+import com.withorb.api.core.JsonNumber
+import com.withorb.api.core.JsonObject
+import com.withorb.api.core.JsonString
+import com.withorb.api.core.JsonValue
import com.withorb.api.core.toImmutable
import java.util.TreeMap
@@ -28,6 +38,19 @@ private constructor(
TreeMap(String.CASE_INSENSITIVE_ORDER)
private var size: Int = 0
+ fun put(name: String, value: JsonValue): Builder = apply {
+ when (value) {
+ is JsonMissing,
+ is JsonNull -> {}
+ is JsonBoolean -> put(name, value.value.toString())
+ is JsonNumber -> put(name, value.value.toString())
+ is JsonString -> put(name, value.value)
+ is JsonArray -> value.values.forEach { put(name, it) }
+ is JsonObject ->
+ value.values.forEach { (nestedName, value) -> put("$name.$nestedName", value) }
+ }
+ }
+
fun put(name: String, value: String) = apply {
map.getOrPut(name) { mutableListOf() }.add(value)
size++
@@ -41,15 +64,6 @@ private constructor(
headers.names().forEach { put(it, headers.values(it)) }
}
- fun remove(name: String) = apply { size -= map.remove(name).orEmpty().size }
-
- fun removeAll(names: Set) = apply { names.forEach(::remove) }
-
- fun clear() = apply {
- map.clear()
- size = 0
- }
-
fun replace(name: String, value: String) = apply {
remove(name)
put(name, value)
@@ -68,6 +82,15 @@ private constructor(
headers.names().forEach { replace(it, headers.values(it)) }
}
+ fun remove(name: String) = apply { size -= map.remove(name).orEmpty().size }
+
+ fun removeAll(names: Set) = apply { names.forEach(::remove) }
+
+ fun clear() = apply {
+ map.clear()
+ size = 0
+ }
+
fun build() =
Headers(
map.mapValuesTo(TreeMap(String.CASE_INSENSITIVE_ORDER)) { (_, values) ->
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/core/http/QueryParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/core/http/QueryParams.kt
index bb3a6d4a..2b0475ba 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/core/http/QueryParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/core/http/QueryParams.kt
@@ -2,6 +2,14 @@
package com.withorb.api.core.http
+import com.withorb.api.core.JsonArray
+import com.withorb.api.core.JsonBoolean
+import com.withorb.api.core.JsonMissing
+import com.withorb.api.core.JsonNull
+import com.withorb.api.core.JsonNumber
+import com.withorb.api.core.JsonObject
+import com.withorb.api.core.JsonString
+import com.withorb.api.core.JsonValue
import com.withorb.api.core.toImmutable
class QueryParams
@@ -28,6 +36,19 @@ private constructor(
private val map: MutableMap> = mutableMapOf()
private var size: Int = 0
+ fun put(key: String, value: JsonValue): Builder = apply {
+ when (value) {
+ is JsonMissing,
+ is JsonNull -> {}
+ is JsonBoolean -> put(key, value.value.toString())
+ is JsonNumber -> put(key, value.value.toString())
+ is JsonString -> put(key, value.value)
+ is JsonArray -> value.values.forEach { put("$key[]", it) }
+ is JsonObject ->
+ value.values.forEach { (nestedKey, value) -> put("$key[$nestedKey]", value) }
+ }
+ }
+
fun put(key: String, value: String) = apply {
map.getOrPut(key) { mutableListOf() }.add(value)
size++
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForCustomerParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForCustomerParams.kt
index 1c768b7c..01c06640 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForCustomerParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForCustomerParams.kt
@@ -88,8 +88,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForExternalCustomerParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForExternalCustomerParams.kt
index 2c9b8ed9..6852ecd0 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForExternalCustomerParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForExternalCustomerParams.kt
@@ -88,8 +88,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForSubscriptionParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForSubscriptionParams.kt
index 9b92c832..0f3748d6 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForSubscriptionParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForSubscriptionParams.kt
@@ -92,8 +92,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertDisableParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertDisableParams.kt
index 0e1f15a1..5ad3565f 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertDisableParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertDisableParams.kt
@@ -30,10 +30,13 @@ private constructor(
/** Used to update the status of a plan alert scoped to this subscription_id */
fun subscriptionId(): Optional = Optional.ofNullable(subscriptionId)
+ /** Additional body properties to send with the request. */
fun _additionalBodyProperties(): Map = additionalBodyProperties
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertEnableParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertEnableParams.kt
index 726e00d0..d7dc775f 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertEnableParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertEnableParams.kt
@@ -30,10 +30,13 @@ private constructor(
/** Used to update the status of a plan alert scoped to this subscription_id */
fun subscriptionId(): Optional = Optional.ofNullable(subscriptionId)
+ /** Additional body properties to send with the request. */
fun _additionalBodyProperties(): Map = additionalBodyProperties
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertListPage.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertListPage.kt
index 626b3e7e..04cab053 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertListPage.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertListPage.kt
@@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
-/** @see [AlertService.list] */
+/** @see AlertService.list */
class AlertListPage
private constructor(
private val service: AlertService,
@@ -21,14 +21,14 @@ private constructor(
/**
* Delegates to [AlertListPageResponse], but gracefully handles missing data.
*
- * @see [AlertListPageResponse.data]
+ * @see AlertListPageResponse.data
*/
fun data(): List = response._data().getOptional("data").getOrNull() ?: emptyList()
/**
* Delegates to [AlertListPageResponse], but gracefully handles missing data.
*
- * @see [AlertListPageResponse.paginationMetadata]
+ * @see AlertListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertListPageAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertListPageAsync.kt
index ff9b1277..aee23ad7 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertListPageAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertListPageAsync.kt
@@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
-/** @see [AlertServiceAsync.list] */
+/** @see AlertServiceAsync.list */
class AlertListPageAsync
private constructor(
private val service: AlertServiceAsync,
@@ -24,14 +24,14 @@ private constructor(
/**
* Delegates to [AlertListPageResponse], but gracefully handles missing data.
*
- * @see [AlertListPageResponse.data]
+ * @see AlertListPageResponse.data
*/
fun data(): List = response._data().getOptional("data").getOrNull() ?: emptyList()
/**
* Delegates to [AlertListPageResponse], but gracefully handles missing data.
*
- * @see [AlertListPageResponse.paginationMetadata]
+ * @see AlertListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertListParams.kt
index c2b6c65d..9e9689ef 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertListParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertListParams.kt
@@ -63,8 +63,10 @@ private constructor(
/** Fetch alerts scoped to this subscription_id */
fun subscriptionId(): Optional = Optional.ofNullable(subscriptionId)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertRetrieveParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertRetrieveParams.kt
index 1f780152..23daf4dd 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertRetrieveParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertRetrieveParams.kt
@@ -19,8 +19,10 @@ private constructor(
fun alertId(): Optional = Optional.ofNullable(alertId)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertUpdateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertUpdateParams.kt
index 333da406..6a2e123e 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertUpdateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/AlertUpdateParams.kt
@@ -50,8 +50,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaCreatePlanVersionParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaCreatePlanVersionParams.kt
index dfccc6e7..83ba798e 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaCreatePlanVersionParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaCreatePlanVersionParams.kt
@@ -172,8 +172,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaExternalPlanIdCreatePlanVersionParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaExternalPlanIdCreatePlanVersionParams.kt
index 63d81eae..3d11370f 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaExternalPlanIdCreatePlanVersionParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaExternalPlanIdCreatePlanVersionParams.kt
@@ -172,8 +172,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaExternalPlanIdFetchPlanVersionParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaExternalPlanIdFetchPlanVersionParams.kt
index 0dce41e7..bf984e1a 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaExternalPlanIdFetchPlanVersionParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaExternalPlanIdFetchPlanVersionParams.kt
@@ -29,8 +29,10 @@ private constructor(
fun version(): Optional = Optional.ofNullable(version)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaExternalPlanIdSetDefaultPlanVersionParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaExternalPlanIdSetDefaultPlanVersionParams.kt
index 37016fe9..a859acaf 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaExternalPlanIdSetDefaultPlanVersionParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaExternalPlanIdSetDefaultPlanVersionParams.kt
@@ -53,8 +53,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaFetchPlanVersionParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaFetchPlanVersionParams.kt
index b9e36663..b40d2e80 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaFetchPlanVersionParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaFetchPlanVersionParams.kt
@@ -29,8 +29,10 @@ private constructor(
fun version(): Optional = Optional.ofNullable(version)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaSetDefaultPlanVersionParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaSetDefaultPlanVersionParams.kt
index 250713fa..1592ffe2 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaSetDefaultPlanVersionParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/BetaSetDefaultPlanVersionParams.kt
@@ -53,8 +53,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponArchiveParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponArchiveParams.kt
index f8cff3dc..d317ce98 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponArchiveParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponArchiveParams.kt
@@ -26,10 +26,13 @@ private constructor(
fun couponId(): Optional = Optional.ofNullable(couponId)
+ /** Additional body properties to send with the request. */
fun _additionalBodyProperties(): Map = additionalBodyProperties
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponCreateParams.kt
index 2c7b8bf3..f431191f 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponCreateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponCreateParams.kt
@@ -104,8 +104,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponFetchParams.kt
index 9222e419..8066c76f 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponFetchParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponFetchParams.kt
@@ -22,8 +22,10 @@ private constructor(
fun couponId(): Optional = Optional.ofNullable(couponId)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponListPage.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponListPage.kt
index 54fa128c..b4f0db15 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponListPage.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponListPage.kt
@@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
-/** @see [CouponService.list] */
+/** @see CouponService.list */
class CouponListPage
private constructor(
private val service: CouponService,
@@ -21,14 +21,14 @@ private constructor(
/**
* Delegates to [CouponListPageResponse], but gracefully handles missing data.
*
- * @see [CouponListPageResponse.data]
+ * @see CouponListPageResponse.data
*/
fun data(): List = response._data().getOptional("data").getOrNull() ?: emptyList()
/**
* Delegates to [CouponListPageResponse], but gracefully handles missing data.
*
- * @see [CouponListPageResponse.paginationMetadata]
+ * @see CouponListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponListPageAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponListPageAsync.kt
index 884d7b62..5060fab6 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponListPageAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponListPageAsync.kt
@@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
-/** @see [CouponServiceAsync.list] */
+/** @see CouponServiceAsync.list */
class CouponListPageAsync
private constructor(
private val service: CouponServiceAsync,
@@ -24,14 +24,14 @@ private constructor(
/**
* Delegates to [CouponListPageResponse], but gracefully handles missing data.
*
- * @see [CouponListPageResponse.data]
+ * @see CouponListPageResponse.data
*/
fun data(): List = response._data().getOptional("data").getOrNull() ?: emptyList()
/**
* Delegates to [CouponListPageResponse], but gracefully handles missing data.
*
- * @see [CouponListPageResponse.paginationMetadata]
+ * @see CouponListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponListParams.kt
index 3372e24f..709c61df 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponListParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponListParams.kt
@@ -41,8 +41,10 @@ private constructor(
/** Show archived coupons as well (by default, this endpoint only returns active coupons). */
fun showArchived(): Optional = Optional.ofNullable(showArchived)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponSubscriptionListPage.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponSubscriptionListPage.kt
index d81a7bb7..4b875933 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponSubscriptionListPage.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponSubscriptionListPage.kt
@@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
-/** @see [SubscriptionService.list] */
+/** @see SubscriptionService.list */
class CouponSubscriptionListPage
private constructor(
private val service: SubscriptionService,
@@ -21,14 +21,14 @@ private constructor(
/**
* Delegates to [Subscriptions], but gracefully handles missing data.
*
- * @see [Subscriptions.data]
+ * @see Subscriptions.data
*/
fun data(): List = response._data().getOptional("data").getOrNull() ?: emptyList()
/**
* Delegates to [Subscriptions], but gracefully handles missing data.
*
- * @see [Subscriptions.paginationMetadata]
+ * @see Subscriptions.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponSubscriptionListPageAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponSubscriptionListPageAsync.kt
index afc24358..25bbffb5 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponSubscriptionListPageAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponSubscriptionListPageAsync.kt
@@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
-/** @see [SubscriptionServiceAsync.list] */
+/** @see SubscriptionServiceAsync.list */
class CouponSubscriptionListPageAsync
private constructor(
private val service: SubscriptionServiceAsync,
@@ -24,14 +24,14 @@ private constructor(
/**
* Delegates to [Subscriptions], but gracefully handles missing data.
*
- * @see [Subscriptions.data]
+ * @see Subscriptions.data
*/
fun data(): List = response._data().getOptional("data").getOrNull() ?: emptyList()
/**
* Delegates to [Subscriptions], but gracefully handles missing data.
*
- * @see [Subscriptions.paginationMetadata]
+ * @see Subscriptions.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponSubscriptionListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponSubscriptionListParams.kt
index 6ed44a4f..7325ed40 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponSubscriptionListParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CouponSubscriptionListParams.kt
@@ -35,8 +35,10 @@ private constructor(
/** The number of items to fetch. Defaults to 20. */
fun limit(): Optional = Optional.ofNullable(limit)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteCreateParams.kt
index aff78d0d..ab9d8243 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteCreateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteCreateParams.kt
@@ -135,8 +135,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteFetchParams.kt
index 827792b4..4ded1cfc 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteFetchParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteFetchParams.kt
@@ -22,8 +22,10 @@ private constructor(
fun creditNoteId(): Optional = Optional.ofNullable(creditNoteId)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteListPage.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteListPage.kt
index a2337e3b..da30dc53 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteListPage.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteListPage.kt
@@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
-/** @see [CreditNoteService.list] */
+/** @see CreditNoteService.list */
class CreditNoteListPage
private constructor(
private val service: CreditNoteService,
@@ -21,14 +21,14 @@ private constructor(
/**
* Delegates to [CreditNoteListPageResponse], but gracefully handles missing data.
*
- * @see [CreditNoteListPageResponse.data]
+ * @see CreditNoteListPageResponse.data
*/
fun data(): List = response._data().getOptional("data").getOrNull() ?: emptyList()
/**
* Delegates to [CreditNoteListPageResponse], but gracefully handles missing data.
*
- * @see [CreditNoteListPageResponse.paginationMetadata]
+ * @see CreditNoteListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteListPageAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteListPageAsync.kt
index 3710fe7e..f65c79cf 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteListPageAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteListPageAsync.kt
@@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
-/** @see [CreditNoteServiceAsync.list] */
+/** @see CreditNoteServiceAsync.list */
class CreditNoteListPageAsync
private constructor(
private val service: CreditNoteServiceAsync,
@@ -24,14 +24,14 @@ private constructor(
/**
* Delegates to [CreditNoteListPageResponse], but gracefully handles missing data.
*
- * @see [CreditNoteListPageResponse.data]
+ * @see CreditNoteListPageResponse.data
*/
fun data(): List = response._data().getOptional("data").getOrNull() ?: emptyList()
/**
* Delegates to [CreditNoteListPageResponse], but gracefully handles missing data.
*
- * @see [CreditNoteListPageResponse.paginationMetadata]
+ * @see CreditNoteListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteListParams.kt
index ae64cd52..5d66a657 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteListParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CreditNoteListParams.kt
@@ -45,8 +45,10 @@ private constructor(
/** The number of items to fetch. Defaults to 20. */
fun limit(): Optional = Optional.ofNullable(limit)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionCreateParams.kt
index 31b73445..e4ed0a93 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionCreateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionCreateParams.kt
@@ -78,8 +78,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionListPage.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionListPage.kt
index 73d8e3bc..3bb12c25 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionListPage.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionListPage.kt
@@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
-/** @see [BalanceTransactionService.list] */
+/** @see BalanceTransactionService.list */
class CustomerBalanceTransactionListPage
private constructor(
private val service: BalanceTransactionService,
@@ -22,7 +22,7 @@ private constructor(
* Delegates to [CustomerBalanceTransactionListPageResponse], but gracefully handles missing
* data.
*
- * @see [CustomerBalanceTransactionListPageResponse.data]
+ * @see CustomerBalanceTransactionListPageResponse.data
*/
fun data(): List =
response._data().getOptional("data").getOrNull() ?: emptyList()
@@ -31,7 +31,7 @@ private constructor(
* Delegates to [CustomerBalanceTransactionListPageResponse], but gracefully handles missing
* data.
*
- * @see [CustomerBalanceTransactionListPageResponse.paginationMetadata]
+ * @see CustomerBalanceTransactionListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionListPageAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionListPageAsync.kt
index 56c745f8..e032ad33 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionListPageAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionListPageAsync.kt
@@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
-/** @see [BalanceTransactionServiceAsync.list] */
+/** @see BalanceTransactionServiceAsync.list */
class CustomerBalanceTransactionListPageAsync
private constructor(
private val service: BalanceTransactionServiceAsync,
@@ -25,7 +25,7 @@ private constructor(
* Delegates to [CustomerBalanceTransactionListPageResponse], but gracefully handles missing
* data.
*
- * @see [CustomerBalanceTransactionListPageResponse.data]
+ * @see CustomerBalanceTransactionListPageResponse.data
*/
fun data(): List =
response._data().getOptional("data").getOrNull() ?: emptyList()
@@ -34,7 +34,7 @@ private constructor(
* Delegates to [CustomerBalanceTransactionListPageResponse], but gracefully handles missing
* data.
*
- * @see [CustomerBalanceTransactionListPageResponse.paginationMetadata]
+ * @see CustomerBalanceTransactionListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionListParams.kt
index 14a22860..ff73a975 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionListParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerBalanceTransactionListParams.kt
@@ -63,8 +63,10 @@ private constructor(
fun operationTimeLte(): Optional = Optional.ofNullable(operationTimeLte)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCostListByExternalIdParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCostListByExternalIdParams.kt
index 39b6fd1f..f359624d 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCostListByExternalIdParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCostListByExternalIdParams.kt
@@ -136,7 +136,7 @@ private constructor(
fun externalCustomerId(): Optional = Optional.ofNullable(externalCustomerId)
- /** The currency to use. */
+ /** The currency or custom pricing unit to use. */
fun currency(): Optional = Optional.ofNullable(currency)
/** Costs returned are exclusive of `timeframe_end`. */
@@ -152,8 +152,10 @@ private constructor(
*/
fun viewMode(): Optional = Optional.ofNullable(viewMode)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
@@ -203,7 +205,7 @@ private constructor(
fun externalCustomerId(externalCustomerId: Optional) =
externalCustomerId(externalCustomerId.getOrNull())
- /** The currency to use. */
+ /** The currency or custom pricing unit to use. */
fun currency(currency: String?) = apply { this.currency = currency }
/** Alias for calling [Builder.currency] with `currency.orElse(null)`. */
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCostListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCostListParams.kt
index 9f96199f..cb2b74ef 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCostListParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCostListParams.kt
@@ -136,7 +136,7 @@ private constructor(
fun customerId(): Optional = Optional.ofNullable(customerId)
- /** The currency to use. */
+ /** The currency or custom pricing unit to use. */
fun currency(): Optional = Optional.ofNullable(currency)
/** Costs returned are exclusive of `timeframe_end`. */
@@ -152,8 +152,10 @@ private constructor(
*/
fun viewMode(): Optional = Optional.ofNullable(viewMode)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
@@ -193,7 +195,7 @@ private constructor(
/** Alias for calling [Builder.customerId] with `customerId.orElse(null)`. */
fun customerId(customerId: Optional) = customerId(customerId.getOrNull())
- /** The currency to use. */
+ /** The currency or custom pricing unit to use. */
fun currency(currency: String?) = apply { this.currency = currency }
/** Alias for calling [Builder.currency] with `currency.orElse(null)`. */
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreateParams.kt
index 1d099378..5f754620 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreateParams.kt
@@ -438,8 +438,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryByExternalIdParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryByExternalIdParams.kt
index 46ec1b4b..530801a5 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryByExternalIdParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryByExternalIdParams.kt
@@ -149,8 +149,10 @@ private constructor(
fun body(): Body = body
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
@@ -1227,11 +1229,10 @@ private constructor(
* date for the invoice. If you intend the invoice to be due on issue, set this
* to 0.
*
- * @throws OrbInvalidDataException if the JSON field has an unexpected type or is
- * unexpectedly missing or null (e.g. if the server responded with an unexpected
- * value).
+ * @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
*/
- fun netTerms(): Long = netTerms.getRequired("net_terms")
+ fun netTerms(): Optional = netTerms.getOptional("net_terms")
/**
* An ISO 8601 format date that denotes when this invoice should be dated in the
@@ -1378,7 +1379,17 @@ private constructor(
* issue date for the invoice. If you intend the invoice to be due on issue, set
* this to 0.
*/
- fun netTerms(netTerms: Long) = netTerms(JsonField.of(netTerms))
+ fun netTerms(netTerms: Long?) = netTerms(JsonField.ofNullable(netTerms))
+
+ /**
+ * Alias for [Builder.netTerms].
+ *
+ * This unboxed primitive overload exists for backwards compatibility.
+ */
+ fun netTerms(netTerms: Long) = netTerms(netTerms as Long?)
+
+ /** Alias for calling [Builder.netTerms] with `netTerms.orElse(null)`. */
+ fun netTerms(netTerms: Optional) = netTerms(netTerms.getOrNull())
/**
* Sets [Builder.netTerms] to an arbitrary JSON value.
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryParams.kt
index 45807887..8313ff1b 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerCreateEntryParams.kt
@@ -149,8 +149,10 @@ private constructor(
fun body(): Body = body
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
@@ -1219,11 +1221,10 @@ private constructor(
* date for the invoice. If you intend the invoice to be due on issue, set this
* to 0.
*
- * @throws OrbInvalidDataException if the JSON field has an unexpected type or is
- * unexpectedly missing or null (e.g. if the server responded with an unexpected
- * value).
+ * @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
*/
- fun netTerms(): Long = netTerms.getRequired("net_terms")
+ fun netTerms(): Optional = netTerms.getOptional("net_terms")
/**
* An ISO 8601 format date that denotes when this invoice should be dated in the
@@ -1370,7 +1371,17 @@ private constructor(
* issue date for the invoice. If you intend the invoice to be due on issue, set
* this to 0.
*/
- fun netTerms(netTerms: Long) = netTerms(JsonField.of(netTerms))
+ fun netTerms(netTerms: Long?) = netTerms(JsonField.ofNullable(netTerms))
+
+ /**
+ * Alias for [Builder.netTerms].
+ *
+ * This unboxed primitive overload exists for backwards compatibility.
+ */
+ fun netTerms(netTerms: Long) = netTerms(netTerms as Long?)
+
+ /** Alias for calling [Builder.netTerms] with `netTerms.orElse(null)`. */
+ fun netTerms(netTerms: Optional) = netTerms(netTerms.getOrNull())
/**
* Sets [Builder.netTerms] to an arbitrary JSON value.
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdPage.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdPage.kt
index bc5f132e..d997a531 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdPage.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdPage.kt
@@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
-/** @see [LedgerService.listByExternalId] */
+/** @see LedgerService.listByExternalId */
class CustomerCreditLedgerListByExternalIdPage
private constructor(
private val service: LedgerService,
@@ -22,7 +22,7 @@ private constructor(
* Delegates to [CustomerCreditLedgerListByExternalIdPageResponse], but gracefully handles
* missing data.
*
- * @see [CustomerCreditLedgerListByExternalIdPageResponse.data]
+ * @see CustomerCreditLedgerListByExternalIdPageResponse.data
*/
fun data(): List =
response._data().getOptional("data").getOrNull() ?: emptyList()
@@ -31,7 +31,7 @@ private constructor(
* Delegates to [CustomerCreditLedgerListByExternalIdPageResponse], but gracefully handles
* missing data.
*
- * @see [CustomerCreditLedgerListByExternalIdPageResponse.paginationMetadata]
+ * @see CustomerCreditLedgerListByExternalIdPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdPageAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdPageAsync.kt
index 880a2a3a..b32ca622 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdPageAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdPageAsync.kt
@@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
-/** @see [LedgerServiceAsync.listByExternalId] */
+/** @see LedgerServiceAsync.listByExternalId */
class CustomerCreditLedgerListByExternalIdPageAsync
private constructor(
private val service: LedgerServiceAsync,
@@ -25,7 +25,7 @@ private constructor(
* Delegates to [CustomerCreditLedgerListByExternalIdPageResponse], but gracefully handles
* missing data.
*
- * @see [CustomerCreditLedgerListByExternalIdPageResponse.data]
+ * @see CustomerCreditLedgerListByExternalIdPageResponse.data
*/
fun data(): List =
response._data().getOptional("data").getOrNull() ?: emptyList()
@@ -34,7 +34,7 @@ private constructor(
* Delegates to [CustomerCreditLedgerListByExternalIdPageResponse], but gracefully handles
* missing data.
*
- * @see [CustomerCreditLedgerListByExternalIdPageResponse.paginationMetadata]
+ * @see CustomerCreditLedgerListByExternalIdPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdParams.kt
index 3b1fce37..72f2438b 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListByExternalIdParams.kt
@@ -137,8 +137,10 @@ private constructor(
fun minimumAmount(): Optional = Optional.ofNullable(minimumAmount)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListPage.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListPage.kt
index 0d653fe2..a45c5459 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListPage.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListPage.kt
@@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
-/** @see [LedgerService.list] */
+/** @see LedgerService.list */
class CustomerCreditLedgerListPage
private constructor(
private val service: LedgerService,
@@ -21,7 +21,7 @@ private constructor(
/**
* Delegates to [CustomerCreditLedgerListPageResponse], but gracefully handles missing data.
*
- * @see [CustomerCreditLedgerListPageResponse.data]
+ * @see CustomerCreditLedgerListPageResponse.data
*/
fun data(): List =
response._data().getOptional("data").getOrNull() ?: emptyList()
@@ -29,7 +29,7 @@ private constructor(
/**
* Delegates to [CustomerCreditLedgerListPageResponse], but gracefully handles missing data.
*
- * @see [CustomerCreditLedgerListPageResponse.paginationMetadata]
+ * @see CustomerCreditLedgerListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListPageAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListPageAsync.kt
index b2659070..11dee7e0 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListPageAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListPageAsync.kt
@@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
-/** @see [LedgerServiceAsync.list] */
+/** @see LedgerServiceAsync.list */
class CustomerCreditLedgerListPageAsync
private constructor(
private val service: LedgerServiceAsync,
@@ -24,7 +24,7 @@ private constructor(
/**
* Delegates to [CustomerCreditLedgerListPageResponse], but gracefully handles missing data.
*
- * @see [CustomerCreditLedgerListPageResponse.data]
+ * @see CustomerCreditLedgerListPageResponse.data
*/
fun data(): List =
response._data().getOptional("data").getOrNull() ?: emptyList()
@@ -32,7 +32,7 @@ private constructor(
/**
* Delegates to [CustomerCreditLedgerListPageResponse], but gracefully handles missing data.
*
- * @see [CustomerCreditLedgerListPageResponse.paginationMetadata]
+ * @see CustomerCreditLedgerListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListParams.kt
index 86f767f3..7ecb7e23 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditLedgerListParams.kt
@@ -137,8 +137,10 @@ private constructor(
fun minimumAmount(): Optional = Optional.ofNullable(minimumAmount)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdPage.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdPage.kt
index 7d2f7364..03e2ad77 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdPage.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdPage.kt
@@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
-/** @see [CreditService.listByExternalId] */
+/** @see CreditService.listByExternalId */
class CustomerCreditListByExternalIdPage
private constructor(
private val service: CreditService,
@@ -22,7 +22,7 @@ private constructor(
* Delegates to [CustomerCreditListByExternalIdPageResponse], but gracefully handles missing
* data.
*
- * @see [CustomerCreditListByExternalIdPageResponse.data]
+ * @see CustomerCreditListByExternalIdPageResponse.data
*/
fun data(): List =
response._data().getOptional("data").getOrNull() ?: emptyList()
@@ -31,7 +31,7 @@ private constructor(
* Delegates to [CustomerCreditListByExternalIdPageResponse], but gracefully handles missing
* data.
*
- * @see [CustomerCreditListByExternalIdPageResponse.paginationMetadata]
+ * @see CustomerCreditListByExternalIdPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdPageAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdPageAsync.kt
index 0fe94b19..a814d8ab 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdPageAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdPageAsync.kt
@@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
-/** @see [CreditServiceAsync.listByExternalId] */
+/** @see CreditServiceAsync.listByExternalId */
class CustomerCreditListByExternalIdPageAsync
private constructor(
private val service: CreditServiceAsync,
@@ -25,7 +25,7 @@ private constructor(
* Delegates to [CustomerCreditListByExternalIdPageResponse], but gracefully handles missing
* data.
*
- * @see [CustomerCreditListByExternalIdPageResponse.data]
+ * @see CustomerCreditListByExternalIdPageResponse.data
*/
fun data(): List =
response._data().getOptional("data").getOrNull() ?: emptyList()
@@ -34,7 +34,7 @@ private constructor(
* Delegates to [CustomerCreditListByExternalIdPageResponse], but gracefully handles missing
* data.
*
- * @see [CustomerCreditListByExternalIdPageResponse.paginationMetadata]
+ * @see CustomerCreditListByExternalIdPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdParams.kt
index 144e5b75..c025c956 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdParams.kt
@@ -48,8 +48,10 @@ private constructor(
/** The number of items to fetch. Defaults to 20. */
fun limit(): Optional = Optional.ofNullable(limit)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListPage.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListPage.kt
index d24c2af5..8e552028 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListPage.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListPage.kt
@@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
-/** @see [CreditService.list] */
+/** @see CreditService.list */
class CustomerCreditListPage
private constructor(
private val service: CreditService,
@@ -21,7 +21,7 @@ private constructor(
/**
* Delegates to [CustomerCreditListPageResponse], but gracefully handles missing data.
*
- * @see [CustomerCreditListPageResponse.data]
+ * @see CustomerCreditListPageResponse.data
*/
fun data(): List =
response._data().getOptional("data").getOrNull() ?: emptyList()
@@ -29,7 +29,7 @@ private constructor(
/**
* Delegates to [CustomerCreditListPageResponse], but gracefully handles missing data.
*
- * @see [CustomerCreditListPageResponse.paginationMetadata]
+ * @see CustomerCreditListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListPageAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListPageAsync.kt
index ff22d0f2..2394a3ef 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListPageAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListPageAsync.kt
@@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
-/** @see [CreditServiceAsync.list] */
+/** @see CreditServiceAsync.list */
class CustomerCreditListPageAsync
private constructor(
private val service: CreditServiceAsync,
@@ -24,7 +24,7 @@ private constructor(
/**
* Delegates to [CustomerCreditListPageResponse], but gracefully handles missing data.
*
- * @see [CustomerCreditListPageResponse.data]
+ * @see CustomerCreditListPageResponse.data
*/
fun data(): List =
response._data().getOptional("data").getOrNull() ?: emptyList()
@@ -32,7 +32,7 @@ private constructor(
/**
* Delegates to [CustomerCreditListPageResponse], but gracefully handles missing data.
*
- * @see [CustomerCreditListPageResponse.paginationMetadata]
+ * @see CustomerCreditListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListParams.kt
index 54fbcf43..0635c992 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditListParams.kt
@@ -48,8 +48,10 @@ private constructor(
/** The number of items to fetch. Defaults to 20. */
fun limit(): Optional = Optional.ofNullable(limit)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateByExternalIdParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateByExternalIdParams.kt
index 4490bd67..bf4d41e8 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateByExternalIdParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateByExternalIdParams.kt
@@ -168,8 +168,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateParams.kt
index 51661fcc..29ca050f 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpCreateParams.kt
@@ -168,8 +168,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteByExternalIdParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteByExternalIdParams.kt
index 308b299e..049eb857 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteByExternalIdParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteByExternalIdParams.kt
@@ -29,10 +29,13 @@ private constructor(
fun topUpId(): Optional = Optional.ofNullable(topUpId)
+ /** Additional body properties to send with the request. */
fun _additionalBodyProperties(): Map = additionalBodyProperties
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteParams.kt
index e6206cab..0fd71b2a 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpDeleteParams.kt
@@ -29,10 +29,13 @@ private constructor(
fun topUpId(): Optional = Optional.ofNullable(topUpId)
+ /** Additional body properties to send with the request. */
fun _additionalBodyProperties(): Map = additionalBodyProperties
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdPage.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdPage.kt
index e04da8ac..e22c6e32 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdPage.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdPage.kt
@@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
-/** @see [TopUpService.listByExternalId] */
+/** @see TopUpService.listByExternalId */
class CustomerCreditTopUpListByExternalIdPage
private constructor(
private val service: TopUpService,
@@ -22,7 +22,7 @@ private constructor(
* Delegates to [CustomerCreditTopUpListByExternalIdPageResponse], but gracefully handles
* missing data.
*
- * @see [CustomerCreditTopUpListByExternalIdPageResponse.data]
+ * @see CustomerCreditTopUpListByExternalIdPageResponse.data
*/
fun data(): List =
response._data().getOptional("data").getOrNull() ?: emptyList()
@@ -31,7 +31,7 @@ private constructor(
* Delegates to [CustomerCreditTopUpListByExternalIdPageResponse], but gracefully handles
* missing data.
*
- * @see [CustomerCreditTopUpListByExternalIdPageResponse.paginationMetadata]
+ * @see CustomerCreditTopUpListByExternalIdPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdPageAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdPageAsync.kt
index 1dab7a90..bcc25def 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdPageAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdPageAsync.kt
@@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
-/** @see [TopUpServiceAsync.listByExternalId] */
+/** @see TopUpServiceAsync.listByExternalId */
class CustomerCreditTopUpListByExternalIdPageAsync
private constructor(
private val service: TopUpServiceAsync,
@@ -25,7 +25,7 @@ private constructor(
* Delegates to [CustomerCreditTopUpListByExternalIdPageResponse], but gracefully handles
* missing data.
*
- * @see [CustomerCreditTopUpListByExternalIdPageResponse.data]
+ * @see CustomerCreditTopUpListByExternalIdPageResponse.data
*/
fun data(): List =
response._data().getOptional("data").getOrNull() ?: emptyList()
@@ -34,7 +34,7 @@ private constructor(
* Delegates to [CustomerCreditTopUpListByExternalIdPageResponse], but gracefully handles
* missing data.
*
- * @see [CustomerCreditTopUpListByExternalIdPageResponse.paginationMetadata]
+ * @see CustomerCreditTopUpListByExternalIdPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdParams.kt
index 47a51cd1..63e03539 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListByExternalIdParams.kt
@@ -30,8 +30,10 @@ private constructor(
/** The number of items to fetch. Defaults to 20. */
fun limit(): Optional = Optional.ofNullable(limit)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListPage.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListPage.kt
index c2b5d7d3..9255d0bb 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListPage.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListPage.kt
@@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
-/** @see [TopUpService.list] */
+/** @see TopUpService.list */
class CustomerCreditTopUpListPage
private constructor(
private val service: TopUpService,
@@ -21,7 +21,7 @@ private constructor(
/**
* Delegates to [CustomerCreditTopUpListPageResponse], but gracefully handles missing data.
*
- * @see [CustomerCreditTopUpListPageResponse.data]
+ * @see CustomerCreditTopUpListPageResponse.data
*/
fun data(): List =
response._data().getOptional("data").getOrNull() ?: emptyList()
@@ -29,7 +29,7 @@ private constructor(
/**
* Delegates to [CustomerCreditTopUpListPageResponse], but gracefully handles missing data.
*
- * @see [CustomerCreditTopUpListPageResponse.paginationMetadata]
+ * @see CustomerCreditTopUpListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListPageAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListPageAsync.kt
index fe8e76c4..cc11835e 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListPageAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListPageAsync.kt
@@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
-/** @see [TopUpServiceAsync.list] */
+/** @see TopUpServiceAsync.list */
class CustomerCreditTopUpListPageAsync
private constructor(
private val service: TopUpServiceAsync,
@@ -24,7 +24,7 @@ private constructor(
/**
* Delegates to [CustomerCreditTopUpListPageResponse], but gracefully handles missing data.
*
- * @see [CustomerCreditTopUpListPageResponse.data]
+ * @see CustomerCreditTopUpListPageResponse.data
*/
fun data(): List =
response._data().getOptional("data").getOrNull() ?: emptyList()
@@ -32,7 +32,7 @@ private constructor(
/**
* Delegates to [CustomerCreditTopUpListPageResponse], but gracefully handles missing data.
*
- * @see [CustomerCreditTopUpListPageResponse.paginationMetadata]
+ * @see CustomerCreditTopUpListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListParams.kt
index 4ab5d0aa..1e497cf8 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCreditTopUpListParams.kt
@@ -30,8 +30,10 @@ private constructor(
/** The number of items to fetch. Defaults to 20. */
fun limit(): Optional = Optional.ofNullable(limit)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerDeleteParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerDeleteParams.kt
index fb006a57..47617e22 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerDeleteParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerDeleteParams.kt
@@ -33,10 +33,13 @@ private constructor(
fun customerId(): Optional = Optional.ofNullable(customerId)
+ /** Additional body properties to send with the request. */
fun _additionalBodyProperties(): Map = additionalBodyProperties
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerFetchByExternalIdParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerFetchByExternalIdParams.kt
index c1a0a7cc..f29330af 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerFetchByExternalIdParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerFetchByExternalIdParams.kt
@@ -25,8 +25,10 @@ private constructor(
fun externalCustomerId(): Optional = Optional.ofNullable(externalCustomerId)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerFetchParams.kt
index 5e196bf8..79139103 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerFetchParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerFetchParams.kt
@@ -24,8 +24,10 @@ private constructor(
fun customerId(): Optional = Optional.ofNullable(customerId)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerListPage.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerListPage.kt
index ec69b465..07c35cf0 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerListPage.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerListPage.kt
@@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
-/** @see [CustomerService.list] */
+/** @see CustomerService.list */
class CustomerListPage
private constructor(
private val service: CustomerService,
@@ -21,14 +21,14 @@ private constructor(
/**
* Delegates to [CustomerListPageResponse], but gracefully handles missing data.
*
- * @see [CustomerListPageResponse.data]
+ * @see CustomerListPageResponse.data
*/
fun data(): List = response._data().getOptional("data").getOrNull() ?: emptyList()
/**
* Delegates to [CustomerListPageResponse], but gracefully handles missing data.
*
- * @see [CustomerListPageResponse.paginationMetadata]
+ * @see CustomerListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerListPageAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerListPageAsync.kt
index ab314321..4508ba61 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerListPageAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerListPageAsync.kt
@@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
-/** @see [CustomerServiceAsync.list] */
+/** @see CustomerServiceAsync.list */
class CustomerListPageAsync
private constructor(
private val service: CustomerServiceAsync,
@@ -24,14 +24,14 @@ private constructor(
/**
* Delegates to [CustomerListPageResponse], but gracefully handles missing data.
*
- * @see [CustomerListPageResponse.data]
+ * @see CustomerListPageResponse.data
*/
fun data(): List = response._data().getOptional("data").getOrNull() ?: emptyList()
/**
* Delegates to [CustomerListPageResponse], but gracefully handles missing data.
*
- * @see [CustomerListPageResponse.paginationMetadata]
+ * @see CustomerListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerListParams.kt
index 192c5a00..847e1cea 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerListParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerListParams.kt
@@ -47,8 +47,10 @@ private constructor(
/** The number of items to fetch. Defaults to 20. */
fun limit(): Optional = Optional.ofNullable(limit)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerSyncPaymentMethodsFromGatewayByExternalCustomerIdParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerSyncPaymentMethodsFromGatewayByExternalCustomerIdParams.kt
index 5a614592..7b761fbe 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerSyncPaymentMethodsFromGatewayByExternalCustomerIdParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerSyncPaymentMethodsFromGatewayByExternalCustomerIdParams.kt
@@ -29,10 +29,13 @@ private constructor(
fun externalCustomerId(): Optional = Optional.ofNullable(externalCustomerId)
+ /** Additional body properties to send with the request. */
fun _additionalBodyProperties(): Map = additionalBodyProperties
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerSyncPaymentMethodsFromGatewayParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerSyncPaymentMethodsFromGatewayParams.kt
index 12acc9c6..3a012ac9 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerSyncPaymentMethodsFromGatewayParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerSyncPaymentMethodsFromGatewayParams.kt
@@ -29,10 +29,13 @@ private constructor(
fun customerId(): Optional = Optional.ofNullable(customerId)
+ /** Additional body properties to send with the request. */
fun _additionalBodyProperties(): Map = additionalBodyProperties
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerUpdateByExternalIdParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerUpdateByExternalIdParams.kt
index 7111b06d..2552796c 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerUpdateByExternalIdParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerUpdateByExternalIdParams.kt
@@ -103,8 +103,10 @@ private constructor(
fun emailDelivery(): Optional = body.emailDelivery()
/**
- * The external customer ID. This can only be set if empty and the customer has no past or
- * current subscriptions.
+ * The external customer ID. This can only be set if the customer has no existing external
+ * customer ID. Since this action may change usage quantities for all existing subscriptions, it
+ * is disallowed if the customer has issued invoices with usage line items and subject to the
+ * same restrictions as backdated subscription creation.
*
* @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if the server
* responded with an unexpected value).
@@ -417,8 +419,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
@@ -630,8 +634,10 @@ private constructor(
}
/**
- * The external customer ID. This can only be set if empty and the customer has no past or
- * current subscriptions.
+ * The external customer ID. This can only be set if the customer has no existing external
+ * customer ID. Since this action may change usage quantities for all existing
+ * subscriptions, it is disallowed if the customer has issued invoices with usage line items
+ * and subject to the same restrictions as backdated subscription creation.
*/
fun externalCustomerId(externalCustomerId: String?) = apply {
body.externalCustomerId(externalCustomerId)
@@ -1282,8 +1288,10 @@ private constructor(
fun emailDelivery(): Optional = emailDelivery.getOptional("email_delivery")
/**
- * The external customer ID. This can only be set if empty and the customer has no past or
- * current subscriptions.
+ * The external customer ID. This can only be set if the customer has no existing external
+ * customer ID. Since this action may change usage quantities for all existing
+ * subscriptions, it is disallowed if the customer has issued invoices with usage line items
+ * and subject to the same restrictions as backdated subscription creation.
*
* @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
@@ -1857,8 +1865,10 @@ private constructor(
}
/**
- * The external customer ID. This can only be set if empty and the customer has no past
- * or current subscriptions.
+ * The external customer ID. This can only be set if the customer has no existing
+ * external customer ID. Since this action may change usage quantities for all existing
+ * subscriptions, it is disallowed if the customer has issued invoices with usage line
+ * items and subject to the same restrictions as backdated subscription creation.
*/
fun externalCustomerId(externalCustomerId: String?) =
externalCustomerId(JsonField.ofNullable(externalCustomerId))
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerUpdateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerUpdateParams.kt
index 1a576df9..00713032 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerUpdateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerUpdateParams.kt
@@ -104,8 +104,10 @@ private constructor(
fun emailDelivery(): Optional = body.emailDelivery()
/**
- * The external customer ID. This can only be set if empty and the customer has no past or
- * current subscriptions.
+ * The external customer ID. This can only be set if the customer has no existing external
+ * customer ID. Since this action may change usage quantities for all existing subscriptions, it
+ * is disallowed if the customer has issued invoices with usage line items and subject to the
+ * same restrictions as backdated subscription creation.
*
* @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if the server
* responded with an unexpected value).
@@ -418,8 +420,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
@@ -626,8 +630,10 @@ private constructor(
}
/**
- * The external customer ID. This can only be set if empty and the customer has no past or
- * current subscriptions.
+ * The external customer ID. This can only be set if the customer has no existing external
+ * customer ID. Since this action may change usage quantities for all existing
+ * subscriptions, it is disallowed if the customer has issued invoices with usage line items
+ * and subject to the same restrictions as backdated subscription creation.
*/
fun externalCustomerId(externalCustomerId: String?) = apply {
body.externalCustomerId(externalCustomerId)
@@ -1278,8 +1284,10 @@ private constructor(
fun emailDelivery(): Optional = emailDelivery.getOptional("email_delivery")
/**
- * The external customer ID. This can only be set if empty and the customer has no past or
- * current subscriptions.
+ * The external customer ID. This can only be set if the customer has no existing external
+ * customer ID. Since this action may change usage quantities for all existing
+ * subscriptions, it is disallowed if the customer has issued invoices with usage line items
+ * and subject to the same restrictions as backdated subscription creation.
*
* @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
@@ -1853,8 +1861,10 @@ private constructor(
}
/**
- * The external customer ID. This can only be set if empty and the customer has no past
- * or current subscriptions.
+ * The external customer ID. This can only be set if the customer has no existing
+ * external customer ID. Since this action may change usage quantities for all existing
+ * subscriptions, it is disallowed if the customer has issued invoices with usage line
+ * items and subject to the same restrictions as backdated subscription creation.
*/
fun externalCustomerId(externalCustomerId: String?) =
externalCustomerId(JsonField.ofNullable(externalCustomerId))
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupCreateParams.kt
index fa6db9b7..a0c99817 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupCreateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupCreateParams.kt
@@ -114,8 +114,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupExternalDimensionalPriceGroupIdRetrieveParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupExternalDimensionalPriceGroupIdRetrieveParams.kt
index 81584e94..451164f1 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupExternalDimensionalPriceGroupIdRetrieveParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupExternalDimensionalPriceGroupIdRetrieveParams.kt
@@ -20,8 +20,10 @@ private constructor(
fun externalDimensionalPriceGroupId(): Optional =
Optional.ofNullable(externalDimensionalPriceGroupId)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupListPage.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupListPage.kt
index 899015d7..f3ceadd4 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupListPage.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupListPage.kt
@@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
-/** @see [DimensionalPriceGroupService.list] */
+/** @see DimensionalPriceGroupService.list */
class DimensionalPriceGroupListPage
private constructor(
private val service: DimensionalPriceGroupService,
@@ -21,7 +21,7 @@ private constructor(
/**
* Delegates to [DimensionalPriceGroups], but gracefully handles missing data.
*
- * @see [DimensionalPriceGroups.data]
+ * @see DimensionalPriceGroups.data
*/
fun data(): List =
response._data().getOptional("data").getOrNull() ?: emptyList()
@@ -29,7 +29,7 @@ private constructor(
/**
* Delegates to [DimensionalPriceGroups], but gracefully handles missing data.
*
- * @see [DimensionalPriceGroups.paginationMetadata]
+ * @see DimensionalPriceGroups.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupListPageAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupListPageAsync.kt
index 4575dde4..73f4c4aa 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupListPageAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupListPageAsync.kt
@@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
-/** @see [DimensionalPriceGroupServiceAsync.list] */
+/** @see DimensionalPriceGroupServiceAsync.list */
class DimensionalPriceGroupListPageAsync
private constructor(
private val service: DimensionalPriceGroupServiceAsync,
@@ -24,7 +24,7 @@ private constructor(
/**
* Delegates to [DimensionalPriceGroups], but gracefully handles missing data.
*
- * @see [DimensionalPriceGroups.data]
+ * @see DimensionalPriceGroups.data
*/
fun data(): List =
response._data().getOptional("data").getOrNull() ?: emptyList()
@@ -32,7 +32,7 @@ private constructor(
/**
* Delegates to [DimensionalPriceGroups], but gracefully handles missing data.
*
- * @see [DimensionalPriceGroups.paginationMetadata]
+ * @see DimensionalPriceGroups.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupListParams.kt
index d4c6bd5f..bcb35fef 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupListParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupListParams.kt
@@ -27,8 +27,10 @@ private constructor(
/** The number of items to fetch. Defaults to 20. */
fun limit(): Optional = Optional.ofNullable(limit)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupRetrieveParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupRetrieveParams.kt
index 9e5cfe97..778cddb3 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupRetrieveParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/DimensionalPriceGroupRetrieveParams.kt
@@ -19,8 +19,10 @@ private constructor(
fun dimensionalPriceGroupId(): Optional = Optional.ofNullable(dimensionalPriceGroupId)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCloseParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCloseParams.kt
index 65c4381d..ec9abb5e 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCloseParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCloseParams.kt
@@ -26,10 +26,13 @@ private constructor(
fun backfillId(): Optional = Optional.ofNullable(backfillId)
+ /** Additional body properties to send with the request. */
fun _additionalBodyProperties(): Map = additionalBodyProperties
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCreateParams.kt
index 277df7ed..5ec44a67 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCreateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillCreateParams.kt
@@ -178,8 +178,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillFetchParams.kt
index 51ce1789..fd1c48f8 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillFetchParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillFetchParams.kt
@@ -19,8 +19,10 @@ private constructor(
fun backfillId(): Optional = Optional.ofNullable(backfillId)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillListPage.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillListPage.kt
index 68258174..944841f1 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillListPage.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillListPage.kt
@@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
-/** @see [BackfillService.list] */
+/** @see BackfillService.list */
class EventBackfillListPage
private constructor(
private val service: BackfillService,
@@ -21,7 +21,7 @@ private constructor(
/**
* Delegates to [EventBackfillListPageResponse], but gracefully handles missing data.
*
- * @see [EventBackfillListPageResponse.data]
+ * @see EventBackfillListPageResponse.data
*/
fun data(): List =
response._data().getOptional("data").getOrNull() ?: emptyList()
@@ -29,7 +29,7 @@ private constructor(
/**
* Delegates to [EventBackfillListPageResponse], but gracefully handles missing data.
*
- * @see [EventBackfillListPageResponse.paginationMetadata]
+ * @see EventBackfillListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillListPageAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillListPageAsync.kt
index c2175ff8..40c53ac9 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillListPageAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillListPageAsync.kt
@@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
-/** @see [BackfillServiceAsync.list] */
+/** @see BackfillServiceAsync.list */
class EventBackfillListPageAsync
private constructor(
private val service: BackfillServiceAsync,
@@ -24,7 +24,7 @@ private constructor(
/**
* Delegates to [EventBackfillListPageResponse], but gracefully handles missing data.
*
- * @see [EventBackfillListPageResponse.data]
+ * @see EventBackfillListPageResponse.data
*/
fun data(): List =
response._data().getOptional("data").getOrNull() ?: emptyList()
@@ -32,7 +32,7 @@ private constructor(
/**
* Delegates to [EventBackfillListPageResponse], but gracefully handles missing data.
*
- * @see [EventBackfillListPageResponse.paginationMetadata]
+ * @see EventBackfillListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillListParams.kt
index a1cd76dd..efcab38d 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillListParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillListParams.kt
@@ -34,8 +34,10 @@ private constructor(
/** The number of items to fetch. Defaults to 20. */
fun limit(): Optional = Optional.ofNullable(limit)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillRevertParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillRevertParams.kt
index 6eb57fe2..83d71404 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillRevertParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventBackfillRevertParams.kt
@@ -29,10 +29,13 @@ private constructor(
fun backfillId(): Optional = Optional.ofNullable(backfillId)
+ /** Additional body properties to send with the request. */
fun _additionalBodyProperties(): Map = additionalBodyProperties
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventDeprecateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventDeprecateParams.kt
index 5b8d9e4f..71000c9a 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventDeprecateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventDeprecateParams.kt
@@ -55,10 +55,13 @@ private constructor(
fun eventId(): Optional = Optional.ofNullable(eventId)
+ /** Additional body properties to send with the request. */
fun _additionalBodyProperties(): Map = additionalBodyProperties
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventIngestParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventIngestParams.kt
index 030c94a0..5bf62698 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventIngestParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventIngestParams.kt
@@ -244,8 +244,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventSearchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventSearchParams.kt
index bfaf3576..4b4c226f 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventSearchParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventSearchParams.kt
@@ -95,8 +95,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventUpdateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventUpdateParams.kt
index a9ded4f2..4c800b3f 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventUpdateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventUpdateParams.kt
@@ -152,8 +152,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventVolumeListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventVolumeListParams.kt
index a0a2772d..c7fdad16 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/EventVolumeListParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/EventVolumeListParams.kt
@@ -59,8 +59,10 @@ private constructor(
*/
fun timeframeEnd(): Optional = Optional.ofNullable(timeframeEnd)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceCreateParams.kt
index 7c7120dc..a59c40c2 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceCreateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceCreateParams.kt
@@ -192,8 +192,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchParams.kt
index 88d3083a..3b839361 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchParams.kt
@@ -19,8 +19,10 @@ private constructor(
fun invoiceId(): Optional = Optional.ofNullable(invoiceId)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchUpcomingParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchUpcomingParams.kt
index 00d04ea4..0d483cf4 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchUpcomingParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceFetchUpcomingParams.kt
@@ -21,8 +21,10 @@ private constructor(
fun subscriptionId(): String = subscriptionId
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceIssueParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceIssueParams.kt
index 5bbf2121..51b3e671 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceIssueParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceIssueParams.kt
@@ -56,8 +56,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceLineItemCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceLineItemCreateParams.kt
index 36fde3c8..e457db5e 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceLineItemCreateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceLineItemCreateParams.kt
@@ -123,8 +123,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceListPage.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceListPage.kt
index 3eb2ae02..5c65a905 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceListPage.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceListPage.kt
@@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
-/** @see [InvoiceService.list] */
+/** @see InvoiceService.list */
class InvoiceListPage
private constructor(
private val service: InvoiceService,
@@ -21,14 +21,14 @@ private constructor(
/**
* Delegates to [InvoiceListPageResponse], but gracefully handles missing data.
*
- * @see [InvoiceListPageResponse.data]
+ * @see InvoiceListPageResponse.data
*/
fun data(): List = response._data().getOptional("data").getOrNull() ?: emptyList()
/**
* Delegates to [InvoiceListPageResponse], but gracefully handles missing data.
*
- * @see [InvoiceListPageResponse.paginationMetadata]
+ * @see InvoiceListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceListPageAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceListPageAsync.kt
index 495115c3..2cab73fd 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceListPageAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceListPageAsync.kt
@@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
-/** @see [InvoiceServiceAsync.list] */
+/** @see InvoiceServiceAsync.list */
class InvoiceListPageAsync
private constructor(
private val service: InvoiceServiceAsync,
@@ -24,14 +24,14 @@ private constructor(
/**
* Delegates to [InvoiceListPageResponse], but gracefully handles missing data.
*
- * @see [InvoiceListPageResponse.data]
+ * @see InvoiceListPageResponse.data
*/
fun data(): List = response._data().getOptional("data").getOrNull() ?: emptyList()
/**
* Delegates to [InvoiceListPageResponse], but gracefully handles missing data.
*
- * @see [InvoiceListPageResponse.paginationMetadata]
+ * @see InvoiceListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceListParams.kt
index 646aa71a..f4c69d4c 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceListParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceListParams.kt
@@ -104,8 +104,10 @@ private constructor(
fun subscriptionId(): Optional = Optional.ofNullable(subscriptionId)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceMarkPaidParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceMarkPaidParams.kt
index aa7500b7..05013332 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceMarkPaidParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceMarkPaidParams.kt
@@ -83,8 +83,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoicePayParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoicePayParams.kt
index 1328a2ff..32a64ad3 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoicePayParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoicePayParams.kt
@@ -25,10 +25,13 @@ private constructor(
fun invoiceId(): Optional = Optional.ofNullable(invoiceId)
+ /** Additional body properties to send with the request. */
fun _additionalBodyProperties(): Map = additionalBodyProperties
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceUpdateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceUpdateParams.kt
index 7ec4c10d..ffa9bd2a 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceUpdateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceUpdateParams.kt
@@ -21,10 +21,12 @@ import java.util.Optional
import kotlin.jvm.optionals.getOrNull
/**
- * This endpoint allows you to update the `metadata` property on an invoice. If you pass null for
- * the metadata value, it will clear any existing metadata for that invoice.
+ * This endpoint allows you to update the `metadata`, `net_terms`, and `due_date` properties on an
+ * invoice. If you pass null for the metadata value, it will clear any existing metadata for that
+ * invoice.
*
- * `metadata` can be modified regardless of invoice state.
+ * `metadata` can be modified regardless of invoice state. `net_terms` and `due_date` can only be
+ * modified if the invoice is in a `draft` state.
*/
class InvoiceUpdateParams
private constructor(
@@ -55,8 +57,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceVoidInvoiceParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceVoidInvoiceParams.kt
index 3ce745b2..18ffb169 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceVoidInvoiceParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/InvoiceVoidInvoiceParams.kt
@@ -32,10 +32,13 @@ private constructor(
fun invoiceId(): Optional = Optional.ofNullable(invoiceId)
+ /** Additional body properties to send with the request. */
fun _additionalBodyProperties(): Map = additionalBodyProperties
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemArchiveParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemArchiveParams.kt
index d2ba5f2c..b5f68505 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemArchiveParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemArchiveParams.kt
@@ -22,10 +22,13 @@ private constructor(
fun itemId(): Optional = Optional.ofNullable(itemId)
+ /** Additional body properties to send with the request. */
fun _additionalBodyProperties(): Map = additionalBodyProperties
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemCreateParams.kt
index 5fd677aa..32fb9ce2 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemCreateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemCreateParams.kt
@@ -63,8 +63,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemFetchParams.kt
index 2576c3bf..b67ff20b 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemFetchParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemFetchParams.kt
@@ -19,8 +19,10 @@ private constructor(
fun itemId(): Optional = Optional.ofNullable(itemId)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemListPage.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemListPage.kt
index 4a725205..6dc4e27e 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemListPage.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemListPage.kt
@@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
-/** @see [ItemService.list] */
+/** @see ItemService.list */
class ItemListPage
private constructor(
private val service: ItemService,
@@ -21,14 +21,14 @@ private constructor(
/**
* Delegates to [ItemListPageResponse], but gracefully handles missing data.
*
- * @see [ItemListPageResponse.data]
+ * @see ItemListPageResponse.data
*/
fun data(): List- = response._data().getOptional("data").getOrNull() ?: emptyList()
/**
* Delegates to [ItemListPageResponse], but gracefully handles missing data.
*
- * @see [ItemListPageResponse.paginationMetadata]
+ * @see ItemListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemListPageAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemListPageAsync.kt
index 89d544c9..d594a9a9 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemListPageAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemListPageAsync.kt
@@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
-/** @see [ItemServiceAsync.list] */
+/** @see ItemServiceAsync.list */
class ItemListPageAsync
private constructor(
private val service: ItemServiceAsync,
@@ -24,14 +24,14 @@ private constructor(
/**
* Delegates to [ItemListPageResponse], but gracefully handles missing data.
*
- * @see [ItemListPageResponse.data]
+ * @see ItemListPageResponse.data
*/
fun data(): List
- = response._data().getOptional("data").getOrNull() ?: emptyList()
/**
* Delegates to [ItemListPageResponse], but gracefully handles missing data.
*
- * @see [ItemListPageResponse.paginationMetadata]
+ * @see ItemListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemListParams.kt
index cdd5d184..c3b13ef5 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemListParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemListParams.kt
@@ -27,8 +27,10 @@ private constructor(
/** The number of items to fetch. Defaults to 20. */
fun limit(): Optional = Optional.ofNullable(limit)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemUpdateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemUpdateParams.kt
index b99bc428..2692e27e 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemUpdateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/ItemUpdateParams.kt
@@ -80,8 +80,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricCreateParams.kt
index 31a3e740..01265434 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricCreateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricCreateParams.kt
@@ -112,8 +112,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricFetchParams.kt
index 91f6de6b..770ee4bd 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricFetchParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricFetchParams.kt
@@ -22,8 +22,10 @@ private constructor(
fun metricId(): Optional = Optional.ofNullable(metricId)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricListPage.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricListPage.kt
index 5c32106c..55a2e386 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricListPage.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricListPage.kt
@@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
-/** @see [MetricService.list] */
+/** @see MetricService.list */
class MetricListPage
private constructor(
private val service: MetricService,
@@ -21,7 +21,7 @@ private constructor(
/**
* Delegates to [MetricListPageResponse], but gracefully handles missing data.
*
- * @see [MetricListPageResponse.data]
+ * @see MetricListPageResponse.data
*/
fun data(): List =
response._data().getOptional("data").getOrNull() ?: emptyList()
@@ -29,7 +29,7 @@ private constructor(
/**
* Delegates to [MetricListPageResponse], but gracefully handles missing data.
*
- * @see [MetricListPageResponse.paginationMetadata]
+ * @see MetricListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricListPageAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricListPageAsync.kt
index 78d94132..d1c38139 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricListPageAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricListPageAsync.kt
@@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
-/** @see [MetricServiceAsync.list] */
+/** @see MetricServiceAsync.list */
class MetricListPageAsync
private constructor(
private val service: MetricServiceAsync,
@@ -24,7 +24,7 @@ private constructor(
/**
* Delegates to [MetricListPageResponse], but gracefully handles missing data.
*
- * @see [MetricListPageResponse.data]
+ * @see MetricListPageResponse.data
*/
fun data(): List =
response._data().getOptional("data").getOrNull() ?: emptyList()
@@ -32,7 +32,7 @@ private constructor(
/**
* Delegates to [MetricListPageResponse], but gracefully handles missing data.
*
- * @see [MetricListPageResponse.paginationMetadata]
+ * @see MetricListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricListParams.kt
index 9f95368b..ee91e370 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricListParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricListParams.kt
@@ -44,8 +44,10 @@ private constructor(
/** The number of items to fetch. Defaults to 20. */
fun limit(): Optional = Optional.ofNullable(limit)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricUpdateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricUpdateParams.kt
index 83328fbf..a67dfd41 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricUpdateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/MetricUpdateParams.kt
@@ -53,8 +53,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanCreateParams.kt
index 2fc09d4c..c53835e9 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanCreateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanCreateParams.kt
@@ -197,8 +197,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanExternalPlanIdFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanExternalPlanIdFetchParams.kt
index 1c3d068d..7753b01f 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanExternalPlanIdFetchParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanExternalPlanIdFetchParams.kt
@@ -34,8 +34,10 @@ private constructor(
fun externalPlanId(): Optional = Optional.ofNullable(externalPlanId)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanExternalPlanIdUpdateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanExternalPlanIdUpdateParams.kt
index 8ea0327d..a1201471 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanExternalPlanIdUpdateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanExternalPlanIdUpdateParams.kt
@@ -70,8 +70,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanFetchParams.kt
index a6427bb0..63e61d0d 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanFetchParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanFetchParams.kt
@@ -35,8 +35,10 @@ private constructor(
fun planId(): Optional = Optional.ofNullable(planId)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanListPage.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanListPage.kt
index c2506318..8e959d1a 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanListPage.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanListPage.kt
@@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
-/** @see [PlanService.list] */
+/** @see PlanService.list */
class PlanListPage
private constructor(
private val service: PlanService,
@@ -21,14 +21,14 @@ private constructor(
/**
* Delegates to [PlanListPageResponse], but gracefully handles missing data.
*
- * @see [PlanListPageResponse.data]
+ * @see PlanListPageResponse.data
*/
fun data(): List = response._data().getOptional("data").getOrNull() ?: emptyList()
/**
* Delegates to [PlanListPageResponse], but gracefully handles missing data.
*
- * @see [PlanListPageResponse.paginationMetadata]
+ * @see PlanListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanListPageAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanListPageAsync.kt
index 7cb079f9..c305e49f 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanListPageAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanListPageAsync.kt
@@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
-/** @see [PlanServiceAsync.list] */
+/** @see PlanServiceAsync.list */
class PlanListPageAsync
private constructor(
private val service: PlanServiceAsync,
@@ -24,14 +24,14 @@ private constructor(
/**
* Delegates to [PlanListPageResponse], but gracefully handles missing data.
*
- * @see [PlanListPageResponse.data]
+ * @see PlanListPageResponse.data
*/
fun data(): List = response._data().getOptional("data").getOrNull() ?: emptyList()
/**
* Delegates to [PlanListPageResponse], but gracefully handles missing data.
*
- * @see [PlanListPageResponse.paginationMetadata]
+ * @see PlanListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanListParams.kt
index 25dc0e92..8237f23f 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanListParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanListParams.kt
@@ -54,8 +54,10 @@ private constructor(
/** The plan status to filter to ('active', 'archived', or 'draft'). */
fun status(): Optional = Optional.ofNullable(status)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanUpdateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanUpdateParams.kt
index 4273fb25..278aaf96 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanUpdateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PlanUpdateParams.kt
@@ -70,8 +70,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceCreateParams.kt
index 7ef9b435..e783f8dc 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceCreateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceCreateParams.kt
@@ -43,8 +43,10 @@ private constructor(
fun body(): Body = body
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceEvaluateMultipleParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceEvaluateMultipleParams.kt
index b23e41fd..e6ea9024 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceEvaluateMultipleParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceEvaluateMultipleParams.kt
@@ -145,8 +145,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceEvaluateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceEvaluateParams.kt
index 4534f4ef..e22c2a78 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceEvaluateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceEvaluateParams.kt
@@ -150,8 +150,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceEvaluatePreviewEventsParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceEvaluatePreviewEventsParams.kt
index 8dc49855..425a39c4 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceEvaluatePreviewEventsParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceEvaluatePreviewEventsParams.kt
@@ -151,8 +151,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceExternalPriceIdFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceExternalPriceIdFetchParams.kt
index bdbe1002..8eaf6741 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceExternalPriceIdFetchParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceExternalPriceIdFetchParams.kt
@@ -23,8 +23,10 @@ private constructor(
fun externalPriceId(): Optional = Optional.ofNullable(externalPriceId)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceExternalPriceIdUpdateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceExternalPriceIdUpdateParams.kt
index 9775d92b..98211957 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceExternalPriceIdUpdateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceExternalPriceIdUpdateParams.kt
@@ -53,8 +53,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceFetchParams.kt
index 9f4831e6..90a4c0db 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceFetchParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceFetchParams.kt
@@ -19,8 +19,10 @@ private constructor(
fun priceId(): Optional = Optional.ofNullable(priceId)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceListPage.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceListPage.kt
index 852625a9..e364ec84 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceListPage.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceListPage.kt
@@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
-/** @see [PriceService.list] */
+/** @see PriceService.list */
class PriceListPage
private constructor(
private val service: PriceService,
@@ -21,14 +21,14 @@ private constructor(
/**
* Delegates to [PriceListPageResponse], but gracefully handles missing data.
*
- * @see [PriceListPageResponse.data]
+ * @see PriceListPageResponse.data
*/
fun data(): List = response._data().getOptional("data").getOrNull() ?: emptyList()
/**
* Delegates to [PriceListPageResponse], but gracefully handles missing data.
*
- * @see [PriceListPageResponse.paginationMetadata]
+ * @see PriceListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceListPageAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceListPageAsync.kt
index 7d5b880e..16f0bb3a 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceListPageAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceListPageAsync.kt
@@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
-/** @see [PriceServiceAsync.list] */
+/** @see PriceServiceAsync.list */
class PriceListPageAsync
private constructor(
private val service: PriceServiceAsync,
@@ -24,14 +24,14 @@ private constructor(
/**
* Delegates to [PriceListPageResponse], but gracefully handles missing data.
*
- * @see [PriceListPageResponse.data]
+ * @see PriceListPageResponse.data
*/
fun data(): List = response._data().getOptional("data").getOrNull() ?: emptyList()
/**
* Delegates to [PriceListPageResponse], but gracefully handles missing data.
*
- * @see [PriceListPageResponse.paginationMetadata]
+ * @see PriceListPageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceListParams.kt
index acb672e1..6bf5acc1 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceListParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceListParams.kt
@@ -30,8 +30,10 @@ private constructor(
/** The number of items to fetch. Defaults to 20. */
fun limit(): Optional = Optional.ofNullable(limit)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceUpdateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceUpdateParams.kt
index 96660b94..0abcc249 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceUpdateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/PriceUpdateParams.kt
@@ -53,8 +53,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCancelParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCancelParams.kt
index ccc31668..807e108b 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCancelParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCancelParams.kt
@@ -135,8 +135,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionChangeApplyParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionChangeApplyParams.kt
index 554f3ac5..60e08f8d 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionChangeApplyParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionChangeApplyParams.kt
@@ -67,8 +67,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionChangeCancelParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionChangeCancelParams.kt
index d5b2dc6a..ed360c5d 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionChangeCancelParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionChangeCancelParams.kt
@@ -26,10 +26,13 @@ private constructor(
fun subscriptionChangeId(): Optional = Optional.ofNullable(subscriptionChangeId)
+ /** Additional body properties to send with the request. */
fun _additionalBodyProperties(): Map = additionalBodyProperties
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionChangeRetrieveParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionChangeRetrieveParams.kt
index ec3ab846..46d0066e 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionChangeRetrieveParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionChangeRetrieveParams.kt
@@ -27,8 +27,10 @@ private constructor(
fun subscriptionChangeId(): Optional = Optional.ofNullable(subscriptionChangeId)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCreateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCreateParams.kt
index 80b61e11..f9c19fa4 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCreateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionCreateParams.kt
@@ -806,8 +806,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchCostsParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchCostsParams.kt
index 9c2c087c..390c1717 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchCostsParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchCostsParams.kt
@@ -39,7 +39,7 @@ private constructor(
fun subscriptionId(): Optional = Optional.ofNullable(subscriptionId)
- /** The currency to use. */
+ /** The currency or custom pricing unit to use. */
fun currency(): Optional = Optional.ofNullable(currency)
/** Costs returned are exclusive of `timeframe_end`. */
@@ -55,8 +55,10 @@ private constructor(
*/
fun viewMode(): Optional = Optional.ofNullable(viewMode)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
@@ -99,7 +101,7 @@ private constructor(
fun subscriptionId(subscriptionId: Optional) =
subscriptionId(subscriptionId.getOrNull())
- /** The currency to use. */
+ /** The currency or custom pricing unit to use. */
fun currency(currency: String?) = apply { this.currency = currency }
/** Alias for calling [Builder.currency] with `currency.orElse(null)`. */
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchParams.kt
index f107bdd6..e1795704 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchParams.kt
@@ -22,8 +22,10 @@ private constructor(
fun subscriptionId(): Optional = Optional.ofNullable(subscriptionId)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchSchedulePage.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchSchedulePage.kt
index c8263072..a89ad92b 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchSchedulePage.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchSchedulePage.kt
@@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
-/** @see [SubscriptionService.fetchSchedule] */
+/** @see SubscriptionService.fetchSchedule */
class SubscriptionFetchSchedulePage
private constructor(
private val service: SubscriptionService,
@@ -21,7 +21,7 @@ private constructor(
/**
* Delegates to [SubscriptionFetchSchedulePageResponse], but gracefully handles missing data.
*
- * @see [SubscriptionFetchSchedulePageResponse.data]
+ * @see SubscriptionFetchSchedulePageResponse.data
*/
fun data(): List =
response._data().getOptional("data").getOrNull() ?: emptyList()
@@ -29,7 +29,7 @@ private constructor(
/**
* Delegates to [SubscriptionFetchSchedulePageResponse], but gracefully handles missing data.
*
- * @see [SubscriptionFetchSchedulePageResponse.paginationMetadata]
+ * @see SubscriptionFetchSchedulePageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchSchedulePageAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchSchedulePageAsync.kt
index 524dd761..97f7efc3 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchSchedulePageAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchSchedulePageAsync.kt
@@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
-/** @see [SubscriptionServiceAsync.fetchSchedule] */
+/** @see SubscriptionServiceAsync.fetchSchedule */
class SubscriptionFetchSchedulePageAsync
private constructor(
private val service: SubscriptionServiceAsync,
@@ -24,7 +24,7 @@ private constructor(
/**
* Delegates to [SubscriptionFetchSchedulePageResponse], but gracefully handles missing data.
*
- * @see [SubscriptionFetchSchedulePageResponse.data]
+ * @see SubscriptionFetchSchedulePageResponse.data
*/
fun data(): List =
response._data().getOptional("data").getOrNull() ?: emptyList()
@@ -32,7 +32,7 @@ private constructor(
/**
* Delegates to [SubscriptionFetchSchedulePageResponse], but gracefully handles missing data.
*
- * @see [SubscriptionFetchSchedulePageResponse.paginationMetadata]
+ * @see SubscriptionFetchSchedulePageResponse.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchScheduleParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchScheduleParams.kt
index 159f4d53..ac89bdd3 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchScheduleParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchScheduleParams.kt
@@ -48,8 +48,10 @@ private constructor(
fun startDateLte(): Optional = Optional.ofNullable(startDateLte)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchUsageParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchUsageParams.kt
index 531312c3..6c9218f3 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchUsageParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionFetchUsageParams.kt
@@ -244,8 +244,10 @@ private constructor(
*/
fun viewMode(): Optional = Optional.ofNullable(viewMode)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionListPage.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionListPage.kt
index bcef627c..8619ff64 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionListPage.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionListPage.kt
@@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
-/** @see [SubscriptionService.list] */
+/** @see SubscriptionService.list */
class SubscriptionListPage
private constructor(
private val service: SubscriptionService,
@@ -21,14 +21,14 @@ private constructor(
/**
* Delegates to [Subscriptions], but gracefully handles missing data.
*
- * @see [Subscriptions.data]
+ * @see Subscriptions.data
*/
fun data(): List = response._data().getOptional("data").getOrNull() ?: emptyList()
/**
* Delegates to [Subscriptions], but gracefully handles missing data.
*
- * @see [Subscriptions.paginationMetadata]
+ * @see Subscriptions.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionListPageAsync.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionListPageAsync.kt
index 394c5cb7..13d6d2ab 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionListPageAsync.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionListPageAsync.kt
@@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
-/** @see [SubscriptionServiceAsync.list] */
+/** @see SubscriptionServiceAsync.list */
class SubscriptionListPageAsync
private constructor(
private val service: SubscriptionServiceAsync,
@@ -24,14 +24,14 @@ private constructor(
/**
* Delegates to [Subscriptions], but gracefully handles missing data.
*
- * @see [Subscriptions.data]
+ * @see Subscriptions.data
*/
fun data(): List = response._data().getOptional("data").getOrNull() ?: emptyList()
/**
* Delegates to [Subscriptions], but gracefully handles missing data.
*
- * @see [Subscriptions.paginationMetadata]
+ * @see Subscriptions.paginationMetadata
*/
fun paginationMetadata(): Optional =
response._paginationMetadata().getOptional("pagination_metadata")
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionListParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionListParams.kt
index 740d0492..d6b3e6a0 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionListParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionListParams.kt
@@ -64,8 +64,10 @@ private constructor(
fun status(): Optional = Optional.ofNullable(status)
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
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 5620881b..952b32f0 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
@@ -189,8 +189,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionRedeemCouponParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionRedeemCouponParams.kt
index a99894b7..ded1d5e2 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionRedeemCouponParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionRedeemCouponParams.kt
@@ -113,8 +113,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionSchedulePlanChangeParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionSchedulePlanChangeParams.kt
index 8013f485..64a19335 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionSchedulePlanChangeParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionSchedulePlanChangeParams.kt
@@ -638,8 +638,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionTriggerPhaseParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionTriggerPhaseParams.kt
index c92bb563..aed15fa6 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionTriggerPhaseParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionTriggerPhaseParams.kt
@@ -67,8 +67,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleCancellationParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleCancellationParams.kt
index 12927d89..a244c329 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleCancellationParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleCancellationParams.kt
@@ -28,10 +28,13 @@ private constructor(
fun subscriptionId(): Optional = Optional.ofNullable(subscriptionId)
+ /** Additional body properties to send with the request. */
fun _additionalBodyProperties(): Map = additionalBodyProperties
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleFixedFeeQuantityUpdatesParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleFixedFeeQuantityUpdatesParams.kt
index b04fb950..5a18ebce 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleFixedFeeQuantityUpdatesParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnscheduleFixedFeeQuantityUpdatesParams.kt
@@ -53,8 +53,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnschedulePendingPlanChangesParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnschedulePendingPlanChangesParams.kt
index e508ba7e..2267916a 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnschedulePendingPlanChangesParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUnschedulePendingPlanChangesParams.kt
@@ -25,10 +25,13 @@ private constructor(
fun subscriptionId(): Optional = Optional.ofNullable(subscriptionId)
+ /** Additional body properties to send with the request. */
fun _additionalBodyProperties(): Map = additionalBodyProperties
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateFixedFeeQuantityParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateFixedFeeQuantityParams.kt
index 5733fcba..73546d52 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateFixedFeeQuantityParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateFixedFeeQuantityParams.kt
@@ -128,8 +128,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateParams.kt
index 42c2c1ce..4ad99b3b 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateParams.kt
@@ -121,8 +121,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateTrialParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateTrialParams.kt
index 783c38f9..7a0c8216 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateTrialParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionUpdateTrialParams.kt
@@ -95,8 +95,10 @@ private constructor(
fun _additionalBodyProperties(): Map = body._additionalProperties()
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
diff --git a/orb-java-core/src/main/kotlin/com/withorb/api/models/TopLevelPingParams.kt b/orb-java-core/src/main/kotlin/com/withorb/api/models/TopLevelPingParams.kt
index 4d1671d0..c638578f 100644
--- a/orb-java-core/src/main/kotlin/com/withorb/api/models/TopLevelPingParams.kt
+++ b/orb-java-core/src/main/kotlin/com/withorb/api/models/TopLevelPingParams.kt
@@ -20,8 +20,10 @@ private constructor(
private val additionalQueryParams: QueryParams,
) : Params {
+ /** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
+ /** Additional query param to send with the request. */
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun toBuilder() = Builder().from(this)
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 8ecb6c3a..d9b821ac 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
@@ -36,7 +36,7 @@ interface AlertServiceAsync {
fun retrieve(alertId: String): CompletableFuture =
retrieve(alertId, AlertRetrieveParams.none())
- /** @see [retrieve] */
+ /** @see retrieve */
fun retrieve(
alertId: String,
params: AlertRetrieveParams = AlertRetrieveParams.none(),
@@ -44,23 +44,23 @@ interface AlertServiceAsync {
): CompletableFuture =
retrieve(params.toBuilder().alertId(alertId).build(), requestOptions)
- /** @see [retrieve] */
+ /** @see retrieve */
fun retrieve(
alertId: String,
params: AlertRetrieveParams = AlertRetrieveParams.none(),
): CompletableFuture = retrieve(alertId, params, RequestOptions.none())
- /** @see [retrieve] */
+ /** @see retrieve */
fun retrieve(
params: AlertRetrieveParams,
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
- /** @see [retrieve] */
+ /** @see retrieve */
fun retrieve(params: AlertRetrieveParams): CompletableFuture =
retrieve(params, RequestOptions.none())
- /** @see [retrieve] */
+ /** @see retrieve */
fun retrieve(alertId: String, requestOptions: RequestOptions): CompletableFuture =
retrieve(alertId, AlertRetrieveParams.none(), requestOptions)
@@ -68,7 +68,7 @@ interface AlertServiceAsync {
fun update(alertConfigurationId: String, params: AlertUpdateParams): CompletableFuture =
update(alertConfigurationId, params, RequestOptions.none())
- /** @see [update] */
+ /** @see update */
fun update(
alertConfigurationId: String,
params: AlertUpdateParams,
@@ -79,11 +79,11 @@ interface AlertServiceAsync {
requestOptions,
)
- /** @see [update] */
+ /** @see update */
fun update(params: AlertUpdateParams): CompletableFuture =
update(params, RequestOptions.none())
- /** @see [update] */
+ /** @see update */
fun update(
params: AlertUpdateParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -102,18 +102,18 @@ interface AlertServiceAsync {
*/
fun list(): CompletableFuture = list(AlertListParams.none())
- /** @see [list] */
+ /** @see list */
fun list(
params: AlertListParams = AlertListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
- /** @see [list] */
+ /** @see list */
fun list(
params: AlertListParams = AlertListParams.none()
): CompletableFuture = list(params, RequestOptions.none())
- /** @see [list] */
+ /** @see list */
fun list(requestOptions: RequestOptions): CompletableFuture =
list(AlertListParams.none(), requestOptions)
@@ -130,7 +130,7 @@ interface AlertServiceAsync {
params: AlertCreateForCustomerParams,
): CompletableFuture = createForCustomer(customerId, params, RequestOptions.none())
- /** @see [createForCustomer] */
+ /** @see createForCustomer */
fun createForCustomer(
customerId: String,
params: AlertCreateForCustomerParams,
@@ -138,11 +138,11 @@ interface AlertServiceAsync {
): CompletableFuture =
createForCustomer(params.toBuilder().customerId(customerId).build(), requestOptions)
- /** @see [createForCustomer] */
+ /** @see createForCustomer */
fun createForCustomer(params: AlertCreateForCustomerParams): CompletableFuture =
createForCustomer(params, RequestOptions.none())
- /** @see [createForCustomer] */
+ /** @see createForCustomer */
fun createForCustomer(
params: AlertCreateForCustomerParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -162,7 +162,7 @@ interface AlertServiceAsync {
): CompletableFuture =
createForExternalCustomer(externalCustomerId, params, RequestOptions.none())
- /** @see [createForExternalCustomer] */
+ /** @see createForExternalCustomer */
fun createForExternalCustomer(
externalCustomerId: String,
params: AlertCreateForExternalCustomerParams,
@@ -173,12 +173,12 @@ interface AlertServiceAsync {
requestOptions,
)
- /** @see [createForExternalCustomer] */
+ /** @see createForExternalCustomer */
fun createForExternalCustomer(
params: AlertCreateForExternalCustomerParams
): CompletableFuture = createForExternalCustomer(params, RequestOptions.none())
- /** @see [createForExternalCustomer] */
+ /** @see createForExternalCustomer */
fun createForExternalCustomer(
params: AlertCreateForExternalCustomerParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -202,7 +202,7 @@ interface AlertServiceAsync {
): CompletableFuture =
createForSubscription(subscriptionId, params, RequestOptions.none())
- /** @see [createForSubscription] */
+ /** @see createForSubscription */
fun createForSubscription(
subscriptionId: String,
params: AlertCreateForSubscriptionParams,
@@ -213,11 +213,11 @@ interface AlertServiceAsync {
requestOptions,
)
- /** @see [createForSubscription] */
+ /** @see createForSubscription */
fun createForSubscription(params: AlertCreateForSubscriptionParams): CompletableFuture