Logidav Docs

ChronoPostApi extends TransactionalService
in package

Table of Contents

Constants

CHRONO_EXPRESS  = '17'
CHRONO_POST  = '01'
CHRONO_POST_BAL  = '58'
CHRONOEXPRESS_EI  = 'EI'
CHRONOPOST_13H  = '13H'
CHRONOPOST_13H_BAL  = '13H BAL'
CHRONOPOST_C10  = '02'
CHRONOPOST_C10_STR  = '10H'
CHRONOPOST_C18  = '16'
CHRONOPOST_C18_BAL  = '2M'
CHRONOPOST_C18_BAL_STR  = '18H BAL'
CHRONOPOST_C18_STR  = '18H'
CHRONOPOST_CClassic  = '44'
CHRONOPOST_CClassic_STR  = 'CClassic'
CHRONOPOST_DEFAULT_COUNTRY  = 'FR'
CHRONOPOST_DIM_BAL  = '5A'
CHRONOPOST_DIM_BAL_AS  = 'B34'
CHRONOPOST_DIM_BAL_SERVICE  = '514'
CHRONOPOST_DIM_BAL_STR  = 'DBAL'
CHRONOPOST_MAX_NB_PARCELS  = 3
CHRONOPOST_MAX_WEIGHT  = 30
CHRONOPOST_REVERSE_DEFAULT  = '01'
CHRONOPOST_REVERSE_DEFAULT_SERVICE  = '226'
CHRONOPOST_REVERSE_R  = '4R'
CHRONOPOST_REVERSE_R_SERVICE  = '885'
CHRONOPOST_REVERSE_S  = '4S'
CHRONOPOST_REVERSE_S_SERVICE  = '180'
CHRONOPOST_REVERSE_T  = '4T'
CHRONOPOST_REVERSE_T_SERVICE  = '898'
CHRONOPOST_REVERSE_U  = '4U'
CHRONOPOST_REVERSE_U_SERVICE  = '835'
CHRONOPOST_SMD  = '4I'
CHRONOPOST_SMD_STR  = 'SMD'
CHRONOPOST_SRDV  = '2O'
CHRONOPOST_SRDV_STR  = 'SRDV'
CHRONOPOST_TRACKING_URL  = 'http://wsshipping.chronopost.fr/shipping/services/getReservedSkybill?reservationNumber={trackingNumber}'
CHRONORELAIS  = '86'
CHRONORELAIS_PR  = 'PR'
CHRONORELAISDOM  = '4P'
CHRONORELAISDOM_STR  = 'PRDOM'
CHRONORELAISEUROPE  = '49'
CHRONORELAISEUROPE_STR  = 'PRU'
WSDL_SHIPPING_SERVICE  = "https://www.chronopost.fr/shipping-cxf/ShippingServiceWS?wsdl"
WSDL_TRACKING_SERVICE  = "https://ws.chronopost.fr/tracking-cxf/TrackingServiceWS?WSDL"

Properties

$container  : mixed
$em  : EntityManager
$defaultParams  : mixed
$params  : mixed
$productcode  : mixed
$productsToShip  : mixed
$user  : mixed

Methods

__construct()  : mixed
addRepository()  : void
Add a repository to this service
addService()  : void
Add a service to this service
createShipmentForSale()  : array<string|int, mixed>
Creating shipping for sale
createShipmentForSparePart()  : array<string|int, mixed>
Creates a shipment request for a spare part with Chronopost
getChronoPdf()  : false|string
Get chronopost file
getEntityManager()  : EntityManager
Getter of the Entity Manager
getIsShippedTrackNumber()  : bool
getShippingPriceByWeight()  : int
getTrackingsByInterval()  : mixed
getTrackNumberHistory()  : array<string|int, mixed>|mixed
isChronopostable()  : false|void
isMonocolis()  : bool
isMonocolisGls()  : bool
isShippableProduct()  : bool
Is product shippable with chronopost
resetParams()  : mixed
resetProductsToShip()  : mixed
setEntityManager()  : mixed
Setter of the Entity Manager
fillRecipientInfo()  : array<string|int, mixed>
Filling recipient info
getChronoProductCode()  : string
getSaleService()  : mixed
Finding correct saleService
shipProduct()  : array<string|int, mixed>
Ship Products

Constants

CHRONOPOST_13H_BAL

public mixed CHRONOPOST_13H_BAL = '13H BAL'

CHRONOPOST_C18_BAL_STR

