ChronopostService
in package
Table of Contents
Properties
- $eventDispatcher : EventDispatcherInterface
- $logService : LogServiceInterface
- $saleLogService : SaleLogService
- $saleProductService : SaleProductService
- $saleProductShipmentService : SaleProductShipmentService
- $saleProductShipmentTrackingService : SaleProductShipmentTrackingService
- $saleService : SaleService
- $userService : UserService
Methods
- __construct() : mixed
- Chronopost Service constructor.
- createSaleProductShipment() : true
- createSaleProductShipmentRecord() : SaleProductShipment
- createSaleProductShipmentTrackingRecord() : void
- dispatchSaleProductsAfterTicketPrintedEvent() : void
- dispatchSaleProductsShippedEvent() : void
- finalizeSale() : void
- logShipment() : void
- processShipment() : void
- updateSaleProductStatus() : void
Properties
$eventDispatcher
private
EventDispatcherInterface
$eventDispatcher
$logService
private
LogServiceInterface
$logService
$saleLogService
private
SaleLogService
$saleLogService
$saleProductService
private
SaleProductService
$saleProductService
$saleProductShipmentService
private
SaleProductShipmentService
$saleProductShipmentService
$saleProductShipmentTrackingService
private
SaleProductShipmentTrackingService
$saleProductShipmentTrackingService
$saleService
private
SaleService
$saleService
$userService
private
UserService
$userService
Methods
__construct()
Chronopost Service constructor.
public
__construct(ContainerInterface $container, LogServiceInterface $logService, EventDispatcherInterface $eventDispatcher) : mixed
Parameters
- $container : ContainerInterface
- $logService : LogServiceInterface
- $eventDispatcher : EventDispatcherInterface
createSaleProductShipment()
public
createSaleProductShipment(array<string|int, int> $saleProductIds[, int|string|null $userId = null ][, bool $logChanges = false ][, bool $notify = true ]) : true
Parameters
- $saleProductIds : array<string|int, int>
- $userId : int|string|null = null
- $logChanges : bool = false
- $notify : bool = true
Tags
Return values
truecreateSaleProductShipmentRecord()
private
createSaleProductShipmentRecord(SaleProduct $sp, mixed $user, DateTime $now) : SaleProductShipment
Parameters
- $sp : SaleProduct
- $user : mixed
- $now : DateTime
Tags
Return values
SaleProductShipmentcreateSaleProductShipmentTrackingRecord()
private
createSaleProductShipmentTrackingRecord(SaleProduct $sp, DateTime $now, SaleProductShipment $saleProductShipment) : void
Parameters
- $sp : SaleProduct
- $now : DateTime
- $saleProductShipment : SaleProductShipment
dispatchSaleProductsAfterTicketPrintedEvent()
private
dispatchSaleProductsAfterTicketPrintedEvent(SaleProductShipment $saleProductShipment) : void
Parameters
- $saleProductShipment : SaleProductShipment
dispatchSaleProductsShippedEvent()
private
dispatchSaleProductsShippedEvent(array<string|int, mixed> $saleProductIds) : void
Parameters
- $saleProductIds : array<string|int, mixed>
finalizeSale()
private
finalizeSale(Sale $sale, DateTime $now, bool $logChanges, mixed $user) : void
Parameters
- $sale : Sale
- $now : DateTime
- $logChanges : bool
- $user : mixed
Tags
logShipment()
private
logShipment(Sale $sale, bool $shipmentId, SaleProduct $sp, mixed $user) : void
Parameters
- $sale : Sale
- $shipmentId : bool
- $sp : SaleProduct
- $user : mixed
Tags
processShipment()
private
processShipment(SaleProduct $sp, Sale $sale, mixed $user, bool $notify) : void
Parameters
- $sp : SaleProduct
- $sale : Sale
- $user : mixed
- $notify : bool
Tags
updateSaleProductStatus()
private
updateSaleProductStatus(SaleProduct $sp, DateTime $now) : void
Parameters
- $sp : SaleProduct
- $now : DateTime