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