stripe / stripe-node

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

Property 'retrieve' does not exist on type 'CalculationsResource' #2153

Closed gwax closed 1 month ago

gwax commented 1 month ago

Describe the bug

Typescript type information is missing for the stripe.tax.calculations.retrieve api method described here: https://docs.stripe.com/api/tax/calculations/retrieve

To Reproduce

In IDE, create the following line:

const taxCalculation = await stripe.tax.calculations.retrieve(taxCalculationId);

Expected behavior

taxCalculation has type Stripe.Tax.Calculation | null

Code snippets

const taxCalculation = await stripe.tax.calculations.retrieve(taxCalculationId);

OS

macOS

Node version

Node v20.12.0

Library version

stripe v16.6.0

API version

2024-06-20

Additional context

No response

remi-stripe commented 1 month ago

@gwax This API method just shipped a couple days ago publicly and hasn't yet made it into our SDKs. It should be there in the next version we'll release at the end of the week!

xavdid-stripe commented 1 month ago

I forgot to circle back, but this was released the other week in 16.7.0 (changelog).

Sorry for the hassle!