@@ -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