ShipTamdisOrdersBasedOnTruckDepartCommand
extends ContainerAwareCommand
Table of Contents
Properties
-
$tamdisService
: TamdisService|null
Methods
-
__construct()
: mixed
-
configure()
: void
-
execute()
: int
-
fetchNecessaryDataFromDepartedTamdisTrucks()
: mixed
-
findOrdersByIds()
: array<string|int, mixed>
-
findSaleProduct()
: object|null
-
logTamdisShipement()
: void
-
sendDepartureTruckEmailAndUpdateState()
: void
__construct()
public
__construct([mixed $name = null ][, TamdisService $tamdisService = null ]) : mixed
Parameters
-
$name
: mixed
= null
-
-
$tamdisService
: TamdisService
= null
-
protected
configure() : void
execute()
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
-
$input
: InputInterface
-
-
$output
: OutputInterface
-
-
throws
-
GuzzleException
fetchNecessaryDataFromDepartedTamdisTrucks()
private
fetchNecessaryDataFromDepartedTamdisTrucks() : mixed
findOrdersByIds()
private
findOrdersByIds(mixed $orderIds) : array<string|int, mixed>
Parameters
-
$orderIds
: mixed
-
Return values
array<string|int, mixed>
findSaleProduct()
private
findSaleProduct(mixed $sale_product_id) : object|null
Parameters
-
$sale_product_id
: mixed
-
Return values
object|null
logTamdisShipement()
private
logTamdisShipement(mixed $saleProduct, mixed $parcel_id) : void
Parameters
-
$saleProduct
: mixed
-
-
$parcel_id
: mixed
-
sendDepartureTruckEmailAndUpdateState()
private
sendDepartureTruckEmailAndUpdateState(mixed $truckIds) : void
Parameters
-
$truckIds
: mixed
-