From 671f36915f3b7dc6058c39228c1f9cf0909a7444 Mon Sep 17 00:00:00 2001 From: Richard Marmorstein Date: Fri, 5 Feb 2021 15:32:27 -0500 Subject: [PATCH] Codegen for openapi 79b5ae3 --- lib/resources/EphemeralKeys.js | 2 +- types/2020-08-27/LineItems.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/resources/EphemeralKeys.js b/lib/resources/EphemeralKeys.js index 6db8357f0d..cfe1408333 100644 --- a/lib/resources/EphemeralKeys.js +++ b/lib/resources/EphemeralKeys.js @@ -16,7 +16,7 @@ module.exports = StripeResource.extend({ validator: (data, options) => { if (!options.headers || !options.headers['Stripe-Version']) { throw new Error( - 'stripe_version must be specified to create an ephemeral key' + 'Passing apiVersion in a separate options hash is required to create an ephemeral key. See https://stripe.com/docs/api/versioning?lang=node' ); } }, diff --git a/types/2020-08-27/LineItems.d.ts b/types/2020-08-27/LineItems.d.ts index 0462364358..a5ddfe5251 100644 --- a/types/2020-08-27/LineItems.d.ts +++ b/types/2020-08-27/LineItems.d.ts @@ -19,12 +19,12 @@ declare module 'stripe' { /** * Total before any discounts or taxes are applied. */ - amount_subtotal: number | null; + amount_subtotal: number; /** * Total after discounts and taxes. */ - amount_total: number | null; + amount_total: number; /** * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).