ShipmentService
Service for work with reserves of shipments.
Table of Contents
Methods
- __construct() : mixed
- getDeductedProductRowsQuantity() : array<string|int, mixed>
- The quantity of product rows deducted.
- getInstance() : self
- Service instance.
- reserveCanceledShipment() : Result
- Reserve shipped quantity.
Methods
__construct()
public
__construct(BasketService $basketService, ProductService $shipmentProductService) : mixed
Parameters
- $basketService : BasketService
- $shipmentProductService : ProductService
getDeductedProductRowsQuantity()
The quantity of product rows deducted.
public
getDeductedProductRowsQuantity(array<string|int, mixed> $rowsIds) : array<string|int, mixed>
Parameters
- $rowsIds : array<string|int, mixed>
Return values
array<string|int, mixed> —in format [rowId => deductedQuantity]
getInstance()
Service instance.
public
static getInstance() : self
Return values
selfreserveCanceledShipment()
Reserve shipped quantity.
public
reserveCanceledShipment(Shipment $shipment) : Result
Parameters
- $shipment : Shipment