TamdisService
in package
Table of Contents
Properties
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
- $logService : LogServiceInterface
- $productService : ProductService
- $saleProductService : SaleProductService|object
- $ediHistoryService : EdiHistoryService
- $eventDispatcher : EventDispatcherInterface
- $saleService : SaleService|object
- $shipmentService : ShipmentService
- $tamdisApi : TamdisApi
- $trackingCodeContentService : TrackingCodeContentService
- $trackingCodeService : TrackingCodeService
Methods
- __construct() : mixed
- QueueService constructor.
- addOrderRowsToCsv() : mixed
- Add order rows to the csv file
- apiLog() : mixed
- connectToFtp() : mixed
- createPreExpeditionForSale() : array<string|int, string>
- createSaleProductShipment() : true
- generatBodyForEtiquetTamdis() : array<string|int, mixed>
- generateEdiCsvFile() : string
- Generate a csv file for the EDI of Tamdis base
- generateParcelCsvRow() : array<string|int, mixed>
- Generate the csv rows for the parcels (colis)
- generateTicketPdf() : string
- getAddresse() : array<string|int, mixed>|false|string|array<string|int, string>
- sendEndOfJourneyEmail() : void
- sendExpedition() : mixed
- sendExpeditionToTamdis() : mixed
- calculateVolume() : float|int
- extractCodebarsFromShipmentInfos() : array<string|int, mixed>
- fetchScannedParcels() : mixed
- getShippingType() : string
- updateScannedParcelStatus() : void
Properties
$container
protected
ContainerInterface
$container
$entityManager
protected
EntityManagerInterface
$entityManager
$logService
protected
LogServiceInterface
$logService
$productService
protected
ProductService
$productService
$saleProductService
protected
SaleProductService|object
$saleProductService
$ediHistoryService
private
EdiHistoryService
$ediHistoryService
$eventDispatcher
private
EventDispatcherInterface
$eventDispatcher
$saleService
private
SaleService|object
$saleService
$shipmentService
private
ShipmentService
$shipmentService
$tamdisApi
private
TamdisApi
$tamdisApi
$trackingCodeContentService
private
TrackingCodeContentService
$trackingCodeContentService
$trackingCodeService
private
TrackingCodeService
$trackingCodeService
Methods
__construct()
QueueService constructor.
public
__construct(ContainerInterface $container, TamdisApi $tamdisApi, EntityManagerInterface $entityManager, LogServiceInterface $logService, TrackingCodeService $trackingCodeService, ShipmentService $shipmentService, EventDispatcherInterface $eventDispatcher, TrackingCodeContentService $trackingCodeContentService, EdiHistoryService $ediHistoryService) : mixed
Parameters
- $container : ContainerInterface
- $tamdisApi : TamdisApi
- $entityManager : EntityManagerInterface
- $logService : LogServiceInterface
- $trackingCodeService : TrackingCodeService
- $shipmentService : ShipmentService
- $eventDispatcher : EventDispatcherInterface
- $trackingCodeContentService : TrackingCodeContentService
- $ediHistoryService : EdiHistoryService
addOrderRowsToCsv()
Add order rows to the csv file
public
addOrderRowsToCsv(mixed $exportFile, mixed $order) : mixed
Parameters
- $exportFile : mixed
- $order : mixed
apiLog()
public
apiLog(mixed $data, mixed $type) : mixed
Parameters
- $data : mixed
- $type : mixed
connectToFtp()
public
connectToFtp() : mixed
createPreExpeditionForSale()
public
createPreExpeditionForSale(mixed $orderId, mixed $orderItemId, mixed $token) : array<string|int, string>
Parameters
- $orderId : mixed
- $orderItemId : mixed
- $token : mixed
Return values
array<string|int, string>createSaleProductShipment()
public
createSaleProductShipment(mixed $saleProductIds[, mixed $userId = null ][, mixed $logChanges = false ][, mixed $notify = false ]) : true
Parameters
- $saleProductIds : mixed
- $userId : mixed = null
- $logChanges : mixed = false
- $notify : mixed = false
Tags
Return values
truegeneratBodyForEtiquetTamdis()
public
generatBodyForEtiquetTamdis(mixed $order, mixed $shipIds, mixed $nbColisArray[, mixed $isSpareParts = false ]) : array<string|int, mixed>
Parameters
- $order : mixed
- $shipIds : mixed
- $nbColisArray : mixed
- $isSpareParts : mixed = false
Return values
array<string|int, mixed>generateEdiCsvFile()
Generate a csv file for the EDI of Tamdis base
public
generateEdiCsvFile(array<string|int, Sale> $orders, array<string|int, int> $saleProductIds) : string
Parameters
- $orders : array<string|int, Sale>
- $saleProductIds : array<string|int, int>
Tags
Return values
stringgenerateParcelCsvRow()
Generate the csv rows for the parcels (colis)
public
generateParcelCsvRow(mixed $saleProduct) : array<string|int, mixed>
Parameters
- $saleProduct : mixed
Tags
Return values
array<string|int, mixed>generateTicketPdf()
public
generateTicketPdf(mixed $colisArray, mixed $order, mixed $spId, mixed $path, mixed $response, mixed $nbColisArray) : string
Parameters
- $colisArray : mixed
- $order : mixed
- $spId : mixed
- $path : mixed
- $response : mixed
- $nbColisArray : mixed
Tags
Return values
stringgetAddresse()
public
getAddresse(mixed $street) : array<string|int, mixed>|false|string|array<string|int, string>
Parameters
- $street : mixed
Return values
array<string|int, mixed>|false|string|array<string|int, string>sendEndOfJourneyEmail()
public
sendEndOfJourneyEmail([mixed $filePath = null ]) : void
Parameters
- $filePath : mixed = null
sendExpedition()
public
sendExpedition(mixed $data) : mixed
Parameters
- $data : mixed
sendExpeditionToTamdis()
public
sendExpeditionToTamdis(mixed $data) : mixed
Parameters
- $data : mixed
calculateVolume()
private
calculateVolume(mixed $packageInfo) : float|int
Parameters
- $packageInfo : mixed
Return values
float|intextractCodebarsFromShipmentInfos()
private
extractCodebarsFromShipmentInfos(mixed $saleProduct) : array<string|int, mixed>
Parameters
- $saleProduct : mixed
Return values
array<string|int, mixed>fetchScannedParcels()
private
fetchScannedParcels(mixed $saleProduct) : mixed
Parameters
- $saleProduct : mixed
Tags
getShippingType()
private
getShippingType(mixed $realShippingMethod) : string
Parameters
- $realShippingMethod : mixed
Return values
stringupdateScannedParcelStatus()
private
updateScannedParcelStatus(mixed $saleProduct, mixed $scannedParcels, mixed $packagesCount) : void
Parameters
- $saleProduct : mixed
- $scannedParcels : mixed
- $packagesCount : mixed