diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 55d0a33c44..4dcad4de20 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v704 \ No newline at end of file +v715 \ No newline at end of file diff --git a/types/AccountSessionsResource.d.ts b/types/AccountSessionsResource.d.ts index e2f6565c7b..8b80ff0077 100644 --- a/types/AccountSessionsResource.d.ts +++ b/types/AccountSessionsResource.d.ts @@ -127,9 +127,6 @@ declare module 'stripe' { */ enabled: boolean; - /** - * The list of features enabled in the embedded component. - */ features?: Payouts.Features; } diff --git a/types/Checkout/Sessions.d.ts b/types/Checkout/Sessions.d.ts index deda144263..dce71e57b1 100644 --- a/types/Checkout/Sessions.d.ts +++ b/types/Checkout/Sessions.d.ts @@ -366,6 +366,11 @@ declare module 'stripe' { } interface ConsentCollection { + /** + * If set to `hidden`, it will hide legal text related to the reuse of a payment method. + */ + payment_method_reuse_agreement: ConsentCollection.PaymentMethodReuseAgreement | null; + /** * If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout * Session will determine whether to display an option to opt into promotional communication @@ -380,6 +385,19 @@ declare module 'stripe' { } namespace ConsentCollection { + interface PaymentMethodReuseAgreement { + /** + * Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's defaults will be used. + * + * When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI. + */ + position: PaymentMethodReuseAgreement.Position; + } + + namespace PaymentMethodReuseAgreement { + type Position = 'auto' | 'hidden'; + } + type Promotions = 'auto' | 'none'; type TermsOfService = 'none' | 'required'; @@ -631,6 +649,11 @@ declare module 'stripe' { } interface CustomText { + /** + * Custom text that should be displayed after the payment confirmation button. + */ + after_submit: CustomText.AfterSubmit | null; + /** * Custom text that should be displayed alongside shipping address collection. */ @@ -648,6 +671,13 @@ declare module 'stripe' { } namespace CustomText { + interface AfterSubmit { + /** + * Text may be up to 1200 characters in length. + */ + message: string; + } + interface ShippingAddress { /** * Text may be up to 1200 characters in length. diff --git a/types/Checkout/SessionsResource.d.ts b/types/Checkout/SessionsResource.d.ts index b6980425e9..472e7ee8fd 100644 --- a/types/Checkout/SessionsResource.d.ts +++ b/types/Checkout/SessionsResource.d.ts @@ -284,6 +284,11 @@ declare module 'stripe' { type BillingAddressCollection = 'auto' | 'required'; interface ConsentCollection { + /** + * Determines the display of payment method reuse agreement text in the UI. If set to `hidden`, it will hide legal text related to the reuse of a payment method. + */ + payment_method_reuse_agreement?: ConsentCollection.PaymentMethodReuseAgreement; + /** * If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout * Session will determine whether to display an option to opt into promotional communication @@ -299,6 +304,18 @@ declare module 'stripe' { } namespace ConsentCollection { + interface PaymentMethodReuseAgreement { + /** + * Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's + * defaults will be used. When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI. + */ + position: PaymentMethodReuseAgreement.Position; + } + + namespace PaymentMethodReuseAgreement { + type Position = 'auto' | 'hidden'; + } + type Promotions = 'auto' | 'none'; type TermsOfService = 'none' | 'required'; @@ -432,6 +449,11 @@ declare module 'stripe' { } interface CustomText { + /** + * Custom text that should be displayed after the payment confirmation button. + */ + after_submit?: Stripe.Emptyable; + /** * Custom text that should be displayed alongside shipping address collection. */ @@ -451,6 +473,13 @@ declare module 'stripe' { } namespace CustomText { + interface AfterSubmit { + /** + * Text may be up to 1200 characters in length. + */ + message: string; + } + interface ShippingAddress { /** * Text may be up to 1200 characters in length. diff --git a/types/InvoicesResource.d.ts b/types/InvoicesResource.d.ts index 0dbd469059..bcd17cc453 100644 --- a/types/InvoicesResource.d.ts +++ b/types/InvoicesResource.d.ts @@ -1410,7 +1410,7 @@ declare module 'stripe' { | number; /** - * Timestamp indicating when the subscription should be scheduled to cancel. Will prorate if within the current period and prorations have been enabled using `proration_behavior`. + * A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. */ subscription_cancel_at?: Stripe.Emptyable; @@ -1452,7 +1452,7 @@ declare module 'stripe' { subscription_resume_at?: 'now'; /** - * Date a subscription is intended to start (can be future or past) + * Date a subscription is intended to start (can be future or past). */ subscription_start_date?: number; @@ -1995,7 +1995,7 @@ declare module 'stripe' { | number; /** - * Timestamp indicating when the subscription should be scheduled to cancel. Will prorate if within the current period and prorations have been enabled using `proration_behavior`. + * A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. */ subscription_cancel_at?: Stripe.Emptyable; @@ -2037,7 +2037,7 @@ declare module 'stripe' { subscription_resume_at?: 'now'; /** - * Date a subscription is intended to start (can be future or past) + * Date a subscription is intended to start (can be future or past). */ subscription_start_date?: number; diff --git a/types/PaymentIntents.d.ts b/types/PaymentIntents.d.ts index db2668e4cd..6f1b90c630 100644 --- a/types/PaymentIntents.d.ts +++ b/types/PaymentIntents.d.ts @@ -82,6 +82,9 @@ declare module 'stripe' { */ client_secret: string | null; + /** + * Describes whether we can confirm this PaymentIntent automatically, or if it requires customer action to confirm the payment. + */ confirmation_method: PaymentIntent.ConfirmationMethod; /** diff --git a/types/PaymentIntentsResource.d.ts b/types/PaymentIntentsResource.d.ts index cf7535b08a..962185d559 100644 --- a/types/PaymentIntentsResource.d.ts +++ b/types/PaymentIntentsResource.d.ts @@ -33,6 +33,9 @@ declare module 'stripe' { */ confirm?: boolean; + /** + * Describes whether we can confirm this PaymentIntent automatically, or if it requires customer action to confirm the payment. + */ confirmation_method?: PaymentIntentCreateParams.ConfirmationMethod; /** diff --git a/types/PaymentLinks.d.ts b/types/PaymentLinks.d.ts index bbc6bf2534..66c7e0b2e6 100644 --- a/types/PaymentLinks.d.ts +++ b/types/PaymentLinks.d.ts @@ -205,6 +205,11 @@ declare module 'stripe' { type BillingAddressCollection = 'auto' | 'required'; interface ConsentCollection { + /** + * Settings related to the payment method reuse text shown in the Checkout UI. + */ + payment_method_reuse_agreement: ConsentCollection.PaymentMethodReuseAgreement | null; + /** * If set to `auto`, enables the collection of customer consent for promotional communications. */ @@ -217,6 +222,19 @@ declare module 'stripe' { } namespace ConsentCollection { + interface PaymentMethodReuseAgreement { + /** + * Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's defaults will be used. + * + * When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI. + */ + position: PaymentMethodReuseAgreement.Position; + } + + namespace PaymentMethodReuseAgreement { + type Position = 'auto' | 'hidden'; + } + type Promotions = 'auto' | 'none'; type TermsOfService = 'none' | 'required'; @@ -311,6 +329,11 @@ declare module 'stripe' { } interface CustomText { + /** + * Custom text that should be displayed after the payment confirmation button. + */ + after_submit: CustomText.AfterSubmit | null; + /** * Custom text that should be displayed alongside shipping address collection. */ @@ -328,6 +351,13 @@ declare module 'stripe' { } namespace CustomText { + interface AfterSubmit { + /** + * Text may be up to 1200 characters in length. + */ + message: string; + } + interface ShippingAddress { /** * Text may be up to 1200 characters in length. diff --git a/types/PaymentLinksResource.d.ts b/types/PaymentLinksResource.d.ts index 67a46f3d59..2a361c7330 100644 --- a/types/PaymentLinksResource.d.ts +++ b/types/PaymentLinksResource.d.ts @@ -196,6 +196,11 @@ declare module 'stripe' { type BillingAddressCollection = 'auto' | 'required'; interface ConsentCollection { + /** + * Determines the display of payment method reuse agreement text in the UI. If set to `hidden`, it will hide legal text related to the reuse of a payment method. + */ + payment_method_reuse_agreement?: ConsentCollection.PaymentMethodReuseAgreement; + /** * If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout * Session will determine whether to display an option to opt into promotional communication @@ -211,6 +216,18 @@ declare module 'stripe' { } namespace ConsentCollection { + interface PaymentMethodReuseAgreement { + /** + * Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's + * defaults will be used. When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI. + */ + position: PaymentMethodReuseAgreement.Position; + } + + namespace PaymentMethodReuseAgreement { + type Position = 'auto' | 'hidden'; + } + type Promotions = 'auto' | 'none'; type TermsOfService = 'none' | 'required'; @@ -317,6 +334,11 @@ declare module 'stripe' { } interface CustomText { + /** + * Custom text that should be displayed after the payment confirmation button. + */ + after_submit?: Stripe.Emptyable; + /** * Custom text that should be displayed alongside shipping address collection. */ @@ -336,6 +358,13 @@ declare module 'stripe' { } namespace CustomText { + interface AfterSubmit { + /** + * Text may be up to 1200 characters in length. + */ + message: string; + } + interface ShippingAddress { /** * Text may be up to 1200 characters in length. @@ -1160,6 +1189,11 @@ declare module 'stripe' { } interface CustomText { + /** + * Custom text that should be displayed after the payment confirmation button. + */ + after_submit?: Stripe.Emptyable; + /** * Custom text that should be displayed alongside shipping address collection. */ @@ -1179,6 +1213,13 @@ declare module 'stripe' { } namespace CustomText { + interface AfterSubmit { + /** + * Text may be up to 1200 characters in length. + */ + message: string; + } + interface ShippingAddress { /** * Text may be up to 1200 characters in length. diff --git a/types/Radar/EarlyFraudWarningsResource.d.ts b/types/Radar/EarlyFraudWarningsResource.d.ts index e1e381a8b4..921b2aed83 100644 --- a/types/Radar/EarlyFraudWarningsResource.d.ts +++ b/types/Radar/EarlyFraudWarningsResource.d.ts @@ -16,6 +16,11 @@ declare module 'stripe' { */ charge?: string; + /** + * Only return early fraud warnings that were created during the given date interval. + */ + created?: Stripe.RangeQueryParam | number; + /** * Specifies which fields in the response should be expanded. */ diff --git a/types/TestHelpers/Issuing/AuthorizationsResource.d.ts b/types/TestHelpers/Issuing/AuthorizationsResource.d.ts index a58dff1c7f..ba7c653b06 100644 --- a/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +++ b/types/TestHelpers/Issuing/AuthorizationsResource.d.ts @@ -6,7 +6,7 @@ declare module 'stripe' { namespace Issuing { interface AuthorizationCreateParams { /** - * The total amount to attempt to authorize. This amount is in the provided currency, or defaults to the cards currency, and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). + * The total amount to attempt to authorize. This amount is in the provided currency, or defaults to the card's currency, and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). */ amount: number;