-
Notifications
You must be signed in to change notification settings - Fork 0
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 Payments: Develop a ts/js client sdk #20
Comments
@matdehaast @wilsonianb Following, where should those client(s) live? There are a few options:
Having this client as a workspace package (as a sibling to the Currently, if my understanding is correct, the Rafiki to Rafiki open payments API call is the one to query /incoming-payments (or /connection) during a) quote creation, b) outgoing payment creation and c) outgoing payment lifecycle handling. This is the |
That POC looks good.
Yes, I think starting out with:
and exposing the related generated typescript types, in order to replace existing functionality in the aforementioned Bonus points for including the related openapi validation, which seems a little complicated to me, because ideally you want to use the same version of the OpenAPI spec for both validation and type generation (as well as in the |
@wilsonianb thanks for the quick feedback! I'll start off with those, and see how to best swap out the existing ClientService. I did consider adding in the validation as well (left a small comment about it on the PR, that we can leverage the |
I've been looking at Stripe's nodejs library and discovered that they have (had?) a closed source OpenAPI generator tool Would it make sense to similarly make this an |
@wilsonianb what do you mean exactly by
As an aside, it's also a shame stripe kept the tool internal |
That whether or not this includes "client" in the name, it can be used by Open Payments resource or auth servers for the generated types and potentially also request validation (plus whatever else we might realize that a server needs that a client doesn't). |
@wilsonianb makes sense - Ill have it as |
Outstanding tasks: |
Summary
TODO: Flesh out
Intended Outcomes
How will it work?
Links
The text was updated successfully, but these errors were encountered: