Logidav Docs

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

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
throws
GuzzleException
throws
ORMException
throws
OptimisticLockException
Return values
true

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
throws
GuzzleException

updateSaleProductStatus()

private updateSaleProductStatus(SaleProduct $sp, DateTime $now) : void
Parameters
$sp : SaleProduct
$now : DateTime
Tags
throws
ORMException
throws
OptimisticLockException

        
On this page

Search results