diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 1f9307ddf2..87d0d4f1ad 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v207 \ No newline at end of file +v209 \ No newline at end of file diff --git a/types/2022-11-15/Checkout/Sessions.d.ts b/types/2022-11-15/Checkout/Sessions.d.ts index dc63b7c02a..1cc233e916 100644 --- a/types/2022-11-15/Checkout/Sessions.d.ts +++ b/types/2022-11-15/Checkout/Sessions.d.ts @@ -90,6 +90,8 @@ declare module 'stripe' { */ currency: string | null; + custom_text: Session.CustomText; + /** * The ID of the customer for this Session. * For Checkout Sessions in `payment` or `subscription` mode, Checkout @@ -446,6 +448,34 @@ declare module 'stripe' { } } + interface CustomText { + /** + * Custom text that should be displayed alongside shipping address collection. + */ + shipping_address: CustomText.ShippingAddress | null; + + /** + * Custom text that should be displayed alongside the payment confirmation button. + */ + submit: CustomText.Submit | null; + } + + namespace CustomText { + interface ShippingAddress { + /** + * Text may be up to 500 characters in length. + */ + message: string; + } + + interface Submit { + /** + * Text may be up to 500 characters in length. + */ + message: string; + } + } + type Locale = | 'auto' | 'bg' @@ -1464,6 +1494,11 @@ declare module 'stripe' { */ currency?: string; + /** + * Display additional text for your customers using custom text. + */ + custom_text?: SessionCreateParams.CustomText; + /** * ID of an existing Customer, if one exists. In `payment` mode, the customer's most recent card * payment method will be used to prefill the email, name, card details, and billing address @@ -1710,6 +1745,34 @@ declare module 'stripe' { type Shipping = 'auto' | 'never'; } + interface CustomText { + /** + * Custom text that should be displayed alongside shipping address collection. + */ + shipping_address?: Stripe.Emptyable; + + /** + * Custom text that should be displayed alongside the payment confirmation button. + */ + submit?: Stripe.Emptyable; + } + + namespace CustomText { + interface ShippingAddress { + /** + * Text may be up to 500 characters in length. + */ + message: string; + } + + interface Submit { + /** + * Text may be up to 500 characters in length. + */ + message: string; + } + } + interface Discount { /** * The ID of the coupon to apply to this Session. diff --git a/types/2022-11-15/PaymentIntents.d.ts b/types/2022-11-15/PaymentIntents.d.ts index d9af3bb497..0f445dbb2a 100644 --- a/types/2022-11-15/PaymentIntents.d.ts +++ b/types/2022-11-15/PaymentIntents.d.ts @@ -745,6 +745,11 @@ declare module 'stripe' { */ data: string; + /** + * The URL to the hosted PayNow instructions page, which allows customers to view the PayNow QR code. + */ + hosted_instructions_url: string | null; + /** * The image_url_png string used to render QR code */ diff --git a/types/2022-11-15/PaymentLinks.d.ts b/types/2022-11-15/PaymentLinks.d.ts index b3fa8238e6..074b5c706f 100644 --- a/types/2022-11-15/PaymentLinks.d.ts +++ b/types/2022-11-15/PaymentLinks.d.ts @@ -59,6 +59,8 @@ declare module 'stripe' { */ currency: string; + custom_text: PaymentLink.CustomText; + /** * Configuration for Customer creation during checkout. */ @@ -193,6 +195,34 @@ declare module 'stripe' { type CustomerCreation = 'always' | 'if_required'; + interface CustomText { + /** + * Custom text that should be displayed alongside shipping address collection. + */ + shipping_address: CustomText.ShippingAddress | null; + + /** + * Custom text that should be displayed alongside the payment confirmation button. + */ + submit: CustomText.Submit | null; + } + + namespace CustomText { + interface ShippingAddress { + /** + * Text may be up to 500 characters in length. + */ + message: string; + } + + interface Submit { + /** + * Text may be up to 500 characters in length. + */ + message: string; + } + } + interface PaymentIntentData { /** * Indicates when the funds will be captured from the customer's account. @@ -587,6 +617,11 @@ declare module 'stripe' { */ currency?: string; + /** + * Display additional text for your customers using custom text. + */ + custom_text?: PaymentLinkCreateParams.CustomText; + /** * Configures whether [checkout sessions](https://stripe.com/docs/api/checkout/sessions) created by this payment link create a [Customer](https://stripe.com/docs/api/customers). */ @@ -732,6 +767,34 @@ declare module 'stripe' { type CustomerCreation = 'always' | 'if_required'; + interface CustomText { + /** + * Custom text that should be displayed alongside shipping address collection. + */ + shipping_address?: Stripe.Emptyable; + + /** + * Custom text that should be displayed alongside the payment confirmation button. + */ + submit?: Stripe.Emptyable; + } + + namespace CustomText { + interface ShippingAddress { + /** + * Text may be up to 500 characters in length. + */ + message: string; + } + + interface Submit { + /** + * Text may be up to 500 characters in length. + */ + message: string; + } + } + interface LineItem { /** * When set, provides configuration for this item's quantity to be adjusted by the customer during checkout. @@ -1158,6 +1221,11 @@ declare module 'stripe' { */ billing_address_collection?: PaymentLinkUpdateParams.BillingAddressCollection; + /** + * Display additional text for your customers using custom text. + */ + custom_text?: PaymentLinkUpdateParams.CustomText; + /** * Configures whether [checkout sessions](https://stripe.com/docs/api/checkout/sessions) created by this payment link create a [Customer](https://stripe.com/docs/api/customers). */ @@ -1249,6 +1317,34 @@ declare module 'stripe' { type CustomerCreation = 'always' | 'if_required'; + interface CustomText { + /** + * Custom text that should be displayed alongside shipping address collection. + */ + shipping_address?: Stripe.Emptyable; + + /** + * Custom text that should be displayed alongside the payment confirmation button. + */ + submit?: Stripe.Emptyable; + } + + namespace CustomText { + interface ShippingAddress { + /** + * Text may be up to 500 characters in length. + */ + message: string; + } + + interface Submit { + /** + * Text may be up to 500 characters in length. + */ + message: string; + } + } + interface LineItem { /** * When set, provides configuration for this item's quantity to be adjusted by the customer during checkout.