diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index a75e729f5a..b87b42e0c7 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v216 \ No newline at end of file +v217 \ No newline at end of file diff --git a/test/resources/generated_examples_test.spec.js b/test/resources/generated_examples_test.spec.js index 343d609e9c..f4ae8bd77a 100644 --- a/test/resources/generated_examples_test.spec.js +++ b/test/resources/generated_examples_test.spec.js @@ -111,7 +111,7 @@ describe('Checkout.Sessions', function() { }); }); -describe('CashBalances', function() { +describe('CashBalance', function() { it('retrieveCashBalance method', async function() { const cashBalance = await stripe.customers.retrieveCashBalance('cus_123'); expect(cashBalance).not.to.be.null; diff --git a/types/Issuing/Cardholders.d.ts b/types/Issuing/Cardholders.d.ts index b4d4cd520f..6b7b5adf3c 100644 --- a/types/Issuing/Cardholders.d.ts +++ b/types/Issuing/Cardholders.d.ts @@ -92,6 +92,8 @@ declare module 'stripe' { } interface Individual { + card_issuing: Individual.CardIssuing | null; + /** * The date of birth of this cardholder. */ @@ -114,6 +116,32 @@ declare module 'stripe' { } namespace Individual { + interface CardIssuing { + /** + * Information about cardholder acceptance of [Authorized User Terms](https://stripe.com/docs/issuing/cards). + */ + user_terms_acceptance: CardIssuing.UserTermsAcceptance | null; + } + + namespace CardIssuing { + interface UserTermsAcceptance { + /** + * The Unix timestamp marking when the cardholder accepted the Authorized User Terms. + */ + date: number | null; + + /** + * The IP address from which the cardholder accepted the Authorized User Terms. + */ + ip: string | null; + + /** + * The user agent of the browser from which the cardholder accepted the Authorized User Terms. + */ + user_agent: string | null; + } + } + interface Dob { /** * The day of birth, between 1 and 31. diff --git a/types/PaymentMethods.d.ts b/types/PaymentMethods.d.ts index 580ca2de9d..fa1100afc7 100644 --- a/types/PaymentMethods.d.ts +++ b/types/PaymentMethods.d.ts @@ -278,7 +278,7 @@ declare module 'stripe' { networks: Card.Networks | null; /** - * Contains details on how this Card maybe be used for 3D Secure authentication. + * Contains details on how this Card may be used for 3D Secure authentication. */ three_d_secure_usage: Card.ThreeDSecureUsage | null; diff --git a/types/PlansResource.d.ts b/types/PlansResource.d.ts index 8d516ac22b..19b1ed4b28 100644 --- a/types/PlansResource.d.ts +++ b/types/PlansResource.d.ts @@ -132,7 +132,7 @@ declare module 'stripe' { tax_code?: string; /** - * A label that represents units of this product in Stripe and on customers' receipts and invoices. When set, this will be included in associated invoice line item descriptions. + * A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. */ unit_label?: string; } diff --git a/types/PricesResource.d.ts b/types/PricesResource.d.ts index 83dbca4875..13b7f5ada3 100644 --- a/types/PricesResource.d.ts +++ b/types/PricesResource.d.ts @@ -240,7 +240,7 @@ declare module 'stripe' { tax_code?: string; /** - * A label that represents units of this product in Stripe and on customers' receipts and invoices. When set, this will be included in associated invoice line item descriptions. + * A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. */ unit_label?: string; } diff --git a/types/Products.d.ts b/types/Products.d.ts index 8cd59db0ec..ff71a3a0c2 100644 --- a/types/Products.d.ts +++ b/types/Products.d.ts @@ -106,7 +106,7 @@ declare module 'stripe' { type: Product.Type; /** - * A label that represents units of this product in Stripe and on customers' receipts and invoices. When set, this will be included in associated invoice line item descriptions. + * A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. */ unit_label?: string | null; diff --git a/types/ProductsResource.d.ts b/types/ProductsResource.d.ts index a14195fbf0..e9ab85a8a1 100644 --- a/types/ProductsResource.d.ts +++ b/types/ProductsResource.d.ts @@ -87,7 +87,7 @@ declare module 'stripe' { type?: ProductCreateParams.Type; /** - * A label that represents units of this product in Stripe and on customers' receipts and invoices. When set, this will be included in associated invoice line item descriptions. + * A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. */ unit_label?: string; @@ -341,7 +341,7 @@ declare module 'stripe' { tax_code?: Stripe.Emptyable; /** - * A label that represents units of this product in Stripe and on customers' receipts and invoices. When set, this will be included in associated invoice line item descriptions. May only be set if `type=service`. + * A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. May only be set if `type=service`. */ unit_label?: string; diff --git a/types/index.d.ts b/types/index.d.ts index 9903ffea28..d16e510719 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -8,13 +8,17 @@ /// /// /// -/// /// +/// /// /// +/// /// /// +/// +/// /// +/// /// /// /// @@ -23,10 +27,19 @@ /// /// /// -/// /// -/// +/// +/// +/// +/// +/// /// +/// +/// +/// +/// +/// +/// /// /// /// @@ -37,54 +50,40 @@ /// /// /// +/// +/// +/// /// +/// +/// /// /// /// /// +/// /// -/// /// /// +/// /// /// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// /// /// /// /// -/// /// -/// /// +/// /// +/// /// /// /// /// /// +/// +/// +/// /// /// /// @@ -93,8 +92,9 @@ /// /// /// -/// /// +/// +/// /// /// /// @@ -216,8 +216,8 @@ declare module 'stripe' { /** * Top Level Resources */ - accounts: Stripe.AccountsResource; accountLinks: Stripe.AccountLinksResource; + accounts: Stripe.AccountsResource; applePayDomains: Stripe.ApplePayDomainsResource; applicationFees: Stripe.ApplicationFeesResource; balance: Stripe.BalanceResource; @@ -231,10 +231,10 @@ declare module 'stripe' { ephemeralKeys: Stripe.EphemeralKeysResource; events: Stripe.EventsResource; exchangeRates: Stripe.ExchangeRatesResource; - files: Stripe.FilesResource; fileLinks: Stripe.FileLinksResource; - invoices: Stripe.InvoicesResource; + files: Stripe.FilesResource; invoiceItems: Stripe.InvoiceItemsResource; + invoices: Stripe.InvoicesResource; mandates: Stripe.MandatesResource; paymentIntents: Stripe.PaymentIntentsResource; paymentLinks: Stripe.PaymentLinksResource; @@ -251,9 +251,9 @@ declare module 'stripe' { setupIntents: Stripe.SetupIntentsResource; shippingRates: Stripe.ShippingRatesResource; sources: Stripe.SourcesResource; - subscriptions: Stripe.SubscriptionsResource; subscriptionItems: Stripe.SubscriptionItemsResource; subscriptionSchedules: Stripe.SubscriptionSchedulesResource; + subscriptions: Stripe.SubscriptionsResource; taxCodes: Stripe.TaxCodesResource; taxRates: Stripe.TaxRatesResource; tokens: Stripe.TokensResource; @@ -310,9 +310,9 @@ declare module 'stripe' { readers: Stripe.Terminal.ReadersResource; }; testHelpers: { - testClocks: Stripe.TestHelpers.TestClocksResource; customers: Stripe.TestHelpers.CustomersResource; refunds: Stripe.TestHelpers.RefundsResource; + testClocks: Stripe.TestHelpers.TestClocksResource; issuing: { cards: Stripe.TestHelpers.Issuing.CardsResource; };