From 419de68dcafdd6639536b4b6f45665ca7c56983e Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 14:57:49 +0000 Subject: [PATCH 01/16] Update generated code for v1386 --- OPENAPI_VERSION | 2 +- .../com/stripe/param/forwarding/RequestCreateParams.java | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 128fcf47628..3949637a4b9 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1384 \ No newline at end of file +v1386 \ No newline at end of file diff --git a/src/main/java/com/stripe/param/forwarding/RequestCreateParams.java b/src/main/java/com/stripe/param/forwarding/RequestCreateParams.java index 62537479cd2..02bc4930f35 100644 --- a/src/main/java/com/stripe/param/forwarding/RequestCreateParams.java +++ b/src/main/java/com/stripe/param/forwarding/RequestCreateParams.java @@ -438,7 +438,10 @@ public enum Replacement implements ApiRequestParams.EnumParam { CARD_NUMBER("card_number"), @SerializedName("cardholder_name") - CARDHOLDER_NAME("cardholder_name"); + CARDHOLDER_NAME("cardholder_name"), + + @SerializedName("request_signature") + REQUEST_SIGNATURE("request_signature"); @Getter(onMethod_ = {@Override}) private final String value; From fda553da4a0fe4f12dc504481e1b1ebfb96da589 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 16:32:29 +0000 Subject: [PATCH 02/16] Update generated code for v1387 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/issuing/Authorization.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 3949637a4b9..7d20b24e554 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1386 \ No newline at end of file +v1387 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/issuing/Authorization.java b/src/main/java/com/stripe/model/issuing/Authorization.java index 05b589e57ff..5964131850a 100644 --- a/src/main/java/com/stripe/model/issuing/Authorization.java +++ b/src/main/java/com/stripe/model/issuing/Authorization.java @@ -1113,8 +1113,8 @@ public static class RequestHistory extends StripeObject { *
One of {@code account_disabled}, {@code card_active}, {@code card_canceled}, {@code * card_expired}, {@code card_inactive}, {@code cardholder_blocked}, {@code * cardholder_inactive}, {@code cardholder_verification_required}, {@code - * insecure_authorization_method}, {@code insufficient_funds}, {@code not_allowed}, {@code - * pin_blocked}, {@code spending_controls}, {@code suspected_fraud}, {@code + * insecure_authorization_method}, {@code insufficient_funds}, {@code network_fallback}, {@code + * not_allowed}, {@code pin_blocked}, {@code spending_controls}, {@code suspected_fraud}, {@code * verification_failed}, {@code webhook_approved}, {@code webhook_declined}, {@code * webhook_error}, or {@code webhook_timeout}. */ From fb386e5ea2f5aa5ecd6a1c5bd4aebcd88a7efdcf Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 19:47:58 +0000 Subject: [PATCH 03/16] Update generated code for v1388 --- OPENAPI_VERSION | 2 +- .../java/com/stripe/model/PaymentRecord.java | 27 ------------------- 2 files changed, 1 insertion(+), 28 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 7d20b24e554..0378aa2f47f 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1387 \ No newline at end of file +v1388 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/PaymentRecord.java b/src/main/java/com/stripe/model/PaymentRecord.java index da2ac2f2011..ee0787acdf9 100644 --- a/src/main/java/com/stripe/model/PaymentRecord.java +++ b/src/main/java/com/stripe/model/PaymentRecord.java @@ -43,10 +43,6 @@ public class PaymentRecord extends ApiResource implements HasId { @SerializedName("amount_guaranteed") AmountGuaranteed amountGuaranteed; - /** A representation of an amount of money, consisting of an amount and a currency. */ - @SerializedName("amount_refunded") - AmountRefunded amountRefunded; - /** A representation of an amount of money, consisting of an amount and a currency. */ @SerializedName("amount_requested") AmountRequested amountRequested; @@ -459,28 +455,6 @@ public static class AmountGuaranteed extends StripeObject { Long value; } - /** A representation of an amount of money, consisting of an amount and a currency. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class AmountRefunded extends StripeObject { - /** - * Three-letter ISO currency - * code, in lowercase. Must be a supported - * currency. - */ - @SerializedName("currency") - String currency; - - /** - * A positive integer representing the amount in the smallest currency unit e.g., 100 - * cents for $1.00 or 100 for ¥100, a zero-decimal currency). - */ - @SerializedName("value") - Long value; - } - /** A representation of an amount of money, consisting of an amount and a currency. */ @Getter @Setter @@ -683,7 +657,6 @@ public void setResponseGetter(StripeResponseGetter responseGetter) { trySetResponseGetter(amountCanceled, responseGetter); trySetResponseGetter(amountFailed, responseGetter); trySetResponseGetter(amountGuaranteed, responseGetter); - trySetResponseGetter(amountRefunded, responseGetter); trySetResponseGetter(amountRequested, responseGetter); trySetResponseGetter(customerDetails, responseGetter); trySetResponseGetter(paymentMethodDetails, responseGetter); From 4f66444a7e1eb64397833535e3b310012acddcea Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 21:39:22 +0000 Subject: [PATCH 04/16] Update generated code for v1388 --- .../java/com/stripe/model/capital/FinancingSummary.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/stripe/model/capital/FinancingSummary.java b/src/main/java/com/stripe/model/capital/FinancingSummary.java index 2d312f8051b..338a8426a31 100644 --- a/src/main/java/com/stripe/model/capital/FinancingSummary.java +++ b/src/main/java/com/stripe/model/capital/FinancingSummary.java @@ -106,7 +106,7 @@ public static class Details extends StripeObject { * milliseconds since unix epoch. */ @SerializedName("advance_paid_out_at") - Long advancePaidOutAt; + BigDecimal advancePaidOutAt; /** Currency that the financing offer is transacted in. For example, {@code usd}. */ @SerializedName("currency") @@ -133,7 +133,7 @@ public static class Details extends StripeObject { * epoch. */ @SerializedName("repayments_begin_at") - Long repaymentsBeginAt; + BigDecimal repaymentsBeginAt; /** Per-transaction rate at which Stripe will withhold funds to repay the financing. */ @SerializedName("withhold_rate") @@ -150,7 +150,7 @@ public static class CurrentRepaymentInterval extends StripeObject { * seconds since unix epoch. */ @SerializedName("due_at") - Long dueAt; + BigDecimal dueAt; /** The amount that has already been paid in the current repayment interval. */ @SerializedName("paid_amount") From 70a0164cce7514eb6170418cc4d23c705dd165a4 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 22:06:40 +0000 Subject: [PATCH 05/16] Update generated code for v1389 --- OPENAPI_VERSION | 2 +- .../billing/CreditBalanceTransaction.java | 46 ++++++++++++++++++- 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 0378aa2f47f..cd5e5a3314d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1388 \ No newline at end of file +v1389 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/billing/CreditBalanceTransaction.java b/src/main/java/com/stripe/model/billing/CreditBalanceTransaction.java index fccbc2921fe..03364483471 100644 --- a/src/main/java/com/stripe/model/billing/CreditBalanceTransaction.java +++ b/src/main/java/com/stripe/model/billing/CreditBalanceTransaction.java @@ -206,10 +206,17 @@ public static class Credit extends StripeObject { @SerializedName("amount") Amount amount; + /** + * Details of the invoice to which the reinstated credits were originally applied. Only present + * if {@code type} is {@code credits_application_invoice_voided}. + */ + @SerializedName("credits_application_invoice_voided") + CreditsApplicationInvoiceVoided creditsApplicationInvoiceVoided; + /** * The type of credit transaction. * - *
Equal to {@code credits_granted}. + *
One of {@code credits_application_invoice_voided}, or {@code credits_granted}.
*/
@SerializedName("type")
String type;
@@ -255,6 +262,43 @@ public static class Monetary extends StripeObject {
Long value;
}
}
+
+ /**
+ * For more details about CreditsApplicationInvoiceVoided, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CreditsApplicationInvoiceVoided extends StripeObject {
+ /** The invoice to which the reinstated billing credits were originally applied. */
+ @SerializedName("invoice")
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField One of {@code declined}, {@code fully_authorized}, {@code not_requested}, or {@code
- * partially_authorized}.
- */
- @SerializedName("status")
- String status;
- }
-
/**
* For more details about ThreeDSecure, please refer to the API Reference.
diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java
index ed06a71fe73..a0a74841f28 100644
--- a/src/main/java/com/stripe/model/PaymentIntent.java
+++ b/src/main/java/com/stripe/model/PaymentIntent.java
@@ -3745,14 +3745,6 @@ public static class Card extends StripeObject {
@SerializedName("request_overcapture")
String requestOvercapture;
- /**
- * Request partial authorization on this PaymentIntent.
- *
- * One of {@code if_available}, or {@code never}.
- */
- @SerializedName("request_partial_authorization")
- String requestPartialAuthorization;
-
/**
* We strongly recommend that you rely on our SCA Engine to automatically prompt your
* customers for authentication based on risk level and metadata;
- /** Payment method-specific configuration for this PaymentIntent. */
- @SerializedName("payment_method_options")
- PaymentMethodOptions paymentMethodOptions;
-
/**
* Text that appears on the customer's statement as the statement descriptor for a non-card or
* card charge. This value overrides the account's default statement descriptor. For information
@@ -89,7 +85,6 @@ private PaymentIntentIncrementAuthorizationParams(
List One of {@code regulated}, or {@code unregulated}.
+ */
+ @SerializedName("regulated_status")
+ String regulatedStatus;
+
/**
* For external accounts that are cards, possible values are {@code new} and {@code errored}. If a
* payout fails, the status is set to {@code errored} and One of {@code regulated}, or {@code unregulated}.
+ */
+ @SerializedName("regulated_status")
+ String regulatedStatus;
+
/** Populated if this transaction used 3D Secure authentication. */
@SerializedName("three_d_secure")
ThreeDSecure threeDSecure;
diff --git a/src/main/java/com/stripe/model/ConfirmationToken.java b/src/main/java/com/stripe/model/ConfirmationToken.java
index 0abf7f14cf1..323ee5037da 100644
--- a/src/main/java/com/stripe/model/ConfirmationToken.java
+++ b/src/main/java/com/stripe/model/ConfirmationToken.java
@@ -719,6 +719,14 @@ public static class Card extends StripeObject {
@SerializedName("networks")
Networks networks;
+ /**
+ * Status of a card based on the card issuer.
+ *
+ * One of {@code regulated}, or {@code unregulated}.
+ */
+ @SerializedName("regulated_status")
+ String regulatedStatus;
+
/** Contains details on how this Card may be used for 3D Secure authentication. */
@SerializedName("three_d_secure_usage")
ThreeDSecureUsage threeDSecureUsage;
diff --git a/src/main/java/com/stripe/model/PaymentMethod.java b/src/main/java/com/stripe/model/PaymentMethod.java
index 90a963225f8..5e498158000 100644
--- a/src/main/java/com/stripe/model/PaymentMethod.java
+++ b/src/main/java/com/stripe/model/PaymentMethod.java
@@ -951,6 +951,14 @@ public static class Card extends StripeObject {
@SerializedName("networks")
Networks networks;
+ /**
+ * Status of a card based on the card issuer.
+ *
+ * One of {@code regulated}, or {@code unregulated}.
+ */
+ @SerializedName("regulated_status")
+ String regulatedStatus;
+
/** Contains details on how this Card may be used for 3D Secure authentication. */
@SerializedName("three_d_secure_usage")
ThreeDSecureUsage threeDSecureUsage;
From df3c3732b977a326cf4336ab327743a4b3ee2be1 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Mon, 9 Dec 2024 21:12:27 +0000
Subject: [PATCH 09/16] Update generated code for v1395
---
OPENAPI_VERSION | 2 +-
src/main/java/com/stripe/ApiVersion.java | 2 +-
.../java/com/stripe/param/WebhookEndpointCreateParams.java | 5 ++++-
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index acf4c7638fe..c9e0a8482bc 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v1394
\ No newline at end of file
+v1395
\ 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 d00fa011271..f582b3a469b 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 = "2024-11-20.acacia";
+ public static final String CURRENT = "2024-12-18.acacia";
}
diff --git a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java
index aafa8fa1791..ab927be2404 100644
--- a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java
+++ b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java
@@ -595,7 +595,10 @@ public enum ApiVersion implements ApiRequestParams.EnumParam {
VERSION_2024_10_28_ACACIA("2024-10-28.acacia"),
@SerializedName("2024-11-20.acacia")
- VERSION_2024_11_20_ACACIA("2024-11-20.acacia");
+ VERSION_2024_11_20_ACACIA("2024-11-20.acacia"),
+
+ @SerializedName("2024-12-18.acacia")
+ VERSION_2024_12_18_ACACIA("2024-12-18.acacia");
@Getter(onMethod_ = {@Override})
private final String value;
From e570d8e2a50a1ceff5122b182fc9f66aad1941ae Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Mon, 9 Dec 2024 21:22:17 +0000
Subject: [PATCH 10/16] Update generated code for v1396
---
OPENAPI_VERSION | 2 +-
.../java/com/stripe/model/AccountSession.java | 50 +++----
.../param/AccountSessionCreateParams.java | 126 +++++++++---------
3 files changed, 92 insertions(+), 86 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index c9e0a8482bc..5120dc63e2e 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v1395
\ No newline at end of file
+v1396
\ No newline at end of file
diff --git a/src/main/java/com/stripe/model/AccountSession.java b/src/main/java/com/stripe/model/AccountSession.java
index eefb39a4b44..47b6ef0e8c8 100644
--- a/src/main/java/com/stripe/model/AccountSession.java
+++ b/src/main/java/com/stripe/model/AccountSession.java
@@ -192,11 +192,11 @@ public static class AccountManagement extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {
/**
- * Disables Stripe user authentication for this embedded component. This feature can only be
- * {@code true} for accounts where you’re responsible for collecting updated information
- * when requirements are due or change, like Custom accounts. The default value for this
- * feature is {@code false} when {@code external_account_collection} is enabled and {@code
- * true} otherwise.
+ * Disables Stripe user authentication for this embedded component. This value can only be
+ * true for accounts where {@code controller.requirement_collection} is {@code application}.
+ * The default value is the opposite of the {@code external_account_collection} value. For
+ * example, if you don’t set {@code external_account_collection}, it defaults to true and
+ * {@code disable_stripe_user_authentication} defaults to false.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
@@ -237,11 +237,11 @@ public static class AccountOnboarding extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {
/**
- * Disables Stripe user authentication for this embedded component. This feature can only be
- * {@code true} for accounts where you’re responsible for collecting updated information
- * when requirements are due or change, like Custom accounts. The default value for this
- * feature is {@code false} when {@code external_account_collection} is enabled and {@code
- * true} otherwise.
+ * Disables Stripe user authentication for this embedded component. This value can only be
+ * true for accounts where {@code controller.requirement_collection} is {@code application}.
+ * The default value is the opposite of the {@code external_account_collection} value. For
+ * example, if you don’t set {@code external_account_collection}, it defaults to true and
+ * {@code disable_stripe_user_authentication} defaults to false.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
@@ -282,11 +282,11 @@ public static class Balances extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {
/**
- * Disables Stripe user authentication for this embedded component. This feature can only be
- * {@code true} for accounts where you’re responsible for collecting updated information
- * when requirements are due or change, like Custom accounts. The default value for this
- * feature is {@code false} when {@code external_account_collection} is enabled and {@code
- * true} otherwise.
+ * Disables Stripe user authentication for this embedded component. This value can only be
+ * true for accounts where {@code controller.requirement_collection} is {@code application}.
+ * The default value is the opposite of the {@code external_account_collection} value. For
+ * example, if you don’t set {@code external_account_collection}, it defaults to true and
+ * {@code disable_stripe_user_authentication} defaults to false.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
@@ -448,11 +448,11 @@ public static class NotificationBanner extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {
/**
- * Disables Stripe user authentication for this embedded component. This feature can only be
- * {@code true} for accounts where you’re responsible for collecting updated information
- * when requirements are due or change, like Custom accounts. The default value for this
- * feature is {@code false} when {@code external_account_collection} is enabled and {@code
- * true} otherwise.
+ * Disables Stripe user authentication for this embedded component. This value can only be
+ * true for accounts where {@code controller.requirement_collection} is {@code application}.
+ * The default value is the opposite of the {@code external_account_collection} value. For
+ * example, if you don’t set {@code external_account_collection}, it defaults to true and
+ * {@code disable_stripe_user_authentication} defaults to false.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
@@ -593,11 +593,11 @@ public static class Payouts extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {
/**
- * Disables Stripe user authentication for this embedded component. This feature can only be
- * {@code true} for accounts where you’re responsible for collecting updated information
- * when requirements are due or change, like Custom accounts. The default value for this
- * feature is {@code false} when {@code external_account_collection} is enabled and {@code
- * true} otherwise.
+ * Disables Stripe user authentication for this embedded component. This value can only be
+ * true for accounts where {@code controller.requirement_collection} is {@code application}.
+ * The default value is the opposite of the {@code external_account_collection} value. For
+ * example, if you don’t set {@code external_account_collection}, it defaults to true and
+ * {@code disable_stripe_user_authentication} defaults to false.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
diff --git a/src/main/java/com/stripe/param/AccountSessionCreateParams.java b/src/main/java/com/stripe/param/AccountSessionCreateParams.java
index 62fea18419a..bf502328812 100644
--- a/src/main/java/com/stripe/param/AccountSessionCreateParams.java
+++ b/src/main/java/com/stripe/param/AccountSessionCreateParams.java
@@ -654,11 +654,11 @@ public Builder setFeatures(
@Getter
public static class Features {
/**
- * Disables Stripe user authentication for this embedded component. This feature can only be
- * {@code true} for accounts where you’re responsible for collecting updated information
- * when requirements are due or change, like Custom accounts. The default value for this
- * feature is {@code false} when {@code external_account_collection} is enabled and {@code
- * true} otherwise.
+ * Disables Stripe user authentication for this embedded component. This value can only be
+ * true for accounts where {@code controller.requirement_collection} is {@code application}.
+ * The default value is the opposite of the {@code external_account_collection} value. For
+ * example, if you don’t set {@code external_account_collection}, it defaults to true and
+ * {@code disable_stripe_user_authentication} defaults to false.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
@@ -712,11 +712,12 @@ public AccountSessionCreateParams.Components.AccountManagement.Features build()
}
/**
- * Disables Stripe user authentication for this embedded component. This feature can only
- * be {@code true} for accounts where you’re responsible for collecting updated
- * information when requirements are due or change, like Custom accounts. The default
- * value for this feature is {@code false} when {@code external_account_collection} is
- * enabled and {@code true} otherwise.
+ * Disables Stripe user authentication for this embedded component. This value can only be
+ * true for accounts where {@code controller.requirement_collection} is {@code
+ * application}. The default value is the opposite of the {@code
+ * external_account_collection} value. For example, if you don’t set {@code
+ * external_account_collection}, it defaults to true and {@code
+ * disable_stripe_user_authentication} defaults to false.
*/
public Builder setDisableStripeUserAuthentication(
Boolean disableStripeUserAuthentication) {
@@ -857,11 +858,11 @@ public Builder setFeatures(
@Getter
public static class Features {
/**
- * Disables Stripe user authentication for this embedded component. This feature can only be
- * {@code true} for accounts where you’re responsible for collecting updated information
- * when requirements are due or change, like Custom accounts. The default value for this
- * feature is {@code false} when {@code external_account_collection} is enabled and {@code
- * true} otherwise.
+ * Disables Stripe user authentication for this embedded component. This value can only be
+ * true for accounts where {@code controller.requirement_collection} is {@code application}.
+ * The default value is the opposite of the {@code external_account_collection} value. For
+ * example, if you don’t set {@code external_account_collection}, it defaults to true and
+ * {@code disable_stripe_user_authentication} defaults to false.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
@@ -915,11 +916,12 @@ public AccountSessionCreateParams.Components.AccountOnboarding.Features build()
}
/**
- * Disables Stripe user authentication for this embedded component. This feature can only
- * be {@code true} for accounts where you’re responsible for collecting updated
- * information when requirements are due or change, like Custom accounts. The default
- * value for this feature is {@code false} when {@code external_account_collection} is
- * enabled and {@code true} otherwise.
+ * Disables Stripe user authentication for this embedded component. This value can only be
+ * true for accounts where {@code controller.requirement_collection} is {@code
+ * application}. The default value is the opposite of the {@code
+ * external_account_collection} value. For example, if you don’t set {@code
+ * external_account_collection}, it defaults to true and {@code
+ * disable_stripe_user_authentication} defaults to false.
*/
public Builder setDisableStripeUserAuthentication(
Boolean disableStripeUserAuthentication) {
@@ -1445,11 +1447,11 @@ public Builder setFeatures(
@Getter
public static class Features {
/**
- * Disables Stripe user authentication for this embedded component. This feature can only be
- * {@code true} for accounts where you’re responsible for collecting updated information
- * when requirements are due or change, like Custom accounts. The default value for this
- * feature is {@code false} when {@code external_account_collection} is enabled and {@code
- * true} otherwise.
+ * Disables Stripe user authentication for this embedded component. This value can only be
+ * true for accounts where {@code controller.requirement_collection} is {@code application}.
+ * The default value is the opposite of the {@code external_account_collection} value. For
+ * example, if you don’t set {@code external_account_collection}, it defaults to true and
+ * {@code disable_stripe_user_authentication} defaults to false.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
@@ -1539,11 +1541,12 @@ public AccountSessionCreateParams.Components.Balances.Features build() {
}
/**
- * Disables Stripe user authentication for this embedded component. This feature can only
- * be {@code true} for accounts where you’re responsible for collecting updated
- * information when requirements are due or change, like Custom accounts. The default
- * value for this feature is {@code false} when {@code external_account_collection} is
- * enabled and {@code true} otherwise.
+ * Disables Stripe user authentication for this embedded component. This value can only be
+ * true for accounts where {@code controller.requirement_collection} is {@code
+ * application}. The default value is the opposite of the {@code
+ * external_account_collection} value. For example, if you don’t set {@code
+ * external_account_collection}, it defaults to true and {@code
+ * disable_stripe_user_authentication} defaults to false.
*/
public Builder setDisableStripeUserAuthentication(
Boolean disableStripeUserAuthentication) {
@@ -2444,11 +2447,11 @@ public Builder setFeatures(
@Getter
public static class Features {
/**
- * Disables Stripe user authentication for this embedded component. This feature can only be
- * {@code true} for accounts where you’re responsible for collecting updated information
- * when requirements are due or change, like Custom accounts. The default value for this
- * feature is {@code false} when {@code external_account_collection} is enabled and {@code
- * true} otherwise.
+ * Disables Stripe user authentication for this embedded component. This value can only be
+ * true for accounts where {@code controller.requirement_collection} is {@code application}.
+ * The default value is the opposite of the {@code external_account_collection} value. For
+ * example, if you don’t set {@code external_account_collection}, it defaults to true and
+ * {@code disable_stripe_user_authentication} defaults to false.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
@@ -2514,11 +2517,12 @@ public AccountSessionCreateParams.Components.FinancialAccount.Features build() {
}
/**
- * Disables Stripe user authentication for this embedded component. This feature can only
- * be {@code true} for accounts where you’re responsible for collecting updated
- * information when requirements are due or change, like Custom accounts. The default
- * value for this feature is {@code false} when {@code external_account_collection} is
- * enabled and {@code true} otherwise.
+ * Disables Stripe user authentication for this embedded component. This value can only be
+ * true for accounts where {@code controller.requirement_collection} is {@code
+ * application}. The default value is the opposite of the {@code
+ * external_account_collection} value. For example, if you don’t set {@code
+ * external_account_collection}, it defaults to true and {@code
+ * disable_stripe_user_authentication} defaults to false.
*/
public Builder setDisableStripeUserAuthentication(
Boolean disableStripeUserAuthentication) {
@@ -3265,11 +3269,11 @@ public Builder setFeatures(
@Getter
public static class Features {
/**
- * Disables Stripe user authentication for this embedded component. This feature can only be
- * {@code true} for accounts where you’re responsible for collecting updated information
- * when requirements are due or change, like Custom accounts. The default value for this
- * feature is {@code false} when {@code external_account_collection} is enabled and {@code
- * true} otherwise.
+ * Disables Stripe user authentication for this embedded component. This value can only be
+ * true for accounts where {@code controller.requirement_collection} is {@code application}.
+ * The default value is the opposite of the {@code external_account_collection} value. For
+ * example, if you don’t set {@code external_account_collection}, it defaults to true and
+ * {@code disable_stripe_user_authentication} defaults to false.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
@@ -3323,11 +3327,12 @@ public AccountSessionCreateParams.Components.NotificationBanner.Features build()
}
/**
- * Disables Stripe user authentication for this embedded component. This feature can only
- * be {@code true} for accounts where you’re responsible for collecting updated
- * information when requirements are due or change, like Custom accounts. The default
- * value for this feature is {@code false} when {@code external_account_collection} is
- * enabled and {@code true} otherwise.
+ * Disables Stripe user authentication for this embedded component. This value can only be
+ * true for accounts where {@code controller.requirement_collection} is {@code
+ * application}. The default value is the opposite of the {@code
+ * external_account_collection} value. For example, if you don’t set {@code
+ * external_account_collection}, it defaults to true and {@code
+ * disable_stripe_user_authentication} defaults to false.
*/
public Builder setDisableStripeUserAuthentication(
Boolean disableStripeUserAuthentication) {
@@ -4064,11 +4069,11 @@ public Builder setFeatures(
@Getter
public static class Features {
/**
- * Disables Stripe user authentication for this embedded component. This feature can only be
- * {@code true} for accounts where you’re responsible for collecting updated information
- * when requirements are due or change, like Custom accounts. The default value for this
- * feature is {@code false} when {@code external_account_collection} is enabled and {@code
- * true} otherwise.
+ * Disables Stripe user authentication for this embedded component. This value can only be
+ * true for accounts where {@code controller.requirement_collection} is {@code application}.
+ * The default value is the opposite of the {@code external_account_collection} value. For
+ * example, if you don’t set {@code external_account_collection}, it defaults to true and
+ * {@code disable_stripe_user_authentication} defaults to false.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
@@ -4158,11 +4163,12 @@ public AccountSessionCreateParams.Components.Payouts.Features build() {
}
/**
- * Disables Stripe user authentication for this embedded component. This feature can only
- * be {@code true} for accounts where you’re responsible for collecting updated
- * information when requirements are due or change, like Custom accounts. The default
- * value for this feature is {@code false} when {@code external_account_collection} is
- * enabled and {@code true} otherwise.
+ * Disables Stripe user authentication for this embedded component. This value can only be
+ * true for accounts where {@code controller.requirement_collection} is {@code
+ * application}. The default value is the opposite of the {@code
+ * external_account_collection} value. For example, if you don’t set {@code
+ * external_account_collection}, it defaults to true and {@code
+ * disable_stripe_user_authentication} defaults to false.
*/
public Builder setDisableStripeUserAuthentication(
Boolean disableStripeUserAuthentication) {
From 96b1a3f18ae5a6e469f4ab75270bf5415300ce17 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Mon, 9 Dec 2024 22:26:15 +0000
Subject: [PATCH 11/16] Update generated code for v1397
---
OPENAPI_VERSION | 2 +-
.../com/stripe/model/terminal/Reader.java | 20 +++++++++++++++++++
2 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 5120dc63e2e..42258ffb394 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v1396
\ No newline at end of file
+v1397
\ No newline at end of file
diff --git a/src/main/java/com/stripe/model/terminal/Reader.java b/src/main/java/com/stripe/model/terminal/Reader.java
index 9f54bdfd065..c8ebe612c4d 100644
--- a/src/main/java/com/stripe/model/terminal/Reader.java
+++ b/src/main/java/com/stripe/model/terminal/Reader.java
@@ -928,6 +928,10 @@ public static class Toggle extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class CollectPaymentMethod extends StripeObject {
+ /** Account the payment intent belongs to. */
+ @SerializedName("account")
+ String account;
+
/** Represents a per-transaction override of a reader configuration. */
@SerializedName("collect_config")
CollectConfig collectConfig;
@@ -950,6 +954,7 @@ public static class CollectPaymentMethod extends StripeObject {
@SerializedName("payment_method")
PaymentMethod paymentMethod;
+ /** This field will be deprecated. Please use {@code account} instead. */
@SerializedName("stripe_account")
String stripeAccount;
@@ -1010,12 +1015,17 @@ public static class Tipping extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class ConfirmPaymentIntent extends StripeObject {
+ /** Account the payment intent belongs to. */
+ @SerializedName("account")
+ String account;
+
/** Most recent PaymentIntent processed by the reader. */
@SerializedName("payment_intent")
@Getter(lombok.AccessLevel.NONE)
@Setter(lombok.AccessLevel.NONE)
ExpandableField One of {@code fee_acknowledged}, or {@code requires_fee_acknowledgement}.
+ */
+ @SerializedName("status")
+ String status;
+ }
}
}
diff --git a/src/main/java/com/stripe/param/DisputeUpdateParams.java b/src/main/java/com/stripe/param/DisputeUpdateParams.java
index ab7a359b04c..702812e9193 100644
--- a/src/main/java/com/stripe/param/DisputeUpdateParams.java
+++ b/src/main/java/com/stripe/param/DisputeUpdateParams.java
@@ -1086,10 +1086,17 @@ public static class EnhancedEvidence {
@SerializedName("visa_compelling_evidence_3")
VisaCompellingEvidence3 visaCompellingEvidence3;
+ /** Evidence provided for Visa Compliance evidence submission. */
+ @SerializedName("visa_compliance")
+ VisaCompliance visaCompliance;
+
private EnhancedEvidence(
- Map One of {@code declined}, {@code fully_authorized}, {@code not_requested}, or {@code
+ * partially_authorized}.
+ */
+ @SerializedName("status")
+ String status;
+ }
+
/**
* For more details about ThreeDSecure, please refer to the API Reference.
diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java
index a0a74841f28..ed06a71fe73 100644
--- a/src/main/java/com/stripe/model/PaymentIntent.java
+++ b/src/main/java/com/stripe/model/PaymentIntent.java
@@ -3745,6 +3745,14 @@ public static class Card extends StripeObject {
@SerializedName("request_overcapture")
String requestOvercapture;
+ /**
+ * Request partial authorization on this PaymentIntent.
+ *
+ * One of {@code if_available}, or {@code never}.
+ */
+ @SerializedName("request_partial_authorization")
+ String requestPartialAuthorization;
+
/**
* We strongly recommend that you rely on our SCA Engine to automatically prompt your
* customers for authentication based on risk level and metadata;
+ /** Payment method-specific configuration for this PaymentIntent. */
+ @SerializedName("payment_method_options")
+ PaymentMethodOptions paymentMethodOptions;
+
/**
* Text that appears on the customer's statement as the statement descriptor for a non-card or
* card charge. This value overrides the account's default statement descriptor. For information
@@ -85,6 +89,7 @@ private PaymentIntentIncrementAuthorizationParams(
List One of {@code always}, {@code limited}, or {@code unspecified}.
+ */
+ @SerializedName("allow_redisplay")
+ String allowRedisplay;
+
/**
* A set of available payout methods for this card. Only values from this set should be passed as
* the {@code method} when creating a payout.
diff --git a/src/main/java/com/stripe/model/Source.java b/src/main/java/com/stripe/model/Source.java
index 2c48014c33a..97d0be9e414 100644
--- a/src/main/java/com/stripe/model/Source.java
+++ b/src/main/java/com/stripe/model/Source.java
@@ -50,6 +50,17 @@ public class Source extends ApiResource implements MetadataStore