MarkSaleProductAsShippedCommand
extends ContainerAwareCommand
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>>
$chronopostService
private
ChronopostService
$chronopostService
$connection
private
Connection
$connection
$geodisService
private
GeodisService
$geodisService
$glsService
private
GlsServices
$glsService
$sdenService
private
SdenService
$sdenService
$shipmentService
private
ShipmentService
$shipmentService
$tamdisService
private
TamdisService
$tamdisService
$virService
private
VirService
$virService
__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
-
protected
configure() : void
execute()
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
-
$input
: InputInterface
-
-
$output
: OutputInterface
-
-
throws
-
ORMException
-
throws
-
OptimisticLockException
-
throws
-
GuzzleException
calculateTotalNumberOfPackages()
private
calculateTotalNumberOfPackages(SaleProduct $saleProduct) : int
Parameters
-
$saleProduct
: SaleProduct
-
createShipmentForCarrier()
private
createShipmentForCarrier(string $carrier, array<string|int, mixed> $saleProductIds) : void
Parameters
-
$carrier
: string
-
-
$saleProductIds
: array<string|int, mixed>
-
-
throws
-
GuzzleException
-
throws
-
ORMException
-
throws
-
OptimisticLockException
createShipments()
private
createShipments(array<string|int, mixed> $carriers) : void
Parameters
-
$carriers
: array<string|int, mixed>
-
-
throws
-
GuzzleException
-
throws
-
ORMException
-
throws
-
OptimisticLockException
fetchSaleProductData()
private
fetchSaleProductData() : array<string|int, mixed>
Return values
array<string|int, mixed>
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>>