stripe-node icon indicating copy to clipboard operation
stripe-node copied to clipboard

stripe.issuing.fundingInstructions API missing

Open steve1337 opened this issue 2 years ago • 4 comments

Describe the bug

As per API docs issuing should allow to manage FundingInstructions

https://stripe.com/docs/api/issuing/funding_instructions/object?lang=node

However neither v9.16.0 nor v10.0.0 have that API interface exposed

image

VSCode error: Property 'fundingInstructions' does not exist on type '{ authorizations: AuthorizationsResource; cards: CardsResource; cardholders: CardholdersResource; disputes: DisputesResource; transactions: TransactionsResource; }'.ts(2339)

To Reproduce

  1. npm install stripe --save
  2. import Stripe from "stripe"
  3. const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, { apiVersion: "2020-08-27" })
  4. Try to access stripe.issuing.fundingInstructions

Expected behavior

The API functions are available as described in the docs

Code snippets

import Stripe from "stripe"

const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, { apiVersion: "2020-08-27" })

class StripeService {
    async test(){
        // ERROR: Property 'fundingInstructions' does not exist on type '{ authorizations: AuthorizationsResource; cards: CardsResource; cardholders: CardholdersResource; disputes: DisputesResource; transactions: TransactionsResource; }'.ts(2339)
        const fundingInstructions = await stripe.issuing.fundingInstructions.list({
            limit: 3,
          });  
    }
}

export const stripeService = new StripeService()

OS

windows, macos

Node version

12.22.6

Library version

10.0.0

API version

2020-08-27

Additional context

No response

steve1337 avatar Aug 03 '22 07:08 steve1337

image

index.d.ts confirms that the API methods are not exposed

steve1337 avatar Aug 03 '22 07:08 steve1337

Hi @steve1337 , thank you for the report!

You're right that these endpoints are indeed not in the SDKs today. I'll follow up with the team and get back to you.

Sorry for the trouble!

dcr-stripe avatar Aug 03 '22 13:08 dcr-stripe

Following up here - these snippets were accidentally included in the docs, but these APIs are not yet supported in the SDKs.

I've removed the non-cURL snippets from https://stripe.com/docs/api/issuing/funding_instructions/object to clear up any confusion.

Sorry about the trouble here.

dcr-stripe avatar Aug 03 '22 18:08 dcr-stripe

I'm actually going to re-open this issue, since we do eventually want to ship this API to the SDKs.

dcr-stripe avatar Aug 03 '22 19:08 dcr-stripe