After fiddling around the internet, it seems to me that every other place talks about placing orders when checking out, instead of making sales. The API should follow this convention to be easier to get into from other environments.
This also implies a few more needed changes too.
For this, the following tasks should be done:
[ ] Rename schema Sell to Order and fix its references
[ ] Rename schema SellDetail to OrderDetail and fix its references
[ ] Refactor path /data/sales and its children to /data/orders and so on
After fiddling around the internet, it seems to me that every other place talks about placing
orders
when checking out, instead of makingsales
. The API should follow this convention to be easier to get into from other environments.This also implies a few more needed changes too.
For this, the following tasks should be done:
Sell
toOrder
and fix its referencesSellDetail
toOrderDetail
and fix its references/data/sales
and its children to/data/orders
and so on