Skip to content

9.0.0

Choose a tag to compare

@spryker-release-bot spryker-release-bot released this 26 Nov 11:53
· 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.quantity and spy_availability.quantity from INTEGER to DECIMAL(20, 10).
  • Changed the facade method signature for: isProductSellableForStore(), saveProductAvailabilityForStore() and calculateStockForProductWithStore() (Renamed to calculateAvailabilityForProductWithStore()) to a Decimal object argument and return type intead of integer.
  • Impacted ProductsAvailableCheckoutPreConditionPlugin with facade changes.
  • Introduced the new facade methods findOrCreateProductAbstractAvailabilityBySkuForStore() and findOrCreateProductConcreteAvailabilityBySkuForStore().
  • 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 use StockFacade::getStoresWhereProductStockIsDefined() to retrieve a collection of StoreTransfers for which availability of product should be updated. If no StoreTransfer was found, sets availability to 0 for all stores where product's availability was defined.
  • Impacted AvailabilityHandlerPlugin plugin with facade changes.
  • Removed the following AvailabilityFacade facade methods: isProductSellable(), calculateStockForProduct(), saveProductAvailability().
  • Added AvailabilityToOmsFacadeInterface::getOmsReservedProductQuantityForSkus() to dependencies.
  • Added AvailabilityToStockFacadeInterface methods isProductAbstractNeverOutOfStockForStore(), calculateProductAbstractStockForStore, getStoresWhereProductStockIsDefined to dependencies.
  • Added AvailabilityToProductFacadeInterface methods hasProductAbstract(), hasProductConcrete() to dependencies.
  • Removed AvailabilityToStockFacadeInterface methods isNeverOutOfStock(), createStockProduct(), updateStockProduct(), getAvailableStockTypes(), getStockProductsByIdProduct(), getWarehouseToStoreMapping() from dependencies.
  • Removed AvailabilityToProductFacadeInterface::getAbstractSkuFromProductConcrete() from dependencies.
  • Removed AvailabilityToStoreFacadeInterface::getAllStores() from dependencies.
  • Added spryker/decimal-object and spryker/transfer to dependencies.
  • Increased spryker/stock and spryker/oms version dependency.

Deprecations

  • Deprecated the following AvailabilityFacade facade methods: getProductAbstractAvailability(), findProductAbstractAvailability(), findProductConcreteAvailability().
  • Deprecated the following AvailabilityClient client methods: getProductAvailabilityByIdProductAbstract(), findProductConcreteAvailability().
  • Deprecated GatewayController::findProductConcreteAvailabilityAction().