authorization
@@ -5515,6 +5523,7 @@ public static class MandateOptions extends StripeObject {
/**
* The type of amount that will be collected. The amount charged must be exact or up to the
* value of {@code amount} param for {@code fixed} or {@code maximum} type respectively.
+ * Defaults to {@code maximum}.
*
* One of {@code fixed}, or {@code maximum}.
*/
@@ -5529,7 +5538,7 @@ public static class MandateOptions extends StripeObject {
String endDate;
/**
- * The periodicity at which payments will be collected.
+ * The periodicity at which payments will be collected. Defaults to {@code adhoc}.
*
*
One of {@code adhoc}, {@code annual}, {@code daily}, {@code fortnightly}, {@code
* monthly}, {@code quarterly}, {@code semi_annual}, or {@code weekly}.
@@ -5546,7 +5555,8 @@ public static class MandateOptions extends StripeObject {
Long paymentsPerPeriod;
/**
- * The purpose for which payments are made. Defaults to retail.
+ * The purpose for which payments are made. Has a default value based on your merchant
+ * category code.
*
*
One of {@code dependant_support}, {@code government}, {@code loan}, {@code mortgage},
* {@code other}, {@code pension}, {@code personal}, {@code retail}, {@code salary}, {@code
diff --git a/src/main/java/com/stripe/model/QuotePreviewInvoice.java b/src/main/java/com/stripe/model/QuotePreviewInvoice.java
index 1f0058d6137..43a165079da 100644
--- a/src/main/java/com/stripe/model/QuotePreviewInvoice.java
+++ b/src/main/java/com/stripe/model/QuotePreviewInvoice.java
@@ -161,7 +161,8 @@ public class QuotePreviewInvoice extends ApiResource implements HasId {
* A new subscription was created. * {@code subscription_cycle}: A subscription advanced into a
* new period. * {@code subscription_threshold}: A subscription reached a billing threshold. *
* {@code subscription_update}: A subscription was updated. * {@code upcoming}: Reserved for
- * simulated invoices, per the upcoming invoice endpoint.
+ * upcoming invoices created through the Create Preview Invoice API or when an {@code
+ * invoice.upcoming} event is generated for an upcoming invoice on a subscription.
*
*
One 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/SetupIntent.java b/src/main/java/com/stripe/model/SetupIntent.java
index 81e94bf8ba6..3cf06bee3e5 100644
--- a/src/main/java/com/stripe/model/SetupIntent.java
+++ b/src/main/java/com/stripe/model/SetupIntent.java
@@ -1411,6 +1411,7 @@ public static class MandateOptions extends StripeObject {
/**
* The type of amount that will be collected. The amount charged must be exact or up to the
* value of {@code amount} param for {@code fixed} or {@code maximum} type respectively.
+ * Defaults to {@code maximum}.
*
*
One of {@code fixed}, or {@code maximum}.
*/
@@ -1425,7 +1426,7 @@ public static class MandateOptions extends StripeObject {
String endDate;
/**
- * The periodicity at which payments will be collected.
+ * The periodicity at which payments will be collected. Defaults to {@code adhoc}.
*
*
One of {@code adhoc}, {@code annual}, {@code daily}, {@code fortnightly}, {@code
* monthly}, {@code quarterly}, {@code semi_annual}, or {@code weekly}.
@@ -1442,7 +1443,8 @@ public static class MandateOptions extends StripeObject {
Long paymentsPerPeriod;
/**
- * The purpose for which payments are made. Defaults to retail.
+ * The purpose for which payments are made. Has a default value based on your merchant
+ * category code.
*
*
One of {@code dependant_support}, {@code government}, {@code loan}, {@code mortgage},
* {@code other}, {@code pension}, {@code personal}, {@code retail}, {@code salary}, {@code
diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java
index ab224ada7d0..d37d901ef88 100644
--- a/src/main/java/com/stripe/model/checkout/Session.java
+++ b/src/main/java/com/stripe/model/checkout/Session.java
@@ -3633,6 +3633,7 @@ public static class MandateOptions extends StripeObject {
/**
* The type of amount that will be collected. The amount charged must be exact or up to the
* value of {@code amount} param for {@code fixed} or {@code maximum} type respectively.
+ * Defaults to {@code maximum}.
*
*
One of {@code fixed}, or {@code maximum}.
*/
@@ -3647,7 +3648,7 @@ public static class MandateOptions extends StripeObject {
String endDate;
/**
- * The periodicity at which payments will be collected.
+ * The periodicity at which payments will be collected. Defaults to {@code adhoc}.
*
*
One of {@code adhoc}, {@code annual}, {@code daily}, {@code fortnightly}, {@code
* monthly}, {@code quarterly}, {@code semi_annual}, or {@code weekly}.
@@ -3664,7 +3665,8 @@ public static class MandateOptions extends StripeObject {
Long paymentsPerPeriod;
/**
- * The purpose for which payments are made. Defaults to retail.
+ * The purpose for which payments are made. Has a default value based on your merchant
+ * category code.
*
*
One of {@code dependant_support}, {@code government}, {@code loan}, {@code mortgage},
* {@code other}, {@code pension}, {@code personal}, {@code retail}, {@code salary}, {@code
diff --git a/src/main/java/com/stripe/param/AccountCreateParams.java b/src/main/java/com/stripe/param/AccountCreateParams.java
index 1022f5aa67e..d265680014d 100644
--- a/src/main/java/com/stripe/param/AccountCreateParams.java
+++ b/src/main/java/com/stripe/param/AccountCreateParams.java
@@ -15206,8 +15206,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;
@@ -15262,8 +15263,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 b8f79658e1e..b2e7726a895 100644
--- a/src/main/java/com/stripe/param/AccountUpdateParams.java
+++ b/src/main/java/com/stripe/param/AccountUpdateParams.java
@@ -15292,8 +15292,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;
@@ -15403,8 +15404,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 a7738272279..45ade58fe6c 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")
@@ -76,7 +76,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 b2f0aa3cbea..63d7ba7b21d 100644
--- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
+++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
@@ -20172,6 +20172,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.
@@ -20208,10 +20221,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;
@@ -20223,6 +20238,8 @@ public static Builder builder() {
}
public static class Builder {
+ private CaptureMethod captureMethod;
+
private Map extraParams;
private Boolean requestExtendedAuthorization;
@@ -20234,12 +20251,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
@@ -20394,6 +20429,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
@@ -26663,6 +26713,7 @@ public static class MandateOptions {
/**
* The type of amount that will be collected. The amount charged must be exact or up to the
* value of {@code amount} param for {@code fixed} or {@code maximum} type respectively.
+ * Defaults to {@code maximum}.
*/
@SerializedName("amount_type")
AmountType amountType;
@@ -26684,7 +26735,7 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** The periodicity at which payments will be collected. */
+ /** The periodicity at which payments will be collected. Defaults to {@code adhoc}. */
@SerializedName("payment_schedule")
PaymentSchedule paymentSchedule;
@@ -26696,7 +26747,10 @@ public static class MandateOptions {
@SerializedName("payments_per_period")
Long paymentsPerPeriod;
- /** The purpose for which payments are made. Defaults to retail. */
+ /**
+ * The purpose for which payments are made. Has a default value based on your merchant
+ * category code.
+ */
@SerializedName("purpose")
Purpose purpose;
@@ -26760,7 +26814,7 @@ public Builder setAmount(Long amount) {
/**
* The type of amount that will be collected. The amount charged must be exact or up to
* the value of {@code amount} param for {@code fixed} or {@code maximum} type
- * respectively.
+ * respectively. Defaults to {@code maximum}.
*/
public Builder setAmountType(
PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.AmountType
@@ -26808,7 +26862,7 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** The periodicity at which payments will be collected. */
+ /** The periodicity at which payments will be collected. Defaults to {@code adhoc}. */
public Builder setPaymentSchedule(
PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.PaymentSchedule
paymentSchedule) {
@@ -26826,7 +26880,10 @@ public Builder setPaymentsPerPeriod(Long paymentsPerPeriod) {
return this;
}
- /** The purpose for which payments are made. Defaults to retail. */
+ /**
+ * The purpose for which payments are made. Has a default value based on your merchant
+ * category code.
+ */
public Builder setPurpose(
PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.Purpose
purpose) {
diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java
index c471496785a..28da62c1da8 100644
--- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java
+++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java
@@ -20656,6 +20656,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.
@@ -20692,10 +20705,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;
@@ -20707,6 +20722,8 @@ public static Builder builder() {
}
public static class Builder {
+ private CaptureMethod captureMethod;
+
private Map extraParams;
private Boolean requestExtendedAuthorization;
@@ -20718,12 +20735,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
@@ -20878,6 +20913,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
@@ -27139,6 +27189,7 @@ public static class MandateOptions {
/**
* The type of amount that will be collected. The amount charged must be exact or up to the
* value of {@code amount} param for {@code fixed} or {@code maximum} type respectively.
+ * Defaults to {@code maximum}.
*/
@SerializedName("amount_type")
AmountType amountType;
@@ -27160,7 +27211,7 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** The periodicity at which payments will be collected. */
+ /** The periodicity at which payments will be collected. Defaults to {@code adhoc}. */
@SerializedName("payment_schedule")
PaymentSchedule paymentSchedule;
@@ -27172,7 +27223,10 @@ public static class MandateOptions {
@SerializedName("payments_per_period")
Long paymentsPerPeriod;
- /** The purpose for which payments are made. Defaults to retail. */
+ /**
+ * The purpose for which payments are made. Has a default value based on your merchant
+ * category code.
+ */
@SerializedName("purpose")
Purpose purpose;
@@ -27236,7 +27290,7 @@ public Builder setAmount(Long amount) {
/**
* The type of amount that will be collected. The amount charged must be exact or up to
* the value of {@code amount} param for {@code fixed} or {@code maximum} type
- * respectively.
+ * respectively. Defaults to {@code maximum}.
*/
public Builder setAmountType(
PaymentIntentCreateParams.PaymentMethodOptions.Payto.MandateOptions.AmountType
@@ -27284,7 +27338,7 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** The periodicity at which payments will be collected. */
+ /** The periodicity at which payments will be collected. Defaults to {@code adhoc}. */
public Builder setPaymentSchedule(
PaymentIntentCreateParams.PaymentMethodOptions.Payto.MandateOptions.PaymentSchedule
paymentSchedule) {
@@ -27302,7 +27356,10 @@ public Builder setPaymentsPerPeriod(Long paymentsPerPeriod) {
return this;
}
- /** The purpose for which payments are made. Defaults to retail. */
+ /**
+ * The purpose for which payments are made. Has a default value based on your merchant
+ * category code.
+ */
public Builder setPurpose(
PaymentIntentCreateParams.PaymentMethodOptions.Payto.MandateOptions.Purpose purpose) {
this.purpose = purpose;
diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java
index 5f7ead890b5..495d1d1bfcc 100644
--- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java
+++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java
@@ -21247,6 +21247,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.
@@ -21283,10 +21296,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;
@@ -21298,6 +21313,8 @@ public static Builder builder() {
}
public static class Builder {
+ private CaptureMethod captureMethod;
+
private Map extraParams;
private Boolean requestExtendedAuthorization;
@@ -21309,12 +21326,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
@@ -21469,6 +21504,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
@@ -27833,6 +27883,7 @@ public static class MandateOptions {
/**
* The type of amount that will be collected. The amount charged must be exact or up to the
* value of {@code amount} param for {@code fixed} or {@code maximum} type respectively.
+ * Defaults to {@code maximum}.
*/
@SerializedName("amount_type")
AmountType amountType;
@@ -27854,7 +27905,7 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** The periodicity at which payments will be collected. */
+ /** The periodicity at which payments will be collected. Defaults to {@code adhoc}. */
@SerializedName("payment_schedule")
PaymentSchedule paymentSchedule;
@@ -27866,7 +27917,10 @@ public static class MandateOptions {
@SerializedName("payments_per_period")
Long paymentsPerPeriod;
- /** The purpose for which payments are made. Defaults to retail. */
+ /**
+ * The purpose for which payments are made. Has a default value based on your merchant
+ * category code.
+ */
@SerializedName("purpose")
Purpose purpose;
@@ -27930,7 +27984,7 @@ public Builder setAmount(Long amount) {
/**
* The type of amount that will be collected. The amount charged must be exact or up to
* the value of {@code amount} param for {@code fixed} or {@code maximum} type
- * respectively.
+ * respectively. Defaults to {@code maximum}.
*/
public Builder setAmountType(
PaymentIntentUpdateParams.PaymentMethodOptions.Payto.MandateOptions.AmountType
@@ -27987,7 +28041,7 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** The periodicity at which payments will be collected. */
+ /** The periodicity at which payments will be collected. Defaults to {@code adhoc}. */
public Builder setPaymentSchedule(
PaymentIntentUpdateParams.PaymentMethodOptions.Payto.MandateOptions.PaymentSchedule
paymentSchedule) {
@@ -28005,7 +28059,10 @@ public Builder setPaymentsPerPeriod(Long paymentsPerPeriod) {
return this;
}
- /** The purpose for which payments are made. Defaults to retail. */
+ /**
+ * The purpose for which payments are made. Has a default value based on your merchant
+ * category code.
+ */
public Builder setPurpose(
PaymentIntentUpdateParams.PaymentMethodOptions.Payto.MandateOptions.Purpose purpose) {
this.purpose = purpose;
diff --git a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java
index fb7e37c33ca..9ea6e2773ee 100644
--- a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java
+++ b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java
@@ -10269,6 +10269,7 @@ public static class MandateOptions {
/**
* The type of amount that will be collected. The amount charged must be exact or up to the
* value of {@code amount} param for {@code fixed} or {@code maximum} type respectively.
+ * Defaults to {@code maximum}.
*/
@SerializedName("amount_type")
AmountType amountType;
@@ -10290,7 +10291,7 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** The periodicity at which payments will be collected. */
+ /** The periodicity at which payments will be collected. Defaults to {@code adhoc}. */
@SerializedName("payment_schedule")
PaymentSchedule paymentSchedule;
@@ -10302,7 +10303,10 @@ public static class MandateOptions {
@SerializedName("payments_per_period")
Long paymentsPerPeriod;
- /** The purpose for which payments are made. Defaults to retail. */
+ /**
+ * The purpose for which payments are made. Has a default value based on your merchant
+ * category code.
+ */
@SerializedName("purpose")
Purpose purpose;
@@ -10378,7 +10382,7 @@ public Builder setAmount(Long amount) {
/**
* The type of amount that will be collected. The amount charged must be exact or up to
* the value of {@code amount} param for {@code fixed} or {@code maximum} type
- * respectively.
+ * respectively. Defaults to {@code maximum}.
*/
public Builder setAmountType(
SetupIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.AmountType
@@ -10426,7 +10430,7 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** The periodicity at which payments will be collected. */
+ /** The periodicity at which payments will be collected. Defaults to {@code adhoc}. */
public Builder setPaymentSchedule(
SetupIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.PaymentSchedule
paymentSchedule) {
@@ -10444,7 +10448,10 @@ public Builder setPaymentsPerPeriod(Long paymentsPerPeriod) {
return this;
}
- /** The purpose for which payments are made. Defaults to retail. */
+ /**
+ * The purpose for which payments are made. Has a default value based on your merchant
+ * category code.
+ */
public Builder setPurpose(
SetupIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.Purpose purpose) {
this.purpose = purpose;
diff --git a/src/main/java/com/stripe/param/SetupIntentCreateParams.java b/src/main/java/com/stripe/param/SetupIntentCreateParams.java
index aabcc00847f..d8183e67cbf 100644
--- a/src/main/java/com/stripe/param/SetupIntentCreateParams.java
+++ b/src/main/java/com/stripe/param/SetupIntentCreateParams.java
@@ -10801,6 +10801,7 @@ public static class MandateOptions {
/**
* The type of amount that will be collected. The amount charged must be exact or up to the
* value of {@code amount} param for {@code fixed} or {@code maximum} type respectively.
+ * Defaults to {@code maximum}.
*/
@SerializedName("amount_type")
AmountType amountType;
@@ -10822,7 +10823,7 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** The periodicity at which payments will be collected. */
+ /** The periodicity at which payments will be collected. Defaults to {@code adhoc}. */
@SerializedName("payment_schedule")
PaymentSchedule paymentSchedule;
@@ -10834,7 +10835,10 @@ public static class MandateOptions {
@SerializedName("payments_per_period")
Long paymentsPerPeriod;
- /** The purpose for which payments are made. Defaults to retail. */
+ /**
+ * The purpose for which payments are made. Has a default value based on your merchant
+ * category code.
+ */
@SerializedName("purpose")
Purpose purpose;
@@ -10910,7 +10914,7 @@ public Builder setAmount(Long amount) {
/**
* The type of amount that will be collected. The amount charged must be exact or up to
* the value of {@code amount} param for {@code fixed} or {@code maximum} type
- * respectively.
+ * respectively. Defaults to {@code maximum}.
*/
public Builder setAmountType(
SetupIntentCreateParams.PaymentMethodOptions.Payto.MandateOptions.AmountType
@@ -10958,7 +10962,7 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** The periodicity at which payments will be collected. */
+ /** The periodicity at which payments will be collected. Defaults to {@code adhoc}. */
public Builder setPaymentSchedule(
SetupIntentCreateParams.PaymentMethodOptions.Payto.MandateOptions.PaymentSchedule
paymentSchedule) {
@@ -10976,7 +10980,10 @@ public Builder setPaymentsPerPeriod(Long paymentsPerPeriod) {
return this;
}
- /** The purpose for which payments are made. Defaults to retail. */
+ /**
+ * The purpose for which payments are made. Has a default value based on your merchant
+ * category code.
+ */
public Builder setPurpose(
SetupIntentCreateParams.PaymentMethodOptions.Payto.MandateOptions.Purpose purpose) {
this.purpose = purpose;
diff --git a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java
index ae67567c368..3683869bfc3 100644
--- a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java
+++ b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java
@@ -10490,6 +10490,7 @@ public static class MandateOptions {
/**
* The type of amount that will be collected. The amount charged must be exact or up to the
* value of {@code amount} param for {@code fixed} or {@code maximum} type respectively.
+ * Defaults to {@code maximum}.
*/
@SerializedName("amount_type")
AmountType amountType;
@@ -10511,7 +10512,7 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** The periodicity at which payments will be collected. */
+ /** The periodicity at which payments will be collected. Defaults to {@code adhoc}. */
@SerializedName("payment_schedule")
PaymentSchedule paymentSchedule;
@@ -10523,7 +10524,10 @@ public static class MandateOptions {
@SerializedName("payments_per_period")
Long paymentsPerPeriod;
- /** The purpose for which payments are made. Defaults to retail. */
+ /**
+ * The purpose for which payments are made. Has a default value based on your merchant
+ * category code.
+ */
@SerializedName("purpose")
Purpose purpose;
@@ -10599,7 +10603,7 @@ public Builder setAmount(Long amount) {
/**
* The type of amount that will be collected. The amount charged must be exact or up to
* the value of {@code amount} param for {@code fixed} or {@code maximum} type
- * respectively.
+ * respectively. Defaults to {@code maximum}.
*/
public Builder setAmountType(
SetupIntentUpdateParams.PaymentMethodOptions.Payto.MandateOptions.AmountType
@@ -10656,7 +10660,7 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** The periodicity at which payments will be collected. */
+ /** The periodicity at which payments will be collected. Defaults to {@code adhoc}. */
public Builder setPaymentSchedule(
SetupIntentUpdateParams.PaymentMethodOptions.Payto.MandateOptions.PaymentSchedule
paymentSchedule) {
@@ -10674,7 +10678,10 @@ public Builder setPaymentsPerPeriod(Long paymentsPerPeriod) {
return this;
}
- /** The purpose for which payments are made. Defaults to retail. */
+ /**
+ * The purpose for which payments are made. Has a default value based on your merchant
+ * category code.
+ */
public Builder setPurpose(
SetupIntentUpdateParams.PaymentMethodOptions.Payto.MandateOptions.Purpose purpose) {
this.purpose = purpose;
diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java
index 7cc7e4dc507..75bfec2ac2c 100644
--- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java
+++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java
@@ -14731,6 +14731,7 @@ public static class MandateOptions {
/**
* The type of amount that will be collected. The amount charged must be exact or up to the
* value of {@code amount} param for {@code fixed} or {@code maximum} type respectively.
+ * Defaults to {@code maximum}.
*/
@SerializedName("amount_type")
AmountType amountType;
@@ -14752,7 +14753,7 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** The periodicity at which payments will be collected. */
+ /** The periodicity at which payments will be collected. Defaults to {@code adhoc}. */
@SerializedName("payment_schedule")
PaymentSchedule paymentSchedule;
@@ -14764,7 +14765,10 @@ public static class MandateOptions {
@SerializedName("payments_per_period")
Long paymentsPerPeriod;
- /** The purpose for which payments are made. Defaults to retail. */
+ /**
+ * The purpose for which payments are made. Has a default value based on your merchant
+ * category code.
+ */
@SerializedName("purpose")
Purpose purpose;
@@ -14840,7 +14844,7 @@ public Builder setAmount(Long amount) {
/**
* The type of amount that will be collected. The amount charged must be exact or up to
* the value of {@code amount} param for {@code fixed} or {@code maximum} type
- * respectively.
+ * respectively. Defaults to {@code maximum}.
*/
public Builder setAmountType(
SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.AmountType amountType) {
@@ -14887,7 +14891,7 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** The periodicity at which payments will be collected. */
+ /** The periodicity at which payments will be collected. Defaults to {@code adhoc}. */
public Builder setPaymentSchedule(
SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.PaymentSchedule
paymentSchedule) {
@@ -14905,7 +14909,10 @@ public Builder setPaymentsPerPeriod(Long paymentsPerPeriod) {
return this;
}
- /** The purpose for which payments are made. Defaults to retail. */
+ /**
+ * The purpose for which payments are made. Has a default value based on your merchant
+ * category code.
+ */
public Builder setPurpose(
SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.Purpose purpose) {
this.purpose = purpose;
diff --git a/src/main/java/com/stripe/param/terminal/ConfigurationCreateParams.java b/src/main/java/com/stripe/param/terminal/ConfigurationCreateParams.java
index a641a4b7a13..0b790b5f102 100644
--- a/src/main/java/com/stripe/param/terminal/ConfigurationCreateParams.java
+++ b/src/main/java/com/stripe/param/terminal/ConfigurationCreateParams.java
@@ -47,7 +47,7 @@ public class ConfigurationCreateParams extends ApiRequestParams {
@SerializedName("reader_security")
Object readerSecurity;
- /** 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;
@@ -55,7 +55,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;
@@ -234,7 +234,7 @@ public Builder setReaderSecurity(EmptyParam readerSecurity) {
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;
@@ -246,13 +246,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;
@@ -289,7 +289,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;
@@ -339,13 +339,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;
@@ -688,7 +688,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;
@@ -737,13 +737,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;
@@ -4407,7 +4407,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;
@@ -4456,13 +4456,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 f0c9de33cba..3399efa11bc 100644
--- a/src/main/java/com/stripe/param/terminal/ConfigurationUpdateParams.java
+++ b/src/main/java/com/stripe/param/terminal/ConfigurationUpdateParams.java
@@ -47,7 +47,7 @@ public class ConfigurationUpdateParams extends ApiRequestParams {
@SerializedName("reader_security")
Object readerSecurity;
- /** 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;
@@ -55,7 +55,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;
@@ -252,13 +252,13 @@ public Builder setReaderSecurity(EmptyParam readerSecurity) {
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;
@@ -276,13 +276,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;
@@ -325,7 +325,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;
@@ -375,13 +375,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;
@@ -724,7 +724,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;
@@ -773,13 +773,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;
@@ -4443,7 +4443,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;
@@ -4492,13 +4492,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;
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 04/17] 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 05/17] 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
-[](https://mvnrepository.com/artifact/com.stripe/stripe-java)
+[](https://mvnrepository.com/artifact/com.stripe/stripe-java)
[](https://stripe.dev/stripe-java)
[](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;
From b576d9634956e1c68a93c2613a8d7c52a9dac5c4 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Fri, 7 Nov 2025 17:41:09 +0000
Subject: [PATCH 06/17] Update generated code for v2113 and
---
API_VERSION | 2 +-
OPENAPI_VERSION | 2 +-
...tsOffSessionPaymentAttemptFailedEvent.java | 22 +
...PaymentAttemptFailedEventNotification.java | 28 +
...sOffSessionPaymentAttemptStartedEvent.java | 22 +
...aymentAttemptStartedEventNotification.java | 28 +
.../stripe/model/v2/EventDataClassLookup.java | 6 +
.../v2/EventNotificationClassLookup.java | 6 +
.../com/stripe/model/v2/core/Account.java | 23 +-
.../model/v2/payments/OffSessionPayment.java | 109 ----
.../OffSessionPaymentCaptureParams.java | 28 +-
.../OffSessionPaymentCreateParams.java | 605 +-----------------
.../stripe/functional/GeneratedExamples.java | 1 -
13 files changed, 135 insertions(+), 747 deletions(-)
create mode 100644 src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptFailedEvent.java
create mode 100644 src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptFailedEventNotification.java
create mode 100644 src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptStartedEvent.java
create mode 100644 src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptStartedEventNotification.java
diff --git a/API_VERSION b/API_VERSION
index dffa3a76a26..8ab5aad442e 100644
--- a/API_VERSION
+++ b/API_VERSION
@@ -1 +1 @@
-6d15a7f20cb77c2c22091a30e499cb89d7e3248c
\ No newline at end of file
+6e09523f05606953bb23892f6c4e3fe58fe5ce92
\ No newline at end of file
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 219e2f02a74..5c19124a9fa 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2112
\ No newline at end of file
+v2113
\ No newline at end of file
diff --git a/src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptFailedEvent.java b/src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptFailedEvent.java
new file mode 100644
index 00000000000..aa8d7203b89
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptFailedEvent.java
@@ -0,0 +1,22 @@
+// File generated from our OpenAPI spec
+package com.stripe.events;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.exception.StripeException;
+import com.stripe.model.v2.core.Event;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import com.stripe.model.v2.payments.OffSessionPayment;
+import lombok.Getter;
+
+@Getter
+public final class V2PaymentsOffSessionPaymentAttemptFailedEvent extends Event {
+ @SerializedName("related_object")
+
+ /** Object containing the reference to API resource relevant to the event. */
+ RelatedObject relatedObject;
+
+ /** Retrieves the related object from the API. Make an API request on every call. */
+ public OffSessionPayment fetchRelatedObject() throws StripeException {
+ return (OffSessionPayment) super.fetchRelatedObject(this.relatedObject);
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptFailedEventNotification.java b/src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptFailedEventNotification.java
new file mode 100644
index 00000000000..8efcf8fda14
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptFailedEventNotification.java
@@ -0,0 +1,28 @@
+// File generated from our OpenAPI spec
+package com.stripe.events;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.exception.StripeException;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import com.stripe.model.v2.core.EventNotification;
+import com.stripe.model.v2.payments.OffSessionPayment;
+import lombok.Getter;
+
+@Getter
+public final class V2PaymentsOffSessionPaymentAttemptFailedEventNotification
+ extends EventNotification {
+ @SerializedName("related_object")
+
+ /** Object containing the reference to API resource relevant to the event. */
+ RelatedObject relatedObject;
+
+ /** Retrieves the related object from the API. Make an API request on every call. */
+ public OffSessionPayment fetchRelatedObject() throws StripeException {
+ return (OffSessionPayment) super.fetchRelatedObject(this.relatedObject);
+ }
+ /** Retrieve the corresponding full event from the Stripe API. */
+ @Override
+ public V2PaymentsOffSessionPaymentAttemptFailedEvent fetchEvent() throws StripeException {
+ return (V2PaymentsOffSessionPaymentAttemptFailedEvent) super.fetchEvent();
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptStartedEvent.java b/src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptStartedEvent.java
new file mode 100644
index 00000000000..9f52eb0c2d5
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptStartedEvent.java
@@ -0,0 +1,22 @@
+// File generated from our OpenAPI spec
+package com.stripe.events;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.exception.StripeException;
+import com.stripe.model.v2.core.Event;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import com.stripe.model.v2.payments.OffSessionPayment;
+import lombok.Getter;
+
+@Getter
+public final class V2PaymentsOffSessionPaymentAttemptStartedEvent extends Event {
+ @SerializedName("related_object")
+
+ /** Object containing the reference to API resource relevant to the event. */
+ RelatedObject relatedObject;
+
+ /** Retrieves the related object from the API. Make an API request on every call. */
+ public OffSessionPayment fetchRelatedObject() throws StripeException {
+ return (OffSessionPayment) super.fetchRelatedObject(this.relatedObject);
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptStartedEventNotification.java b/src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptStartedEventNotification.java
new file mode 100644
index 00000000000..69a46100690
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptStartedEventNotification.java
@@ -0,0 +1,28 @@
+// File generated from our OpenAPI spec
+package com.stripe.events;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.exception.StripeException;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import com.stripe.model.v2.core.EventNotification;
+import com.stripe.model.v2.payments.OffSessionPayment;
+import lombok.Getter;
+
+@Getter
+public final class V2PaymentsOffSessionPaymentAttemptStartedEventNotification
+ extends EventNotification {
+ @SerializedName("related_object")
+
+ /** Object containing the reference to API resource relevant to the event. */
+ RelatedObject relatedObject;
+
+ /** Retrieves the related object from the API. Make an API request on every call. */
+ public OffSessionPayment fetchRelatedObject() throws StripeException {
+ return (OffSessionPayment) super.fetchRelatedObject(this.relatedObject);
+ }
+ /** Retrieve the corresponding full event from the Stripe API. */
+ @Override
+ public V2PaymentsOffSessionPaymentAttemptStartedEvent fetchEvent() throws StripeException {
+ return (V2PaymentsOffSessionPaymentAttemptStartedEvent) super.fetchEvent();
+ }
+}
diff --git a/src/main/java/com/stripe/model/v2/EventDataClassLookup.java b/src/main/java/com/stripe/model/v2/EventDataClassLookup.java
index 75fe5e952fd..4f44b081d4c 100644
--- a/src/main/java/com/stripe/model/v2/EventDataClassLookup.java
+++ b/src/main/java/com/stripe/model/v2/EventDataClassLookup.java
@@ -261,6 +261,12 @@ public final class EventDataClassLookup {
eventClassLookup.put(
"v2.money_management.transaction.updated",
com.stripe.events.V2MoneyManagementTransactionUpdatedEvent.class);
+ eventClassLookup.put(
+ "v2.payments.off_session_payment.attempt_failed",
+ com.stripe.events.V2PaymentsOffSessionPaymentAttemptFailedEvent.class);
+ eventClassLookup.put(
+ "v2.payments.off_session_payment.attempt_started",
+ com.stripe.events.V2PaymentsOffSessionPaymentAttemptStartedEvent.class);
eventClassLookup.put(
"v2.payments.off_session_payment.authorization_attempt_failed",
com.stripe.events.V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent.class);
diff --git a/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java b/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java
index f8760c0b9b2..96073e31fd2 100644
--- a/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java
+++ b/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java
@@ -194,6 +194,12 @@ public final class EventNotificationClassLookup {
eventClassLookup.put(
"v2.money_management.transaction.updated",
com.stripe.events.V2MoneyManagementTransactionUpdatedEventNotification.class);
+ eventClassLookup.put(
+ "v2.payments.off_session_payment.attempt_failed",
+ com.stripe.events.V2PaymentsOffSessionPaymentAttemptFailedEventNotification.class);
+ eventClassLookup.put(
+ "v2.payments.off_session_payment.attempt_started",
+ com.stripe.events.V2PaymentsOffSessionPaymentAttemptStartedEventNotification.class);
eventClassLookup.put(
"v2.payments.off_session_payment.authorization_attempt_failed",
com.stripe.events.V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEventNotification
diff --git a/src/main/java/com/stripe/model/v2/core/Account.java b/src/main/java/com/stripe/model/v2/core/Account.java
index 86b756238f3..1fa796bb0b5 100644
--- a/src/main/java/com/stripe/model/v2/core/Account.java
+++ b/src/main/java/com/stripe/model/v2/core/Account.java
@@ -4683,6 +4683,14 @@ public static class Responsibilities extends StripeObject {
*/
@SerializedName("losses_collector")
String lossesCollector;
+
+ /**
+ * A value indicating responsibility for collecting requirements on this account.
+ *
+ * One of {@code application}, or {@code stripe}.
+ */
+ @SerializedName("requirements_collector")
+ String requirementsCollector;
}
}
@@ -6281,14 +6289,6 @@ public static class Kanji extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Requirements extends StripeObject {
- /**
- * A value indicating responsibility for collecting requirements on this account.
- *
- *
One of {@code application}, or {@code stripe}.
- */
- @SerializedName("collector")
- String collector;
-
/** A list of requirements for the Account. */
@SerializedName("entries")
List entries;
@@ -6538,10 +6538,11 @@ public static class Reference extends StripeObject {
String resource;
/**
- * The type of the reference. An additional hash is included with a name matching the type.
- * It contains additional information specific to the type.
+ * The type of the reference. If the type is "inquiry", the inquiry token can be
+ * found in the "inquiry" field. Otherwise the type is an API resource, the token
+ * for which can be found in the "resource" field.
*
- * One of {@code inquiry}, or {@code resource}.
+ *
One of {@code inquiry}, {@code payment_method}, or {@code person}.
*/
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/model/v2/payments/OffSessionPayment.java b/src/main/java/com/stripe/model/v2/payments/OffSessionPayment.java
index 96b5161e84f..33421eaca2f 100644
--- a/src/main/java/com/stripe/model/v2/payments/OffSessionPayment.java
+++ b/src/main/java/com/stripe/model/v2/payments/OffSessionPayment.java
@@ -6,7 +6,6 @@
import com.stripe.model.StripeObject;
import com.stripe.v2.Amount;
import java.time.Instant;
-import java.util.List;
import java.util.Map;
import lombok.EqualsAndHashCode;
import lombok.Getter;
@@ -21,10 +20,6 @@ public class OffSessionPayment extends StripeObject implements HasId {
@SerializedName("amount_capturable")
Amount amountCapturable;
- /** Provides industry-specific information about the amount. */
- @SerializedName("amount_details")
- AmountDetails amountDetails;
-
/** The “presentment amount” to be collected from the customer. */
@SerializedName("amount_requested")
Amount amountRequested;
@@ -41,14 +36,6 @@ public class OffSessionPayment extends StripeObject implements HasId {
@SerializedName("capture")
Capture capture;
- /**
- * Whether the OffSessionPayment should be captured automatically or manually.
- *
- *
One of {@code automatic}, or {@code manual}.
- */
- @SerializedName("capture_method")
- String captureMethod;
-
/** ID of the owning compartment. */
@SerializedName("compartment_id")
String compartmentId;
@@ -170,102 +157,6 @@ public class OffSessionPayment extends StripeObject implements HasId {
@SerializedName("transfer_data")
TransferData transferData;
- /** Provides industry-specific information about the amount. */
- @Getter
- @Setter
- @EqualsAndHashCode(callSuper = false)
- public static class AmountDetails extends StripeObject {
- /** The amount the total transaction was discounted for. */
- @SerializedName("discount_amount")
- Long discountAmount;
-
- /**
- * A list of line items, each containing information about a product in the PaymentIntent. There
- * is a maximum of 100 line items.
- */
- @SerializedName("line_items")
- List lineItems;
-
- /** Contains information about the shipping portion of the amount. */
- @SerializedName("shipping")
- Shipping shipping;
-
- /** Contains information about the tax portion of the amount. */
- @SerializedName("tax")
- Tax tax;
-
- /**
- * For more details about LineItem, please refer to the API Reference.
- */
- @Getter
- @Setter
- @EqualsAndHashCode(callSuper = false)
- public static class LineItem extends StripeObject {
- /** The amount an item was discounted for. Positive integer. */
- @SerializedName("discount_amount")
- Long discountAmount;
-
- /** Unique identifier of the product. At most 12 characters long. */
- @SerializedName("product_code")
- String productCode;
-
- /** Name of the product. At most 100 characters long. */
- @SerializedName("product_name")
- String productName;
-
- /** Number of items of the product. Positive integer. */
- @SerializedName("quantity")
- Long quantity;
-
- /** Contains information about the tax on the item. */
- @SerializedName("tax")
- Tax tax;
-
- /** Cost of the product. Non-negative integer. */
- @SerializedName("unit_cost")
- Long unitCost;
-
- /** Contains information about the tax on the item. */
- @Getter
- @Setter
- @EqualsAndHashCode(callSuper = false)
- public static class Tax extends StripeObject {
- /** Total portion of the amount that is for tax. */
- @SerializedName("total_tax_amount")
- Long totalTaxAmount;
- }
- }
-
- /** Contains information about the shipping portion of the amount. */
- @Getter
- @Setter
- @EqualsAndHashCode(callSuper = false)
- public static class Shipping extends StripeObject {
- /** Portion of the amount that is for shipping. */
- @SerializedName("amount")
- Long amount;
-
- /** The postal code that represents the shipping source. */
- @SerializedName("from_postal_code")
- String fromPostalCode;
-
- /** The postal code that represents the shipping destination. */
- @SerializedName("to_postal_code")
- String toPostalCode;
- }
-
- /** Contains information about the tax portion of the amount. */
- @Getter
- @Setter
- @EqualsAndHashCode(callSuper = false)
- public static class Tax extends StripeObject {
- /** Total portion of the amount that is for tax. */
- @SerializedName("total_tax_amount")
- Long totalTaxAmount;
- }
- }
-
/** Details about the capture configuration for the OffSessionPayment. */
@Getter
@Setter
diff --git a/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCaptureParams.java b/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCaptureParams.java
index b85572b0c82..302f905d6b3 100644
--- a/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCaptureParams.java
+++ b/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCaptureParams.java
@@ -11,7 +11,7 @@
@Getter
@EqualsAndHashCode(callSuper = false)
public class OffSessionPaymentCaptureParams extends ApiRequestParams {
- /** Required. The amount to capture. */
+ /** The amount to capture. */
@SerializedName("amount_to_capture")
Long amountToCapture;
@@ -104,7 +104,7 @@ public OffSessionPaymentCaptureParams build() {
this.transferData);
}
- /** Required. The amount to capture. */
+ /** The amount to capture. */
public Builder setAmountToCapture(Long amountToCapture) {
this.amountToCapture = amountToCapture;
return this;
@@ -210,13 +210,6 @@ public static class TransferData {
@SerializedName("amount")
Long amount;
- /**
- * Required. The account (if any) that the payment is attributed to for tax
- * reporting, and where funds from the payment are transferred to after payment success.
- */
- @SerializedName("destination")
- String destination;
-
/**
* 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. Instead, each
@@ -226,9 +219,8 @@ public static class TransferData {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private TransferData(Long amount, String destination, Map extraParams) {
+ private TransferData(Long amount, Map extraParams) {
this.amount = amount;
- this.destination = destination;
this.extraParams = extraParams;
}
@@ -239,14 +231,11 @@ public static Builder builder() {
public static class Builder {
private Long amount;
- private String destination;
-
private Map extraParams;
/** Finalize and obtain parameter instance from this builder. */
public OffSessionPaymentCaptureParams.TransferData build() {
- return new OffSessionPaymentCaptureParams.TransferData(
- this.amount, this.destination, this.extraParams);
+ return new OffSessionPaymentCaptureParams.TransferData(this.amount, this.extraParams);
}
/**
@@ -262,15 +251,6 @@ public Builder setAmount(Long amount) {
return this;
}
- /**
- * Required. The account (if any) that the payment is attributed to for tax
- * reporting, and where funds from the payment are transferred to after payment success.
- */
- public Builder setDestination(String destination) {
- this.destination = destination;
- 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 map. See {@link
diff --git a/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCreateParams.java b/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCreateParams.java
index 594d724bfd7..3d27c0e2172 100644
--- a/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCreateParams.java
+++ b/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCreateParams.java
@@ -4,9 +4,7 @@
import com.google.gson.annotations.SerializedName;
import com.stripe.net.ApiRequestParams;
import com.stripe.v2.Amount;
-import java.util.ArrayList;
import java.util.HashMap;
-import java.util.List;
import java.util.Map;
import lombok.EqualsAndHashCode;
import lombok.Getter;
@@ -18,10 +16,6 @@ public class OffSessionPaymentCreateParams extends ApiRequestParams {
@SerializedName("amount")
Amount amount;
- /** Provides industry-specific information about the amount. */
- @SerializedName("amount_details")
- AmountDetails amountDetails;
-
/** Required. The frequency of the underlying payment. */
@SerializedName("cadence")
Cadence cadence;
@@ -30,10 +24,6 @@ public class OffSessionPaymentCreateParams extends ApiRequestParams {
@SerializedName("capture")
Capture capture;
- /** Whether the OffSessionPayment should be captured automatically or manually. */
- @SerializedName("capture_method")
- CaptureMethod captureMethod;
-
/** Required. ID of the Customer to which this OffSessionPayment belongs. */
@SerializedName("customer")
String customer;
@@ -110,10 +100,8 @@ public class OffSessionPaymentCreateParams extends ApiRequestParams {
private OffSessionPaymentCreateParams(
Amount amount,
- AmountDetails amountDetails,
Cadence cadence,
Capture capture,
- CaptureMethod captureMethod,
String customer,
Map extraParams,
Map metadata,
@@ -127,10 +115,8 @@ private OffSessionPaymentCreateParams(
String testClock,
TransferData transferData) {
this.amount = amount;
- this.amountDetails = amountDetails;
this.cadence = cadence;
this.capture = capture;
- this.captureMethod = captureMethod;
this.customer = customer;
this.extraParams = extraParams;
this.metadata = metadata;
@@ -152,14 +138,10 @@ public static Builder builder() {
public static class Builder {
private Amount amount;
- private AmountDetails amountDetails;
-
private Cadence cadence;
private Capture capture;
- private CaptureMethod captureMethod;
-
private String customer;
private Map extraParams;
@@ -188,10 +170,8 @@ public static class Builder {
public OffSessionPaymentCreateParams build() {
return new OffSessionPaymentCreateParams(
this.amount,
- this.amountDetails,
this.cadence,
this.capture,
- this.captureMethod,
this.customer,
this.extraParams,
this.metadata,
@@ -212,12 +192,6 @@ public Builder setAmount(Amount amount) {
return this;
}
- /** Provides industry-specific information about the amount. */
- public Builder setAmountDetails(OffSessionPaymentCreateParams.AmountDetails amountDetails) {
- this.amountDetails = amountDetails;
- return this;
- }
-
/** Required. The frequency of the underlying payment. */
public Builder setCadence(OffSessionPaymentCreateParams.Cadence cadence) {
this.cadence = cadence;
@@ -230,12 +204,6 @@ public Builder setCapture(OffSessionPaymentCreateParams.Capture capture) {
return this;
}
- /** Whether the OffSessionPayment should be captured automatically or manually. */
- public Builder setCaptureMethod(OffSessionPaymentCreateParams.CaptureMethod captureMethod) {
- this.captureMethod = captureMethod;
- return this;
- }
-
/** Required. ID of the Customer to which this OffSessionPayment belongs. */
public Builder setCustomer(String customer) {
this.customer = customer;
@@ -366,542 +334,6 @@ public Builder setTransferData(OffSessionPaymentCreateParams.TransferData transf
}
}
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class AmountDetails {
- /** The amount the total transaction was discounted for. */
- @SerializedName("discount_amount")
- Long discountAmount;
-
- /**
- * 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. Instead, each
- * key/value pair is serialized as if the key is a root-level field (serialized) name in this
- * param object. Effectively, this map is flattened to its parent instance.
- */
- @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
- Map extraParams;
-
- /**
- * Required. A list of line items, each containing information about a product
- * in the PaymentIntent. There is a maximum of 100 line items.
- */
- @SerializedName("line_items")
- List lineItems;
-
- /** Contains information about the shipping portion of the amount. */
- @SerializedName("shipping")
- Shipping shipping;
-
- /** Contains information about the tax portion of the amount. */
- @SerializedName("tax")
- Tax tax;
-
- private AmountDetails(
- Long discountAmount,
- Map extraParams,
- List lineItems,
- Shipping shipping,
- Tax tax) {
- this.discountAmount = discountAmount;
- this.extraParams = extraParams;
- this.lineItems = lineItems;
- this.shipping = shipping;
- this.tax = tax;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Long discountAmount;
-
- private Map extraParams;
-
- private List lineItems;
-
- private Shipping shipping;
-
- private Tax tax;
-
- /** Finalize and obtain parameter instance from this builder. */
- public OffSessionPaymentCreateParams.AmountDetails build() {
- return new OffSessionPaymentCreateParams.AmountDetails(
- this.discountAmount, this.extraParams, this.lineItems, this.shipping, this.tax);
- }
-
- /** The amount the total transaction was discounted for. */
- public Builder setDiscountAmount(Long discountAmount) {
- this.discountAmount = discountAmount;
- 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 map. See {@link
- * OffSessionPaymentCreateParams.AmountDetails#extraParams} for the field documentation.
- */
- public Builder putExtraParam(String key, Object value) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.put(key, value);
- return this;
- }
-
- /**
- * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
- * See {@link OffSessionPaymentCreateParams.AmountDetails#extraParams} for the field
- * documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
-
- /**
- * Add an element to `lineItems` list. A list is initialized for the first `add/addAll` call,
- * and subsequent calls adds additional elements to the original list. See {@link
- * OffSessionPaymentCreateParams.AmountDetails#lineItems} for the field documentation.
- */
- public Builder addLineItem(OffSessionPaymentCreateParams.AmountDetails.LineItem element) {
- if (this.lineItems == null) {
- this.lineItems = new ArrayList<>();
- }
- this.lineItems.add(element);
- return this;
- }
-
- /**
- * Add all elements to `lineItems` list. A list is initialized for the first `add/addAll`
- * call, and subsequent calls adds additional elements to the original list. See {@link
- * OffSessionPaymentCreateParams.AmountDetails#lineItems} for the field documentation.
- */
- public Builder addAllLineItem(
- List elements) {
- if (this.lineItems == null) {
- this.lineItems = new ArrayList<>();
- }
- this.lineItems.addAll(elements);
- return this;
- }
-
- /** Contains information about the shipping portion of the amount. */
- public Builder setShipping(OffSessionPaymentCreateParams.AmountDetails.Shipping shipping) {
- this.shipping = shipping;
- return this;
- }
-
- /** Contains information about the tax portion of the amount. */
- public Builder setTax(OffSessionPaymentCreateParams.AmountDetails.Tax tax) {
- this.tax = tax;
- return this;
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class LineItem {
- /** The amount an item was discounted for. Positive integer. */
- @SerializedName("discount_amount")
- Long discountAmount;
-
- /**
- * 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.
- * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
- * name in this param object. Effectively, this map is flattened to its parent instance.
- */
- @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
- Map extraParams;
-
- /** Unique identifier of the product. At most 12 characters long. */
- @SerializedName("product_code")
- String productCode;
-
- /** Required. Name of the product. At most 100 characters long. */
- @SerializedName("product_name")
- String productName;
-
- /** Required. Number of items of the product. Positive integer. */
- @SerializedName("quantity")
- Long quantity;
-
- /** Contains information about the tax on the item. */
- @SerializedName("tax")
- Tax tax;
-
- /** Required. Cost of the product. Non-negative integer. */
- @SerializedName("unit_cost")
- Long unitCost;
-
- private LineItem(
- Long discountAmount,
- Map extraParams,
- String productCode,
- String productName,
- Long quantity,
- Tax tax,
- Long unitCost) {
- this.discountAmount = discountAmount;
- this.extraParams = extraParams;
- this.productCode = productCode;
- this.productName = productName;
- this.quantity = quantity;
- this.tax = tax;
- this.unitCost = unitCost;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Long discountAmount;
-
- private Map extraParams;
-
- private String productCode;
-
- private String productName;
-
- private Long quantity;
-
- private Tax tax;
-
- private Long unitCost;
-
- /** Finalize and obtain parameter instance from this builder. */
- public OffSessionPaymentCreateParams.AmountDetails.LineItem build() {
- return new OffSessionPaymentCreateParams.AmountDetails.LineItem(
- this.discountAmount,
- this.extraParams,
- this.productCode,
- this.productName,
- this.quantity,
- this.tax,
- this.unitCost);
- }
-
- /** The amount an item was discounted for. Positive integer. */
- public Builder setDiscountAmount(Long discountAmount) {
- this.discountAmount = discountAmount;
- 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
- * map. See {@link OffSessionPaymentCreateParams.AmountDetails.LineItem#extraParams} for the
- * field documentation.
- */
- public Builder putExtraParam(String key, Object value) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.put(key, value);
- return this;
- }
-
- /**
- * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link OffSessionPaymentCreateParams.AmountDetails.LineItem#extraParams} for the
- * field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
-
- /** Unique identifier of the product. At most 12 characters long. */
- public Builder setProductCode(String productCode) {
- this.productCode = productCode;
- return this;
- }
-
- /** Required. Name of the product. At most 100 characters long. */
- public Builder setProductName(String productName) {
- this.productName = productName;
- return this;
- }
-
- /** Required. Number of items of the product. Positive integer. */
- public Builder setQuantity(Long quantity) {
- this.quantity = quantity;
- return this;
- }
-
- /** Contains information about the tax on the item. */
- public Builder setTax(OffSessionPaymentCreateParams.AmountDetails.LineItem.Tax tax) {
- this.tax = tax;
- return this;
- }
-
- /** Required. Cost of the product. Non-negative integer. */
- public Builder setUnitCost(Long unitCost) {
- this.unitCost = unitCost;
- return this;
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Tax {
- /**
- * 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.
- * Instead, each key/value pair is serialized as if the key is a root-level field
- * (serialized) name in this param object. Effectively, this map is flattened to its parent
- * instance.
- */
- @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
- Map extraParams;
-
- /** Total portion of the amount that is for tax. */
- @SerializedName("total_tax_amount")
- Long totalTaxAmount;
-
- private Tax(Map extraParams, Long totalTaxAmount) {
- this.extraParams = extraParams;
- this.totalTaxAmount = totalTaxAmount;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
-
- private Long totalTaxAmount;
-
- /** Finalize and obtain parameter instance from this builder. */
- public OffSessionPaymentCreateParams.AmountDetails.LineItem.Tax build() {
- return new OffSessionPaymentCreateParams.AmountDetails.LineItem.Tax(
- this.extraParams, this.totalTaxAmount);
- }
-
- /**
- * 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
- * map. See {@link OffSessionPaymentCreateParams.AmountDetails.LineItem.Tax#extraParams}
- * for the field documentation.
- */
- public Builder putExtraParam(String key, Object value) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.put(key, value);
- return this;
- }
-
- /**
- * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link OffSessionPaymentCreateParams.AmountDetails.LineItem.Tax#extraParams}
- * for the field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
-
- /** Total portion of the amount that is for tax. */
- public Builder setTotalTaxAmount(Long totalTaxAmount) {
- this.totalTaxAmount = totalTaxAmount;
- return this;
- }
- }
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Shipping {
- /** Portion of the amount that is for shipping. */
- @SerializedName("amount")
- Long amount;
-
- /**
- * 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.
- * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
- * name in this param object. Effectively, this map is flattened to its parent instance.
- */
- @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
- Map extraParams;
-
- /** The postal code that represents the shipping source. */
- @SerializedName("from_postal_code")
- String fromPostalCode;
-
- /** The postal code that represents the shipping destination. */
- @SerializedName("to_postal_code")
- String toPostalCode;
-
- private Shipping(
- Long amount,
- Map extraParams,
- String fromPostalCode,
- String toPostalCode) {
- this.amount = amount;
- this.extraParams = extraParams;
- this.fromPostalCode = fromPostalCode;
- this.toPostalCode = toPostalCode;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Long amount;
-
- private Map extraParams;
-
- private String fromPostalCode;
-
- private String toPostalCode;
-
- /** Finalize and obtain parameter instance from this builder. */
- public OffSessionPaymentCreateParams.AmountDetails.Shipping build() {
- return new OffSessionPaymentCreateParams.AmountDetails.Shipping(
- this.amount, this.extraParams, this.fromPostalCode, this.toPostalCode);
- }
-
- /** Portion of the amount that is for shipping. */
- public Builder setAmount(Long amount) {
- this.amount = amount;
- 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
- * map. See {@link OffSessionPaymentCreateParams.AmountDetails.Shipping#extraParams} for the
- * field documentation.
- */
- public Builder putExtraParam(String key, Object value) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.put(key, value);
- return this;
- }
-
- /**
- * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link OffSessionPaymentCreateParams.AmountDetails.Shipping#extraParams} for the
- * field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
-
- /** The postal code that represents the shipping source. */
- public Builder setFromPostalCode(String fromPostalCode) {
- this.fromPostalCode = fromPostalCode;
- return this;
- }
-
- /** The postal code that represents the shipping destination. */
- public Builder setToPostalCode(String toPostalCode) {
- this.toPostalCode = toPostalCode;
- return this;
- }
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Tax {
- /**
- * 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.
- * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
- * name in this param object. Effectively, this map is flattened to its parent instance.
- */
- @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
- Map extraParams;
-
- /** Total portion of the amount that is for tax. */
- @SerializedName("total_tax_amount")
- Long totalTaxAmount;
-
- private Tax(Map extraParams, Long totalTaxAmount) {
- this.extraParams = extraParams;
- this.totalTaxAmount = totalTaxAmount;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
-
- private Long totalTaxAmount;
-
- /** Finalize and obtain parameter instance from this builder. */
- public OffSessionPaymentCreateParams.AmountDetails.Tax build() {
- return new OffSessionPaymentCreateParams.AmountDetails.Tax(
- this.extraParams, this.totalTaxAmount);
- }
-
- /**
- * 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
- * map. See {@link OffSessionPaymentCreateParams.AmountDetails.Tax#extraParams} for the
- * field documentation.
- */
- public Builder putExtraParam(String key, Object value) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.put(key, value);
- return this;
- }
-
- /**
- * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link OffSessionPaymentCreateParams.AmountDetails.Tax#extraParams} for the
- * field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
-
- /** Total portion of the amount that is for tax. */
- public Builder setTotalTaxAmount(Long totalTaxAmount) {
- this.totalTaxAmount = totalTaxAmount;
- return this;
- }
- }
- }
- }
-
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Capture {
@@ -1244,10 +676,7 @@ public static class RetryDetails {
@SerializedName("retry_policy")
String retryPolicy;
- /**
- * Required. Indicates the strategy for how you want Stripe to retry the
- * payment.
- */
+ /** Indicates the strategy for how you want Stripe to retry the payment. */
@SerializedName("retry_strategy")
RetryStrategy retryStrategy;
@@ -1308,10 +737,7 @@ public Builder setRetryPolicy(String retryPolicy) {
return this;
}
- /**
- * Required. Indicates the strategy for how you want Stripe to retry the
- * payment.
- */
+ /** Indicates the strategy for how you want Stripe to retry the payment. */
public Builder setRetryStrategy(
OffSessionPaymentCreateParams.RetryDetails.RetryStrategy retryStrategy) {
this.retryStrategy = retryStrategy;
@@ -1320,17 +746,11 @@ public Builder setRetryStrategy(
}
public enum RetryStrategy implements ApiRequestParams.EnumParam {
- @SerializedName("heuristic")
- HEURISTIC("heuristic"),
+ @SerializedName("best_available")
+ BEST_AVAILABLE("best_available"),
@SerializedName("none")
- NONE("none"),
-
- @SerializedName("scheduled")
- SCHEDULED("scheduled"),
-
- @SerializedName("smart")
- SMART("smart");
+ NONE("none");
@Getter(onMethod_ = {@Override})
private final String value;
@@ -1459,19 +879,4 @@ public enum Cadence implements ApiRequestParams.EnumParam {
this.value = value;
}
}
-
- public enum CaptureMethod implements ApiRequestParams.EnumParam {
- @SerializedName("automatic")
- AUTOMATIC("automatic"),
-
- @SerializedName("manual")
- MANUAL("manual");
-
- @Getter(onMethod_ = {@Override})
- private final String value;
-
- CaptureMethod(String value) {
- this.value = value;
- }
- }
}
diff --git a/src/test/java/com/stripe/functional/GeneratedExamples.java b/src/test/java/com/stripe/functional/GeneratedExamples.java
index 8feed7d3af9..a75933e4fe4 100644
--- a/src/test/java/com/stripe/functional/GeneratedExamples.java
+++ b/src/test/java/com/stripe/functional/GeneratedExamples.java
@@ -27256,7 +27256,6 @@ public void testV2PaymentsOffSessionPaymentPost3Services() throws StripeExceptio
com.stripe.param.v2.payments.OffSessionPaymentCaptureParams params =
com.stripe.param.v2.payments.OffSessionPaymentCaptureParams.builder()
- .setAmountToCapture(1374310455L)
.putMetadata("key", "metadata")
.build();
From eeec996e3f67bb168fed399b1bf6c116e81cb99f Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Fri, 7 Nov 2025 21:17:56 +0000
Subject: [PATCH 07/17] Update generated code for v2113 and
---
API_VERSION | 2 +-
.../java/com/stripe/param/WebhookEndpointCreateParams.java | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/API_VERSION b/API_VERSION
index 8ab5aad442e..afa88f5303c 100644
--- a/API_VERSION
+++ b/API_VERSION
@@ -1 +1 @@
-6e09523f05606953bb23892f6c4e3fe58fe5ce92
\ No newline at end of file
+125d391b75519fa8a44e8fdd6c482ca583fe8294
\ No newline at end of file
diff --git a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java
index b11e22a20e9..e8832785c89 100644
--- a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java
+++ b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java
@@ -633,7 +633,10 @@ public enum ApiVersion implements ApiRequestParams.EnumParam {
VERSION_2025_09_30_CLOVER("2025-09-30.clover"),
@SerializedName("2025-10-29.clover")
- VERSION_2025_10_29_CLOVER("2025-10-29.clover");
+ VERSION_2025_10_29_CLOVER("2025-10-29.clover"),
+
+ @SerializedName("2025-11-17.clover")
+ VERSION_2025_11_17_CLOVER("2025-11-17.clover");
@Getter(onMethod_ = {@Override})
private final String value;
From cbdf09339e05c042b933f57f0c8529d170109b30 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Sun, 9 Nov 2025 23:42:48 +0000
Subject: [PATCH 08/17] Update generated code for v2113 and
---
API_VERSION | 2 +-
...thEventGenerationFailureResolvedEvent.java | 64 +++++++++++++++++++
...ationFailureResolvedEventNotification.java | 14 ++++
.../stripe/model/v2/EventDataClassLookup.java | 3 +
.../v2/EventNotificationClassLookup.java | 3 +
5 files changed, 85 insertions(+), 1 deletion(-)
create mode 100644 src/main/java/com/stripe/events/V2CoreHealthEventGenerationFailureResolvedEvent.java
create mode 100644 src/main/java/com/stripe/events/V2CoreHealthEventGenerationFailureResolvedEventNotification.java
diff --git a/API_VERSION b/API_VERSION
index afa88f5303c..0eb25f0f63d 100644
--- a/API_VERSION
+++ b/API_VERSION
@@ -1 +1 @@
-125d391b75519fa8a44e8fdd6c482ca583fe8294
\ No newline at end of file
+30548eb63bda9b0c49c54b3ff449525f9d83b761
\ No newline at end of file
diff --git a/src/main/java/com/stripe/events/V2CoreHealthEventGenerationFailureResolvedEvent.java b/src/main/java/com/stripe/events/V2CoreHealthEventGenerationFailureResolvedEvent.java
new file mode 100644
index 00000000000..99cafdf011a
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreHealthEventGenerationFailureResolvedEvent.java
@@ -0,0 +1,64 @@
+// File generated from our OpenAPI spec
+package com.stripe.events;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.model.v2.core.Event;
+import java.time.Instant;
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+public final class V2CoreHealthEventGenerationFailureResolvedEvent extends Event {
+ /** Data for the v2.core.health.event_generation_failure.resolved event. */
+ @SerializedName("data")
+ V2CoreHealthEventGenerationFailureResolvedEvent.EventData data;
+
+ @Getter
+ @Setter
+ public static final class EventData {
+ /** The alert ID. */
+ @SerializedName("alert_id")
+ String alertId;
+ /** The grouping key for the alert. */
+ @SerializedName("grouping_key")
+ String groupingKey;
+ /** The user impact. */
+ @SerializedName("impact")
+ Impact impact;
+ /** The time when the user experience has returned to expected levels. */
+ @SerializedName("resolved_at")
+ Instant resolvedAt;
+ /** A short description of the alert. */
+ @SerializedName("summary")
+ String summary;
+
+ public static final class Impact {
+ /**
+ * The context the event should have been generated for. Only present when the account is a
+ * connected account.
+ */
+ @SerializedName("context")
+ String context;
+ /** The type of event that Stripe failed to generate. */
+ @SerializedName("event_type")
+ String eventType;
+ /** The related object details. */
+ @SerializedName("related_object")
+ com.stripe.events.V2CoreHealthEventGenerationFailureResolvedEvent.EventData.Impact
+ .RelatedObject
+ relatedObject;
+
+ public static final class RelatedObject {
+ /** The ID of the related object (e.g., "pi_..."). */
+ @SerializedName("id")
+ String id;
+ /** The type of the related object (e.g., "payment_intent"). */
+ @SerializedName("type")
+ String type;
+ /** The API URL for the related object (e.g., "/v1/payment_intents/pi_..."). */
+ @SerializedName("url")
+ String url;
+ }
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2CoreHealthEventGenerationFailureResolvedEventNotification.java b/src/main/java/com/stripe/events/V2CoreHealthEventGenerationFailureResolvedEventNotification.java
new file mode 100644
index 00000000000..1056c1680a9
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreHealthEventGenerationFailureResolvedEventNotification.java
@@ -0,0 +1,14 @@
+// File generated from our OpenAPI spec
+package com.stripe.events;
+
+import com.stripe.exception.StripeException;
+import com.stripe.model.v2.core.EventNotification;
+
+public final class V2CoreHealthEventGenerationFailureResolvedEventNotification
+ extends EventNotification {
+ /** Retrieve the corresponding full event from the Stripe API. */
+ @Override
+ public V2CoreHealthEventGenerationFailureResolvedEvent fetchEvent() throws StripeException {
+ return (V2CoreHealthEventGenerationFailureResolvedEvent) super.fetchEvent();
+ }
+}
diff --git a/src/main/java/com/stripe/model/v2/EventDataClassLookup.java b/src/main/java/com/stripe/model/v2/EventDataClassLookup.java
index 4f44b081d4c..01b15a553a0 100644
--- a/src/main/java/com/stripe/model/v2/EventDataClassLookup.java
+++ b/src/main/java/com/stripe/model/v2/EventDataClassLookup.java
@@ -156,6 +156,9 @@ public final class EventDataClassLookup {
"v2.core.account_person.updated", com.stripe.events.V2CoreAccountPersonUpdatedEvent.class);
eventClassLookup.put(
"v2.core.event_destination.ping", com.stripe.events.V2CoreEventDestinationPingEvent.class);
+ eventClassLookup.put(
+ "v2.core.health.event_generation_failure.resolved",
+ com.stripe.events.V2CoreHealthEventGenerationFailureResolvedEvent.class);
eventClassLookup.put(
"v2.money_management.adjustment.created",
com.stripe.events.V2MoneyManagementAdjustmentCreatedEvent.class);
diff --git a/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java b/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java
index 96073e31fd2..ca93475a578 100644
--- a/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java
+++ b/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java
@@ -87,6 +87,9 @@ public final class EventNotificationClassLookup {
eventClassLookup.put(
"v2.core.event_destination.ping",
com.stripe.events.V2CoreEventDestinationPingEventNotification.class);
+ eventClassLookup.put(
+ "v2.core.health.event_generation_failure.resolved",
+ com.stripe.events.V2CoreHealthEventGenerationFailureResolvedEventNotification.class);
eventClassLookup.put(
"v2.money_management.adjustment.created",
com.stripe.events.V2MoneyManagementAdjustmentCreatedEventNotification.class);
From b2ee82a691fe01486c6260f2e1c73d929ec9a2e2 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Sun, 9 Nov 2025 23:52:20 +0000
Subject: [PATCH 09/17] Update generated code for v2114 and
---
OPENAPI_VERSION | 2 +-
src/main/java/com/stripe/ApiVersion.java | 2 +-
src/main/java/com/stripe/model/Account.java | 27 +
.../java/com/stripe/model/BankAccount.java | 26 +-
src/main/java/com/stripe/model/Charge.java | 4 +
.../com/stripe/model/ConfirmationToken.java | 3 +-
src/main/java/com/stripe/model/Event.java | 38 +-
.../stripe/model/PaymentAttemptRecord.java | 24 +-
.../java/com/stripe/model/PaymentMethod.java | 3 +-
.../java/com/stripe/model/PaymentRecord.java | 24 +-
src/main/java/com/stripe/model/Refund.java | 35 +
.../java/com/stripe/model/Subscription.java | 4 +-
.../model/billingportal/Configuration.java | 9 +
.../stripe/model/capital/FinancingOffer.java | 14 +-
.../model/capital/FinancingSummary.java | 17 +-
.../model/financialconnections/Account.java | 38 +
.../com/stripe/param/AccountCreateParams.java | 134 +
.../com/stripe/param/AccountUpdateParams.java | 134 +
.../com/stripe/param/ChargeCaptureParams.java | 8965 +++-
.../com/stripe/param/ChargeUpdateParams.java | 9828 +++-
...alanceTransactionCollectionListParams.java | 142 +-
.../CustomerBalanceTransactionListParams.java | 141 +-
.../CustomerBalanceTransactionsParams.java | 141 +-
.../param/InvoicePaymentListParams.java | 130 +
.../com/stripe/param/OrderCreateParams.java | 6580 ++-
.../com/stripe/param/OrderUpdateParams.java | 7235 ++-
.../param/PaymentIntentCaptureParams.java | 9059 +++-
.../param/PaymentIntentConfirmParams.java | 41261 +++++++++------
.../param/PaymentIntentCreateParams.java | 41289 +++++++++------
.../param/PaymentIntentUpdateParams.java | 42253 ++++++++++------
.../stripe/param/PaymentMethodListParams.java | 56 +
.../param/WebhookEndpointCreateParams.java | 11 +
.../param/WebhookEndpointUpdateParams.java | 11 +
.../analytics/MeterUsageRetrieveParams.java | 30 +-
.../issuing/AuthorizationCreateParams.java | 142 +-
.../param/tax/RegistrationCreateParams.java | 14 +-
36 files changed, 120457 insertions(+), 47369 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 5c19124a9fa..f23e431db4c 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2113
\ No newline at end of file
+v2114
\ No newline at end of file
diff --git a/src/main/java/com/stripe/ApiVersion.java b/src/main/java/com/stripe/ApiVersion.java
index afd35346caf..b71201060b4 100644
--- a/src/main/java/com/stripe/ApiVersion.java
+++ b/src/main/java/com/stripe/ApiVersion.java
@@ -2,5 +2,5 @@
package com.stripe;
final class ApiVersion {
- public static final String CURRENT = "2025-10-29.preview";
+ public static final String CURRENT = "2025-11-17.preview";
}
diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java
index 1e45c80852f..9d26571ce02 100644
--- a/src/main/java/com/stripe/model/Account.java
+++ b/src/main/java/com/stripe/model/Account.java
@@ -776,6 +776,13 @@ public static class BusinessProfile extends StripeObject {
@SerializedName("product_description")
String productDescription;
+ /**
+ * A link to the business's publicly available terms related to the Specified Commercial
+ * Transaction Act. Only used for accounts in Japan.
+ */
+ @SerializedName("specified_commercial_transactions_act_url")
+ String specifiedCommercialTransactionsActUrl;
+
/** A publicly available mailing address for sending support issues to. */
@SerializedName("support_address")
Address supportAddress;
@@ -2584,6 +2591,9 @@ public static class Settings extends StripeObject {
@SerializedName("payouts")
Payouts payouts;
+ @SerializedName("paypay_payments")
+ PaypayPayments paypayPayments;
+
@SerializedName("sepa_debit_payments")
SepaDebitPayments sepaDebitPayments;
@@ -3058,6 +3068,23 @@ public static class Schedule extends StripeObject {
}
}
+ /**
+ * For more details about PaypayPayments, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PaypayPayments extends StripeObject {
+ /**
+ * Whether your business sells digital content or not.
+ *
+ * One of {@code digital_content}, or {@code other}.
+ */
+ @SerializedName("goods_type")
+ String goodsType;
+ }
+
/**
* For more details about SepaDebitPayments, please refer to the API Reference.
diff --git a/src/main/java/com/stripe/model/BankAccount.java b/src/main/java/com/stripe/model/BankAccount.java
index 7431969d2d4..d46c75c332f 100644
--- a/src/main/java/com/stripe/model/BankAccount.java
+++ b/src/main/java/com/stripe/model/BankAccount.java
@@ -156,20 +156,24 @@ public class BankAccount extends ApiResource
/**
* For bank accounts, possible values are {@code new}, {@code validated}, {@code verified}, {@code
- * verification_failed}, or {@code errored}. A bank account that hasn't had any activity or
- * validation performed is {@code new}. If Stripe can determine that the bank account exists, its
- * status will be {@code validated}. Note that there often isn’t enough information to know (e.g.,
- * for smaller credit unions), and the validation is not always run. If customer bank account
- * verification has succeeded, the bank account status will be {@code verified}. If the
- * verification failed for any reason, such as microdeposit failure, the status will be {@code
- * verification_failed}. If a payout sent to this bank account fails, we'll set the status to
- * {@code errored} and will not continue to send scheduled payouts until the bank
* details are updated.
*
- *
For external accounts, possible values are {@code new}, {@code errored} and {@code
- * verification_failed}. If a payout fails, the status is set to {@code errored} and scheduled
- * payouts are stopped until account details are updated. In the US and India, if we can't For external accounts, possible values are {@code new}, {@code errored}, {@code
+ * verification_failed}, and {@code tokenized_account_number_deactivated}. If a payout fails, the
+ * status is set to {@code errored} and scheduled payouts are stopped until account details are
+ * updated. In the US and India, if we can't verify the
* owner of the bank account, we'll set the status to {@code verification_failed}. Other
* validations aren't run against external accounts because they're only used for payouts. This
diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java
index 1faa0ea3319..da962686ef9 100644
--- a/src/main/java/com/stripe/model/Charge.java
+++ b/src/main/java/com/stripe/model/Charge.java
@@ -2988,6 +2988,10 @@ public static class Ideal extends StripeObject {
@SerializedName("iban_last4")
String ibanLast4;
+ /** Unique transaction ID generated by iDEAL. */
+ @SerializedName("transaction_id")
+ String transactionId;
+
/**
* Owner's verified full name. Values are verified or provided by iDEAL directly (if
* supported) at the time of authorization or settlement. They cannot be set or mutated.
diff --git a/src/main/java/com/stripe/model/ConfirmationToken.java b/src/main/java/com/stripe/model/ConfirmationToken.java
index 2b016fcdfd0..70001e3d6a6 100644
--- a/src/main/java/com/stripe/model/ConfirmationToken.java
+++ b/src/main/java/com/stripe/model/ConfirmationToken.java
@@ -2536,7 +2536,8 @@ public static class Blocked extends StripeObject {
*
*
One of {@code bank_account_closed}, {@code bank_account_frozen}, {@code
* bank_account_invalid_details}, {@code bank_account_restricted}, {@code
- * bank_account_unusable}, or {@code debit_not_authorized}.
+ * bank_account_unusable}, {@code debit_not_authorized}, or {@code
+ * tokenized_account_number_deactivated}.
*/
@SerializedName("reason")
String reason;
diff --git a/src/main/java/com/stripe/model/Event.java b/src/main/java/com/stripe/model/Event.java
index fcfc0572adf..e16e30c7cad 100644
--- a/src/main/java/com/stripe/model/Event.java
+++ b/src/main/java/com/stripe/model/Event.java
@@ -116,24 +116,24 @@ public class Event extends ApiResource implements HasId {
* {@code balance_settings.updated}, {@code billing.alert.triggered}, {@code
* billing_portal.configuration.created}, {@code billing_portal.configuration.updated}, {@code
* billing_portal.session.created}, {@code capability.updated}, {@code
- * capital.financing_offer.accepted}, {@code capital.financing_offer.canceled}, {@code
- * capital.financing_offer.created}, {@code capital.financing_offer.expired}, {@code
- * capital.financing_offer.fully_repaid}, {@code capital.financing_offer.paid_out}, {@code
- * capital.financing_offer.rejected}, {@code capital.financing_offer.replacement_created}, {@code
- * capital.financing_transaction.created}, {@code cash_balance.funds_available}, {@code
- * charge.captured}, {@code charge.dispute.closed}, {@code charge.dispute.created}, {@code
- * charge.dispute.funds_reinstated}, {@code charge.dispute.funds_withdrawn}, {@code
- * charge.dispute.updated}, {@code charge.expired}, {@code charge.failed}, {@code charge.pending},
- * {@code charge.refund.updated}, {@code charge.refunded}, {@code charge.succeeded}, {@code
- * charge.updated}, {@code checkout.session.async_payment_failed}, {@code
- * checkout.session.async_payment_succeeded}, {@code checkout.session.completed}, {@code
- * checkout.session.expired}, {@code climate.order.canceled}, {@code climate.order.created},
- * {@code climate.order.delayed}, {@code climate.order.delivered}, {@code
- * climate.order.product_substituted}, {@code climate.product.created}, {@code
- * climate.product.pricing_updated}, {@code coupon.created}, {@code coupon.deleted}, {@code
- * coupon.updated}, {@code credit_note.created}, {@code credit_note.updated}, {@code
- * credit_note.voided}, {@code customer.created}, {@code customer.deleted}, {@code
- * customer.discount.created}, {@code customer.discount.deleted}, {@code
+ * capital.financing_offer.accepted}, {@code capital.financing_offer.accepted_other_offer}, {@code
+ * capital.financing_offer.canceled}, {@code capital.financing_offer.created}, {@code
+ * capital.financing_offer.expired}, {@code capital.financing_offer.fully_repaid}, {@code
+ * capital.financing_offer.paid_out}, {@code capital.financing_offer.rejected}, {@code
+ * capital.financing_offer.replacement_created}, {@code capital.financing_transaction.created},
+ * {@code cash_balance.funds_available}, {@code charge.captured}, {@code charge.dispute.closed},
+ * {@code charge.dispute.created}, {@code charge.dispute.funds_reinstated}, {@code
+ * charge.dispute.funds_withdrawn}, {@code charge.dispute.updated}, {@code charge.expired}, {@code
+ * charge.failed}, {@code charge.pending}, {@code charge.refund.updated}, {@code charge.refunded},
+ * {@code charge.succeeded}, {@code charge.updated}, {@code
+ * checkout.session.async_payment_failed}, {@code checkout.session.async_payment_succeeded},
+ * {@code checkout.session.completed}, {@code checkout.session.expired}, {@code
+ * climate.order.canceled}, {@code climate.order.created}, {@code climate.order.delayed}, {@code
+ * climate.order.delivered}, {@code climate.order.product_substituted}, {@code
+ * climate.product.created}, {@code climate.product.pricing_updated}, {@code coupon.created},
+ * {@code coupon.deleted}, {@code coupon.updated}, {@code credit_note.created}, {@code
+ * credit_note.updated}, {@code credit_note.voided}, {@code customer.created}, {@code
+ * customer.deleted}, {@code customer.discount.created}, {@code customer.discount.deleted}, {@code
* customer.discount.updated}, {@code customer.source.created}, {@code customer.source.deleted},
* {@code customer.source.expiring}, {@code customer.source.updated}, {@code
* customer.subscription.collection_paused}, {@code customer.subscription.collection_resumed},
@@ -146,6 +146,7 @@ public class Event extends ApiResource implements HasId {
* customer.tax_id.created}, {@code customer.tax_id.deleted}, {@code customer.tax_id.updated},
* {@code customer.updated}, {@code customer_cash_balance_transaction.created}, {@code
* entitlements.active_entitlement_summary.updated}, {@code file.created}, {@code
+ * financial_connections.account.account_numbers_updated}, {@code
* financial_connections.account.created}, {@code financial_connections.account.deactivated},
* {@code financial_connections.account.disconnected}, {@code
* financial_connections.account.reactivated}, {@code
@@ -153,6 +154,7 @@ public class Event extends ApiResource implements HasId {
* financial_connections.account.refreshed_inferred_balances}, {@code
* financial_connections.account.refreshed_ownership}, {@code
* financial_connections.account.refreshed_transactions}, {@code
+ * financial_connections.account.upcoming_account_number_expiry}, {@code
* financial_connections.session.updated}, {@code fx_quote.expired}, {@code
* identity.verification_session.canceled}, {@code identity.verification_session.created}, {@code
* identity.verification_session.processing}, {@code identity.verification_session.redacted},
diff --git a/src/main/java/com/stripe/model/PaymentAttemptRecord.java b/src/main/java/com/stripe/model/PaymentAttemptRecord.java
index d597a64705a..d774b741b88 100644
--- a/src/main/java/com/stripe/model/PaymentAttemptRecord.java
+++ b/src/main/java/com/stripe/model/PaymentAttemptRecord.java
@@ -591,7 +591,6 @@ public static class PaymentMethodDetails extends StripeObject {
@SerializedName("type")
String type;
- /** Details of the US Bank Account used for this payment attempt. */
@SerializedName("us_bank_account")
UsBankAccount usBankAccount;
@@ -1906,6 +1905,10 @@ public static class Ideal extends StripeObject {
@SerializedName("iban_last4")
String ibanLast4;
+ /** Unique transaction ID generated by iDEAL. */
+ @SerializedName("transaction_id")
+ String transactionId;
+
/**
* Owner's verified full name. Values are verified or provided by iDEAL directly (if
* supported) at the time of authorization or settlement. They cannot be set or mutated.
@@ -3079,14 +3082,27 @@ public static class Swish extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Twint extends StripeObject {}
- /** Details of the US Bank Account used for this payment attempt. */
+ /**
+ * For more details about UsBankAccount, please refer to the API Reference.
+ */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class UsBankAccount extends StripeObject {
+ /**
+ * The type of entity that holds the account. This can be either 'individual' or 'company'.
+ *
+ *
One of {@code company}, or {@code individual}.
+ */
@SerializedName("account_holder_type")
String accountHolderType;
+ /**
+ * The type of the bank account. This can be either 'checking' or 'savings'.
+ *
+ *
One of {@code checking}, or {@code savings}.
+ */
@SerializedName("account_type")
String accountType;
@@ -3111,11 +3127,11 @@ public static class UsBankAccount extends StripeObject {
@Setter(lombok.AccessLevel.NONE)
ExpandableField mandate;
- /** Reference number to locate ACH payments with customer’s bank. */
+ /** The ACH payment reference for this transaction. */
@SerializedName("payment_reference")
String paymentReference;
- /** Routing number of the bank account. */
+ /** The routing number for the bank account. */
@SerializedName("routing_number")
String routingNumber;
diff --git a/src/main/java/com/stripe/model/PaymentMethod.java b/src/main/java/com/stripe/model/PaymentMethod.java
index e9493807d2c..bc7dbcfbb56 100644
--- a/src/main/java/com/stripe/model/PaymentMethod.java
+++ b/src/main/java/com/stripe/model/PaymentMethod.java
@@ -2830,7 +2830,8 @@ public static class Blocked extends StripeObject {
*
* One of {@code bank_account_closed}, {@code bank_account_frozen}, {@code
* bank_account_invalid_details}, {@code bank_account_restricted}, {@code
- * bank_account_unusable}, or {@code debit_not_authorized}.
+ * bank_account_unusable}, {@code debit_not_authorized}, or {@code
+ * tokenized_account_number_deactivated}.
*/
@SerializedName("reason")
String reason;
diff --git a/src/main/java/com/stripe/model/PaymentRecord.java b/src/main/java/com/stripe/model/PaymentRecord.java
index 660d2fd45d7..daacf99eec0 100644
--- a/src/main/java/com/stripe/model/PaymentRecord.java
+++ b/src/main/java/com/stripe/model/PaymentRecord.java
@@ -885,7 +885,6 @@ public static class PaymentMethodDetails extends StripeObject {
@SerializedName("type")
String type;
- /** Details of the US Bank Account used for this payment attempt. */
@SerializedName("us_bank_account")
UsBankAccount usBankAccount;
@@ -2200,6 +2199,10 @@ public static class Ideal extends StripeObject {
@SerializedName("iban_last4")
String ibanLast4;
+ /** Unique transaction ID generated by iDEAL. */
+ @SerializedName("transaction_id")
+ String transactionId;
+
/**
* Owner's verified full name. Values are verified or provided by iDEAL directly (if
* supported) at the time of authorization or settlement. They cannot be set or mutated.
@@ -3372,14 +3375,27 @@ public static class Swish extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Twint extends StripeObject {}
- /** Details of the US Bank Account used for this payment attempt. */
+ /**
+ * For more details about UsBankAccount, please refer to the API Reference.
+ */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class UsBankAccount extends StripeObject {
+ /**
+ * The type of entity that holds the account. This can be either 'individual' or 'company'.
+ *
+ *
One of {@code company}, or {@code individual}.
+ */
@SerializedName("account_holder_type")
String accountHolderType;
+ /**
+ * The type of the bank account. This can be either 'checking' or 'savings'.
+ *
+ *
One of {@code checking}, or {@code savings}.
+ */
@SerializedName("account_type")
String accountType;
@@ -3404,11 +3420,11 @@ public static class UsBankAccount extends StripeObject {
@Setter(lombok.AccessLevel.NONE)
ExpandableField mandate;
- /** Reference number to locate ACH payments with customer’s bank. */
+ /** The ACH payment reference for this transaction. */
@SerializedName("payment_reference")
String paymentReference;
- /** Routing number of the bank account. */
+ /** The routing number for the bank account. */
@SerializedName("routing_number")
String routingNumber;
diff --git a/src/main/java/com/stripe/model/Refund.java b/src/main/java/com/stripe/model/Refund.java
index 6d4b6bd2052..025ed8e0215 100644
--- a/src/main/java/com/stripe/model/Refund.java
+++ b/src/main/java/com/stripe/model/Refund.java
@@ -655,6 +655,9 @@ public static class DestinationDetails extends StripeObject {
@SerializedName("klarna")
Klarna klarna;
+ @SerializedName("mb_way")
+ MbWay mbWay;
+
@SerializedName("multibanco")
Multibanco multibanco;
@@ -688,6 +691,9 @@ public static class DestinationDetails extends StripeObject {
@SerializedName("th_bank_transfer")
ThBankTransfer thBankTransfer;
+ @SerializedName("twint")
+ Twint twint;
+
/**
* The type of transaction-specific details of the payment method used in the refund (e.g.,
* {@code card}). An additional hash is included on {@code destination_details} with a name
@@ -985,6 +991,26 @@ public static class JpBankTransfer extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Klarna extends StripeObject {}
+ /**
+ * For more details about MbWay, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MbWay extends StripeObject {
+ /** The reference assigned to the refund. */
+ @SerializedName("reference")
+ String reference;
+
+ /**
+ * Status of the reference on the refund. This can be {@code pending}, {@code available} or
+ * {@code unavailable}.
+ */
+ @SerializedName("reference_status")
+ String referenceStatus;
+ }
+
/**
* For more details about Multibanco, please refer to the API Reference.
@@ -1153,6 +1179,15 @@ public static class ThBankTransfer extends StripeObject {
String referenceStatus;
}
+ /**
+ * For more details about Twint, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Twint extends StripeObject {}
+
/**
* For more details about UsBankTransfer, please refer to the API Reference.
diff --git a/src/main/java/com/stripe/model/Subscription.java b/src/main/java/com/stripe/model/Subscription.java
index 2dd79e05df7..5985d78778d 100644
--- a/src/main/java/com/stripe/model/Subscription.java
+++ b/src/main/java/com/stripe/model/Subscription.java
@@ -1522,7 +1522,7 @@ public static class BillingSchedule extends StripeObject {
@SerializedName("applies_to")
List appliesTo;
- /** Specifies the billing period. */
+ /** Specifies the end of billing period. */
@SerializedName("bill_until")
BillUntil billUntil;
@@ -1568,7 +1568,7 @@ public void setPriceObject(Price expandableObject) {
}
}
- /** Specifies the billing period. */
+ /** Specifies the end of billing period. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
diff --git a/src/main/java/com/stripe/model/billingportal/Configuration.java b/src/main/java/com/stripe/model/billingportal/Configuration.java
index 917bad09db9..0b40cf7943f 100644
--- a/src/main/java/com/stripe/model/billingportal/Configuration.java
+++ b/src/main/java/com/stripe/model/billingportal/Configuration.java
@@ -365,6 +365,15 @@ public static class PaymentMethodUpdate extends StripeObject {
/** Whether the feature is enabled. */
@SerializedName("enabled")
Boolean enabled;
+
+ /**
+ * The Payment Method
+ * Configuration to use for this portal session. When specified, customers will be able to
+ * update their payment method to one of the options specified by the payment method
+ * configuration. If not set, the default payment method configuration is used.
+ */
+ @SerializedName("payment_method_configuration")
+ String paymentMethodConfiguration;
}
/**
diff --git a/src/main/java/com/stripe/model/capital/FinancingOffer.java b/src/main/java/com/stripe/model/capital/FinancingOffer.java
index 712975315f6..38721c2f53c 100644
--- a/src/main/java/com/stripe/model/capital/FinancingOffer.java
+++ b/src/main/java/com/stripe/model/capital/FinancingOffer.java
@@ -293,8 +293,7 @@ public static FinancingOffer retrieve(
@EqualsAndHashCode(callSuper = false)
public static class AcceptedTerms extends StripeObject {
/**
- * Amount of financing offered, in minor units. For example, $1,000 USD will be represented as
- * 100000.
+ * Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000.
*/
@SerializedName("advance_amount")
Long advanceAmount;
@@ -303,7 +302,7 @@ public static class AcceptedTerms extends StripeObject {
@SerializedName("currency")
String currency;
- /** Fixed fee amount, in minor units. For example, $100 USD will be represented as 10000. */
+ /** Fixed fee amount, in minor units. For example, 100 USD is represented as 10000. */
@SerializedName("fee_amount")
Long feeAmount;
@@ -314,7 +313,7 @@ public static class AcceptedTerms extends StripeObject {
@SerializedName("previous_financing_fee_discount_amount")
Long previousFinancingFeeDiscountAmount;
- /** Per-transaction rate at which Stripe will withhold funds to repay the financing. */
+ /** Per-transaction rate at which Stripe withholds funds to repay the financing. */
@SerializedName("withhold_rate")
BigDecimal withholdRate;
}
@@ -328,8 +327,7 @@ public static class AcceptedTerms extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class OfferedTerms extends StripeObject {
/**
- * Amount of financing offered, in minor units. For example, $1,000 USD will be represented as
- * 100000.
+ * Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000.
*/
@SerializedName("advance_amount")
Long advanceAmount;
@@ -347,7 +345,7 @@ public static class OfferedTerms extends StripeObject {
@SerializedName("currency")
String currency;
- /** Fixed fee amount, in minor units. For example, $100 USD will be represented as 10000. */
+ /** Fixed fee amount, in minor units. For example, 100 USD is represented as 10000. */
@SerializedName("fee_amount")
Long feeAmount;
@@ -360,7 +358,7 @@ public static class OfferedTerms extends StripeObject {
@SerializedName("previous_financing_fee_discount_rate")
BigDecimal previousFinancingFeeDiscountRate;
- /** Per-transaction rate at which Stripe will withhold funds to repay the financing. */
+ /** Per-transaction rate at which Stripe withholds funds to repay the financing. */
@SerializedName("withhold_rate")
BigDecimal withholdRate;
}
diff --git a/src/main/java/com/stripe/model/capital/FinancingSummary.java b/src/main/java/com/stripe/model/capital/FinancingSummary.java
index 722c523cf11..c018644b6f4 100644
--- a/src/main/java/com/stripe/model/capital/FinancingSummary.java
+++ b/src/main/java/com/stripe/model/capital/FinancingSummary.java
@@ -98,8 +98,7 @@ public static FinancingSummary retrieve(
@EqualsAndHashCode(callSuper = false)
public static class Details extends StripeObject {
/**
- * Amount of financing offered, in minor units. For example, $1,000 USD will be represented as
- * 100000.
+ * Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000.
*/
@SerializedName("advance_amount")
Long advanceAmount;
@@ -119,20 +118,20 @@ public static class Details extends StripeObject {
@SerializedName("current_repayment_interval")
CurrentRepaymentInterval currentRepaymentInterval;
- /** Fixed fee amount, in minor units. For example, $100 USD will be represented as 10000. */
+ /** Fixed fee amount, in minor units. For example, 100 USD is represented as 10000. */
@SerializedName("fee_amount")
Long feeAmount;
/**
* The amount the Connected account has paid toward the financing debt so far, in minor units.
- * For example, $1,000 USD will be represented as 100000.
+ * For example, 1,000 USD is represented as 100000.
*/
@SerializedName("paid_amount")
Long paidAmount;
/**
- * The balance remaining to be paid on the financing, in minor units. For example, $1,000 USD
- * will be represented as 100000.
+ * The balance remaining to be paid on the financing, in minor units. For example, 1,000 USD is
+ * represented as 100000.
*/
@SerializedName("remaining_amount")
Long remainingAmount;
@@ -144,7 +143,7 @@ public static class Details extends StripeObject {
@SerializedName("repayments_begin_at")
BigDecimal repaymentsBeginAt;
- /** Per-transaction rate at which Stripe will withhold funds to repay the financing. */
+ /** Per-transaction rate at which Stripe withholds funds to repay the financing. */
@SerializedName("withhold_rate")
BigDecimal withholdRate;
@@ -163,14 +162,14 @@ public static class CurrentRepaymentInterval extends StripeObject {
/**
* The amount that has already been paid in the current repayment interval, in minor units.
- * For example, $100 USD will be represented as 10000.
+ * For example, 100 USD is represented as 10000.
*/
@SerializedName("paid_amount")
Long paidAmount;
/**
* The amount that is yet to be paid in the current repayment interval, in minor units. For
- * example, $100 USD will be represented as 10000.
+ * example, 100 USD is represented as 10000.
*/
@SerializedName("remaining_amount")
Long remainingAmount;
diff --git a/src/main/java/com/stripe/model/financialconnections/Account.java b/src/main/java/com/stripe/model/financialconnections/Account.java
index 143a5aa6f3e..16655cc3a85 100644
--- a/src/main/java/com/stripe/model/financialconnections/Account.java
+++ b/src/main/java/com/stripe/model/financialconnections/Account.java
@@ -3,6 +3,7 @@
import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
+import com.stripe.model.Account;
import com.stripe.model.Customer;
import com.stripe.model.ExpandableField;
import com.stripe.model.HasId;
@@ -38,6 +39,10 @@ public class Account extends ApiResource implements HasId {
@SerializedName("account_holder")
AccountHolder accountHolder;
+ /** Details about the account numbers. */
+ @SerializedName("account_numbers")
+ List accountNumbers;
+
/** The most recent information about the account's balance. */
@SerializedName("balance")
Balance balance;
@@ -609,6 +614,39 @@ public void setCustomerObject(Customer expandableObject) {
}
}
+ /**
+ * For more details about AccountNumber, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AccountNumber extends StripeObject {
+ /** When the account number is expected to expire, if applicable. */
+ @SerializedName("expected_expiry_date")
+ Long expectedExpiryDate;
+
+ /**
+ * The type of account number associated with the account.
+ *
+ * One of {@code account_number}, or {@code tokenized_account_number}.
+ */
+ @SerializedName("identifier_type")
+ String identifierType;
+
+ /**
+ * Whether the account number is currently active and usable for transactions.
+ *
+ *
One of {@code deactivated}, or {@code transactable}.
+ */
+ @SerializedName("status")
+ String status;
+
+ /** The payment networks that the account number can be used for. */
+ @SerializedName("supported_networks")
+ List supportedNetworks;
+ }
+
/**
* For more details about Balance, please refer to the API
* Reference.
diff --git a/src/main/java/com/stripe/param/AccountCreateParams.java b/src/main/java/com/stripe/param/AccountCreateParams.java
index d265680014d..90d13da9236 100644
--- a/src/main/java/com/stripe/param/AccountCreateParams.java
+++ b/src/main/java/com/stripe/param/AccountCreateParams.java
@@ -650,6 +650,13 @@ public static class BusinessProfile {
@SerializedName("product_description")
String productDescription;
+ /**
+ * A link to the business's publicly available terms related to the Specified Commercial
+ * Transaction Act. Used by the Checkout product and for Japanese payment methods.
+ */
+ @SerializedName("specified_commercial_transactions_act_url")
+ Object specifiedCommercialTransactionsActUrl;
+
/** A publicly available mailing address for sending support issues to. */
@SerializedName("support_address")
SupportAddress supportAddress;
@@ -680,6 +687,7 @@ private BusinessProfile(
MonthlyEstimatedRevenue monthlyEstimatedRevenue,
String name,
String productDescription,
+ Object specifiedCommercialTransactionsActUrl,
SupportAddress supportAddress,
String supportEmail,
String supportPhone,
@@ -693,6 +701,7 @@ private BusinessProfile(
this.monthlyEstimatedRevenue = monthlyEstimatedRevenue;
this.name = name;
this.productDescription = productDescription;
+ this.specifiedCommercialTransactionsActUrl = specifiedCommercialTransactionsActUrl;
this.supportAddress = supportAddress;
this.supportEmail = supportEmail;
this.supportPhone = supportPhone;
@@ -722,6 +731,8 @@ public static class Builder {
private String productDescription;
+ private Object specifiedCommercialTransactionsActUrl;
+
private SupportAddress supportAddress;
private String supportEmail;
@@ -743,6 +754,7 @@ public AccountCreateParams.BusinessProfile build() {
this.monthlyEstimatedRevenue,
this.name,
this.productDescription,
+ this.specifiedCommercialTransactionsActUrl,
this.supportAddress,
this.supportEmail,
this.supportPhone,
@@ -857,6 +869,26 @@ public Builder setProductDescription(String productDescription) {
return this;
}
+ /**
+ * A link to the business's publicly available terms related to the Specified Commercial
+ * Transaction Act. Used by the Checkout product and for Japanese payment methods.
+ */
+ public Builder setSpecifiedCommercialTransactionsActUrl(
+ String specifiedCommercialTransactionsActUrl) {
+ this.specifiedCommercialTransactionsActUrl = specifiedCommercialTransactionsActUrl;
+ return this;
+ }
+
+ /**
+ * A link to the business's publicly available terms related to the Specified Commercial
+ * Transaction Act. Used by the Checkout product and for Japanese payment methods.
+ */
+ public Builder setSpecifiedCommercialTransactionsActUrl(
+ EmptyParam specifiedCommercialTransactionsActUrl) {
+ this.specifiedCommercialTransactionsActUrl = specifiedCommercialTransactionsActUrl;
+ return this;
+ }
+
/** A publicly available mailing address for sending support issues to. */
public Builder setSupportAddress(
AccountCreateParams.BusinessProfile.SupportAddress supportAddress) {
@@ -14087,6 +14119,10 @@ public static class Settings {
@SerializedName("payouts")
Payouts payouts;
+ /** Settings specific to the PayPay payments method. */
+ @SerializedName("paypay_payments")
+ PaypayPayments paypayPayments;
+
/** Settings specific to the account's tax forms. */
@SerializedName("tax_forms")
TaxForms taxForms;
@@ -14106,6 +14142,7 @@ private Settings(
Invoices invoices,
Payments payments,
Payouts payouts,
+ PaypayPayments paypayPayments,
TaxForms taxForms,
Treasury treasury) {
this.bacsDebitPayments = bacsDebitPayments;
@@ -14118,6 +14155,7 @@ private Settings(
this.invoices = invoices;
this.payments = payments;
this.payouts = payouts;
+ this.paypayPayments = paypayPayments;
this.taxForms = taxForms;
this.treasury = treasury;
}
@@ -14147,6 +14185,8 @@ public static class Builder {
private Payouts payouts;
+ private PaypayPayments paypayPayments;
+
private TaxForms taxForms;
private Treasury treasury;
@@ -14164,6 +14204,7 @@ public AccountCreateParams.Settings build() {
this.invoices,
this.payments,
this.payouts,
+ this.paypayPayments,
this.taxForms,
this.treasury);
}
@@ -14253,6 +14294,12 @@ public Builder setPayouts(AccountCreateParams.Settings.Payouts payouts) {
return this;
}
+ /** Settings specific to the PayPay payments method. */
+ public Builder setPaypayPayments(AccountCreateParams.Settings.PaypayPayments paypayPayments) {
+ this.paypayPayments = paypayPayments;
+ return this;
+ }
+
/** Settings specific to the account's tax forms. */
public Builder setTaxForms(AccountCreateParams.Settings.TaxForms taxForms) {
this.taxForms = taxForms;
@@ -15914,6 +15961,93 @@ public enum WeeklyPayoutDay implements ApiRequestParams.EnumParam {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PaypayPayments {
+ /**
+ * 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.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Whether your business sells digital content or not. */
+ @SerializedName("goods_type")
+ GoodsType goodsType;
+
+ private PaypayPayments(Map extraParams, GoodsType goodsType) {
+ this.extraParams = extraParams;
+ this.goodsType = goodsType;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private GoodsType goodsType;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Settings.PaypayPayments build() {
+ return new AccountCreateParams.Settings.PaypayPayments(this.extraParams, this.goodsType);
+ }
+
+ /**
+ * 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
+ * map. See {@link AccountCreateParams.Settings.PaypayPayments#extraParams} for the field
+ * documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountCreateParams.Settings.PaypayPayments#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Whether your business sells digital content or not. */
+ public Builder setGoodsType(
+ AccountCreateParams.Settings.PaypayPayments.GoodsType goodsType) {
+ this.goodsType = goodsType;
+ return this;
+ }
+ }
+
+ public enum GoodsType implements ApiRequestParams.EnumParam {
+ @SerializedName("digital_content")
+ DIGITAL_CONTENT("digital_content"),
+
+ @SerializedName("other")
+ OTHER("other");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ GoodsType(String value) {
+ this.value = value;
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class TaxForms {
diff --git a/src/main/java/com/stripe/param/AccountUpdateParams.java b/src/main/java/com/stripe/param/AccountUpdateParams.java
index b2e7726a895..84cdb00e03f 100644
--- a/src/main/java/com/stripe/param/AccountUpdateParams.java
+++ b/src/main/java/com/stripe/param/AccountUpdateParams.java
@@ -637,6 +637,13 @@ public static class BusinessProfile {
@SerializedName("product_description")
Object productDescription;
+ /**
+ * A link to the business's publicly available terms related to the Specified Commercial
+ * Transaction Act. Only used for accounts in Japan.
+ */
+ @SerializedName("specified_commercial_transactions_act_url")
+ Object specifiedCommercialTransactionsActUrl;
+
/** A publicly available mailing address for sending support issues to. */
@SerializedName("support_address")
SupportAddress supportAddress;
@@ -667,6 +674,7 @@ private BusinessProfile(
MonthlyEstimatedRevenue monthlyEstimatedRevenue,
Object name,
Object productDescription,
+ Object specifiedCommercialTransactionsActUrl,
SupportAddress supportAddress,
Object supportEmail,
Object supportPhone,
@@ -680,6 +688,7 @@ private BusinessProfile(
this.monthlyEstimatedRevenue = monthlyEstimatedRevenue;
this.name = name;
this.productDescription = productDescription;
+ this.specifiedCommercialTransactionsActUrl = specifiedCommercialTransactionsActUrl;
this.supportAddress = supportAddress;
this.supportEmail = supportEmail;
this.supportPhone = supportPhone;
@@ -709,6 +718,8 @@ public static class Builder {
private Object productDescription;
+ private Object specifiedCommercialTransactionsActUrl;
+
private SupportAddress supportAddress;
private Object supportEmail;
@@ -730,6 +741,7 @@ public AccountUpdateParams.BusinessProfile build() {
this.monthlyEstimatedRevenue,
this.name,
this.productDescription,
+ this.specifiedCommercialTransactionsActUrl,
this.supportAddress,
this.supportEmail,
this.supportPhone,
@@ -869,6 +881,26 @@ public Builder setProductDescription(EmptyParam productDescription) {
return this;
}
+ /**
+ * A link to the business's publicly available terms related to the Specified Commercial
+ * Transaction Act. Only used for accounts in Japan.
+ */
+ public Builder setSpecifiedCommercialTransactionsActUrl(
+ String specifiedCommercialTransactionsActUrl) {
+ this.specifiedCommercialTransactionsActUrl = specifiedCommercialTransactionsActUrl;
+ return this;
+ }
+
+ /**
+ * A link to the business's publicly available terms related to the Specified Commercial
+ * Transaction Act. Only used for accounts in Japan.
+ */
+ public Builder setSpecifiedCommercialTransactionsActUrl(
+ EmptyParam specifiedCommercialTransactionsActUrl) {
+ this.specifiedCommercialTransactionsActUrl = specifiedCommercialTransactionsActUrl;
+ return this;
+ }
+
/** A publicly available mailing address for sending support issues to. */
public Builder setSupportAddress(
AccountUpdateParams.BusinessProfile.SupportAddress supportAddress) {
@@ -14090,6 +14122,10 @@ public static class Settings {
@SerializedName("payouts")
Payouts payouts;
+ /** Settings specific to the PayPay payments method. */
+ @SerializedName("paypay_payments")
+ PaypayPayments paypayPayments;
+
/** Settings specific to the account's tax forms. */
@SerializedName("tax_forms")
TaxForms taxForms;
@@ -14109,6 +14145,7 @@ private Settings(
Invoices invoices,
Payments payments,
Payouts payouts,
+ PaypayPayments paypayPayments,
TaxForms taxForms,
Treasury treasury) {
this.bacsDebitPayments = bacsDebitPayments;
@@ -14121,6 +14158,7 @@ private Settings(
this.invoices = invoices;
this.payments = payments;
this.payouts = payouts;
+ this.paypayPayments = paypayPayments;
this.taxForms = taxForms;
this.treasury = treasury;
}
@@ -14150,6 +14188,8 @@ public static class Builder {
private Payouts payouts;
+ private PaypayPayments paypayPayments;
+
private TaxForms taxForms;
private Treasury treasury;
@@ -14167,6 +14207,7 @@ public AccountUpdateParams.Settings build() {
this.invoices,
this.payments,
this.payouts,
+ this.paypayPayments,
this.taxForms,
this.treasury);
}
@@ -14256,6 +14297,12 @@ public Builder setPayouts(AccountUpdateParams.Settings.Payouts payouts) {
return this;
}
+ /** Settings specific to the PayPay payments method. */
+ public Builder setPaypayPayments(AccountUpdateParams.Settings.PaypayPayments paypayPayments) {
+ this.paypayPayments = paypayPayments;
+ return this;
+ }
+
/** Settings specific to the account's tax forms. */
public Builder setTaxForms(AccountUpdateParams.Settings.TaxForms taxForms) {
this.taxForms = taxForms;
@@ -16101,6 +16148,93 @@ public enum WeeklyPayoutDay implements ApiRequestParams.EnumParam {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PaypayPayments {
+ /**
+ * 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.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Whether your business sells digital content or not. */
+ @SerializedName("goods_type")
+ GoodsType goodsType;
+
+ private PaypayPayments(Map extraParams, GoodsType goodsType) {
+ this.extraParams = extraParams;
+ this.goodsType = goodsType;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private GoodsType goodsType;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountUpdateParams.Settings.PaypayPayments build() {
+ return new AccountUpdateParams.Settings.PaypayPayments(this.extraParams, this.goodsType);
+ }
+
+ /**
+ * 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
+ * map. See {@link AccountUpdateParams.Settings.PaypayPayments#extraParams} for the field
+ * documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountUpdateParams.Settings.PaypayPayments#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Whether your business sells digital content or not. */
+ public Builder setGoodsType(
+ AccountUpdateParams.Settings.PaypayPayments.GoodsType goodsType) {
+ this.goodsType = goodsType;
+ return this;
+ }
+ }
+
+ public enum GoodsType implements ApiRequestParams.EnumParam {
+ @SerializedName("digital_content")
+ DIGITAL_CONTENT("digital_content"),
+
+ @SerializedName("other")
+ OTHER("other");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ GoodsType(String value) {
+ this.value = value;
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class TaxForms {
diff --git a/src/main/java/com/stripe/param/ChargeCaptureParams.java b/src/main/java/com/stripe/param/ChargeCaptureParams.java
index cbad3fd300c..169b5f9a5b2 100644
--- a/src/main/java/com/stripe/param/ChargeCaptureParams.java
+++ b/src/main/java/com/stripe/param/ChargeCaptureParams.java
@@ -306,6 +306,10 @@ public static class PaymentDetails {
@SerializedName("car_rental")
CarRental carRental;
+ /** Car rental data for this PaymentIntent. */
+ @SerializedName("car_rental_data")
+ Object carRentalData;
+
/**
* A unique value to identify the customer. This field is available only for card payments.
*
@@ -332,10 +336,18 @@ public static class PaymentDetails {
@SerializedName("flight")
Flight flight;
+ /** Flight data for this PaymentIntent. */
+ @SerializedName("flight_data")
+ Object flightData;
+
/** Lodging reservation details for this PaymentIntent. */
@SerializedName("lodging")
Lodging lodging;
+ /** Lodging data for this PaymentIntent. */
+ @SerializedName("lodging_data")
+ Object lodgingData;
+
/**
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
* rates.
@@ -357,19 +369,25 @@ public static class PaymentDetails {
private PaymentDetails(
CarRental carRental,
+ Object carRentalData,
Object customerReference,
EventDetails eventDetails,
Map extraParams,
Flight flight,
+ Object flightData,
Lodging lodging,
+ Object lodgingData,
Object orderReference,
Subscription subscription) {
this.carRental = carRental;
+ this.carRentalData = carRentalData;
this.customerReference = customerReference;
this.eventDetails = eventDetails;
this.extraParams = extraParams;
this.flight = flight;
+ this.flightData = flightData;
this.lodging = lodging;
+ this.lodgingData = lodgingData;
this.orderReference = orderReference;
this.subscription = subscription;
}
@@ -381,6 +399,8 @@ public static Builder builder() {
public static class Builder {
private CarRental carRental;
+ private Object carRentalData;
+
private Object customerReference;
private EventDetails eventDetails;
@@ -389,8 +409,12 @@ public static class Builder {
private Flight flight;
+ private Object flightData;
+
private Lodging lodging;
+ private Object lodgingData;
+
private Object orderReference;
private Subscription subscription;
@@ -399,11 +423,14 @@ public static class Builder {
public ChargeCaptureParams.PaymentDetails build() {
return new ChargeCaptureParams.PaymentDetails(
this.carRental,
+ this.carRentalData,
this.customerReference,
this.eventDetails,
this.extraParams,
this.flight,
+ this.flightData,
this.lodging,
+ this.lodgingData,
this.orderReference,
this.subscription);
}
@@ -414,6 +441,49 @@ public Builder setCarRental(ChargeCaptureParams.PaymentDetails.CarRental carRent
return this;
}
+ /**
+ * Add an element to `carRentalData` list. A list is initialized for the first `add/addAll`
+ * call, and subsequent calls adds additional elements to the original list. See {@link
+ * ChargeCaptureParams.PaymentDetails#carRentalData} for the field documentation.
+ */
+ @SuppressWarnings("unchecked")
+ public Builder addCarRentalData(ChargeCaptureParams.PaymentDetails.CarRentalData element) {
+ if (this.carRentalData == null || this.carRentalData instanceof EmptyParam) {
+ this.carRentalData = new ArrayList();
+ }
+ ((List) this.carRentalData).add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `carRentalData` list. A list is initialized for the first `add/addAll`
+ * call, and subsequent calls adds additional elements to the original list. See {@link
+ * ChargeCaptureParams.PaymentDetails#carRentalData} for the field documentation.
+ */
+ @SuppressWarnings("unchecked")
+ public Builder addAllCarRentalData(
+ List elements) {
+ if (this.carRentalData == null || this.carRentalData instanceof EmptyParam) {
+ this.carRentalData = new ArrayList();
+ }
+ ((List) this.carRentalData)
+ .addAll(elements);
+ return this;
+ }
+
+ /** Car rental data for this PaymentIntent. */
+ public Builder setCarRentalData(EmptyParam carRentalData) {
+ this.carRentalData = carRentalData;
+ return this;
+ }
+
+ /** Car rental data for this PaymentIntent. */
+ public Builder setCarRentalData(
+ List carRentalData) {
+ this.carRentalData = carRentalData;
+ return this;
+ }
+
/**
* A unique value to identify the customer. This field is available only for card payments.
*
@@ -474,12 +544,95 @@ public Builder setFlight(ChargeCaptureParams.PaymentDetails.Flight flight) {
return this;
}
+ /**
+ * Add an element to `flightData` list. A list is initialized for the first `add/addAll` call,
+ * and subsequent calls adds additional elements to the original list. See {@link
+ * ChargeCaptureParams.PaymentDetails#flightData} for the field documentation.
+ */
+ @SuppressWarnings("unchecked")
+ public Builder addFlightData(ChargeCaptureParams.PaymentDetails.FlightData element) {
+ if (this.flightData == null || this.flightData instanceof EmptyParam) {
+ this.flightData = new ArrayList();
+ }
+ ((List) this.flightData).add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `flightData` list. A list is initialized for the first `add/addAll`
+ * call, and subsequent calls adds additional elements to the original list. See {@link
+ * ChargeCaptureParams.PaymentDetails#flightData} for the field documentation.
+ */
+ @SuppressWarnings("unchecked")
+ public Builder addAllFlightData(
+ List elements) {
+ if (this.flightData == null || this.flightData instanceof EmptyParam) {
+ this.flightData = new ArrayList();
+ }
+ ((List) this.flightData).addAll(elements);
+ return this;
+ }
+
+ /** Flight data for this PaymentIntent. */
+ public Builder setFlightData(EmptyParam flightData) {
+ this.flightData = flightData;
+ return this;
+ }
+
+ /** Flight data for this PaymentIntent. */
+ public Builder setFlightData(List flightData) {
+ this.flightData = flightData;
+ return this;
+ }
+
/** Lodging reservation details for this PaymentIntent. */
public Builder setLodging(ChargeCaptureParams.PaymentDetails.Lodging lodging) {
this.lodging = lodging;
return this;
}
+ /**
+ * Add an element to `lodgingData` list. A list is initialized for the first `add/addAll`
+ * call, and subsequent calls adds additional elements to the original list. See {@link
+ * ChargeCaptureParams.PaymentDetails#lodgingData} for the field documentation.
+ */
+ @SuppressWarnings("unchecked")
+ public Builder addLodgingData(ChargeCaptureParams.PaymentDetails.LodgingData element) {
+ if (this.lodgingData == null || this.lodgingData instanceof EmptyParam) {
+ this.lodgingData = new ArrayList();
+ }
+ ((List