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

Typescript support #39

Open
andrewwongyedpay opened this issue Apr 7, 2020 · 12 comments
Open

Typescript support #39

andrewwongyedpay opened this issue Apr 7, 2020 · 12 comments

Comments

@andrewwongyedpay
Copy link

andrewwongyedpay commented Apr 7, 2020

Does it support typescript?

There are number of backend frameworks using typescript.
It would be great if it can support typescript.

@reinoute
Copy link

2nd this

@jerryeechan
Copy link

3rd

@Robula
Copy link

Robula commented Feb 24, 2021

They could easily do this. All their SDKs appear to be generated by https://github.com/swagger-api/swagger-codegen

@SelvinM
Copy link

SelvinM commented Feb 25, 2021

Yes, we need this!

@sgronblo
Copy link

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.

@elhe26
Copy link

elhe26 commented Dec 28, 2022

Any updates? It has been +2 years since this request was made.

It seems @sgronblo hit the nail on the head.

@JoseAGarache
Copy link

Yes, we need any typescript support.

@titandino
Copy link

I would greatly appreciate typescript support.

@max-nicholson
Copy link

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

@roacfe
Copy link

roacfe commented Feb 9, 2024

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

I am interested in this, if you have a gist to share I would greatly appreciate it!

@dudeofawesome
Copy link

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.

@8enSmith
Copy link

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.

Awesome work @dudeofawesome!

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

No branches or pull requests