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

Search customer API #260

Closed
phungleson opened this issue Aug 12, 2022 · 2 comments
Closed

Search customer API #260

phungleson opened this issue Aug 12, 2022 · 2 comments

Comments

@phungleson
Copy link

Hey peeps,

I am looking at stripe API, and it looks like they have a way to search for customers.

https://stripe.com/docs/api/customers/search

I couldn't find anything similar to that API in async-stripe I wonder if async-stripe has a way add that API into the library?

Cheers,

@arlyon
Copy link
Owner

arlyon commented Aug 15, 2022

Currently no, we only support list, which only allows filtering on a single email address. My suggestion is to add a customer_ext.rs with custom code to allow for this. I will note, we have an outstanding issue (#246) which means pagination with borrowed params doesn't compile, as it is dependent on GATs since the type system isn't powerful enough to ensure that the lifetime of some borrowed param for a future outlives it. This can be solved simply by using the owned version (ie String). Let me know if you need pointers! :)

@arlyon
Copy link
Owner

arlyon commented Nov 17, 2022

I am closing in favour of the tracking issue.

@arlyon arlyon closed this as completed Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants