Skip to content

Commit 55c4ab8

Browse files
Update generated code for v2111 and
1 parent cffe179 commit 55c4ab8

14 files changed

+209
-45
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a9b4d5059aeb24192ebc26c24160bb6e495bd6cb
1+
9ac5029808e80ae9b96278ea0497ef34d3e529cb

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2109
1+
v2111

src/main/java/com/stripe/ApiVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
package com.stripe;
33

44
final class ApiVersion {
5-
public static final String CURRENT = "2025-10-29.clover";
5+
public static final String CURRENT = "2025-11-17.clover";
66
public static final String CURRENT_MAJOR = "clover";
77
}

src/main/java/com/stripe/model/Account.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2600,8 +2600,9 @@ public static class Invoices extends StripeObject {
26002600
List<ExpandableField<TaxId>> defaultAccountTaxIds;
26012601

26022602
/**
2603-
* Whether payment methods should be saved when a payment is completed for a one-time invoices
2604-
* on a hosted invoice page.
2603+
* Whether to save the payment method after a payment is completed for a one-time invoice or a
2604+
* subscription invoice when the customer already has a default payment method on the hosted
2605+
* invoice page.
26052606
*
26062607
* <p>One of {@code always}, {@code never}, or {@code offer}.
26072608
*/

src/main/java/com/stripe/model/Invoice.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ public class Invoice extends ApiResource implements HasId, MetadataStore<Invoice
174174
* A new subscription was created. * {@code subscription_cycle}: A subscription advanced into a
175175
* new period. * {@code subscription_threshold}: A subscription reached a billing threshold. *
176176
* {@code subscription_update}: A subscription was updated. * {@code upcoming}: Reserved for
177-
* simulated invoices, per the upcoming invoice endpoint.
177+
* upcoming invoices created through the Create Preview Invoice API or when an {@code
178+
* invoice.upcoming} event is generated for an upcoming invoice on a subscription.
178179
*
179180
* <p>One of {@code automatic_pending_invoice_item_invoice}, {@code manual}, {@code quote_accept},
180181
* {@code subscription}, {@code subscription_create}, {@code subscription_cycle}, {@code

src/main/java/com/stripe/model/PaymentIntent.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3591,6 +3591,14 @@ public static class MandateOptions extends StripeObject {
35913591
@Setter
35923592
@EqualsAndHashCode(callSuper = false)
35933593
public static class CardPresent extends StripeObject {
3594+
/**
3595+
* Controls when the funds will be captured from the customer's account.
3596+
*
3597+
* <p>One of {@code manual}, or {@code manual_preferred}.
3598+
*/
3599+
@SerializedName("capture_method")
3600+
String captureMethod;
3601+
35943602
/**
35953603
* Request ability to capture this payment beyond the standard <a
35963604
* href="https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity">authorization

src/main/java/com/stripe/param/AccountCreateParams.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13078,8 +13078,9 @@ public static class Invoices {
1307813078
Map<String, Object> extraParams;
1307913079

1308013080
/**
13081-
* Whether payment methods should be saved when a payment is completed for a one-time invoices
13082-
* on a hosted invoice page.
13081+
* Whether to save the payment method after a payment is completed for a one-time invoice or a
13082+
* subscription invoice when the customer already has a default payment method on the hosted
13083+
* invoice page.
1308313084
*/
1308413085
@SerializedName("hosted_payment_method_save")
1308513086
HostedPaymentMethodSave hostedPaymentMethodSave;
@@ -13134,8 +13135,9 @@ public Builder putAllExtraParam(Map<String, Object> map) {
1313413135
}
1313513136

1313613137
/**
13137-
* Whether payment methods should be saved when a payment is completed for a one-time
13138-
* invoices on a hosted invoice page.
13138+
* Whether to save the payment method after a payment is completed for a one-time invoice or
13139+
* a subscription invoice when the customer already has a default payment method on the
13140+
* hosted invoice page.
1313913141
*/
1314013142
public Builder setHostedPaymentMethodSave(
1314113143
AccountCreateParams.Settings.Invoices.HostedPaymentMethodSave hostedPaymentMethodSave) {

src/main/java/com/stripe/param/AccountUpdateParams.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13389,8 +13389,9 @@ public static class Invoices {
1338913389
Map<String, Object> extraParams;
1339013390

1339113391
/**
13392-
* Whether payment methods should be saved when a payment is completed for a one-time invoices
13393-
* on a hosted invoice page.
13392+
* Whether to save the payment method after a payment is completed for a one-time invoice or a
13393+
* subscription invoice when the customer already has a default payment method on the hosted
13394+
* invoice page.
1339413395
*/
1339513396
@SerializedName("hosted_payment_method_save")
1339613397
HostedPaymentMethodSave hostedPaymentMethodSave;
@@ -13500,8 +13501,9 @@ public Builder putAllExtraParam(Map<String, Object> map) {
1350013501
}
1350113502

1350213503
/**
13503-
* Whether payment methods should be saved when a payment is completed for a one-time
13504-
* invoices on a hosted invoice page.
13504+
* Whether to save the payment method after a payment is completed for a one-time invoice or
13505+
* a subscription invoice when the customer already has a default payment method on the
13506+
* hosted invoice page.
1350513507
*/
1350613508
public Builder setHostedPaymentMethodSave(
1350713509
AccountUpdateParams.Settings.Invoices.HostedPaymentMethodSave hostedPaymentMethodSave) {

src/main/java/com/stripe/param/CustomerSessionCreateParams.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@EqualsAndHashCode(callSuper = false)
1515
public class CustomerSessionCreateParams extends ApiRequestParams {
1616
/**
17-
* <strong>Required.</strong> Configuration for each component. Exactly 1 component must be
17+
* <strong>Required.</strong> Configuration for each component. At least 1 component must be
1818
* enabled.
1919
*/
2020
@SerializedName("components")
@@ -71,7 +71,7 @@ public CustomerSessionCreateParams build() {
7171
}
7272

7373
/**
74-
* <strong>Required.</strong> Configuration for each component. Exactly 1 component must be
74+
* <strong>Required.</strong> Configuration for each component. At least 1 component must be
7575
* enabled.
7676
*/
7777
public Builder setComponents(CustomerSessionCreateParams.Components components) {

src/main/java/com/stripe/param/PaymentIntentConfirmParams.java

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14109,6 +14109,19 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam {
1410914109
@Getter
1411014110
@EqualsAndHashCode(callSuper = false)
1411114111
public static class CardPresent {
14112+
/**
14113+
* Controls when the funds are captured from the customer's account.
14114+
*
14115+
* <p>If provided, this parameter overrides the behavior of the top-level <a
14116+
* href="https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method">capture_method</a>
14117+
* for this payment method type when finalizing the payment with this payment method type.
14118+
*
14119+
* <p>If {@code capture_method} is already set on the PaymentIntent, providing an empty value
14120+
* for this parameter unsets the stored value for this payment method type.
14121+
*/
14122+
@SerializedName("capture_method")
14123+
CaptureMethod captureMethod;
14124+
1411214125
/**
1411314126
* Map of extra parameters for custom features not available in this client library. The
1411414127
* content in this map is not serialized under this field's {@code @SerializedName} value.
@@ -14145,10 +14158,12 @@ public static class CardPresent {
1414514158
Routing routing;
1414614159

1414714160
private CardPresent(
14161+
CaptureMethod captureMethod,
1414814162
Map<String, Object> extraParams,
1414914163
Boolean requestExtendedAuthorization,
1415014164
Boolean requestIncrementalAuthorizationSupport,
1415114165
Routing routing) {
14166+
this.captureMethod = captureMethod;
1415214167
this.extraParams = extraParams;
1415314168
this.requestExtendedAuthorization = requestExtendedAuthorization;
1415414169
this.requestIncrementalAuthorizationSupport = requestIncrementalAuthorizationSupport;
@@ -14160,6 +14175,8 @@ public static Builder builder() {
1416014175
}
1416114176

1416214177
public static class Builder {
14178+
private CaptureMethod captureMethod;
14179+
1416314180
private Map<String, Object> extraParams;
1416414181

1416514182
private Boolean requestExtendedAuthorization;
@@ -14171,12 +14188,30 @@ public static class Builder {
1417114188
/** Finalize and obtain parameter instance from this builder. */
1417214189
public PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent build() {
1417314190
return new PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent(
14191+
this.captureMethod,
1417414192
this.extraParams,
1417514193
this.requestExtendedAuthorization,
1417614194
this.requestIncrementalAuthorizationSupport,
1417714195
this.routing);
1417814196
}
1417914197

14198+
/**
14199+
* Controls when the funds are captured from the customer's account.
14200+
*
14201+
* <p>If provided, this parameter overrides the behavior of the top-level <a
14202+
* href="https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method">capture_method</a>
14203+
* for this payment method type when finalizing the payment with this payment method type.
14204+
*
14205+
* <p>If {@code capture_method} is already set on the PaymentIntent, providing an empty
14206+
* value for this parameter unsets the stored value for this payment method type.
14207+
*/
14208+
public Builder setCaptureMethod(
14209+
PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent.CaptureMethod
14210+
captureMethod) {
14211+
this.captureMethod = captureMethod;
14212+
return this;
14213+
}
14214+
1418014215
/**
1418114216
* Add a key/value pair to `extraParams` map. A map is initialized for the first
1418214217
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
@@ -14331,6 +14366,21 @@ public enum RequestedPriority implements ApiRequestParams.EnumParam {
1433114366
}
1433214367
}
1433314368
}
14369+
14370+
public enum CaptureMethod implements ApiRequestParams.EnumParam {
14371+
@SerializedName("manual")
14372+
MANUAL("manual"),
14373+
14374+
@SerializedName("manual_preferred")
14375+
MANUAL_PREFERRED("manual_preferred");
14376+
14377+
@Getter(onMethod_ = {@Override})
14378+
private final String value;
14379+
14380+
CaptureMethod(String value) {
14381+
this.value = value;
14382+
}
14383+
}
1433414384
}
1433514385

1433614386
@Getter

0 commit comments

Comments
 (0)