BarcodeService¶
-
class
Firstred\PostNL\Service\BarcodeService¶ - Class BarcodeService.
Summary¶
Methods¶
Constants¶
-
VERSION = \'1\.1\'
-
SANDBOX_ENDPOINT = \'https://api\-sandbox\.postnl\.nl/shipment/v1\_1/barcode\'
-
LIVE_ENDPOINT = \'https://api\.postnl\.nl/shipment/v1\_1/barcode\'
-
SOAP_ACTION = \'http://postnl\.nl/cif/services/BarcodeWebService/IBarcodeWebService/GenerateBarcode\'
-
ENVELOPE_NAMESPACE = \'http://schemas\.xmlsoap\.org/soap/envelope/\'
-
SERVICES_NAMESPACE = \'http://postnl\.nl/cif/services/BarcodeWebService/\'
-
DOMAIN_NAMESPACE = \'http://postnl\.nl/cif/domain/BarcodeWebService/\'
Properties¶
-
protected static property
Firstred\PostNL\Service\BarcodeService::$postnl¶
-
public property
Firstred\PostNL\Service\BarcodeService::$namespaces¶ - Namespaces uses for the SOAP version of this service.
- Type
array
Methods¶
-
public
Firstred\PostNL\Service\BarcodeService::generateBarcodeREST($generateBarcode)¶ - Generate a single barcode.
- Parameters
$generateBarcode (
Firstred\PostNL\Entity\Request\GenerateBarcode)
- Returns
string | null Barcode
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Since
1.0.0
-
public
Firstred\PostNL\Service\BarcodeService::generateBarcodeSOAP($generateBarcode)¶ - Generate a single barcode.
- Parameters
$generateBarcode (
Firstred\PostNL\Entity\Request\GenerateBarcode)
- Returns
string Barcode
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Since
1.0.0
-
public
Firstred\PostNL\Service\BarcodeService::generateBarcodesREST($generateBarcodes)¶ - Generate multiple barcodes at once.
- Parameters
$generateBarcodes (
Firstred\PostNL\Entity\Request\GenerateBarcode[])
- Returns
string[] Barcodes
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Since
1.0.0
-
public
Firstred\PostNL\Service\BarcodeService::generateBarcodesSOAP($generateBarcodes)¶ - Generate multiple barcodes at once.
- Parameters
$generateBarcodes (
Firstred\PostNL\Entity\Request\GenerateBarcode[])
- Returns
string[] Barcodes
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Since
1.0.0
-
public
Firstred\PostNL\Service\BarcodeService::buildGenerateBarcodeRequestREST($generateBarcode)¶ - Build the `generateBarcode` HTTP request for the REST API.
- Parameters
$generateBarcode (
Firstred\PostNL\Entity\Request\GenerateBarcode)
- Returns
\Psr\Http\Message\RequestInterface- Since
1.0.0
-
public
Firstred\PostNL\Service\BarcodeService::buildGenerateBarcodeRequestSOAP($generateBarcode)¶ - Build the `generateBarcode` HTTP request for the SOAP API.
- Parameters
$generateBarcode (
Firstred\PostNL\Entity\Request\GenerateBarcode)
- Returns
\Psr\Http\Message\RequestInterface- Since
1.0.0
-
public
Firstred\PostNL\Service\BarcodeService::processGenerateBarcodeResponseREST($response)¶ - Process GenerateBarcode REST response.
- Parameters
$response (
Psr\Http\Message\ResponseInterface)
- Returns
\stdClass- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Since
1.0.0
-
public
Firstred\PostNL\Service\BarcodeService::processGenerateBarcodeResponseSOAP($response)¶ - Process GenerateBarcode SOAP response.
- Parameters
$response (
Psr\Http\Message\ResponseInterface)
- Returns
string
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Since
1.0.0