diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index ce44fb5bb3e..ace8cd10c4d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1381 \ No newline at end of file +v1382 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Order.java b/src/main/java/com/stripe/model/Order.java index 593b0dfcc43..9324f06e04e 100644 --- a/src/main/java/com/stripe/model/Order.java +++ b/src/main/java/com/stripe/model/Order.java @@ -1637,7 +1637,15 @@ public static class SepaDebit extends StripeObject { @Getter @Setter @EqualsAndHashCode(callSuper = false) - public static class MandateOptions extends StripeObject {} + public static class MandateOptions extends StripeObject { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. + * Must consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + @SerializedName("reference_prefix") + String referencePrefix; + } } /** diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java index a33b50ed677..ed06a71fe73 100644 --- a/src/main/java/com/stripe/model/PaymentIntent.java +++ b/src/main/java/com/stripe/model/PaymentIntent.java @@ -3535,7 +3535,15 @@ public static class BacsDebit extends StripeObject { @Getter @Setter @EqualsAndHashCode(callSuper = false) - public static class MandateOptions extends StripeObject {} + public static class MandateOptions extends StripeObject { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + @SerializedName("reference_prefix") + String referencePrefix; + } } /** @@ -5388,7 +5396,15 @@ public static class SepaDebit extends StripeObject { @Getter @Setter @EqualsAndHashCode(callSuper = false) - public static class MandateOptions extends StripeObject {} + public static class MandateOptions extends StripeObject { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + @SerializedName("reference_prefix") + String referencePrefix; + } } /** diff --git a/src/main/java/com/stripe/model/SetupIntent.java b/src/main/java/com/stripe/model/SetupIntent.java index c64243283f1..394c857d51a 100644 --- a/src/main/java/com/stripe/model/SetupIntent.java +++ b/src/main/java/com/stripe/model/SetupIntent.java @@ -1127,7 +1127,15 @@ public static class BacsDebit extends StripeObject { @Getter @Setter @EqualsAndHashCode(callSuper = false) - public static class MandateOptions extends StripeObject {} + public static class MandateOptions extends StripeObject { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + @SerializedName("reference_prefix") + String referencePrefix; + } } /** @@ -1391,7 +1399,15 @@ public static class SepaDebit extends StripeObject { @Getter @Setter @EqualsAndHashCode(callSuper = false) - public static class MandateOptions extends StripeObject {} + public static class MandateOptions extends StripeObject { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + @SerializedName("reference_prefix") + String referencePrefix; + } } /** diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java index 7cad015af98..c12ab98f3f3 100644 --- a/src/main/java/com/stripe/model/checkout/Session.java +++ b/src/main/java/com/stripe/model/checkout/Session.java @@ -109,8 +109,7 @@ public class Session extends ApiResource implements HasId, MetadataStoreinitCustomCheckout on your front - * end. + * href="https://stripe.com/docs/js/custom_checkout/init">initCheckout on your front end. */ @SerializedName("client_secret") String clientSecret; @@ -2059,7 +2058,15 @@ public static class BacsDebit extends StripeObject { @Getter @Setter @EqualsAndHashCode(callSuper = false) - public static class MandateOptions extends StripeObject {} + public static class MandateOptions extends StripeObject { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + @SerializedName("reference_prefix") + String referencePrefix; + } } /** @@ -3226,7 +3233,15 @@ public static class SepaDebit extends StripeObject { @Getter @Setter @EqualsAndHashCode(callSuper = false) - public static class MandateOptions extends StripeObject {} + public static class MandateOptions extends StripeObject { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + @SerializedName("reference_prefix") + String referencePrefix; + } } /** diff --git a/src/main/java/com/stripe/model/treasury/FinancialAccountFeatures.java b/src/main/java/com/stripe/model/treasury/FinancialAccountFeatures.java index abae47a9c5f..0465195a2e6 100644 --- a/src/main/java/com/stripe/model/treasury/FinancialAccountFeatures.java +++ b/src/main/java/com/stripe/model/treasury/FinancialAccountFeatures.java @@ -244,11 +244,11 @@ public static class StatusDetail extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class InboundTransfers extends StripeObject { - /** Toggle settings for enabling/disabling an ACH specific feature. */ + /** Toggle settings for enabling/disabling an inbound ACH specific feature. */ @SerializedName("ach") Ach ach; - /** Toggle settings for enabling/disabling an ACH specific feature. */ + /** Toggle settings for enabling/disabling an inbound ACH specific feature. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -366,7 +366,7 @@ public static class StatusDetail extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class OutboundPayments extends StripeObject { - /** Toggle settings for enabling/disabling an ACH specific feature. */ + /** Toggle settings for enabling/disabling an outbound ACH specific feature. */ @SerializedName("ach") Ach ach; @@ -374,7 +374,7 @@ public static class OutboundPayments extends StripeObject { @SerializedName("us_domestic_wire") UsDomesticWire usDomesticWire; - /** Toggle settings for enabling/disabling an ACH specific feature. */ + /** Toggle settings for enabling/disabling an outbound ACH specific feature. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -492,7 +492,7 @@ public static class StatusDetail extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class OutboundTransfers extends StripeObject { - /** Toggle settings for enabling/disabling an ACH specific feature. */ + /** Toggle settings for enabling/disabling an outbound ACH specific feature. */ @SerializedName("ach") Ach ach; @@ -500,7 +500,7 @@ public static class OutboundTransfers extends StripeObject { @SerializedName("us_domestic_wire") UsDomesticWire usDomesticWire; - /** Toggle settings for enabling/disabling an ACH specific feature. */ + /** Toggle settings for enabling/disabling an outbound ACH specific feature. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/param/OrderCreateParams.java b/src/main/java/com/stripe/param/OrderCreateParams.java index c0500c14036..55644ae9276 100644 --- a/src/main/java/com/stripe/param/OrderCreateParams.java +++ b/src/main/java/com/stripe/param/OrderCreateParams.java @@ -6463,8 +6463,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. + * Must consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -6474,12 +6483,14 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public OrderCreateParams.Payment.Settings.PaymentMethodOptions.SepaDebit .MandateOptions build() { return new OrderCreateParams.Payment.Settings.PaymentMethodOptions.SepaDebit - .MandateOptions(this.extraParams); + .MandateOptions(this.extraParams, this.referencePrefix); } /** @@ -6511,6 +6522,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. + * Must consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. + * Must consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } diff --git a/src/main/java/com/stripe/param/OrderUpdateParams.java b/src/main/java/com/stripe/param/OrderUpdateParams.java index 1faa055f741..a56a3142cf1 100644 --- a/src/main/java/com/stripe/param/OrderUpdateParams.java +++ b/src/main/java/com/stripe/param/OrderUpdateParams.java @@ -6999,8 +6999,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. + * Must consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -7010,12 +7019,14 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public OrderUpdateParams.Payment.Settings.PaymentMethodOptions.SepaDebit .MandateOptions build() { return new OrderUpdateParams.Payment.Settings.PaymentMethodOptions.SepaDebit - .MandateOptions(this.extraParams); + .MandateOptions(this.extraParams, this.referencePrefix); } /** @@ -7047,6 +7058,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. + * Must consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. + * Must consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java index 6b2a957b49c..13c23aec55e 100644 --- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java @@ -14294,8 +14294,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -14305,10 +14314,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public PaymentIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions build() { return new PaymentIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -14340,6 +14351,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } @@ -23746,8 +23777,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -23757,10 +23797,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public PaymentIntentConfirmParams.PaymentMethodOptions.SepaDebit.MandateOptions build() { return new PaymentIntentConfirmParams.PaymentMethodOptions.SepaDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -23792,6 +23834,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java index 38c3d31cca3..9428df66071 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java @@ -14773,8 +14773,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -14784,10 +14793,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public PaymentIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions build() { return new PaymentIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -14819,6 +14830,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } @@ -24212,8 +24243,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -24223,10 +24263,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public PaymentIntentCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions build() { return new PaymentIntentCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -24258,6 +24300,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index ae694af9bd2..5e6a947c891 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -15002,8 +15002,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -15013,10 +15022,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public PaymentIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions build() { return new PaymentIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -15048,6 +15059,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } @@ -24637,8 +24668,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -24648,10 +24688,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public PaymentIntentUpdateParams.PaymentMethodOptions.SepaDebit.MandateOptions build() { return new PaymentIntentUpdateParams.PaymentMethodOptions.SepaDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -24683,6 +24725,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } diff --git a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java index 907ac43774e..22a60d4c240 100644 --- a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java @@ -4507,6 +4507,13 @@ public static class SubscriptionData { @SerializedName("metadata") Object metadata; + /** + * Integer representing the number of trial period days before the customer is charged for the + * first time. Has to be at least 1. + */ + @SerializedName("trial_period_days") + Object trialPeriodDays; + /** Settings related to subscription trials. */ @SerializedName("trial_settings") Object trialSettings; @@ -4515,10 +4522,12 @@ private SubscriptionData( Map extraParams, InvoiceSettings invoiceSettings, Object metadata, + Object trialPeriodDays, Object trialSettings) { this.extraParams = extraParams; this.invoiceSettings = invoiceSettings; this.metadata = metadata; + this.trialPeriodDays = trialPeriodDays; this.trialSettings = trialSettings; } @@ -4533,12 +4542,18 @@ public static class Builder { private Object metadata; + private Object trialPeriodDays; + private Object trialSettings; /** Finalize and obtain parameter instance from this builder. */ public PaymentLinkUpdateParams.SubscriptionData build() { return new PaymentLinkUpdateParams.SubscriptionData( - this.extraParams, this.invoiceSettings, this.metadata, this.trialSettings); + this.extraParams, + this.invoiceSettings, + this.metadata, + this.trialPeriodDays, + this.trialSettings); } /** @@ -4627,6 +4642,24 @@ public Builder setMetadata(Map metadata) { return this; } + /** + * Integer representing the number of trial period days before the customer is charged for the + * first time. Has to be at least 1. + */ + public Builder setTrialPeriodDays(Long trialPeriodDays) { + this.trialPeriodDays = trialPeriodDays; + return this; + } + + /** + * Integer representing the number of trial period days before the customer is charged for the + * first time. Has to be at least 1. + */ + public Builder setTrialPeriodDays(EmptyParam trialPeriodDays) { + this.trialPeriodDays = trialPeriodDays; + return this; + } + /** Settings related to subscription trials. */ public Builder setTrialSettings( PaymentLinkUpdateParams.SubscriptionData.TrialSettings trialSettings) { diff --git a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java index 21113063c12..a65c13c57db 100644 --- a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java @@ -7098,8 +7098,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -7109,10 +7118,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public SetupIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions build() { return new SetupIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -7144,6 +7155,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } } @@ -8975,8 +9006,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -8986,10 +9026,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public SetupIntentConfirmParams.PaymentMethodOptions.SepaDebit.MandateOptions build() { return new SetupIntentConfirmParams.PaymentMethodOptions.SepaDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -9021,6 +9063,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } } diff --git a/src/main/java/com/stripe/param/SetupIntentCreateParams.java b/src/main/java/com/stripe/param/SetupIntentCreateParams.java index 42ee87f9309..5b703c57c21 100644 --- a/src/main/java/com/stripe/param/SetupIntentCreateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentCreateParams.java @@ -7557,8 +7557,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -7568,10 +7577,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public SetupIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions build() { return new SetupIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -7603,6 +7614,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } } @@ -9434,8 +9465,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -9445,10 +9485,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public SetupIntentCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions build() { return new SetupIntentCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -9480,6 +9522,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } } diff --git a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java index 12fd5a23a67..baf20bf2f8d 100644 --- a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java @@ -7058,8 +7058,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -7069,10 +7078,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public SetupIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions build() { return new SetupIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -7104,6 +7115,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } } @@ -9039,8 +9070,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -9050,10 +9090,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public SetupIntentUpdateParams.PaymentMethodOptions.SepaDebit.MandateOptions build() { return new SetupIntentUpdateParams.PaymentMethodOptions.SepaDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -9085,6 +9127,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } } diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java index 63aeb7ca614..22507d7746f 100644 --- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java +++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java @@ -7610,8 +7610,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -7621,10 +7630,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions build() { return new SessionCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -7656,6 +7667,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } @@ -12507,8 +12538,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -12518,10 +12558,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions build() { return new SessionCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -12553,6 +12595,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } }