.. rst-class:: phpdoctorst .. role:: php(code) :language: php DeliveryDateServiceRestRequestBuilder ===================================== .. php:namespace:: Firstred\PostNL\Service\RequestBuilder\Rest .. php:class:: DeliveryDateServiceRestRequestBuilder :Parent: :php:class:`Firstred\\PostNL\\Service\\RequestBuilder\\Rest\\AbstractRestRequestBuilder` :Implements: :php:interface:`Firstred\\PostNL\\Service\\RequestBuilder\\DeliveryDateServiceRequestBuilderInterface` Summary ------- Methods ~~~~~~~ * :php:meth:`public buildGetDeliveryDateRequest\($getDeliveryDate\)` * :php:meth:`public buildGetSentDateRequest\($getSentDate\)` * :php:meth:`protected setService\($entity\)` Constants --------- .. php:const:: LIVE_ENDPOINT = \'https://api\.postnl\.nl/shipment/v2\_2/calculate/date\' .. php:const:: SANDBOX_ENDPOINT = \'https://api\-sandbox\.postnl\.nl/shipment/v2\_2/calculate/date\' Methods ------- .. rst-class:: public .. php:method:: public buildGetDeliveryDateRequest( $getDeliveryDate) .. rst-class:: phpdoc-description | Build the \'get delivery date\' HTTP request\. :Parameters: * **$getDeliveryDate** (:any:`Firstred\\PostNL\\Entity\\Request\\GetDeliveryDate `) :Returns: :any:`\\Psr\\Http\\Message\\RequestInterface ` :Throws: :any:`\\Firstred\\PostNL\\Exception\\InvalidArgumentException ` :Throws: :any:`\\Firstred\\PostNL\\Exception\\InvalidConfigurationException ` :Throws: :any:`\\Firstred\\PostNL\\Exception\\InvalidArgumentException ` :Throws: :any:`\\Firstred\\PostNL\\Exception\\InvalidConfigurationException ` :Since: 2.0.0 .. rst-class:: public .. php:method:: public buildGetSentDateRequest( $getSentDate) .. rst-class:: phpdoc-description | Build the \'get sent date\' HTTP request\. :Parameters: * **$getSentDate** (:any:`Firstred\\PostNL\\Entity\\Request\\GetSentDateRequest `) :Returns: :any:`\\Psr\\Http\\Message\\RequestInterface ` :Throws: :any:`\\Firstred\\PostNL\\Exception\\InvalidArgumentException ` :Throws: :any:`\\Firstred\\PostNL\\Exception\\InvalidConfigurationException ` :Throws: :any:`\\Firstred\\PostNL\\Exception\\InvalidArgumentException ` :Throws: :any:`\\Firstred\\PostNL\\Exception\\InvalidConfigurationException ` :Since: 2.0.0 .. rst-class:: protected .. php:method:: protected setService( $entity) .. rst-class:: phpdoc-description | Set this service on the given entity\. | This lets the entity know for which service it should serialize\. :Parameters: * **$entity** (:any:`Firstred\\PostNL\\Entity\\AbstractEntity `) :Returns: void :Throws: :any:`\\Firstred\\PostNL\\Exception\\InvalidArgumentException ` :Throws: :any:`\\Firstred\\PostNL\\Exception\\InvalidConfigurationException ` :Throws: :any:`\\Firstred\\PostNL\\Exception\\InvalidArgumentException ` :Throws: :any:`\\Firstred\\PostNL\\Exception\\InvalidConfigurationException ` :Since: 2.0.0