LocationServiceRestRequestBuilder
- class Firstred\PostNL\Service\RequestBuilder\Rest\LocationServiceRestRequestBuilder
Summary
Methods
Constants
- LIVE_ENDPOINT = \'https://api\.postnl\.nl/shipment/v2\_1/locations\'
- SANDBOX_ENDPOINT = \'https://api\-sandbox\.postnl\.nl/shipment/v2\_1/locations\'
Methods
- public Firstred\PostNL\Service\RequestBuilder\Rest\LocationServiceRestRequestBuilder::buildGetNearestLocationsRequest($getNearestLocations)
- Build the 'get nearest locations' HTTP request.
- Parameters:
$getNearestLocations (
Firstred\PostNL\Entity\Request\GetNearestLocations)
- Returns:
\Psr\Http\Message\RequestInterface- Throws:
- Throws:
- Throws:
- Throws:
- Since:
2.0.0
- public Firstred\PostNL\Service\RequestBuilder\Rest\LocationServiceRestRequestBuilder::buildGetLocationsInAreaRequest($getLocations)
- Build the 'get locations in area' HTTP.
- Parameters:
$getLocations (
Firstred\PostNL\Entity\Request\GetLocationsInArea)
- Returns:
\Psr\Http\Message\RequestInterface- Since:
2.0.0
- Throws:
- Throws:
- Throws:
- Throws:
- public Firstred\PostNL\Service\RequestBuilder\Rest\LocationServiceRestRequestBuilder::buildGetLocationRequest($getLocation)
- Build the 'get single location' HTTP request.
- Parameters:
$getLocation (
Firstred\PostNL\Entity\Request\GetLocation)
- Returns:
\Psr\Http\Message\RequestInterface- Throws:
- Throws:
- Throws:
- Throws:
- Since:
2.0.0
- protected Firstred\PostNL\Service\RequestBuilder\Rest\LocationServiceRestRequestBuilder::setService($entity)
- Set this service on the given entity.This lets the entity know for which service it should serialize.
- Parameters:
$entity (
Firstred\PostNL\Entity\AbstractEntity)
- Returns:
void
- Throws:
- Throws:
- Throws:
- Throws:
- Since:
2.0.0