ShippingStatusServiceRestRequestBuilder

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

Firstred\PostNL\Service\RequestBuilder\Rest\AbstractRestRequestBuilder

Implements:

Firstred\PostNL\Service\RequestBuilder\ShippingStatusServiceRequestBuilderInterface

Summary

Methods

Constants

LIVE_ENDPOINT = \'https://api\.postnl\.nl/shipment/v2/status\'
SANDBOX_ENDPOINT = \'https://api\-sandbox\.postnl\.nl/shipment/v2/status\'

Methods

public Firstred\PostNL\Service\RequestBuilder\Rest\ShippingStatusServiceRestRequestBuilder::buildCurrentStatusRequest(\\Firstred\\PostNL\\Entity\\Request\\CurrentStatusByReference|\\Firstred\\PostNL\\Entity\\Request\\CurrentStatus $currentStatus)
Build the 'get current status' HTTP request.
This function auto-detects and adjusts the following requests:
- CurrentStatus
- CurrentStatusByReference
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\ShippingStatusServiceRestRequestBuilder::buildCompleteStatusRequest($completeStatus)
Build the 'get complete status' HTTP request.
This function auto-detects and adjusts the following requests:
- CompleteStatus
- CompleteStatusByReference
- CompleteStatusByPhase
- CompleteStatusByStatus
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\ShippingStatusServiceRestRequestBuilder::buildGetSignatureRequest($getSignature)
Build the 'get signature' 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\ShippingStatusServiceRestRequestBuilder::buildGetUpdatedShipmentsRequest($getUpdatedShipments)
Build the 'get updated shipments' 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

protected Firstred\PostNL\Service\RequestBuilder\Rest\ShippingStatusServiceRestRequestBuilder::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