goshippo / shippo-node-client

Shipping API Node.js library (USPS, FedEx, UPS and more)
https://goshippo.com/docs
MIT License
136 stars 54 forks source link

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

Open SOG-web opened 2 years ago

SOG-web commented 2 years ago

@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":"shippotle@goshippo.com",

    "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 commented 2 years ago

Am working on a nest js project