From 89c2adfea8bbeaa608b6b3a0eac851c6adab224c Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Wed, 23 Sep 2020 11:02:15 -0700 Subject: [PATCH] Codegen for openapi 0bba048 --- src/main/java/com/stripe/model/Balance.java | 4 + .../java/com/stripe/model/CreditNote.java | 18 ++--- .../com/stripe/model/CreditNoteLineItem.java | 9 +-- .../java/com/stripe/model/InvoiceItem.java | 2 +- .../java/com/stripe/model/Subscription.java | 15 +++- .../stripe/param/CreditNoteCreateParams.java | 52 ++++++------- .../stripe/param/CreditNotePreviewParams.java | 52 ++++++------- .../stripe/param/InvoiceItemCreateParams.java | 39 +++++----- .../stripe/param/InvoiceItemUpdateParams.java | 47 ++++++------ .../stripe/param/InvoiceUpcomingParams.java | 44 +++++------ .../com/stripe/param/PlanCreateParams.java | 8 +- .../com/stripe/param/PriceCreateParams.java | 16 ++-- .../param/SubscriptionCreateParams.java | 50 ++++++++----- .../param/SubscriptionItemCreateParams.java | 10 +-- .../param/SubscriptionItemUpdateParams.java | 15 ++-- .../SubscriptionScheduleCreateParams.java | 20 ++--- .../SubscriptionScheduleUpdateParams.java | 30 +++----- .../param/SubscriptionUpdateParams.java | 75 +++++++++++-------- .../param/WebhookEndpointCreateParams.java | 6 ++ .../param/WebhookEndpointUpdateParams.java | 6 ++ .../param/checkout/SessionCreateParams.java | 16 ++-- 21 files changed, 265 insertions(+), 269 deletions(-) diff --git a/src/main/java/com/stripe/model/Balance.java b/src/main/java/com/stripe/model/Balance.java index 2d1db4a23b5..2a5d50622f0 100644 --- a/src/main/java/com/stripe/model/Balance.java +++ b/src/main/java/com/stripe/model/Balance.java @@ -33,6 +33,10 @@ public class Balance extends ApiResource { @SerializedName("connect_reserved") List connectReserved; + /** Funds that can be paid out using Instant Payouts. */ + @SerializedName("instant_available") + List instantAvailable; + @SerializedName("issuing") Details issuing; diff --git a/src/main/java/com/stripe/model/CreditNote.java b/src/main/java/com/stripe/model/CreditNote.java index f2419d7538e..183468805ec 100644 --- a/src/main/java/com/stripe/model/CreditNote.java +++ b/src/main/java/com/stripe/model/CreditNote.java @@ -22,10 +22,7 @@ @Setter @EqualsAndHashCode(callSuper = false) public class CreditNote extends ApiResource implements HasId, MetadataStore { - /** - * The integer amount in %s representing the total amount of the credit note, - * including tax. - */ + /** The integer amount in %s representing the total amount of the credit note, including tax. */ @SerializedName("amount") Long amount; @@ -52,10 +49,7 @@ public class CreditNote extends ApiResource implements HasId, MetadataStore customerBalanceTransaction; - /** - * The integer amount in %s representing the total amount of discount that was - * credited. - */ + /** The integer amount in %s representing the total amount of discount that was credited. */ @SerializedName("discount_amount") Long discountAmount; @@ -142,8 +136,8 @@ public class CreditNote extends ApiResource implements HasId, MetadataStore%s representing the amount of the credit note, excluding - * tax and invoice level discounts. + * The integer amount in %s representing the amount of the credit note, excluding tax and invoice + * level discounts. */ @SerializedName("subtotal") Long subtotal; @@ -153,8 +147,8 @@ public class CreditNote extends ApiResource implements HasId, MetadataStore taxAmounts; /** - * The integer amount in %s representing the total amount of the credit note, - * including tax and all discount. + * The integer amount in %s representing the total amount of the credit note, including tax and + * all discount. */ @SerializedName("total") Long total; diff --git a/src/main/java/com/stripe/model/CreditNoteLineItem.java b/src/main/java/com/stripe/model/CreditNoteLineItem.java index eb58acab5a7..1879623625d 100644 --- a/src/main/java/com/stripe/model/CreditNoteLineItem.java +++ b/src/main/java/com/stripe/model/CreditNoteLineItem.java @@ -14,8 +14,8 @@ @EqualsAndHashCode(callSuper = false) public class CreditNoteLineItem extends StripeObject implements HasId { /** - * The integer amount in %s representing the gross amount being credited for this - * line item, excluding (exclusive) tax and discounts. + * The integer amount in %s representing the gross amount being credited for this line item, + * excluding (exclusive) tax and discounts. */ @SerializedName("amount") Long amount; @@ -24,10 +24,7 @@ public class CreditNoteLineItem extends StripeObject implements HasId { @SerializedName("description") String description; - /** - * The integer amount in %s representing the discount being credited for this - * line item. - */ + /** The integer amount in %s representing the discount being credited for this line item. */ @SerializedName("discount_amount") Long discountAmount; diff --git a/src/main/java/com/stripe/model/InvoiceItem.java b/src/main/java/com/stripe/model/InvoiceItem.java index a9da7192a4e..d93cdf56c3e 100644 --- a/src/main/java/com/stripe/model/InvoiceItem.java +++ b/src/main/java/com/stripe/model/InvoiceItem.java @@ -145,7 +145,7 @@ public class InvoiceItem extends ApiResource implements HasId, MetadataStore taxRates; - /** Unit Amount (in the {@code currency} specified) of the invoice item. */ + /** Unit amount (in the {@code currency} specified) of the invoice item. */ @SerializedName("unit_amount") Long unitAmount; diff --git a/src/main/java/com/stripe/model/Subscription.java b/src/main/java/com/stripe/model/Subscription.java index 97a18aba382..0bd51e49a7e 100644 --- a/src/main/java/com/stripe/model/Subscription.java +++ b/src/main/java/com/stripe/model/Subscription.java @@ -107,8 +107,11 @@ public class Subscription extends ApiResource implements HasId, MetadataStoreinvoice_settings.default_payment_method + * or default_source. */ @SerializedName("default_payment_method") @Getter(lombok.AccessLevel.NONE) @@ -117,8 +120,12 @@ public class Subscription extends ApiResource implements HasId, MetadataStoreinvoice_settings.default_payment_method + * or default_source. */ @SerializedName("default_source") @Getter(lombok.AccessLevel.NONE) diff --git a/src/main/java/com/stripe/param/CreditNoteCreateParams.java b/src/main/java/com/stripe/param/CreditNoteCreateParams.java index 3722c7bcbb1..5c1abb3ca9b 100644 --- a/src/main/java/com/stripe/param/CreditNoteCreateParams.java +++ b/src/main/java/com/stripe/param/CreditNoteCreateParams.java @@ -13,13 +13,13 @@ @Getter public class CreditNoteCreateParams extends ApiRequestParams { - /** The integer amount in %s representing the total amount of the credit note. */ + /** The integer amount in %s representing the total amount of the credit note. */ @SerializedName("amount") Long amount; /** - * The integer amount in %s representing the amount to credit the customer's - * balance, which will be automatically applied to their next invoice. + * The integer amount in %s representing the amount to credit the customer's balance, which will + * be automatically applied to their next invoice. */ @SerializedName("credit_amount") Long creditAmount; @@ -58,10 +58,7 @@ public class CreditNoteCreateParams extends ApiRequestParams { @SerializedName("metadata") Map metadata; - /** - * The integer amount in %s representing the amount that is credited outside of - * Stripe. - */ + /** The integer amount in %s representing the amount that is credited outside of Stripe. */ @SerializedName("out_of_band_amount") Long outOfBandAmount; @@ -77,8 +74,8 @@ public class CreditNoteCreateParams extends ApiRequestParams { String refund; /** - * The integer amount in %s representing the amount to refund. If set, a refund - * will be created for the charge associated with the invoice. + * The integer amount in %s representing the amount to refund. If set, a refund will be created + * for the charge associated with the invoice. */ @SerializedName("refund_amount") Long refundAmount; @@ -156,17 +153,15 @@ public CreditNoteCreateParams build() { this.refundAmount); } - /** - * The integer amount in %s representing the total amount of the credit note. - */ + /** The integer amount in %s representing the total amount of the credit note. */ public Builder setAmount(Long amount) { this.amount = amount; return this; } /** - * The integer amount in %s representing the amount to credit the customer's - * balance, which will be automatically applied to their next invoice. + * The integer amount in %s representing the amount to credit the customer's balance, which will + * be automatically applied to their next invoice. */ public Builder setCreditAmount(Long creditAmount) { this.creditAmount = creditAmount; @@ -289,10 +284,7 @@ public Builder putAllMetadata(Map map) { return this; } - /** - * The integer amount in %s representing the amount that is credited outside of - * Stripe. - */ + /** The integer amount in %s representing the amount that is credited outside of Stripe. */ public Builder setOutOfBandAmount(Long outOfBandAmount) { this.outOfBandAmount = outOfBandAmount; return this; @@ -314,8 +306,8 @@ public Builder setRefund(String refund) { } /** - * The integer amount in %s representing the amount to refund. If set, a refund - * will be created for the charge associated with the invoice. + * The integer amount in %s representing the amount to refund. If set, a refund will be created + * for the charge associated with the invoice. */ public Builder setRefundAmount(Long refundAmount) { this.refundAmount = refundAmount; @@ -374,16 +366,16 @@ public static class Line { Type type; /** - * The integer unit amount in %s of the credit note line item. This {@code - * unit_amount} will be multiplied by the quantity to get the full amount to credit for this - * line item. Only valid when {@code type} is {@code custom_line_item}. + * The integer unit amount in %s of the credit note line item. This {@code unit_amount} will be + * multiplied by the quantity to get the full amount to credit for this line item. Only valid + * when {@code type} is {@code custom_line_item}. */ @SerializedName("unit_amount") Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. Only - * one of {@code unit_amount} and {@code unit_amount_decimal} can be set. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") BigDecimal unitAmountDecimal; @@ -561,9 +553,9 @@ public Builder setType(Type type) { } /** - * The integer unit amount in %s of the credit note line item. This {@code - * unit_amount} will be multiplied by the quantity to get the full amount to credit for this - * line item. Only valid when {@code type} is {@code custom_line_item}. + * The integer unit amount in %s of the credit note line item. This {@code unit_amount} will + * be multiplied by the quantity to get the full amount to credit for this line item. Only + * valid when {@code type} is {@code custom_line_item}. */ public Builder setUnitAmount(Long unitAmount) { this.unitAmount = unitAmount; @@ -571,8 +563,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; diff --git a/src/main/java/com/stripe/param/CreditNotePreviewParams.java b/src/main/java/com/stripe/param/CreditNotePreviewParams.java index ec6e45e9d31..682dc7523a6 100644 --- a/src/main/java/com/stripe/param/CreditNotePreviewParams.java +++ b/src/main/java/com/stripe/param/CreditNotePreviewParams.java @@ -13,13 +13,13 @@ @Getter public class CreditNotePreviewParams extends ApiRequestParams { - /** The integer amount in %s representing the total amount of the credit note. */ + /** The integer amount in %s representing the total amount of the credit note. */ @SerializedName("amount") Long amount; /** - * The integer amount in %s representing the amount to credit the customer's - * balance, which will be automatically applied to their next invoice. + * The integer amount in %s representing the amount to credit the customer's balance, which will + * be automatically applied to their next invoice. */ @SerializedName("credit_amount") Long creditAmount; @@ -58,10 +58,7 @@ public class CreditNotePreviewParams extends ApiRequestParams { @SerializedName("metadata") Map metadata; - /** - * The integer amount in %s representing the amount that is credited outside of - * Stripe. - */ + /** The integer amount in %s representing the amount that is credited outside of Stripe. */ @SerializedName("out_of_band_amount") Long outOfBandAmount; @@ -77,8 +74,8 @@ public class CreditNotePreviewParams extends ApiRequestParams { String refund; /** - * The integer amount in %s representing the amount to refund. If set, a refund - * will be created for the charge associated with the invoice. + * The integer amount in %s representing the amount to refund. If set, a refund will be created + * for the charge associated with the invoice. */ @SerializedName("refund_amount") Long refundAmount; @@ -156,17 +153,15 @@ public CreditNotePreviewParams build() { this.refundAmount); } - /** - * The integer amount in %s representing the total amount of the credit note. - */ + /** The integer amount in %s representing the total amount of the credit note. */ public Builder setAmount(Long amount) { this.amount = amount; return this; } /** - * The integer amount in %s representing the amount to credit the customer's - * balance, which will be automatically applied to their next invoice. + * The integer amount in %s representing the amount to credit the customer's balance, which will + * be automatically applied to their next invoice. */ public Builder setCreditAmount(Long creditAmount) { this.creditAmount = creditAmount; @@ -289,10 +284,7 @@ public Builder putAllMetadata(Map map) { return this; } - /** - * The integer amount in %s representing the amount that is credited outside of - * Stripe. - */ + /** The integer amount in %s representing the amount that is credited outside of Stripe. */ public Builder setOutOfBandAmount(Long outOfBandAmount) { this.outOfBandAmount = outOfBandAmount; return this; @@ -314,8 +306,8 @@ public Builder setRefund(String refund) { } /** - * The integer amount in %s representing the amount to refund. If set, a refund - * will be created for the charge associated with the invoice. + * The integer amount in %s representing the amount to refund. If set, a refund will be created + * for the charge associated with the invoice. */ public Builder setRefundAmount(Long refundAmount) { this.refundAmount = refundAmount; @@ -374,16 +366,16 @@ public static class Line { Type type; /** - * The integer unit amount in %s of the credit note line item. This {@code - * unit_amount} will be multiplied by the quantity to get the full amount to credit for this - * line item. Only valid when {@code type} is {@code custom_line_item}. + * The integer unit amount in %s of the credit note line item. This {@code unit_amount} will be + * multiplied by the quantity to get the full amount to credit for this line item. Only valid + * when {@code type} is {@code custom_line_item}. */ @SerializedName("unit_amount") Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. Only - * one of {@code unit_amount} and {@code unit_amount_decimal} can be set. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") BigDecimal unitAmountDecimal; @@ -561,9 +553,9 @@ public Builder setType(Type type) { } /** - * The integer unit amount in %s of the credit note line item. This {@code - * unit_amount} will be multiplied by the quantity to get the full amount to credit for this - * line item. Only valid when {@code type} is {@code custom_line_item}. + * The integer unit amount in %s of the credit note line item. This {@code unit_amount} will + * be multiplied by the quantity to get the full amount to credit for this line item. Only + * valid when {@code type} is {@code custom_line_item}. */ public Builder setUnitAmount(Long unitAmount) { this.unitAmount = unitAmount; @@ -571,8 +563,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; diff --git a/src/main/java/com/stripe/param/InvoiceItemCreateParams.java b/src/main/java/com/stripe/param/InvoiceItemCreateParams.java index b0c17ca2eaa..e4a90f51a86 100644 --- a/src/main/java/com/stripe/param/InvoiceItemCreateParams.java +++ b/src/main/java/com/stripe/param/InvoiceItemCreateParams.java @@ -14,8 +14,8 @@ @Getter public class InvoiceItemCreateParams extends ApiRequestParams { /** - * The integer amount in %s of the charge to be applied to the upcoming invoice. - * Passing in a negative {@code amount} will reduce the {@code amount_due} on the invoice. + * The integer amount in %s of the charge to be applied to the upcoming invoice. Passing in a + * negative {@code amount} will reduce the {@code amount_due} on the invoice. */ @SerializedName("amount") Long amount; @@ -116,16 +116,16 @@ public class InvoiceItemCreateParams extends ApiRequestParams { List taxRates; /** - * The integer unit amount in %s of the charge to be applied to the upcoming - * invoice. This {@code unit_amount} will be multiplied by the quantity to get the full amount. - * Passing in a negative {@code unit_amount} will reduce the {@code amount_due} on the invoice. + * The integer unit amount in %s of the charge to be applied to the upcoming invoice. This {@code + * unit_amount} will be multiplied by the quantity to get the full amount. Passing in a negative + * {@code unit_amount} will reduce the {@code amount_due} on the invoice. */ @SerializedName("unit_amount") Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. Only - * one of {@code unit_amount} and {@code unit_amount_decimal} can be set. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal places. + * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") BigDecimal unitAmountDecimal; @@ -234,9 +234,8 @@ public InvoiceItemCreateParams build() { } /** - * The integer amount in %s of the charge to be applied to the upcoming - * invoice. Passing in a negative {@code amount} will reduce the {@code amount_due} on the - * invoice. + * The integer amount in %s of the charge to be applied to the upcoming invoice. Passing in a + * negative {@code amount} will reduce the {@code amount_due} on the invoice. */ public Builder setAmount(Long amount) { this.amount = amount; @@ -496,9 +495,9 @@ public Builder addAllTaxRate(List elements) { } /** - * The integer unit amount in %s of the charge to be applied to the upcoming - * invoice. This {@code unit_amount} will be multiplied by the quantity to get the full amount. - * Passing in a negative {@code unit_amount} will reduce the {@code amount_due} on the invoice. + * The integer unit amount in %s of the charge to be applied to the upcoming invoice. This + * {@code unit_amount} will be multiplied by the quantity to get the full amount. Passing in a + * negative {@code unit_amount} will reduce the {@code amount_due} on the invoice. */ public Builder setUnitAmount(Long unitAmount) { this.unitAmount = unitAmount; @@ -506,8 +505,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. Only - * one of {@code unit_amount} and {@code unit_amount_decimal} can be set. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; @@ -705,9 +704,8 @@ public static class PriceData { Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. Only - * one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least one is - * required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") BigDecimal unitAmountDecimal; @@ -795,9 +793,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; diff --git a/src/main/java/com/stripe/param/InvoiceItemUpdateParams.java b/src/main/java/com/stripe/param/InvoiceItemUpdateParams.java index be46e73719b..f75b6ded6c3 100644 --- a/src/main/java/com/stripe/param/InvoiceItemUpdateParams.java +++ b/src/main/java/com/stripe/param/InvoiceItemUpdateParams.java @@ -14,8 +14,8 @@ @Getter public class InvoiceItemUpdateParams extends ApiRequestParams { /** - * The integer amount in %s of the charge to be applied to the upcoming invoice. - * If you want to apply a credit to the customer's account, pass a negative amount. + * The integer amount in %s of the charge to be applied to the upcoming invoice. If you want to + * apply a credit to the customer's account, pass a negative amount. */ @SerializedName("amount") Long amount; @@ -93,16 +93,16 @@ public class InvoiceItemUpdateParams extends ApiRequestParams { Object taxRates; /** - * The integer unit amount in %s of the charge to be applied to the upcoming - * invoice. This unit_amount will be multiplied by the quantity to get the full amount. If you - * want to apply a credit to the customer's account, pass a negative unit_amount. + * The integer unit amount in %s of the charge to be applied to the upcoming invoice. This + * unit_amount will be multiplied by the quantity to get the full amount. If you want to apply a + * credit to the customer's account, pass a negative unit_amount. */ @SerializedName("unit_amount") Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. Only - * one of {@code unit_amount} and {@code unit_amount_decimal} can be set. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal places. + * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") Object unitAmountDecimal; @@ -191,8 +191,8 @@ public InvoiceItemUpdateParams build() { } /** - * The integer amount in %s of the charge to be applied to the upcoming - * invoice. If you want to apply a credit to the customer's account, pass a negative amount. + * The integer amount in %s of the charge to be applied to the upcoming invoice. If you want to + * apply a credit to the customer's account, pass a negative amount. */ public Builder setAmount(Long amount) { this.amount = amount; @@ -459,9 +459,9 @@ public Builder setTaxRates(List taxRates) { } /** - * The integer unit amount in %s of the charge to be applied to the upcoming - * invoice. This unit_amount will be multiplied by the quantity to get the full amount. If you - * want to apply a credit to the customer's account, pass a negative unit_amount. + * The integer unit amount in %s of the charge to be applied to the upcoming invoice. This + * unit_amount will be multiplied by the quantity to get the full amount. If you want to apply a + * credit to the customer's account, pass a negative unit_amount. */ public Builder setUnitAmount(Long unitAmount) { this.unitAmount = unitAmount; @@ -469,8 +469,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. Only - * one of {@code unit_amount} and {@code unit_amount_decimal} can be set. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; @@ -478,8 +478,8 @@ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. Only - * one of {@code unit_amount} and {@code unit_amount_decimal} can be set. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(EmptyParam unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; @@ -689,9 +689,8 @@ public static class PriceData { Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. Only - * one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least one is - * required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") Object unitAmountDecimal; @@ -795,9 +794,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; @@ -805,9 +803,8 @@ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(EmptyParam unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java index d7b8aa5747e..1502af43016 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java @@ -701,7 +701,7 @@ public Builder putAllExtraParam(Map map) { @Getter public static class InvoiceItem { - /** The integer amount in %s of previewed invoice item. */ + /** The integer amount in %s of previewed invoice item. */ @SerializedName("amount") Long amount; @@ -779,16 +779,16 @@ public static class InvoiceItem { Object taxRates; /** - * The integer unit amount in %s of the charge to be applied to the upcoming - * invoice. This unit_amount will be multiplied by the quantity to get the full amount. If you - * want to apply a credit to the customer's account, pass a negative unit_amount. + * The integer unit amount in %s of the charge to be applied to the upcoming invoice. This + * unit_amount will be multiplied by the quantity to get the full amount. If you want to apply a + * credit to the customer's account, pass a negative unit_amount. */ @SerializedName("unit_amount") Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal string with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") BigDecimal unitAmountDecimal; @@ -881,7 +881,7 @@ public InvoiceItem build() { this.unitAmountDecimal); } - /** The integer amount in %s of previewed invoice item. */ + /** The integer amount in %s of previewed invoice item. */ public Builder setAmount(Long amount) { this.amount = amount; return this; @@ -1106,9 +1106,9 @@ public Builder setTaxRates(List taxRates) { } /** - * The integer unit amount in %s of the charge to be applied to the upcoming - * invoice. This unit_amount will be multiplied by the quantity to get the full amount. If you - * want to apply a credit to the customer's account, pass a negative unit_amount. + * The integer unit amount in %s of the charge to be applied to the upcoming invoice. This + * unit_amount will be multiplied by the quantity to get the full amount. If you want to apply + * a credit to the customer's account, pass a negative unit_amount. */ public Builder setUnitAmount(Long unitAmount) { this.unitAmount = unitAmount; @@ -1116,8 +1116,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal string with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; @@ -1319,9 +1319,8 @@ public static class PriceData { Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") BigDecimal unitAmountDecimal; @@ -1415,9 +1414,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; @@ -1865,9 +1863,8 @@ public static class PriceData { Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") BigDecimal unitAmountDecimal; @@ -1972,9 +1969,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; diff --git a/src/main/java/com/stripe/param/PlanCreateParams.java b/src/main/java/com/stripe/param/PlanCreateParams.java index 25358cbb5ff..fcab352662f 100644 --- a/src/main/java/com/stripe/param/PlanCreateParams.java +++ b/src/main/java/com/stripe/param/PlanCreateParams.java @@ -765,8 +765,8 @@ public static class Tier { Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. Only - * one of {@code unit_amount} and {@code unit_amount_decimal} can be set. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") BigDecimal unitAmountDecimal; @@ -872,8 +872,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; diff --git a/src/main/java/com/stripe/param/PriceCreateParams.java b/src/main/java/com/stripe/param/PriceCreateParams.java index 0b11c4c722f..1f3aaa1acf4 100644 --- a/src/main/java/com/stripe/param/PriceCreateParams.java +++ b/src/main/java/com/stripe/param/PriceCreateParams.java @@ -110,8 +110,8 @@ public class PriceCreateParams extends ApiRequestParams { Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. Only - * one of {@code unit_amount} and {@code unit_amount_decimal} can be set. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal places. + * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") BigDecimal unitAmountDecimal; @@ -412,8 +412,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. Only - * one of {@code unit_amount} and {@code unit_amount_decimal} can be set. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; @@ -889,8 +889,8 @@ public static class Tier { Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. Only - * one of {@code unit_amount} and {@code unit_amount_decimal} can be set. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") BigDecimal unitAmountDecimal; @@ -996,8 +996,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; diff --git a/src/main/java/com/stripe/param/SubscriptionCreateParams.java b/src/main/java/com/stripe/param/SubscriptionCreateParams.java index 70b04641037..5e52fc24b88 100644 --- a/src/main/java/com/stripe/param/SubscriptionCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionCreateParams.java @@ -99,16 +99,23 @@ public class SubscriptionCreateParams extends ApiRequestParams { /** * ID of the default payment method for the subscription. It must belong to the customer - * associated with the subscription. If not set, invoices will use the default payment method in - * the customer's invoice settings. + * associated with the subscription. This takes precedence over {@code default_source}. If neither + * are set, invoices will use the customer's invoice_settings.default_payment_method + * or default_source. */ @SerializedName("default_payment_method") String defaultPaymentMethod; /** * ID of the default payment source for the subscription. It must belong to the customer - * associated with the subscription and be in a chargeable state. If not set, defaults to the - * customer's default source. + * associated with the subscription and be in a chargeable state. If {@code + * default_payment_method} is also set, {@code default_payment_method} will take precedence. If + * neither are set, invoices will use the customer's invoice_settings.default_payment_method + * or default_source. */ @SerializedName("default_source") String defaultSource; @@ -514,8 +521,11 @@ public Builder setDaysUntilDue(Long daysUntilDue) { /** * ID of the default payment method for the subscription. It must belong to the customer - * associated with the subscription. If not set, invoices will use the default payment method in - * the customer's invoice settings. + * associated with the subscription. This takes precedence over {@code default_source}. If + * neither are set, invoices will use the customer's invoice_settings.default_payment_method + * or default_source. */ public Builder setDefaultPaymentMethod(String defaultPaymentMethod) { this.defaultPaymentMethod = defaultPaymentMethod; @@ -524,8 +534,12 @@ public Builder setDefaultPaymentMethod(String defaultPaymentMethod) { /** * ID of the default payment source for the subscription. It must belong to the customer - * associated with the subscription and be in a chargeable state. If not set, defaults to the - * customer's default source. + * associated with the subscription and be in a chargeable state. If {@code + * default_payment_method} is also set, {@code default_payment_method} will take precedence. If + * neither are set, invoices will use the customer's invoice_settings.default_payment_method + * or default_source. */ public Builder setDefaultSource(String defaultSource) { this.defaultSource = defaultSource; @@ -964,9 +978,8 @@ public static class PriceData { Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") BigDecimal unitAmountDecimal; @@ -1060,9 +1073,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; @@ -1527,9 +1539,8 @@ public static class PriceData { Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") BigDecimal unitAmountDecimal; @@ -1634,9 +1645,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; diff --git a/src/main/java/com/stripe/param/SubscriptionItemCreateParams.java b/src/main/java/com/stripe/param/SubscriptionItemCreateParams.java index 3f7db953790..1a410fb0232 100644 --- a/src/main/java/com/stripe/param/SubscriptionItemCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionItemCreateParams.java @@ -542,9 +542,8 @@ public static class PriceData { Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. Only - * one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least one is - * required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") BigDecimal unitAmountDecimal; @@ -647,9 +646,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; diff --git a/src/main/java/com/stripe/param/SubscriptionItemUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionItemUpdateParams.java index 027c6bcecd9..8a90108e8da 100644 --- a/src/main/java/com/stripe/param/SubscriptionItemUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionItemUpdateParams.java @@ -578,9 +578,8 @@ public static class PriceData { Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. Only - * one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least one is - * required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") Object unitAmountDecimal; @@ -699,9 +698,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; @@ -709,9 +707,8 @@ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(EmptyParam unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; diff --git a/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java b/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java index cca0ce6d043..6061b8eed83 100644 --- a/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java @@ -1459,9 +1459,8 @@ public static class PriceData { Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") BigDecimal unitAmountDecimal; @@ -1557,9 +1556,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal - * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but - * at least one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; @@ -2081,9 +2079,8 @@ public static class PriceData { Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") BigDecimal unitAmountDecimal; @@ -2190,9 +2187,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal - * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but - * at least one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; diff --git a/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java index 866a71e9719..edf6b61151c 100644 --- a/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java @@ -1494,9 +1494,8 @@ public static class PriceData { Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") Object unitAmountDecimal; @@ -1608,9 +1607,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal - * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but - * at least one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; @@ -1618,9 +1616,8 @@ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal - * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but - * at least one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(EmptyParam unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; @@ -2157,9 +2154,8 @@ public static class PriceData { Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") Object unitAmountDecimal; @@ -2282,9 +2278,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal - * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but - * at least one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; @@ -2292,9 +2287,8 @@ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal - * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but - * at least one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(EmptyParam unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; diff --git a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java index 3a967a16a33..f6b136c5bc9 100644 --- a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java @@ -86,16 +86,23 @@ public class SubscriptionUpdateParams extends ApiRequestParams { /** * ID of the default payment method for the subscription. It must belong to the customer - * associated with the subscription. If not set, invoices will use the default payment method in - * the customer's invoice settings. + * associated with the subscription. This takes precedence over {@code default_source}. If neither + * are set, invoices will use the customer's invoice_settings.default_payment_method + * or default_source. */ @SerializedName("default_payment_method") Object defaultPaymentMethod; /** * ID of the default payment source for the subscription. It must belong to the customer - * associated with the subscription and be in a chargeable state. If not set, defaults to the - * customer's default source. + * associated with the subscription and be in a chargeable state. If {@code + * default_payment_method} is also set, {@code default_payment_method} will take precedence. If + * neither are set, invoices will use the customer's invoice_settings.default_payment_method + * or default_source. */ @SerializedName("default_source") Object defaultSource; @@ -516,8 +523,11 @@ public Builder setDaysUntilDue(Long daysUntilDue) { /** * ID of the default payment method for the subscription. It must belong to the customer - * associated with the subscription. If not set, invoices will use the default payment method in - * the customer's invoice settings. + * associated with the subscription. This takes precedence over {@code default_source}. If + * neither are set, invoices will use the customer's invoice_settings.default_payment_method + * or default_source. */ public Builder setDefaultPaymentMethod(String defaultPaymentMethod) { this.defaultPaymentMethod = defaultPaymentMethod; @@ -526,8 +536,11 @@ public Builder setDefaultPaymentMethod(String defaultPaymentMethod) { /** * ID of the default payment method for the subscription. It must belong to the customer - * associated with the subscription. If not set, invoices will use the default payment method in - * the customer's invoice settings. + * associated with the subscription. This takes precedence over {@code default_source}. If + * neither are set, invoices will use the customer's invoice_settings.default_payment_method + * or default_source. */ public Builder setDefaultPaymentMethod(EmptyParam defaultPaymentMethod) { this.defaultPaymentMethod = defaultPaymentMethod; @@ -536,8 +549,12 @@ public Builder setDefaultPaymentMethod(EmptyParam defaultPaymentMethod) { /** * ID of the default payment source for the subscription. It must belong to the customer - * associated with the subscription and be in a chargeable state. If not set, defaults to the - * customer's default source. + * associated with the subscription and be in a chargeable state. If {@code + * default_payment_method} is also set, {@code default_payment_method} will take precedence. If + * neither are set, invoices will use the customer's invoice_settings.default_payment_method + * or default_source. */ public Builder setDefaultSource(String defaultSource) { this.defaultSource = defaultSource; @@ -546,8 +563,12 @@ public Builder setDefaultSource(String defaultSource) { /** * ID of the default payment source for the subscription. It must belong to the customer - * associated with the subscription and be in a chargeable state. If not set, defaults to the - * customer's default source. + * associated with the subscription and be in a chargeable state. If {@code + * default_payment_method} is also set, {@code default_payment_method} will take precedence. If + * neither are set, invoices will use the customer's invoice_settings.default_payment_method + * or default_source. */ public Builder setDefaultSource(EmptyParam defaultSource) { this.defaultSource = defaultSource; @@ -1035,9 +1056,8 @@ public static class PriceData { Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") Object unitAmountDecimal; @@ -1147,9 +1167,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; @@ -1157,9 +1176,8 @@ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(EmptyParam unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; @@ -1717,9 +1735,8 @@ public static class PriceData { Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") Object unitAmountDecimal; @@ -1840,9 +1857,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; @@ -1850,9 +1866,8 @@ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(EmptyParam unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal; diff --git a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java index f4629f06f84..fdec8ca40e6 100644 --- a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java +++ b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java @@ -801,12 +801,18 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("issuing_cardholder.updated") ISSUING_CARDHOLDER__UPDATED("issuing_cardholder.updated"), + @SerializedName("issuing_dispute.closed") + ISSUING_DISPUTE__CLOSED("issuing_dispute.closed"), + @SerializedName("issuing_dispute.created") ISSUING_DISPUTE__CREATED("issuing_dispute.created"), @SerializedName("issuing_dispute.funds_reinstated") ISSUING_DISPUTE__FUNDS_REINSTATED("issuing_dispute.funds_reinstated"), + @SerializedName("issuing_dispute.submitted") + ISSUING_DISPUTE__SUBMITTED("issuing_dispute.submitted"), + @SerializedName("issuing_dispute.updated") ISSUING_DISPUTE__UPDATED("issuing_dispute.updated"), diff --git a/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java b/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java index 18fc1edae0f..a294a33b3fb 100644 --- a/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java +++ b/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java @@ -489,12 +489,18 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("issuing_cardholder.updated") ISSUING_CARDHOLDER__UPDATED("issuing_cardholder.updated"), + @SerializedName("issuing_dispute.closed") + ISSUING_DISPUTE__CLOSED("issuing_dispute.closed"), + @SerializedName("issuing_dispute.created") ISSUING_DISPUTE__CREATED("issuing_dispute.created"), @SerializedName("issuing_dispute.funds_reinstated") ISSUING_DISPUTE__FUNDS_REINSTATED("issuing_dispute.funds_reinstated"), + @SerializedName("issuing_dispute.submitted") + ISSUING_DISPUTE__SUBMITTED("issuing_dispute.submitted"), + @SerializedName("issuing_dispute.updated") ISSUING_DISPUTE__UPDATED("issuing_dispute.updated"), diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java index 64d0d739e7b..d04c0cb732b 100644 --- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java +++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java @@ -847,16 +847,15 @@ public static class PriceData { Recurring recurring; /** - * A positive integer in %s representing how much to charge. One of {@code unit_amount} or + * A non-negative integer in %s representing how much to charge. One of {@code unit_amount} or * {@code unit_amount_decimal} is required. */ @SerializedName("unit_amount") Long unitAmount; /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ @SerializedName("unit_amount_decimal") BigDecimal unitAmountDecimal; @@ -972,8 +971,8 @@ public Builder setRecurring(Recurring recurring) { } /** - * A positive integer in %s representing how much to charge. One of {@code unit_amount} or - * {@code unit_amount_decimal} is required. + * A non-negative integer in %s representing how much to charge. One of {@code unit_amount} + * or {@code unit_amount_decimal} is required. */ public Builder setUnitAmount(Long unitAmount) { this.unitAmount = unitAmount; @@ -981,9 +980,8 @@ public Builder setUnitAmount(Long unitAmount) { } /** - * Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. - * Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set, but at least - * one is required. + * Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal + * places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set. */ public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { this.unitAmountDecimal = unitAmountDecimal;