public mixed CHRONOPOST_C18_BAL_STR = '18H BAL'

CHRONOPOST_CClassic_STR

public mixed CHRONOPOST_CClassic_STR = 'CClassic'

CHRONOPOST_DEFAULT_COUNTRY

public mixed CHRONOPOST_DEFAULT_COUNTRY = 'FR'

CHRONOPOST_DIM_BAL_AS

public mixed CHRONOPOST_DIM_BAL_AS = 'B34'

CHRONOPOST_DIM_BAL_SERVICE

public mixed CHRONOPOST_DIM_BAL_SERVICE = '514'

CHRONOPOST_DIM_BAL_STR

public mixed CHRONOPOST_DIM_BAL_STR = 'DBAL'

CHRONOPOST_MAX_NB_PARCELS

public mixed CHRONOPOST_MAX_NB_PARCELS = 3

CHRONOPOST_MAX_WEIGHT

public mixed CHRONOPOST_MAX_WEIGHT = 30

CHRONOPOST_REVERSE_DEFAULT

public mixed CHRONOPOST_REVERSE_DEFAULT = '01'

CHRONOPOST_REVERSE_DEFAULT_SERVICE

public mixed CHRONOPOST_REVERSE_DEFAULT_SERVICE = '226'

CHRONOPOST_REVERSE_R

public mixed CHRONOPOST_REVERSE_R = '4R'

CHRONOPOST_REVERSE_R_SERVICE

public mixed CHRONOPOST_REVERSE_R_SERVICE = '885'

CHRONOPOST_REVERSE_S

public mixed CHRONOPOST_REVERSE_S = '4S'

CHRONOPOST_REVERSE_S_SERVICE

public mixed CHRONOPOST_REVERSE_S_SERVICE = '180'

CHRONOPOST_REVERSE_T

public mixed CHRONOPOST_REVERSE_T = '4T'

CHRONOPOST_REVERSE_T_SERVICE

public mixed CHRONOPOST_REVERSE_T_SERVICE = '898'

CHRONOPOST_REVERSE_U

public mixed CHRONOPOST_REVERSE_U = '4U'

CHRONOPOST_REVERSE_U_SERVICE

public mixed CHRONOPOST_REVERSE_U_SERVICE = '835'

CHRONOPOST_SRDV_STR

public mixed CHRONOPOST_SRDV_STR = 'SRDV'

CHRONOPOST_TRACKING_URL

public mixed CHRONOPOST_TRACKING_URL = 'http://wsshipping.chronopost.fr/shipping/services/getReservedSkybill?reservationNumber={trackingNumber}'

CHRONORELAISDOM_STR

public mixed CHRONORELAISDOM_STR = 'PRDOM'

CHRONORELAISEUROPE_STR

public mixed CHRONORELAISEUROPE_STR = 'PRU'

WSDL_SHIPPING_SERVICE

public mixed WSDL_SHIPPING_SERVICE = "https://www.chronopost.fr/shipping-cxf/ShippingServiceWS?wsdl"

WSDL_TRACKING_SERVICE

public mixed WSDL_TRACKING_SERVICE = "https://ws.chronopost.fr/tracking-cxf/TrackingServiceWS?WSDL"

Properties

$params

