Repository navigation
9.0.0
·
765 commits
to master
since this release
Included commits: 8.0.1...9.0.0
Improvements
- Changed the database column type for:
spy_availability_abstract.quantityandspy_availability.quantityfromINTEGERtoDECIMAL(20, 10). - Changed the facade method signature for:
isProductSellableForStore(),saveProductAvailabilityForStore()andcalculateStockForProductWithStore()(Renamed tocalculateAvailabilityForProductWithStore()) to a Decimal object argument and return type intead of integer. - Impacted
ProductsAvailableCheckoutPreConditionPluginwith facade changes. - Introduced the new facade methods
findOrCreateProductAbstractAvailabilityBySkuForStore()andfindOrCreateProductConcreteAvailabilityBySkuForStore(). - Introduced
AvailabilityFacade::getStoresWhereProductAvailabilityIsDefined()facade method to retrieve all stores where availability of product with given sku is defined. - Undeprecated
AvailabilityFacade::updateAvailability()facade method. - Adjusted
AvailabilityFacade::updateAvailability()facade method to useStockFacade::getStoresWhereProductStockIsDefined()to retrieve a collection ofStoreTransfersfor which availability of product should be updated. If noStoreTransferwas found, sets availability to 0 for all stores where product's availability was defined. - Impacted
AvailabilityHandlerPluginplugin with facade changes. - Removed the following
AvailabilityFacadefacade methods:isProductSellable(),calculateStockForProduct(),saveProductAvailability(). - Added
AvailabilityToOmsFacadeInterface::getOmsReservedProductQuantityForSkus()to dependencies. - Added
AvailabilityToStockFacadeInterfacemethodsisProductAbstractNeverOutOfStockForStore(),calculateProductAbstractStockForStore,getStoresWhereProductStockIsDefinedto dependencies. - Added
AvailabilityToProductFacadeInterfacemethodshasProductAbstract(),hasProductConcrete()to dependencies. - Removed
AvailabilityToStockFacadeInterfacemethodsisNeverOutOfStock(),createStockProduct(),updateStockProduct(),getAvailableStockTypes(),getStockProductsByIdProduct(),getWarehouseToStoreMapping()from dependencies. - Removed
AvailabilityToProductFacadeInterface::getAbstractSkuFromProductConcrete()from dependencies. - Removed
AvailabilityToStoreFacadeInterface::getAllStores()from dependencies. - Added
spryker/decimal-objectandspryker/transferto dependencies. - Increased
spryker/stockandspryker/omsversion dependency.
Deprecations
- Deprecated the following
AvailabilityFacadefacade methods:getProductAbstractAvailability(),findProductAbstractAvailability(),findProductConcreteAvailability(). - Deprecated the following
AvailabilityClientclient methods:getProductAvailabilityByIdProductAbstract(),findProductConcreteAvailability(). - Deprecated
GatewayController::findProductConcreteAvailabilityAction().