Code Monkey home page Code Monkey logo

circle-nodejs-sdk's People

Contributors

ashutosh-ukey avatar charles-squeri-circle avatar circle-github-action-bot avatar deepakgummi avatar dependabot[bot] avatar github-actions[bot] avatar jscaltreto avatar round-corgi avatar tjbaker avatar zepeng811 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

circle-nodejs-sdk's Issues

`GetPaymentResponseData` is defined as `never`

I was talking with a developer in the Build on Circle community, and we found a bug in the API type definitions.

GetPaymentResponseData is defined as never because of conflicting type attributes in a type intersection. Since these types are autogenerated by OpenAPI, it looks like it's probably an error in definitions.

CryptoPayment is defined as:

export interface CryptoPayment {
// …
    type: CryptoPaymentTypeEnum; // "payment" | "refund"
// …

And GetPaymentReponseData is defined as an intersection with a specific type that conflicts with that union:

export type GetPaymentResponseData =
  | ({ type: "Crypto Payment" } & CryptoPayment)
  | ({ type: "Fiat Payment" } & FiatPaymentPolymorphic);

This resolves to never because "Crypto Payment" & ("payment" | "refund") cannot be reconciled, which (downstream) results in GetPaymentResponse resolving to { data: undefined } in all cases.

SDK Documentation

Hello - can you please advice where I can find SDK doc? Is it available online or need to use the yarn gen-sdk <sdk-version> ? If the later, we were able to execute it but not sure how to access/view the generated doc - please kindly advice.

Thank you for creating this node library, super helpful to access to the Circle APIs.

Regards,
Right

Merchant API

Will merchants functionality be included in the SDK?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.