private mixed $params = [ 'headerValue' => [ 'idEmit' => 'MAG', 'accountNumber' => '', //TODO-to Fill later 'subAccount' => '', ], 'shipperValue' => ['shipperAdress1' => '1 digue de Fontaine', 'shipperAdress2' => '', 'shipperCity' => 'Saint Quentin', 'shipperCivility' => 'M', 'shipperContactName' => '', 'shipperCountry' => 'FR', 'shipperEmail' => 'suivi@menzzo.fr', 'shipperMobilePhone' => '', 'shipperName' => 'Menzzo', 'shipperName2' => '', 'shipperPhone' => '01 43 75 11 18', 'shipperPreAlert' => '', 'shipperZipCode' => '02100'], 'customerValue' => ['customerAdress1' => '1 digue de Fontaine', 'customerAdress2' => '', 'customerCity' => 'Saint Quentin', 'customerCivility' => 'M', 'customerContactName' => '', 'customerCountry' => 'FR', 'customerEmail' => '', 'customerMobilePhone' => '', 'customerName' => 'Menzzo', 'customerName2' => '', 'customerPhone' => '', 'customerPreAlert' => '', 'customerZipCode' => 02100], 'recipientValue' => [ //TODO-to Fill later 'recipientAdress1' => '', 'recipientAdress2' => '', 'recipientCity' => '', 'recipientContactName' => '', 'recipientCountry' => '', 'recipientEmail' => '', 'recipientMobilePhone' => '', 'recipientName' => '', 'recipientName2' => '', 'recipientPhone' => '', 'recipientPreAlert' => '', 'recipientZipCode' => '', ], 'refValue' => [ 'recipientRef' => '', //TODO-to Fill later 'shipperRef' => '', ], 'skybillValue' => [], 'skybillParamsValue' => ['mode' => 'THE', 'withReservation' => 0], 'password' => '', //TODO-to Fill later 'numberOfParcel' => 1, 'multiparcel' => 'N', ]

Methods

addRepository()

Add a repository to this service

public addRepository(int $key, string $class) : void
Parameters
$key : int

Key

$class : string

Class

addService()

Add a service to this service

public addService(int $key, mixed $service) : void
Parameters
$key : int

Key

$service : mixed

createShipmentForSale()

Creating shipping for sale

public createShipmentForSale(mixed $orderId, mixed $itemsToShip, mixed $internalTrackingCodes[, null $userId = null ]) : array<string|int, mixed>
Parameters
$orderId : mixed
$itemsToShip : mixed
$internalTrackingCodes : mixed
$userId : null = null
Tags
throws
SoapFault
Return values
array<string|int, mixed>

createShipmentForSparePart()

Creates a shipment request for a spare part with Chronopost

public createShipmentForSparePart(mixed $sale, mixed $saleProduct, mixed $partNumber, mixed $user, mixed $qty, mixed $dimensions) : array<string|int, mixed>
Parameters
$sale : mixed
$saleProduct : mixed
$partNumber : mixed
$user : mixed
$qty : mixed
$dimensions : mixed
Return values
array<string|int, mixed>

getChronoPdf()

Get chronopost file

public static getChronoPdf(mixed $url) : false|string
Parameters
$url : mixed
Return values
false|string

getEntityManager()

Getter of the Entity Manager

public getEntityManager() : EntityManager
Return values
EntityManager

getIsShippedTrackNumber()

public getIsShippedTrackNumber(mixed $trackNumber) : bool
Parameters
$trackNumber : mixed
Return values
bool

getShippingPriceByWeight()

public static getShippingPriceByWeight(mixed $weight) : int
Parameters
$weight : mixed
Return values
int

getTrackingsByInterval()

public getTrackingsByInterval(DateTime $from, DateTime $to) : mixed
Parameters
$from : DateTime
$to : DateTime

getTrackNumberHistory()

public getTrackNumberHistory(mixed $trackNumber) : array<string|int, mixed>|mixed
Parameters
$trackNumber : mixed
Return values
array<string|int, mixed>|mixed

isChronopostable()

public static isChronopostable(mixed $packagesTotal, mixed $weightTotal) : false|void
Parameters
$packagesTotal : mixed
$weightTotal : mixed
Return values
false|void

isMonocolis()

public static isMonocolis(mixed $length, mixed $width, mixed $height, mixed $weight) : bool
Parameters
$length : mixed
$width : mixed
$height : mixed
$weight : mixed
Return values
bool

isMonocolisGls()

public static isMonocolisGls(mixed $length, mixed $width, mixed $height, mixed $weight) : bool

This fucntion is no longer used

Parameters
$length : mixed
$width : mixed
$height : mixed
$weight : mixed
Tags
see
GlsService::isMonocolis
Return values
bool

isShippableProduct()

Is product shippable with chronopost

public isShippableProduct(Product $product[, int $storeId = 3 ]) : bool
Parameters
$product : Product
$storeId : int = 3
Return values
bool

setEntityManager()

Setter of the Entity Manager

public setEntityManager(EntityManager $em) : mixed
Parameters
$em : EntityManager

the Entity Manager

fillRecipientInfo()

Filling recipient info

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

getChronoProductCode()

private getChronoProductCode([string $code = '' ]) : string
Parameters
$code : string = ''
Return values
string

getSaleService()

Finding correct saleService

private getSaleService(mixed $saleId) : mixed
Parameters
$saleId : mixed

shipProduct()

Ship Products

private shipProduct(mixed $expeditionArray) : array<string|int, mixed>
Parameters
$expeditionArray : mixed
Tags
throws
SoapFault
throws
Exception
Return values
array<string|int, mixed>

        
On this page

Search results