Logidav Docs

MarkSaleProductAsShippedCommand extends ContainerAwareCommand
in package

Table of Contents

Properties

$chronopostService  : ChronopostService
$connection  : Connection
$geodisService  : GeodisService
$glsService  : GlsServices
$sdenService  : SdenService
$shipmentService  : ShipmentService
$tamdisService  : TamdisService
$virService  : VirService

Methods

__construct()  : mixed
configure()  : void
execute()  : int
calculateTotalNumberOfPackages()  : int
createShipmentForCarrier()  : void
createShipments()  : void
fetchSaleProductData()  : array<string|int, mixed>
getSaleProductMap()  : array<string|int, mixed>
groupSaleProductsByCarrier()  : array<string|int, mixed>|array<string|int, array<string|int, mixed>>

Properties

Methods

__construct()

public __construct(Connection $connection, ShipmentService $shipmentService, GeodisService $geodisService, VirService $virService, SdenService $sdenService, GlsService $glsService, ChronopostService $chronopostService, TamdisService $tamdisService) : mixed
Parameters
$connection : Connection
$shipmentService : ShipmentService
$geodisService : GeodisService
$virService : VirService
$sdenService : SdenService
$glsService : GlsService
$chronopostService : ChronopostService
$tamdisService : TamdisService

execute()

protected execute(InputInterface $input, OutputInterface $output) : int
Parameters
$input : InputInterface
$output : OutputInterface
Tags
throws
ORMException
throws
OptimisticLockException
throws
GuzzleException
Return values
int

createShipmentForCarrier()

private createShipmentForCarrier(string $carrier, array<string|int, mixed> $saleProductIds) : void
Parameters
$carrier : string
$saleProductIds : array<string|int, mixed>
Tags
throws
GuzzleException
throws
ORMException
throws
OptimisticLockException

createShipments()

private createShipments(array<string|int, mixed> $carriers) : void
Parameters
$carriers : array<string|int, mixed>
Tags
throws
GuzzleException
throws
ORMException
throws
OptimisticLockException

getSaleProductMap()

private getSaleProductMap(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed>
Return values
array<string|int, mixed>

groupSaleProductsByCarrier()

private groupSaleProductsByCarrier(array<string|int, mixed> $data, array<string|int, mixed> $saleProductMap) : array<string|int, mixed>|array<string|int, array<string|int, mixed>>
Parameters
$data : array<string|int, mixed>
$saleProductMap : array<string|int, mixed>
Return values
array<string|int, mixed>|array<string|int, array<string|int, mixed>>

        
On this page

Search results