Service - Stock Location Standard
Revision as of 14:39, 30 April 2023 by Sven the Barbarian (talk | contribs)
Overview
Handler service for basic stock locations that hold a quantity remaining per stock location and can reserve stock when building orders. One Stock Location can service many SellOffers, so each Stock Location keeps per SellOfferId list of quantities remaining.
Repository
https://bitbucket.org/izara-market-products/izara-market-products-stock-location-standard
DynamoDB tables
Standard Config Table Per Service
Configuration tags
{
configTag: "StockLocationHandlerServiceNameTag"
configKey: "StockLocationHandlerServiceNameTag"
configValue: xxx // this own services ServiceNameTag, eg "StockLocationStandard"
}
{
configTag: "ProductGraphServiceName"
configKey: "ProductGraphServiceName"
configValue: xxx // eg: "ProductGraph"
}
{
configTag: "StockLocationManagerServiceName"
configKey: "StockLocationManagerServiceName"
configValue: xxx // eg: "StockLocationManager"
}
SellOfferStock
Remaining stock for one SellOffer.
{
sellofferId
stockTotal
stockReserved
stockAvailable
}
- partition key: sellofferId
- sort key: (none)
Notes
- When finding or reserving stock for a SellOffer, query graph to find the StockLocation for the sellOffer (or have it saved in the SellOffer object), then query dynamoDB for stock levels
- A SellOffer's link to StockLocation is immutable, cannot be changed