Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

@types/shippo is not thesame with the docs and postman collection #80

Open
SOG-web opened this issue Apr 30, 2022 · 1 comment
Open

Comments

@SOG-web
Copy link

SOG-web commented Apr 30, 2022

@types/shippo in not the same with docs.

Example
Docs and API response:

shippo.address.create({

 "name":"Shawn Ippotle", 

 "company":"Shippo",

 "street1":"215 Clayton St.",

 "city":"San Francisco",

 "state":"CA",

 "zip":"94117",

 "country":"US",

 "email":"[email protected]",

 "validate": true

}, function(err, address) {

 // asynchronously called

});

@types/shippo:

this.shippo.address
      .create({
        name: 'Shawn Ippotle',
        street1: '215 Clayton St.',
        city: 'San Francisco',
        state: 'CA',
        zip: '94117',
        country: 'US',
        validate: true,
      })
      .then(async (res) => {
          .........

when I try to include other values, it brings value does not exist on type create e.g email and company does exist on the type

@SOG-web
Copy link
Author

SOG-web commented Apr 30, 2022

Am working on a nest js project

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

No branches or pull requests

1 participant