Skip to content

Commit 9c322d9

Browse files
authored
Merge pull request #133 from dodopayments/stlc-generated-28798952023
feat(api): add subscription period override fields to subscription update Spec 1.105.23 -> 1.106.0. PatchSubscriptionRequest gains two optional fields (subscription_period_count, subscription_period_interval) on the subscription update endpoint; PatchAddonRequest image_id doc clarified. Purely additive (no removed/required fields) -> minor. The spec's added OPTIONS/docs routes and the doc-only connectors webhook are unconfigured and skipped by generation.
2 parents 175d349 + def4bcb commit 9c322d9

7 files changed

Lines changed: 253 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- x-release-please-start-version -->
44

55
[![Maven Central](https://img.shields.io/maven-central/v/com.dodopayments.api/dodo-payments-java)](https://central.sonatype.com/artifact/com.dodopayments.api/dodo-payments-java/1.107.0)
6-
[![javadoc](https://javadoc.io/badge2/com.dodopayments.api/dodo-payments-java/1.107.0/javadoc.svg)](https://javadoc.io/doc/com.dodopayments.api/dodo-payments-java/1.106.1)
6+
[![javadoc](https://javadoc.io/badge2/com.dodopayments.api/dodo-payments-java/1.107.0/javadoc.svg)](https://javadoc.io/doc/com.dodopayments.api/dodo-payments-java/1.107.0)
77

88
<!-- x-release-please-end -->
99

dodo-payments-java-core/src/main/kotlin/com/dodopayments/api/models/addons/AddonUpdateParams.kt

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ private constructor(
4848
fun description(): Optional<String> = body.description()
4949

5050
/**
51-
* Addon image id after its uploaded to S3
51+
* Addon image id after its uploaded to S3. Pass `null` to remove the existing image, omit to
52+
* keep it unchanged.
5253
*
5354
* @throws DodoPaymentsInvalidDataException if the JSON field has an unexpected type (e.g. if
5455
* the server responded with an unexpected value).
@@ -204,7 +205,10 @@ private constructor(
204205
*/
205206
fun description(description: JsonField<String>) = apply { body.description(description) }
206207

207-
/** Addon image id after its uploaded to S3 */
208+
/**
209+
* Addon image id after its uploaded to S3. Pass `null` to remove the existing image, omit
210+
* to keep it unchanged.
211+
*/
208212
fun imageId(imageId: String?) = apply { body.imageId(imageId) }
209213

210214
/** Alias for calling [Builder.imageId] with `imageId.orElse(null)`. */
@@ -458,7 +462,8 @@ private constructor(
458462
fun description(): Optional<String> = description.getOptional("description")
459463

460464
/**
461-
* Addon image id after its uploaded to S3
465+
* Addon image id after its uploaded to S3. Pass `null` to remove the existing image, omit
466+
* to keep it unchanged.
462467
*
463468
* @throws DodoPaymentsInvalidDataException if the JSON field has an unexpected type (e.g.
464469
* if the server responded with an unexpected value).
@@ -607,7 +612,10 @@ private constructor(
607612
this.description = description
608613
}
609614

610-
/** Addon image id after its uploaded to S3 */
615+
/**
616+
* Addon image id after its uploaded to S3. Pass `null` to remove the existing image,
617+
* omit to keep it unchanged.
618+
*/
611619
fun imageId(imageId: String?) = imageId(JsonField.ofNullable(imageId))
612620

613621
/** Alias for calling [Builder.imageId] with `imageId.orElse(null)`. */

0 commit comments

Comments
 (0)