Open andrewwongyedpay opened 4 years ago
2nd this
3rd
They could easily do this. All their SDKs appear to be generated by https://github.com/swagger-api/swagger-codegen
Yes, we need this!
The stewardship of this repository leaves a lot to be desired. There is obviously new versions being released but there seems to be zero interaction with users on pull requests. It's not very confidence inducing for your clients trying to build their business using Cybersource's services.
Any updates? It has been +2 years since this request was made.
It seems @sgronblo hit the nail on the head.
Yes, we need any typescript support.
I would greatly appreciate typescript support.
Echo the above that ideally Typescript support is built-in.
As a workaround I ended up cloning this repository, creating a separate swagger-codegen
template mashing together the Cybersource template and the "typescript-fetch" template in the swagger-codegen
core library, and using the output to create a .d.ts
file.
If anyone else is interested I could put this up in a gist? NB: Looks to work OK with our usecase, but we only use a subset of the API so I can't guarantee it works across the board. So you may prefer no types over potentially incorrect ones
Echo the above that ideally Typescript support is built-in.
As a workaround I ended up cloning this repository, creating a separate
swagger-codegen
template mashing together the Cybersource template and the "typescript-fetch" template in theswagger-codegen
core library, and using the output to create a.d.ts
file.If anyone else is interested I could put this up in a gist? NB: Looks to work OK with our usecase, but we only use a subset of the API so I can't guarantee it works across the board. So you may prefer no types over potentially incorrect ones
I am interested in this, if you have a gist to share I would greatly appreciate it!
I've created a version of the SDK with swagger-codegen
's Typescript with Axios template here: https://github.com/Paciolan/cybersource-sdk. It uses the authentication code from this repository as swagger-codegen
doesn't handle that.
I've created a version of the SDK with
swagger-codegen
's Typescript with Axios template here: https://github.com/Paciolan/cybersource-sdk. It uses the authentication code from this repository asswagger-codegen
doesn't handle that.
Awesome work @dudeofawesome!
Does it support typescript?
There are number of backend frameworks using typescript. It would be great if it can support typescript.