ShippingService¶
-
class
Firstred\PostNL\Service\ShippingService¶ - Class ShippingService.
Summary¶
Methods¶
Constants¶
-
VERSION = \'1\'
-
LIVE_ENDPOINT = \'https://api\.postnl\.nl/v1/shipment\'
-
SANDBOX_ENDPOINT = \'https://api\-sandbox\.postnl\.nl/v1/shipment\'
-
DOMAIN_NAMESPACE = \'http://postnl\.nl/\'
Methods¶
-
public
Firstred\PostNL\Service\ShippingService::sendShipmentRest($sendShipment, $confirm=true)¶ - Generate a single Shipping vai REST.
- Parameters
$sendShipment (
Firstred\PostNL\Entity\Request\SendShipment)$confirm (bool)
- Returns
\Firstred\PostNL\Entity\Response\SendShipmentResponse| null- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
\Psr\Cache\InvalidArgumentException- Throws
- Throws
- Throws
- Since
1.2.0
-
public
Firstred\PostNL\Service\ShippingService::buildSendShipmentRequestREST($sendShipment, $confirm=true)¶ - Parameters
$sendShipment (
Firstred\PostNL\Entity\Request\SendShipment)$confirm (bool)
- Returns
\Psr\Http\Message\RequestInterface- Since
1.2.0
-
public
Firstred\PostNL\Service\ShippingService::processSendShipmentResponseREST($response)¶ - Process the SendShipment REST Response.
- Parameters
$response (
Psr\Http\Message\ResponseInterface)
- Returns
\Firstred\PostNL\Entity\Response\SendShipmentResponse| null- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Throws
- Since
1.2.0