BarcodeServiceRestRequestBuilder

class Firstred\PostNL\Service\RequestBuilder\Rest\BarcodeServiceRestRequestBuilder
Parent:

Firstred\PostNL\Service\RequestBuilder\Rest\AbstractRestRequestBuilder

Implements:

Firstred\PostNL\Service\RequestBuilder\BarcodeServiceRequestBuilderInterface

Summary

Methods

Constants

SANDBOX_ENDPOINT = \'https://api\-sandbox\.postnl\.nl/shipment/v1\_1/barcode\'
LIVE_ENDPOINT = \'https://api\.postnl\.nl/shipment/v1\_1/barcode\'

Methods

public Firstred\PostNL\Service\RequestBuilder\Rest\BarcodeServiceRestRequestBuilder::buildGenerateBarcodeRequest($generateBarcode)
Build the 'generate barcode' HTTP request.
Parameters:
Returns:

\Psr\Http\Message\RequestInterface

Throws:

\Firstred\PostNL\Exception\InvalidArgumentException

Throws:

\Firstred\PostNL\Exception\InvalidConfigurationException

Throws:

\Firstred\PostNL\Exception\InvalidArgumentException

Throws:

\Firstred\PostNL\Exception\InvalidConfigurationException

Since:

2.0.0

public Firstred\PostNL\Service\RequestBuilder\Rest\BarcodeServiceRestRequestBuilder::setService($entity)
Set this service on the given entity.
This lets the entity know for which service it should serialize.
Parameters:
Returns:

void

Throws:

\Firstred\PostNL\Exception\InvalidArgumentException

Throws:

\Firstred\PostNL\Exception\InvalidConfigurationException

Throws:

\Firstred\PostNL\Exception\InvalidArgumentException

Throws:

\Firstred\PostNL\Exception\InvalidConfigurationException

Since:

2.0.0