Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stripe.issuing.fundingInstructions API missing #1499

Open
steve1337 opened this issue Aug 3, 2022 · 4 comments
Open

stripe.issuing.fundingInstructions API missing #1499

steve1337 opened this issue Aug 3, 2022 · 4 comments
Labels

Comments

@steve1337
Copy link

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 steve1337 added the bug label Aug 3, 2022
@steve1337
Copy link
Author

image

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

@dcr-stripe
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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

@dcr-stripe dcr-stripe reopened this Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants