From da6145b8e313ccfaae0195daba83c9469f0baba2 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 5 Nov 2025 14:50:09 -0800 Subject: [PATCH 1/2] Update generated code (#2102) * Update generated code for v2108 and * Update generated code for v2109 and * Update generated code for v2111 and * Update generated code for v2111 and --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- API_VERSION | 2 +- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Account.java | 5 +- src/main/java/com/stripe/model/Invoice.java | 3 +- .../java/com/stripe/model/InvoicePayment.java | 2 +- .../java/com/stripe/model/PaymentIntent.java | 8 +++ .../stripe/model/v2/billing/MeterEvent.java | 3 +- .../com/stripe/param/AccountCreateParams.java | 10 ++-- .../com/stripe/param/AccountUpdateParams.java | 10 ++-- .../param/CustomerSessionCreateParams.java | 4 +- .../param/PaymentIntentConfirmParams.java | 50 +++++++++++++++++++ .../param/PaymentIntentCreateParams.java | 50 +++++++++++++++++++ .../param/PaymentIntentUpdateParams.java | 50 +++++++++++++++++++ .../terminal/ConfigurationCreateParams.java | 28 +++++------ .../terminal/ConfigurationUpdateParams.java | 30 +++++------ .../stripe/functional/GeneratedExamples.java | 8 +-- 16 files changed, 215 insertions(+), 50 deletions(-) diff --git a/API_VERSION b/API_VERSION index 1105d43533a..dffa3a76a26 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -3ccf295957c8cadc88e1463ea3ab4ec683a0314f \ No newline at end of file +6d15a7f20cb77c2c22091a30e499cb89d7e3248c \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c8ed627ff9c..dfd2783f161 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2102 \ No newline at end of file +v2111 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java index 6bb0b6aa335..af2d74311c5 100644 --- a/src/main/java/com/stripe/model/Account.java +++ b/src/main/java/com/stripe/model/Account.java @@ -2600,8 +2600,9 @@ public static class Invoices extends StripeObject { List> defaultAccountTaxIds; /** - * Whether payment methods should be saved when a payment is completed for a one-time invoices - * on a hosted invoice page. + * Whether to save the payment method after a payment is completed for a one-time invoice or a + * subscription invoice when the customer already has a default payment method on the hosted + * invoice page. * *

One of {@code always}, {@code never}, or {@code offer}. */ diff --git a/src/main/java/com/stripe/model/Invoice.java b/src/main/java/com/stripe/model/Invoice.java index 1e44d0a03d4..4ab0327967b 100644 --- a/src/main/java/com/stripe/model/Invoice.java +++ b/src/main/java/com/stripe/model/Invoice.java @@ -174,7 +174,8 @@ public class Invoice extends ApiResource implements HasId, MetadataStoreOne of {@code automatic_pending_invoice_item_invoice}, {@code manual}, {@code quote_accept}, * {@code subscription}, {@code subscription_create}, {@code subscription_cycle}, {@code diff --git a/src/main/java/com/stripe/model/InvoicePayment.java b/src/main/java/com/stripe/model/InvoicePayment.java index 300ebea267f..46165f99bc2 100644 --- a/src/main/java/com/stripe/model/InvoicePayment.java +++ b/src/main/java/com/stripe/model/InvoicePayment.java @@ -244,7 +244,7 @@ public static class Payment extends StripeObject { /** * Type of payment object associated with this invoice payment. * - *

One of {@code charge}, or {@code payment_intent}. + *

One of {@code charge}, {@code payment_intent}, or {@code payment_record}. */ @SerializedName("type") String type; diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java index 7940d8b6936..f252c6baa92 100644 --- a/src/main/java/com/stripe/model/PaymentIntent.java +++ b/src/main/java/com/stripe/model/PaymentIntent.java @@ -3591,6 +3591,14 @@ public static class MandateOptions extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class CardPresent extends StripeObject { + /** + * Controls when the funds will be captured from the customer's account. + * + *

One of {@code manual}, or {@code manual_preferred}. + */ + @SerializedName("capture_method") + String captureMethod; + /** * Request ability to capture this payment beyond the standard authorization diff --git a/src/main/java/com/stripe/model/v2/billing/MeterEvent.java b/src/main/java/com/stripe/model/v2/billing/MeterEvent.java index 698c1693576..ac2b0fa94ad 100644 --- a/src/main/java/com/stripe/model/v2/billing/MeterEvent.java +++ b/src/main/java/com/stripe/model/v2/billing/MeterEvent.java @@ -48,7 +48,8 @@ public class MeterEvent extends StripeObject { /** * The payload of the event. This must contain the fields corresponding to a meter’s {@code * customer_mapping.event_payload_key} (default is {@code stripe_customer_id}) and {@code - * value_settings.event_payload_key} (default is {@code value}). Read more about the payload. + * value_settings.event_payload_key} (default is {@code value}). Read more about the payload.. */ @SerializedName("payload") Map payload; diff --git a/src/main/java/com/stripe/param/AccountCreateParams.java b/src/main/java/com/stripe/param/AccountCreateParams.java index c3016cdefe9..73fde2ee8c1 100644 --- a/src/main/java/com/stripe/param/AccountCreateParams.java +++ b/src/main/java/com/stripe/param/AccountCreateParams.java @@ -13078,8 +13078,9 @@ public static class Invoices { Map extraParams; /** - * Whether payment methods should be saved when a payment is completed for a one-time invoices - * on a hosted invoice page. + * Whether to save the payment method after a payment is completed for a one-time invoice or a + * subscription invoice when the customer already has a default payment method on the hosted + * invoice page. */ @SerializedName("hosted_payment_method_save") HostedPaymentMethodSave hostedPaymentMethodSave; @@ -13134,8 +13135,9 @@ public Builder putAllExtraParam(Map map) { } /** - * Whether payment methods should be saved when a payment is completed for a one-time - * invoices on a hosted invoice page. + * Whether to save the payment method after a payment is completed for a one-time invoice or + * a subscription invoice when the customer already has a default payment method on the + * hosted invoice page. */ public Builder setHostedPaymentMethodSave( AccountCreateParams.Settings.Invoices.HostedPaymentMethodSave hostedPaymentMethodSave) { diff --git a/src/main/java/com/stripe/param/AccountUpdateParams.java b/src/main/java/com/stripe/param/AccountUpdateParams.java index a9e3228a67c..84a6588217b 100644 --- a/src/main/java/com/stripe/param/AccountUpdateParams.java +++ b/src/main/java/com/stripe/param/AccountUpdateParams.java @@ -13389,8 +13389,9 @@ public static class Invoices { Map extraParams; /** - * Whether payment methods should be saved when a payment is completed for a one-time invoices - * on a hosted invoice page. + * Whether to save the payment method after a payment is completed for a one-time invoice or a + * subscription invoice when the customer already has a default payment method on the hosted + * invoice page. */ @SerializedName("hosted_payment_method_save") HostedPaymentMethodSave hostedPaymentMethodSave; @@ -13500,8 +13501,9 @@ public Builder putAllExtraParam(Map map) { } /** - * Whether payment methods should be saved when a payment is completed for a one-time - * invoices on a hosted invoice page. + * Whether to save the payment method after a payment is completed for a one-time invoice or + * a subscription invoice when the customer already has a default payment method on the + * hosted invoice page. */ public Builder setHostedPaymentMethodSave( AccountUpdateParams.Settings.Invoices.HostedPaymentMethodSave hostedPaymentMethodSave) { diff --git a/src/main/java/com/stripe/param/CustomerSessionCreateParams.java b/src/main/java/com/stripe/param/CustomerSessionCreateParams.java index ee7be3686a9..ed4ad7be7e0 100644 --- a/src/main/java/com/stripe/param/CustomerSessionCreateParams.java +++ b/src/main/java/com/stripe/param/CustomerSessionCreateParams.java @@ -14,7 +14,7 @@ @EqualsAndHashCode(callSuper = false) public class CustomerSessionCreateParams extends ApiRequestParams { /** - * Required. Configuration for each component. Exactly 1 component must be + * Required. Configuration for each component. At least 1 component must be * enabled. */ @SerializedName("components") @@ -71,7 +71,7 @@ public CustomerSessionCreateParams build() { } /** - * Required. Configuration for each component. Exactly 1 component must be + * Required. Configuration for each component. At least 1 component must be * enabled. */ public Builder setComponents(CustomerSessionCreateParams.Components components) { diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java index 1df40e05fd6..be80c26d41b 100644 --- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java @@ -14109,6 +14109,19 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) public static class CardPresent { + /** + * Controls when the funds are captured from the customer's account. + * + *

If provided, this parameter overrides the behavior of the top-level capture_method + * for this payment method type when finalizing the payment with this payment method type. + * + *

If {@code capture_method} is already set on the PaymentIntent, providing an empty value + * for this parameter unsets the stored value for this payment method type. + */ + @SerializedName("capture_method") + CaptureMethod captureMethod; + /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -14145,10 +14158,12 @@ public static class CardPresent { Routing routing; private CardPresent( + CaptureMethod captureMethod, Map extraParams, Boolean requestExtendedAuthorization, Boolean requestIncrementalAuthorizationSupport, Routing routing) { + this.captureMethod = captureMethod; this.extraParams = extraParams; this.requestExtendedAuthorization = requestExtendedAuthorization; this.requestIncrementalAuthorizationSupport = requestIncrementalAuthorizationSupport; @@ -14160,6 +14175,8 @@ public static Builder builder() { } public static class Builder { + private CaptureMethod captureMethod; + private Map extraParams; private Boolean requestExtendedAuthorization; @@ -14171,12 +14188,30 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent build() { return new PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent( + this.captureMethod, this.extraParams, this.requestExtendedAuthorization, this.requestIncrementalAuthorizationSupport, this.routing); } + /** + * Controls when the funds are captured from the customer's account. + * + *

If provided, this parameter overrides the behavior of the top-level capture_method + * for this payment method type when finalizing the payment with this payment method type. + * + *

If {@code capture_method} is already set on the PaymentIntent, providing an empty + * value for this parameter unsets the stored value for this payment method type. + */ + public Builder setCaptureMethod( + PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent.CaptureMethod + captureMethod) { + this.captureMethod = captureMethod; + return this; + } + /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original @@ -14331,6 +14366,21 @@ public enum RequestedPriority implements ApiRequestParams.EnumParam { } } } + + public enum CaptureMethod implements ApiRequestParams.EnumParam { + @SerializedName("manual") + MANUAL("manual"), + + @SerializedName("manual_preferred") + MANUAL_PREFERRED("manual_preferred"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + CaptureMethod(String value) { + this.value = value; + } + } } @Getter diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java index c9e00b0fff2..f53ec480c20 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java @@ -14580,6 +14580,19 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) public static class CardPresent { + /** + * Controls when the funds are captured from the customer's account. + * + *

If provided, this parameter overrides the behavior of the top-level capture_method + * for this payment method type when finalizing the payment with this payment method type. + * + *

If {@code capture_method} is already set on the PaymentIntent, providing an empty value + * for this parameter unsets the stored value for this payment method type. + */ + @SerializedName("capture_method") + CaptureMethod captureMethod; + /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -14616,10 +14629,12 @@ public static class CardPresent { Routing routing; private CardPresent( + CaptureMethod captureMethod, Map extraParams, Boolean requestExtendedAuthorization, Boolean requestIncrementalAuthorizationSupport, Routing routing) { + this.captureMethod = captureMethod; this.extraParams = extraParams; this.requestExtendedAuthorization = requestExtendedAuthorization; this.requestIncrementalAuthorizationSupport = requestIncrementalAuthorizationSupport; @@ -14631,6 +14646,8 @@ public static Builder builder() { } public static class Builder { + private CaptureMethod captureMethod; + private Map extraParams; private Boolean requestExtendedAuthorization; @@ -14642,12 +14659,30 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public PaymentIntentCreateParams.PaymentMethodOptions.CardPresent build() { return new PaymentIntentCreateParams.PaymentMethodOptions.CardPresent( + this.captureMethod, this.extraParams, this.requestExtendedAuthorization, this.requestIncrementalAuthorizationSupport, this.routing); } + /** + * Controls when the funds are captured from the customer's account. + * + *

If provided, this parameter overrides the behavior of the top-level capture_method + * for this payment method type when finalizing the payment with this payment method type. + * + *

If {@code capture_method} is already set on the PaymentIntent, providing an empty + * value for this parameter unsets the stored value for this payment method type. + */ + public Builder setCaptureMethod( + PaymentIntentCreateParams.PaymentMethodOptions.CardPresent.CaptureMethod + captureMethod) { + this.captureMethod = captureMethod; + return this; + } + /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original @@ -14802,6 +14837,21 @@ public enum RequestedPriority implements ApiRequestParams.EnumParam { } } } + + public enum CaptureMethod implements ApiRequestParams.EnumParam { + @SerializedName("manual") + MANUAL("manual"), + + @SerializedName("manual_preferred") + MANUAL_PREFERRED("manual_preferred"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + CaptureMethod(String value) { + this.value = value; + } + } } @Getter diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index b111bb1fbb4..0dda380c7a8 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -14338,6 +14338,19 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) public static class CardPresent { + /** + * Controls when the funds are captured from the customer's account. + * + *

If provided, this parameter overrides the behavior of the top-level capture_method + * for this payment method type when finalizing the payment with this payment method type. + * + *

If {@code capture_method} is already set on the PaymentIntent, providing an empty value + * for this parameter unsets the stored value for this payment method type. + */ + @SerializedName("capture_method") + CaptureMethod captureMethod; + /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -14374,10 +14387,12 @@ public static class CardPresent { Routing routing; private CardPresent( + CaptureMethod captureMethod, Map extraParams, Boolean requestExtendedAuthorization, Boolean requestIncrementalAuthorizationSupport, Routing routing) { + this.captureMethod = captureMethod; this.extraParams = extraParams; this.requestExtendedAuthorization = requestExtendedAuthorization; this.requestIncrementalAuthorizationSupport = requestIncrementalAuthorizationSupport; @@ -14389,6 +14404,8 @@ public static Builder builder() { } public static class Builder { + private CaptureMethod captureMethod; + private Map extraParams; private Boolean requestExtendedAuthorization; @@ -14400,12 +14417,30 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent build() { return new PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent( + this.captureMethod, this.extraParams, this.requestExtendedAuthorization, this.requestIncrementalAuthorizationSupport, this.routing); } + /** + * Controls when the funds are captured from the customer's account. + * + *

If provided, this parameter overrides the behavior of the top-level capture_method + * for this payment method type when finalizing the payment with this payment method type. + * + *

If {@code capture_method} is already set on the PaymentIntent, providing an empty + * value for this parameter unsets the stored value for this payment method type. + */ + public Builder setCaptureMethod( + PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent.CaptureMethod + captureMethod) { + this.captureMethod = captureMethod; + return this; + } + /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original @@ -14560,6 +14595,21 @@ public enum RequestedPriority implements ApiRequestParams.EnumParam { } } } + + public enum CaptureMethod implements ApiRequestParams.EnumParam { + @SerializedName("manual") + MANUAL("manual"), + + @SerializedName("manual_preferred") + MANUAL_PREFERRED("manual_preferred"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + CaptureMethod(String value) { + this.value = value; + } + } } @Getter diff --git a/src/main/java/com/stripe/param/terminal/ConfigurationCreateParams.java b/src/main/java/com/stripe/param/terminal/ConfigurationCreateParams.java index 3f3eab84c58..e3a2a6341cc 100644 --- a/src/main/java/com/stripe/param/terminal/ConfigurationCreateParams.java +++ b/src/main/java/com/stripe/param/terminal/ConfigurationCreateParams.java @@ -43,7 +43,7 @@ public class ConfigurationCreateParams extends ApiRequestParams { @SerializedName("offline") Object offline; - /** Reboot time settings for readers that support customized reboot time configuration. */ + /** Reboot time settings for readers. that support customized reboot time configuration. */ @SerializedName("reboot_window") RebootWindow rebootWindow; @@ -51,7 +51,7 @@ public class ConfigurationCreateParams extends ApiRequestParams { @SerializedName("stripe_s700") StripeS700 stripeS700; - /** Tipping configurations for readers supporting on-reader tips. */ + /** Tipping configurations for readers. supporting on-reader tips */ @SerializedName("tipping") Object tipping; @@ -213,7 +213,7 @@ public Builder setOffline(EmptyParam offline) { return this; } - /** Reboot time settings for readers that support customized reboot time configuration. */ + /** Reboot time settings for readers. that support customized reboot time configuration. */ public Builder setRebootWindow(ConfigurationCreateParams.RebootWindow rebootWindow) { this.rebootWindow = rebootWindow; return this; @@ -225,13 +225,13 @@ public Builder setStripeS700(ConfigurationCreateParams.StripeS700 stripeS700) { return this; } - /** Tipping configurations for readers supporting on-reader tips. */ + /** Tipping configurations for readers. supporting on-reader tips */ public Builder setTipping(ConfigurationCreateParams.Tipping tipping) { this.tipping = tipping; return this; } - /** Tipping configurations for readers supporting on-reader tips. */ + /** Tipping configurations for readers. supporting on-reader tips */ public Builder setTipping(EmptyParam tipping) { this.tipping = tipping; return this; @@ -268,7 +268,7 @@ public static class BbposWisepad3 { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** A File ID representing an image you would like displayed on the reader. */ + /** A File ID representing an image you want to display on the reader. */ @SerializedName("splashscreen") Object splashscreen; @@ -318,13 +318,13 @@ public Builder putAllExtraParam(Map map) { return this; } - /** A File ID representing an image you would like displayed on the reader. */ + /** A File ID representing an image you want to display on the reader. */ public Builder setSplashscreen(String splashscreen) { this.splashscreen = splashscreen; return this; } - /** A File ID representing an image you would like displayed on the reader. */ + /** A File ID representing an image you want to display on the reader. */ public Builder setSplashscreen(EmptyParam splashscreen) { this.splashscreen = splashscreen; return this; @@ -590,7 +590,7 @@ public static class StripeS700 { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** A File ID representing an image you would like displayed on the reader. */ + /** A File ID representing an image you want to display on the reader. */ @SerializedName("splashscreen") Object splashscreen; @@ -639,13 +639,13 @@ public Builder putAllExtraParam(Map map) { return this; } - /** A File ID representing an image you would like displayed on the reader. */ + /** A File ID representing an image you want to display on the reader. */ public Builder setSplashscreen(String splashscreen) { this.splashscreen = splashscreen; return this; } - /** A File ID representing an image you would like displayed on the reader. */ + /** A File ID representing an image you want to display on the reader. */ public Builder setSplashscreen(EmptyParam splashscreen) { this.splashscreen = splashscreen; return this; @@ -4309,7 +4309,7 @@ public static class VerifoneP400 { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** A File ID representing an image you would like displayed on the reader. */ + /** A File ID representing an image you want to display on the reader. */ @SerializedName("splashscreen") Object splashscreen; @@ -4358,13 +4358,13 @@ public Builder putAllExtraParam(Map map) { return this; } - /** A File ID representing an image you would like displayed on the reader. */ + /** A File ID representing an image you want to display on the reader. */ public Builder setSplashscreen(String splashscreen) { this.splashscreen = splashscreen; return this; } - /** A File ID representing an image you would like displayed on the reader. */ + /** A File ID representing an image you want to display on the reader. */ public Builder setSplashscreen(EmptyParam splashscreen) { this.splashscreen = splashscreen; return this; diff --git a/src/main/java/com/stripe/param/terminal/ConfigurationUpdateParams.java b/src/main/java/com/stripe/param/terminal/ConfigurationUpdateParams.java index 46b847bd319..382ad087f68 100644 --- a/src/main/java/com/stripe/param/terminal/ConfigurationUpdateParams.java +++ b/src/main/java/com/stripe/param/terminal/ConfigurationUpdateParams.java @@ -43,7 +43,7 @@ public class ConfigurationUpdateParams extends ApiRequestParams { @SerializedName("offline") Object offline; - /** Reboot time settings for readers that support customized reboot time configuration. */ + /** Reboot time settings for readers. that support customized reboot time configuration. */ @SerializedName("reboot_window") Object rebootWindow; @@ -51,7 +51,7 @@ public class ConfigurationUpdateParams extends ApiRequestParams { @SerializedName("stripe_s700") Object stripeS700; - /** Tipping configurations for readers supporting on-reader tips. */ + /** Tipping configurations for readers. supporting on-reader tips */ @SerializedName("tipping") Object tipping; @@ -231,13 +231,13 @@ public Builder setOffline(EmptyParam offline) { return this; } - /** Reboot time settings for readers that support customized reboot time configuration. */ + /** Reboot time settings for readers. that support customized reboot time configuration. */ public Builder setRebootWindow(ConfigurationUpdateParams.RebootWindow rebootWindow) { this.rebootWindow = rebootWindow; return this; } - /** Reboot time settings for readers that support customized reboot time configuration. */ + /** Reboot time settings for readers. that support customized reboot time configuration. */ public Builder setRebootWindow(EmptyParam rebootWindow) { this.rebootWindow = rebootWindow; return this; @@ -255,13 +255,13 @@ public Builder setStripeS700(EmptyParam stripeS700) { return this; } - /** Tipping configurations for readers supporting on-reader tips. */ + /** Tipping configurations for readers. supporting on-reader tips */ public Builder setTipping(ConfigurationUpdateParams.Tipping tipping) { this.tipping = tipping; return this; } - /** Tipping configurations for readers supporting on-reader tips. */ + /** Tipping configurations for readers. supporting on-reader tips */ public Builder setTipping(EmptyParam tipping) { this.tipping = tipping; return this; @@ -304,7 +304,7 @@ public static class BbposWisepad3 { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** A File ID representing an image you would like displayed on the reader. */ + /** A File ID representing an image you want to display on the reader. */ @SerializedName("splashscreen") Object splashscreen; @@ -354,13 +354,13 @@ public Builder putAllExtraParam(Map map) { return this; } - /** A File ID representing an image you would like displayed on the reader. */ + /** A File ID representing an image you want to display on the reader. */ public Builder setSplashscreen(String splashscreen) { this.splashscreen = splashscreen; return this; } - /** A File ID representing an image you would like displayed on the reader. */ + /** A File ID representing an image you want to display on the reader. */ public Builder setSplashscreen(EmptyParam splashscreen) { this.splashscreen = splashscreen; return this; @@ -626,7 +626,7 @@ public static class StripeS700 { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** A File ID representing an image you would like displayed on the reader. */ + /** A File ID representing an image you want to display on the reader. */ @SerializedName("splashscreen") Object splashscreen; @@ -675,13 +675,13 @@ public Builder putAllExtraParam(Map map) { return this; } - /** A File ID representing an image you would like displayed on the reader. */ + /** A File ID representing an image you want to display on the reader. */ public Builder setSplashscreen(String splashscreen) { this.splashscreen = splashscreen; return this; } - /** A File ID representing an image you would like displayed on the reader. */ + /** A File ID representing an image you want to display on the reader. */ public Builder setSplashscreen(EmptyParam splashscreen) { this.splashscreen = splashscreen; return this; @@ -4345,7 +4345,7 @@ public static class VerifoneP400 { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** A File ID representing an image you would like displayed on the reader. */ + /** A File ID representing an image you want to display on the reader. */ @SerializedName("splashscreen") Object splashscreen; @@ -4394,13 +4394,13 @@ public Builder putAllExtraParam(Map map) { return this; } - /** A File ID representing an image you would like displayed on the reader. */ + /** A File ID representing an image you want to display on the reader. */ public Builder setSplashscreen(String splashscreen) { this.splashscreen = splashscreen; return this; } - /** A File ID representing an image you would like displayed on the reader. */ + /** A File ID representing an image you want to display on the reader. */ public Builder setSplashscreen(EmptyParam splashscreen) { this.splashscreen = splashscreen; return this; diff --git a/src/test/java/com/stripe/functional/GeneratedExamples.java b/src/test/java/com/stripe/functional/GeneratedExamples.java index c0a666945d2..6eeab497786 100644 --- a/src/test/java/com/stripe/functional/GeneratedExamples.java +++ b/src/test/java/com/stripe/functional/GeneratedExamples.java @@ -3208,7 +3208,7 @@ public void testCoreEventsGetServices() throws StripeException { null, null, com.stripe.model.v2.core.Event.class, - "{\"context\":\"context\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"reason\":{\"type\":\"request\",\"request\":{\"id\":\"obj_123\",\"idempotency_key\":\"idempotency_key\"}},\"type\":\"type\",\"livemode\":true}"); + "{\"context\":\"context\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.event\",\"reason\":{\"type\":\"request\",\"request\":{\"id\":\"obj_123\",\"idempotency_key\":\"idempotency_key\"}},\"type\":\"type\"}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.core.Event event = client.v2().core().events().retrieve("ll_123"); @@ -24499,7 +24499,7 @@ public void testV2CoreEventGetServices() throws StripeException { null, new TypeToken< com.stripe.model.v2.StripeCollection>() {}.getType(), - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"type\":\"type\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.event\",\"type\":\"type\"}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.EventListParams params = @@ -24521,7 +24521,7 @@ public void testV2CoreEventGet2Services() throws StripeException { null, null, com.stripe.model.v2.core.Event.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"type\":\"type\",\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.event\",\"type\":\"type\"}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.core.Event event = client.v2().core().events().retrieve("id_123"); @@ -24720,7 +24720,7 @@ public void testV2CoreEventDestinationPost5Services() throws StripeException { null, null, com.stripe.model.v2.core.Event.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"type\":\"type\",\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.event\",\"type\":\"type\"}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.core.Event event = client.v2().core().eventDestinations().ping("id_123"); From 6cf9067d10824556c1458c9ed85222c795388959 Mon Sep 17 00:00:00 2001 From: Ramya Rao Date: Wed, 5 Nov 2025 14:57:30 -0800 Subject: [PATCH 2/2] Bump version to 30.2.0 --- CHANGELOG.md | 4 ++++ README.md | 10 +++++----- VERSION | 2 +- gradle.properties | 2 +- src/main/java/com/stripe/Stripe.java | 2 +- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 518c9e1fd51..bb385939066 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 30.2.0 - 2025-11-05 +* [#2102](https://github.com/stripe/stripe-java/pull/2102) Update generated code + * Add support for `captureMethod` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present` + ## 30.1.0 - 2025-10-29 This release changes the pinned API version to `2025-10-29.clover`. diff --git a/README.md b/README.md index 1b49ac3c351..8ba0ebf84f3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Stripe Java client library -[![Maven Central](https://img.shields.io/badge/maven--central-v30.1.0-blue)](https://mvnrepository.com/artifact/com.stripe/stripe-java) +[![Maven Central](https://img.shields.io/badge/maven--central-v30.2.0-blue)](https://mvnrepository.com/artifact/com.stripe/stripe-java) [![JavaDoc](http://img.shields.io/badge/javadoc-reference-blue.svg)](https://stripe.dev/stripe-java) [![Build Status](https://github.com/stripe/stripe-java/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/stripe/stripe-java/actions?query=branch%3Amaster) @@ -23,7 +23,7 @@ We support LTS versions of the JDK. Currently, that's Java versions: Add this dependency to your project's build file: ```groovy -implementation "com.stripe:stripe-java:30.1.0" +implementation "com.stripe:stripe-java:30.2.0" ``` ### Maven users @@ -34,7 +34,7 @@ Add this dependency to your project's POM: com.stripe stripe-java - 30.1.0 + 30.2.0 ``` @@ -43,8 +43,8 @@ Add this dependency to your project's POM: If you are not using Gradle or Maven, you will need to manually install the following JARs: 1. The Stripe JAR: - - Download the latest release version from [Maven Central](https://repo1.maven.org/maven2/com/stripe/stripe-java/30.1.0/stripe-java-30.1.0.jar) - - Current release version: 30.1.0 + - Download the latest release version from [Maven Central](https://repo1.maven.org/maven2/com/stripe/stripe-java/30.2.0/stripe-java-30.2.0.jar) + - Current release version: 30.2.0 2. Google Gson: - The Stripe JAR builds and tests with Gson version 2.10.1 diff --git a/VERSION b/VERSION index a75ef34cbaa..0aaa30ef421 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -30.1.0 +30.2.0 diff --git a/gradle.properties b/gradle.properties index fc07f279b47..bca3db04d0b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ GROUP=com.stripe -VERSION_NAME=30.1.0 +VERSION_NAME=30.2.0 POM_URL=https://github.com/stripe/stripe-java POM_SCM_URL=git@github.com:stripe/stripe-java.git diff --git a/src/main/java/com/stripe/Stripe.java b/src/main/java/com/stripe/Stripe.java index 87fee8e6e2b..9256fd3caf1 100644 --- a/src/main/java/com/stripe/Stripe.java +++ b/src/main/java/com/stripe/Stripe.java @@ -14,7 +14,7 @@ public abstract class Stripe { public static final String LIVE_API_BASE = "https://api.stripe.com"; public static final String UPLOAD_API_BASE = "https://files.stripe.com"; public static final String METER_EVENTS_API_BASE = "https://meter-events.stripe.com"; - public static final String VERSION = "30.1.0"; + public static final String VERSION = "30.2.0"; public static volatile String apiKey; public static volatile String clientId;