DeliveryDateService
- class Firstred\PostNL\Service\DeliveryDateService
Summary
Methods
Properties
- protected static property Firstred\PostNL\Service\DeliveryDateService::$requestBuilder
- protected static property Firstred\PostNL\Service\DeliveryDateService::$responseProcessor
Methods
- public Firstred\PostNL\Service\DeliveryDateService::__construct($apiKey, $sandbox, $httpClient, $requestFactory, $streamFactory, $cache=null, \\DateInterval|\\DateTimeInterface|int $ttl=null)
- Parameters:
$apiKey (
ParagonIE\HiddenString\HiddenString)$sandbox (bool)
$httpClient (
Firstred\PostNL\HttpClient\HttpClientInterface)$requestFactory (
Psr\Http\Message\RequestFactoryInterface)$streamFactory (
Psr\Http\Message\StreamFactoryInterface)$cache (
Psr\Cache\CacheItemPoolInterface| null)$ttl (
DateInterval|\DateTimeInterface| int | null)
- public Firstred\PostNL\Service\DeliveryDateService::getDeliveryDate($getDeliveryDate)
- Get the delivery date.
- Parameters:
$getDeliveryDate (
Firstred\PostNL\Entity\Request\GetDeliveryDate)
- Returns:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
\Psr\Cache\InvalidArgumentException- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
\Psr\Cache\InvalidArgumentException- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
\Psr\Cache\InvalidArgumentException- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
\Psr\Cache\InvalidArgumentException- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
\Psr\Cache\InvalidArgumentException- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
\Psr\Cache\InvalidArgumentException- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
\Psr\Cache\InvalidArgumentException- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
\Psr\Cache\InvalidArgumentException- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
\Psr\Cache\InvalidArgumentException- Throws:
- Throws:
- Throws:
- Since:
1.0.0
- public Firstred\PostNL\Service\DeliveryDateService::getSentDate($getSentDate)
- Get the shipping date.
- Parameters:
$getSentDate (
Firstred\PostNL\Entity\Request\GetSentDateRequest)
- Returns:
- Throws:
- Throws:
- Throws:
- Throws:
\Psr\Cache\InvalidArgumentException- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
\Psr\Cache\InvalidArgumentException- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
\Psr\Cache\InvalidArgumentException- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
\Psr\Cache\InvalidArgumentException- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
\Psr\Cache\InvalidArgumentException- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
\Psr\Cache\InvalidArgumentException- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
\Psr\Cache\InvalidArgumentException- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
\Psr\Cache\InvalidArgumentException- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
\Psr\Cache\InvalidArgumentException- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
\Psr\Cache\InvalidArgumentException- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Since:
1.0.0
- public Firstred\PostNL\Service\DeliveryDateService::setApiKey($apiKey)
- Parameters:
$apiKey (
ParagonIE\HiddenString\HiddenString)
- Returns:
static
- Since:
2.0.0
- public Firstred\PostNL\Service\DeliveryDateService::setSandbox($sandbox)
- Parameters:
$sandbox (bool)
- Returns:
static
- Since:
2.0.0
- public Firstred\PostNL\Service\DeliveryDateService::setRequestFactory($requestFactory)
- Parameters:
$requestFactory (
Psr\Http\Message\RequestFactoryInterface)
- Returns:
static
- Since:
2.0.0
- public Firstred\PostNL\Service\DeliveryDateService::setStreamFactory($streamFactory)
- Parameters:
$streamFactory (
Psr\Http\Message\StreamFactoryInterface)
- Returns:
static
- Since:
2.0.0