stripe / stripe-node

Node.js library for the Stripe API.
https://stripe.com
MIT License
3.89k stars 753 forks source link

Missing endpoint `stripe.checkout.sessions.update` #2221

Closed 01101sam closed 2 weeks ago

01101sam commented 2 weeks ago

Describe the bug

In Stripe Docs I can see the example code provided the method stripe.checkout.sessions.update, but that isn't the case in the source code.

https://github.com/stripe/stripe-node/blob/bc230c4cc2c89a9e100b099e7f4f3cb1b7fc4988/types/FinancialConnections/SessionsResource.d.ts#L99-L120

As you can see, the method should have

update(
  id: string,
  options?: RequestOptions
): Promise<Stripe.Response<Stripe.Checkout.Session>>;

But this is not the case.

To Reproduce

  1. Import stripe library
  2. Use stripe.checkout.sessions.update

Lint shows Unresolved function or method update()

Expected behavior

The method is available to use, and lint is happy.

Code snippets

(Included in `Describe the bug`)

OS

macOS

Node version

Note v20

Library version

stripe ^11.9.1

API version

2023-08-16

Additional context

No response

seanzhang-stripe commented 2 weeks ago

Hi @01101sam The API reference that you linked is about Checkout Session, but the source code that you referenced is Financial Connection Session. They are two different kinds of resources.

Here's the source code for Checkout Session update.

01101sam commented 2 weeks ago

Hi @01101sam The API reference that you linked is about Checkout Session, but the source code that you referenced is Financial Connection Session. They are two different kinds of resources.

Here's the source code for Checkout Session update.

Thank you so much! I've overlooked the file path above; I think my lint is having a problem referencing the source code.