Giter VIP home page Giter VIP logo

medusa-fulfillment-shippo's People

Contributors

macder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

medusa-fulfillment-shippo's Issues

Bug - wrong error message when cart address validation fails

if cart is missing shipping address, a query to /store/shippo/live-rates/:cart_id responds with:

{
    "type": "invalid_data",
    "message": "\"value\" must be of type object",
    "date": "2022-06-18T02:48:32.648Z"
}

The error message is confusing as it doesnt provide any context

API - restructure endpoint url's to follow medusa conventions

/store/carts/:ID/shippo/rates GET shippo live-rates
/store/shipping-options/:cart_id/shippo/rates/ POST calculated shipping-option(s)
/admin/fulfillments/:fulfillment_id/shippo/order GET shippo order
/admin/fulfillments/:fulfillment_id/shippo/packingslip GET shippo packing slip

api/routes
├── admin
│   ├── fulfillment-order.js
│   ├── fulfillment-packingslip.js
│   └── index.js
└── store
    ├── carts-rates.js
    ├── index.js
    └── shipping-options-rates.js

Feat - Integrate more parcel data to Rates at Checkout to improve accuracy

Currently /store/shippo/live-rates only uses the default parcel template when retrieving shipping cost estimates.

This can be improved by adding more parcel templates and then do some dimensional weight calculations to pick a parcel

Considering that calculating parcel dimensions for mutiple items of various sizes is a computational NP-Hard problem, this doesnt need to be highly sophisticated. The idea is to improve the estimates as much as possible using some simple algorithm

Bug - Cancelling a fulfillment throws error

The cancelFulfillment method is missing

At minimum declare the method.

Logic can be implemented later, for now just declaring it will pass it to the core fulfillmentServiceProvider

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.