Skip to content

Commit 551092c

Browse files
authored
feat(api): regenerate SDK from latest OpenAPI spec (1.101.0)
Automated SDK regeneration from 1.101.0 OpenAPI spec (run 26744530336; re-sealed).
2 parents 1ee17a4 + ed9d2bc commit 551092c

28 files changed

Lines changed: 4010 additions & 87 deletions

CHANGELOG.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
# Changelog
22

3-
## [1.99.2](https://github.com/dodopayments/dodopayments-java/compare/v1.99.1...v1.99.2) (2026-06-01)
4-
5-
6-
### Features
7-
8-
* **api:** regenerate SDK from latest OpenAPI spec ([518320b](https://github.com/dodopayments/dodopayments-java/commit/518320baf180693c55f9e72aaaf77b0da0063b52))
9-
10-
11-
### Chores
12-
13-
* release 1.99.2 ([59dfe89](https://github.com/dodopayments/dodopayments-java/commit/59dfe8956d7f159eb4e3ddb2f2d14935e31364fb))
14-
153
## 1.99.1 (2026-05-21)
164

175
Full Changelog: [v1.99.0...v1.99.1](https://github.com/dodopayments/dodopayments-java/compare/v1.99.0...v1.99.1)

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.99.2)
6-
[![javadoc](https://javadoc.io/badge2/com.dodopayments.api/dodo-payments-java/1.99.2/javadoc.svg)](https://javadoc.io/doc/com.dodopayments.api/dodo-payments-java/1.99.1)
6+
[![javadoc](https://javadoc.io/badge2/com.dodopayments.api/dodo-payments-java/1.99.2/javadoc.svg)](https://javadoc.io/doc/com.dodopayments.api/dodo-payments-java/1.99.2)
77

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

dodo-payments-java-core/src/main/kotlin/com/dodopayments/api/models/balances/BalanceLedgerEntry.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,8 @@ private constructor(
651651

652652
@JvmField val DUNNING_FEES = of("dunning_fees")
653653

654+
@JvmField val PAYMENT_RETRY_FEE = of("payment_retry_fee")
655+
654656
@JvmStatic fun of(value: String) = EventType(JsonField.of(value))
655657
}
656658

@@ -676,6 +678,7 @@ private constructor(
676678
CURRENCY_CONVERSION,
677679
ABANDONED_CART_RECOVERY_FEE,
678680
DUNNING_FEES,
681+
PAYMENT_RETRY_FEE,
679682
}
680683

681684
/**
@@ -708,6 +711,7 @@ private constructor(
708711
CURRENCY_CONVERSION,
709712
ABANDONED_CART_RECOVERY_FEE,
710713
DUNNING_FEES,
714+
PAYMENT_RETRY_FEE,
711715
/**
712716
* An enum member indicating that [EventType] was instantiated with an unknown value.
713717
*/
@@ -743,6 +747,7 @@ private constructor(
743747
CURRENCY_CONVERSION -> Value.CURRENCY_CONVERSION
744748
ABANDONED_CART_RECOVERY_FEE -> Value.ABANDONED_CART_RECOVERY_FEE
745749
DUNNING_FEES -> Value.DUNNING_FEES
750+
PAYMENT_RETRY_FEE -> Value.PAYMENT_RETRY_FEE
746751
else -> Value._UNKNOWN
747752
}
748753

@@ -777,6 +782,7 @@ private constructor(
777782
CURRENCY_CONVERSION -> Known.CURRENCY_CONVERSION
778783
ABANDONED_CART_RECOVERY_FEE -> Known.ABANDONED_CART_RECOVERY_FEE
779784
DUNNING_FEES -> Known.DUNNING_FEES
785+
PAYMENT_RETRY_FEE -> Known.PAYMENT_RETRY_FEE
780786
else -> throw DodoPaymentsInvalidDataException("Unknown EventType: $value")
781787
}
782788

dodo-payments-java-core/src/main/kotlin/com/dodopayments/api/models/balances/BalanceRetrieveLedgerParams.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,6 +1362,8 @@ private constructor(
13621362

13631363
@JvmField val DUNNING_FEES = of("dunning_fees")
13641364

1365+
@JvmField val PAYMENT_RETRY_FEE = of("payment_retry_fee")
1366+
13651367
@JvmStatic fun of(value: String) = EventType(JsonField.of(value))
13661368
}
13671369

@@ -1387,6 +1389,7 @@ private constructor(
13871389
CURRENCY_CONVERSION,
13881390
ABANDONED_CART_RECOVERY_FEE,
13891391
DUNNING_FEES,
1392+
PAYMENT_RETRY_FEE,
13901393
}
13911394

13921395
/**
@@ -1419,6 +1422,7 @@ private constructor(
14191422
CURRENCY_CONVERSION,
14201423
ABANDONED_CART_RECOVERY_FEE,
14211424
DUNNING_FEES,
1425+
PAYMENT_RETRY_FEE,
14221426
/**
14231427
* An enum member indicating that [EventType] was instantiated with an unknown value.
14241428
*/
@@ -1454,6 +1458,7 @@ private constructor(
14541458
CURRENCY_CONVERSION -> Value.CURRENCY_CONVERSION
14551459
ABANDONED_CART_RECOVERY_FEE -> Value.ABANDONED_CART_RECOVERY_FEE
14561460
DUNNING_FEES -> Value.DUNNING_FEES
1461+
PAYMENT_RETRY_FEE -> Value.PAYMENT_RETRY_FEE
14571462
else -> Value._UNKNOWN
14581463
}
14591464

@@ -1488,6 +1493,7 @@ private constructor(
14881493
CURRENCY_CONVERSION -> Known.CURRENCY_CONVERSION
14891494
ABANDONED_CART_RECOVERY_FEE -> Known.ABANDONED_CART_RECOVERY_FEE
14901495
DUNNING_FEES -> Known.DUNNING_FEES
1496+
PAYMENT_RETRY_FEE -> Known.PAYMENT_RETRY_FEE
14911497
else -> throw DodoPaymentsInvalidDataException("Unknown EventType: $value")
14921498
}
14931499

dodo-payments-java-core/src/main/kotlin/com/dodopayments/api/models/discounts/Discount.kt

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ private constructor(
8989
)
9090

9191
/**
92-
* The discount amount.
93-
* - If `discount_type` is `percentage`, this is in **basis points** (e.g., 540 => 5.4%).
94-
* - Otherwise, this is **USD cents** (e.g., 100 => `$1.00`).
92+
* The discount amount in **basis points** (e.g., 540 => 5.4%).
9593
*
9694
* @throws DodoPaymentsInvalidDataException if the JSON field has an unexpected type or is
9795
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
@@ -163,7 +161,7 @@ private constructor(
163161
fun timesUsed(): Int = timesUsed.getRequired("times_used")
164162

165163
/**
166-
* The type of discount, e.g. `percentage`, `flat`, or `flat_per_unit`.
164+
* The type of discount. Currently only `percentage` is supported.
167165
*
168166
* @throws DodoPaymentsInvalidDataException if the JSON field has an unexpected type or is
169167
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
@@ -385,11 +383,7 @@ private constructor(
385383
additionalProperties = discount.additionalProperties.toMutableMap()
386384
}
387385

388-
/**
389-
* The discount amount.
390-
* - If `discount_type` is `percentage`, this is in **basis points** (e.g., 540 => 5.4%).
391-
* - Otherwise, this is **USD cents** (e.g., 100 => `$1.00`).
392-
*/
386+
/** The discount amount in **basis points** (e.g., 540 => 5.4%). */
393387
fun amount(amount: Int) = amount(JsonField.of(amount))
394388

395389
/**
@@ -513,7 +507,7 @@ private constructor(
513507
*/
514508
fun timesUsed(timesUsed: JsonField<Int>) = apply { this.timesUsed = timesUsed }
515509

516-
/** The type of discount, e.g. `percentage`, `flat`, or `flat_per_unit`. */
510+
/** The type of discount. Currently only `percentage` is supported. */
517511
fun type(type: DiscountType) = type(JsonField.of(type))
518512

519513
/**

dodo-payments-java-core/src/main/kotlin/com/dodopayments/api/models/discounts/DiscountCreateParams.kt

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ private constructor(
3232
) : Params {
3333

3434
/**
35-
* The discount amount.
36-
* - If `discount_type` is **not** `percentage`, `amount` is in **USD cents**. For example,
37-
* `100` means `$1.00`. Only USD is allowed.
38-
* - If `discount_type` **is** `percentage`, `amount` is in **basis points**. For example, `540`
39-
* means `5.4%`.
35+
* The discount amount in **basis points** (e.g. `540` means `5.4%`, `10000` means `100%`).
4036
*
4137
* Must be at least 1.
4238
*
@@ -46,7 +42,7 @@ private constructor(
4642
fun amount(): Int = body.amount()
4743

4844
/**
49-
* The discount type (e.g. `percentage`, `flat`, or `flat_per_unit`).
45+
* The discount type. Currently only `percentage` is supported.
5046
*
5147
* @throws DodoPaymentsInvalidDataException if the JSON field has an unexpected type or is
5248
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
@@ -244,11 +240,7 @@ private constructor(
244240
fun body(body: Body) = apply { this.body = body.toBuilder() }
245241

246242
/**
247-
* The discount amount.
248-
* - If `discount_type` is **not** `percentage`, `amount` is in **USD cents**. For example,
249-
* `100` means `$1.00`. Only USD is allowed.
250-
* - If `discount_type` **is** `percentage`, `amount` is in **basis points**. For example,
251-
* `540` means `5.4%`.
243+
* The discount amount in **basis points** (e.g. `540` means `5.4%`, `10000` means `100%`).
252244
*
253245
* Must be at least 1.
254246
*/
@@ -262,7 +254,7 @@ private constructor(
262254
*/
263255
fun amount(amount: JsonField<Int>) = apply { body.amount(amount) }
264256

265-
/** The discount type (e.g. `percentage`, `flat`, or `flat_per_unit`). */
257+
/** The discount type. Currently only `percentage` is supported. */
266258
fun type(type: DiscountType) = apply { body.type(type) }
267259

268260
/**
@@ -635,11 +627,7 @@ private constructor(
635627
)
636628

637629
/**
638-
* The discount amount.
639-
* - If `discount_type` is **not** `percentage`, `amount` is in **USD cents**. For example,
640-
* `100` means `$1.00`. Only USD is allowed.
641-
* - If `discount_type` **is** `percentage`, `amount` is in **basis points**. For example,
642-
* `540` means `5.4%`.
630+
* The discount amount in **basis points** (e.g. `540` means `5.4%`, `10000` means `100%`).
643631
*
644632
* Must be at least 1.
645633
*
@@ -649,7 +637,7 @@ private constructor(
649637
fun amount(): Int = amount.getRequired("amount")
650638

651639
/**
652-
* The discount type (e.g. `percentage`, `flat`, or `flat_per_unit`).
640+
* The discount type. Currently only `percentage` is supported.
653641
*
654642
* @throws DodoPaymentsInvalidDataException if the JSON field has an unexpected type or is
655643
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
@@ -863,11 +851,8 @@ private constructor(
863851
}
864852

865853
/**
866-
* The discount amount.
867-
* - If `discount_type` is **not** `percentage`, `amount` is in **USD cents**. For
868-
* example, `100` means `$1.00`. Only USD is allowed.
869-
* - If `discount_type` **is** `percentage`, `amount` is in **basis points**. For
870-
* example, `540` means `5.4%`.
854+
* The discount amount in **basis points** (e.g. `540` means `5.4%`, `10000` means
855+
* `100%`).
871856
*
872857
* Must be at least 1.
873858
*/
@@ -882,7 +867,7 @@ private constructor(
882867
*/
883868
fun amount(amount: JsonField<Int>) = apply { this.amount = amount }
884869

885-
/** The discount type (e.g. `percentage`, `flat`, or `flat_per_unit`). */
870+
/** The discount type. Currently only `percentage` is supported. */
886871
fun type(type: DiscountType) = type(JsonField.of(type))
887872

888873
/**

dodo-payments-java-core/src/main/kotlin/com/dodopayments/api/models/discounts/DiscountDetail.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private constructor(
101101
)
102102

103103
/**
104-
* The discount amount (basis points for percentage, USD cents for flat)
104+
* The discount amount in **basis points** (e.g., 540 => 5.4%).
105105
*
106106
* @throws DodoPaymentsInvalidDataException if the JSON field has an unexpected type or is
107107
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
@@ -432,7 +432,7 @@ private constructor(
432432
additionalProperties = discountDetail.additionalProperties.toMutableMap()
433433
}
434434

435-
/** The discount amount (basis points for percentage, USD cents for flat) */
435+
/** The discount amount in **basis points** (e.g., 540 => 5.4%). */
436436
fun amount(amount: Int) = amount(JsonField.of(amount))
437437

438438
/**

dodo-payments-java-core/src/main/kotlin/com/dodopayments/api/models/discounts/DiscountListParams.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ private constructor(
2828
/** Filter by discount code (partial match, case-insensitive) */
2929
fun code(): Optional<String> = Optional.ofNullable(code)
3030

31-
/** Filter by discount type (percentage) */
31+
/** Filter by discount type */
3232
fun discountType(): Optional<DiscountType> = Optional.ofNullable(discountType)
3333

3434
/** Page number (default = 0). */
@@ -99,7 +99,7 @@ private constructor(
9999
/** Alias for calling [Builder.code] with `code.orElse(null)`. */
100100
fun code(code: Optional<String>) = code(code.getOrNull())
101101

102-
/** Filter by discount type (percentage) */
102+
/** Filter by discount type */
103103
fun discountType(discountType: DiscountType?) = apply { this.discountType = discountType }
104104

105105
/** Alias for calling [Builder.discountType] with `discountType.orElse(null)`. */

dodo-payments-java-core/src/main/kotlin/com/dodopayments/api/models/discounts/DiscountUpdateParams.kt

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ private constructor(
3434
fun discountId(): Optional<String> = Optional.ofNullable(discountId)
3535

3636
/**
37-
* If present, update the discount amount:
38-
* - If `discount_type` is `percentage`, this represents **basis points** (e.g., `540` =
39-
* `5.4%`).
40-
* - Otherwise, this represents **USD cents** (e.g., `100` = `$1.00`).
37+
* If present, update the discount amount in **basis points** (e.g., `540` = `5.4%`, `10000` =
38+
* `100%`).
4139
*
4240
* Must be at least 1 if provided.
4341
*
@@ -102,7 +100,7 @@ private constructor(
102100
fun subscriptionCycles(): Optional<Int> = body.subscriptionCycles()
103101

104102
/**
105-
* If present, update the discount type.
103+
* If present, update the discount type. Currently only `percentage` is supported.
106104
*
107105
* @throws DodoPaymentsInvalidDataException if the JSON field has an unexpected type (e.g. if
108106
* the server responded with an unexpected value).
@@ -241,10 +239,8 @@ private constructor(
241239
fun body(body: Body) = apply { this.body = body.toBuilder() }
242240

243241
/**
244-
* If present, update the discount amount:
245-
* - If `discount_type` is `percentage`, this represents **basis points** (e.g., `540` =
246-
* `5.4%`).
247-
* - Otherwise, this represents **USD cents** (e.g., `100` = `$1.00`).
242+
* If present, update the discount amount in **basis points** (e.g., `540` = `5.4%`, `10000`
243+
* = `100%`).
248244
*
249245
* Must be at least 1 if provided.
250246
*/
@@ -420,7 +416,7 @@ private constructor(
420416
body.subscriptionCycles(subscriptionCycles)
421417
}
422418

423-
/** If present, update the discount type. */
419+
/** If present, update the discount type. Currently only `percentage` is supported. */
424420
fun type(type: DiscountType?) = apply { body.type(type) }
425421

426422
/** Alias for calling [Builder.type] with `type.orElse(null)`. */
@@ -658,10 +654,8 @@ private constructor(
658654
)
659655

660656
/**
661-
* If present, update the discount amount:
662-
* - If `discount_type` is `percentage`, this represents **basis points** (e.g., `540` =
663-
* `5.4%`).
664-
* - Otherwise, this represents **USD cents** (e.g., `100` = `$1.00`).
657+
* If present, update the discount amount in **basis points** (e.g., `540` = `5.4%`, `10000`
658+
* = `100%`).
665659
*
666660
* Must be at least 1 if provided.
667661
*
@@ -729,7 +723,7 @@ private constructor(
729723
subscriptionCycles.getOptional("subscription_cycles")
730724

731725
/**
732-
* If present, update the discount type.
726+
* If present, update the discount type. Currently only `percentage` is supported.
733727
*
734728
* @throws DodoPaymentsInvalidDataException if the JSON field has an unexpected type (e.g.
735729
* if the server responded with an unexpected value).
@@ -872,10 +866,8 @@ private constructor(
872866
}
873867

874868
/**
875-
* If present, update the discount amount:
876-
* - If `discount_type` is `percentage`, this represents **basis points** (e.g., `540` =
877-
* `5.4%`).
878-
* - Otherwise, this represents **USD cents** (e.g., `100` = `$1.00`).
869+
* If present, update the discount amount in **basis points** (e.g., `540` = `5.4%`,
870+
* `10000` = `100%`).
879871
*
880872
* Must be at least 1 if provided.
881873
*/
@@ -1061,7 +1053,7 @@ private constructor(
10611053
this.subscriptionCycles = subscriptionCycles
10621054
}
10631055

1064-
/** If present, update the discount type. */
1056+
/** If present, update the discount type. Currently only `percentage` is supported. */
10651057
fun type(type: DiscountType?) = type(JsonField.ofNullable(type))
10661058

10671059
/** Alias for calling [Builder.type] with `type.orElse(null)`. */

0 commit comments

Comments
 (0)