Logidav Docs

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

$entityManager

protected EntityManagerInterface $entityManager

$eventDispatcher

private EventDispatcherInterface $eventDispatcher

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

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

generatBodyForEtiquetTamdis()

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
throws
DBALException
see
https://projects.digitalup.app/articles/Logidav-A-27
Return values
string

generateParcelCsvRow()

Generate the csv rows for the parcels (colis)

public generateParcelCsvRow(mixed $saleProduct) : array<string|int, mixed>
Parameters
$saleProduct : mixed
Tags
throws
DBALException
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
throws
MpdfException
Return values
string

getAddresse()

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|int

extractCodebarsFromShipmentInfos()

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

getShippingType()

private getShippingType(mixed $realShippingMethod) : string
Parameters
$realShippingMethod : mixed
Return values
string

updateScannedParcelStatus()

private updateScannedParcelStatus(mixed $saleProduct, mixed $scannedParcels, mixed $packagesCount) : void
Parameters
$saleProduct : mixed
$scannedParcels : mixed
$packagesCount : mixed

        
On this page

Search results