LabellingServiceInterface¶
-
interface
Firstred\PostNL\Service\LabellingServiceInterface¶ - Class LabellingService.
Summary¶
Methods¶
Methods¶
-
public
Firstred\PostNL\Service\LabellingServiceInterface::generateLabelREST($generateLabel, $confirm=true)¶ - Generate a single barcode via REST.
- Parameters
$generateLabel (
Firstred\PostNL\Entity\Request\GenerateLabel)$confirm (bool)
- Returns
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Since
1.0.0
-
public
Firstred\PostNL\Service\LabellingServiceInterface::generateLabelsREST($generateLabels)¶ - Generate multiple labels at once.
- Parameters
$generateLabels (array) [‘uuid’ => [GenerateBarcode, confirm], …]
- Returns
array
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Since
1.0.0
-
public
Firstred\PostNL\Service\LabellingServiceInterface::generateLabelSOAP($generateLabel, $confirm=true)¶ - Generate a single label via SOAP.
- Parameters
$generateLabel (
Firstred\PostNL\Entity\Request\GenerateLabel)$confirm (bool)
- Returns
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Since
1.0.0
-
public
Firstred\PostNL\Service\LabellingServiceInterface::generateLabelsSOAP($generateLabels)¶ - Generate multiple labels at once via SOAP.
- Parameters
$generateLabels (array) [‘uuid’ => [GenerateBarcode, confirm], …]
- Returns
array
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Since
1.0.0
-
public
Firstred\PostNL\Service\LabellingServiceInterface::buildGenerateLabelRequestREST($generateLabel, $confirm=true)¶ - Build the GenerateLabel request for the REST API.
- Parameters
$generateLabel (
Firstred\PostNL\Entity\Request\GenerateLabel)$confirm (bool)
- Returns
\Psr\Http\Message\RequestInterface- Since
1.0.0
-
public
Firstred\PostNL\Service\LabellingServiceInterface::processGenerateLabelResponseREST($response)¶ - Process the GenerateLabel REST Response.
- Parameters
$response (
Psr\Http\Message\ResponseInterface)
- Returns
\Firstred\PostNL\Entity\Response\GenerateLabelResponse| null- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Since
1.0.0
-
public
Firstred\PostNL\Service\LabellingServiceInterface::buildGenerateLabelRequestSOAP($generateLabel, $confirm=true)¶ - Build the GenerateLabel request for the SOAP API.
- Parameters
$generateLabel (
Firstred\PostNL\Entity\Request\GenerateLabel)$confirm (bool)
- Returns
\Psr\Http\Message\RequestInterface- Since
1.0.0
-
public
Firstred\PostNL\Service\LabellingServiceInterface::processGenerateLabelResponseSOAP($response)¶ - Parameters
$response (
Psr\Http\Message\ResponseInterface)
- Returns
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Since
1.0.0