Skip to content

implement EphemeralKey.create_async #1502

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

Open
Numerlor opened this issue Apr 22, 2025 · 2 comments
Open

implement EphemeralKey.create_async #1502

Numerlor opened this issue Apr 22, 2025 · 2 comments

Comments

@Numerlor
Copy link

Is your feature request related to a problem? Please describe.

EphemeralKey only provides delete async methods, and no create

Describe the solution you'd like

A create async method consistent with other objects

Describe alternatives you've considered

No response

Additional context

No response

@Numerlor
Copy link
Author

the sync create is also missing the return type hint

@helenye-stripe
Copy link
Contributor

Hi! Thanks for bringing this up. We'll look into why this isn't being generated. In the meantime, we do have an async create for StripeClient, which could satisfy your needs:

from stripe import StripeClient

client = StripeClient("sk_test_...")

client.ephemeral_keys.create_async({ <YOUR_CREATE_PARAMS> })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants