From 43b59e323c27ff128c9b0e2d023c3e00aaac87c8 Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Wed, 27 May 2020 19:56:29 -0700 Subject: [PATCH] Codegen for openapi 7333629 --- types/2020-03-02/Charges.d.ts | 12 ++++++++++ types/2020-03-02/Checkout/Sessions.d.ts | 29 ++++++++++++++++++++++++- types/2020-03-02/SubscriptionItems.d.ts | 2 +- 3 files changed, 41 insertions(+), 2 deletions(-) diff --git a/types/2020-03-02/Charges.d.ts b/types/2020-03-02/Charges.d.ts index 7171743763..c755c43656 100644 --- a/types/2020-03-02/Charges.d.ts +++ b/types/2020-03-02/Charges.d.ts @@ -729,6 +729,13 @@ declare module 'stripe' { */ authenticated?: boolean; + /** + * For authenticated transactions: whether issuing bank authenticated the + * cardholder with a traditional challenge screen, or with device data + * via the 3DS2 frictionless flow. + */ + authentication_flow: ThreeDSecure.AuthenticationFlow | null; + /** * Indicates the outcome of 3D Secure authentication. */ @@ -751,6 +758,8 @@ declare module 'stripe' { } namespace ThreeDSecure { + type AuthenticationFlow = 'challenge' | 'frictionless'; + type Result = | 'attempt_acknowledged' | 'authenticated' @@ -972,6 +981,7 @@ declare module 'stripe' { /** * Owner's verified full name. Values are verified or provided by EPS directly * (if supported) at the time of authorization or settlement. They cannot be set or mutated. + * EPS rarely provides this information so the attribute is usually empty. */ verified_name: string | null; } @@ -1038,6 +1048,7 @@ declare module 'stripe' { /** * Owner's verified full name. Values are verified or provided by Giropay directly * (if supported) at the time of authorization or settlement. They cannot be set or mutated. + * Giropay rarely provides this information so the attribute is usually empty. */ verified_name: string | null; } @@ -1234,6 +1245,7 @@ declare module 'stripe' { /** * Owner's verified full name. Values are verified or provided by Przelewy24 directly * (if supported) at the time of authorization or settlement. They cannot be set or mutated. + * Przelewy24 rarely provides this information so the attribute is usually empty. */ verified_name: string | null; } diff --git a/types/2020-03-02/Checkout/Sessions.d.ts b/types/2020-03-02/Checkout/Sessions.d.ts index 78c0d597fd..24224e1302 100644 --- a/types/2020-03-02/Checkout/Sessions.d.ts +++ b/types/2020-03-02/Checkout/Sessions.d.ts @@ -665,10 +665,15 @@ declare module 'stripe' { currency: string; /** - * The ID of the product that this price will belong to. + * The ID of the product that this price will belong to. One of `product` or `product_data` is required. */ product?: string; + /** + * Data used to generate a new product object inline. One of `product` or `product_data` is required. + */ + product_data?: PriceData.ProductData; + /** * The recurring components of a price such as `interval` and `usage_type`. */ @@ -686,6 +691,28 @@ declare module 'stripe' { } namespace PriceData { + interface ProductData { + /** + * The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. + */ + description?: string; + + /** + * A list of up to 8 URLs of images for this product, meant to be displayable to the customer. + */ + images?: Array; + + /** + * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + */ + metadata?: MetadataParam; + + /** + * The product's name, meant to be displayable to the customer. Whenever this product is sold via a subscription, name will show up on associated invoice line item descriptions. + */ + name: string; + } + interface Recurring { /** * Specifies billing frequency. Either `day`, `week`, `month` or `year`. diff --git a/types/2020-03-02/SubscriptionItems.d.ts b/types/2020-03-02/SubscriptionItems.d.ts index fa54dc10cd..d865f0961d 100644 --- a/types/2020-03-02/SubscriptionItems.d.ts +++ b/types/2020-03-02/SubscriptionItems.d.ts @@ -429,7 +429,7 @@ declare module 'stripe' { ): Promise; /** - * Retrieves the invoice item with the given ID. + * Retrieves the subscription item with the given ID. */ retrieve( id: string,