From ca630d5f8edf49a741972fd6fd1ef94245d2d2f6 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 8 Jan 2025 17:35:02 +0000 Subject: [PATCH] Update generated code for v1436 --- OPENAPI_VERSION | 2 +- types/PaymentLinksResource.d.ts | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index fbfcb52824..115863e959 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1435 \ No newline at end of file +v1436 \ No newline at end of file diff --git a/types/PaymentLinksResource.d.ts b/types/PaymentLinksResource.d.ts index 0c77e2e7d9..1850fa4800 100644 --- a/types/PaymentLinksResource.d.ts +++ b/types/PaymentLinksResource.d.ts @@ -1124,6 +1124,13 @@ declare module 'stripe' { Array >; + /** + * Controls phone number collection settings during checkout. + * + * We recommend that you review your privacy policy and check with your legal contacts. + */ + phone_number_collection?: PaymentLinkUpdateParams.PhoneNumberCollection; + /** * Settings that restrict the usage of a payment link. */ @@ -1579,6 +1586,13 @@ declare module 'stripe' { | 'wechat_pay' | 'zip'; + interface PhoneNumberCollection { + /** + * Set to `true` to enable phone number collection. + */ + enabled: boolean; + } + interface Restrictions { /** * Configuration for the `completed_sessions` restriction type.