.. rst-class:: phpdoctorst .. role:: php(code) :language: php ShippingStatusServiceRestRequestBuilder ======================================= .. php:namespace:: Firstred\PostNL\Service\RequestBuilder\Rest .. php:class:: ShippingStatusServiceRestRequestBuilder :Parent: :php:class:`Firstred\\PostNL\\Service\\RequestBuilder\\Rest\\AbstractRestRequestBuilder` :Implements: :php:interface:`Firstred\\PostNL\\Service\\RequestBuilder\\ShippingStatusServiceRequestBuilderInterface` Summary ------- Methods ~~~~~~~ * :php:meth:`public buildCurrentStatusRequest\($currentStatus\)` * :php:meth:`public buildCompleteStatusRequest\($completeStatus\)` * :php:meth:`public buildGetSignatureRequest\($getSignature\)` * :php:meth:`public buildGetUpdatedShipmentsRequest\($getUpdatedShipments\)` * :php:meth:`protected setService\($entity\)` Constants --------- .. php:const:: LIVE_ENDPOINT = \'https://api\.postnl\.nl/shipment/v2/status\' .. php:const:: SANDBOX_ENDPOINT = \'https://api\-sandbox\.postnl\.nl/shipment/v2/status\' Methods ------- .. rst-class:: public .. php:method:: public buildCurrentStatusRequest(\\Firstred\\PostNL\\Entity\\Request\\CurrentStatusByReference|\\Firstred\\PostNL\\Entity\\Request\\CurrentStatus $currentStatus) .. rst-class:: phpdoc-description | Build the \'get current status\' HTTP request\. | This function auto\-detects and adjusts the following requests: | \- CurrentStatus | \- CurrentStatusByReference :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 buildCompleteStatusRequest( $completeStatus) .. rst-class:: phpdoc-description | Build the \'get complete status\' HTTP request\. | This function auto\-detects and adjusts the following requests: | \- CompleteStatus | \- CompleteStatusByReference | \- CompleteStatusByPhase | \- CompleteStatusByStatus :Parameters: * **$completeStatus** (:any:`Firstred\\PostNL\\Entity\\Request\\CompleteStatus `) :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 buildGetSignatureRequest( $getSignature) .. rst-class:: phpdoc-description | Build the \'get signature\' HTTP request\. :Parameters: * **$getSignature** (:any:`Firstred\\PostNL\\Entity\\Request\\GetSignature `) :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 buildGetUpdatedShipmentsRequest( $getUpdatedShipments) .. rst-class:: phpdoc-description | Build the \'get updated shipments\' HTTP request\. :Parameters: * **$getUpdatedShipments** (:any:`Firstred\\PostNL\\Entity\\Request\\GetUpdatedShipments `) :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