TimeframeService
- class Firstred\PostNL\Service\TimeframeService
- Class TimeframeService.
Summary
Methods
Constants
- VERSION = \'2\.1\'
- LIVE_ENDPOINT = \'https://api\.postnl\.nl/shipment/v2\_1/calculate/timeframes\'
- SANDBOX_ENDPOINT = \'https://api\-sandbox\.postnl\.nl/shipment/v2\_1/calculate/timeframes\'
- SOAP_ACTION = \'http://postnl\.nl/cif/services/TimeframeWebService/ITimeframeWebService/GetTimeframes\'
- SERVICES_NAMESPACE = \'http://postnl\.nl/cif/services/TimeframeWebService/\'
- DOMAIN_NAMESPACE = \'http://postnl\.nl/cif/domain/TimeframeWebService/\'
Properties
- public property Firstred\PostNL\Service\TimeframeService::$namespaces
- Namespaces uses for the SOAP version of this service.
- Type:
array
Methods
- public Firstred\PostNL\Service\TimeframeService::getTimeframesREST($getTimeframes)
- Get timeframes via REST.
- Parameters:
$getTimeframes (
Firstred\PostNL\Entity\Request\GetTimeframes)
- Returns:
- 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:
- 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
- Deprecated:
1.4.0 Use `getTimeframes` instead
- public Firstred\PostNL\Service\TimeframeService::getTimeframesSOAP($getTimeframes)
- Get timeframes via SOAP.
- Parameters:
$getTimeframes (
Firstred\PostNL\Entity\Request\GetTimeframes)
- Returns:
- 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
- Deprecated:
1.4.0 Use `getTimeframes` instead
- public Firstred\PostNL\Service\TimeframeService::buildGetTimeframesRequestREST($getTimeframes)
- Build the GetTimeframes request for the REST API.
- Parameters:
$getTimeframes (
Firstred\PostNL\Entity\Request\GetTimeframes)
- Returns:
\Psr\Http\Message\RequestInterface- Since:
1.0.0
- Deprecated:
1.4.0
- public Firstred\PostNL\Service\TimeframeService::processGetTimeframesResponseREST($response)
- Process GetTimeframes Response REST.
- Parameters:
$response (mixed)
- Returns:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Since:
1.0.0
- Deprecated:
1.4.0
- public Firstred\PostNL\Service\TimeframeService::buildGetTimeframesRequestSOAP($getTimeframes)
- Build the GetTimeframes request for the SOAP API.
- Parameters:
$getTimeframes (
Firstred\PostNL\Entity\Request\GetTimeframes)
- Returns:
\Psr\Http\Message\RequestInterface- Since:
1.0.0
- Deprecated:
1.4.0
- public Firstred\PostNL\Service\TimeframeService::processGetTimeframesResponseSOAP($response)
- Process GetTimeframes Response SOAP.
- 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
- Deprecated:
1.4.0