ConfirmingService
- class Firstred\PostNL\Service\ConfirmingService
- Class ConfirmingService.
Summary
Methods
Constants
- VERSION = \'2\.0\'
- LIVE_ENDPOINT = \'https://api\.postnl\.nl/shipment/v2/confirm\'
- SANDBOX_ENDPOINT = \'https://api\-sandbox\.postnl\.nl/shipment/v2/confirm\'
- SOAP_ACTION = \'http://postnl\.nl/cif/services/ConfirmingWebService/IConfirmingWebService/Confirming\'
- ENVELOPE_NAMESPACE = \'http://schemas\.xmlsoap\.org/soap/envelope/\'
- SERVICES_NAMESPACE = \'http://postnl\.nl/cif/services/ConfirmingWebService/\'
- DOMAIN_NAMESPACE = \'http://postnl\.nl/cif/domain/ConfirmingWebService/\'
Properties
- public property Firstred\PostNL\Service\ConfirmingService::$namespaces
- Namespaces uses for the SOAP version of this service.
- Type:
array
Methods
- public Firstred\PostNL\Service\ConfirmingService::confirmShipmentREST($confirming)
- Confirm a single shipment via REST.
- Parameters:
$confirming (
Firstred\PostNL\Entity\Request\Confirming)
- 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:
- Since:
1.0.0
- public Firstred\PostNL\Service\ConfirmingService::confirmShipmentsREST($confirms)
- Confirm multiple shipments.
- Parameters:
$confirms (
Firstred\PostNL\Entity\Request\Confirming[]) [‘uuid’ => Confirming, …]
- Returns:
\Firstred\PostNL\Entity\Response\ConfirmingResponseShipment[]- 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
- public Firstred\PostNL\Service\ConfirmingService::confirmShipmentSOAP($confirming)
- Generate a single label via SOAP.
- Parameters:
$confirming (
Firstred\PostNL\Entity\Request\Confirming)
- 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\ConfirmingService::confirmShipmentsSOAP($confirmings)
- Generate multiple labels at once.
- Parameters:
$confirmings (array) [‘uuid’ => Confirming, …]
- Returns:
\Firstred\PostNL\Entity\Response\ConfirmingResponseShipment[]- 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
- public Firstred\PostNL\Service\ConfirmingService::buildConfirmRequestREST($confirming)
- Parameters:
$confirming (
Firstred\PostNL\Entity\Request\Confirming)
- Returns:
\Psr\Http\Message\RequestInterface- Since:
1.0.0
- public Firstred\PostNL\Service\ConfirmingService::processConfirmResponseREST($response)
- Proces Confirm REST Response.
- Parameters:
$response (mixed)
- Returns:
\Firstred\PostNL\Entity\Response\ConfirmingResponseShipment[]| null- 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
- public Firstred\PostNL\Service\ConfirmingService::buildConfirmRequestSOAP($confirming)
- Parameters:
$confirming (
Firstred\PostNL\Entity\Request\Confirming)
- Returns:
\Psr\Http\Message\RequestInterface- Since:
1.0.0
- Deprecated:
1.4.0
- public Firstred\PostNL\Service\ConfirmingService::processConfirmResponseSOAP($response)
- Process Confirm SOAP response.
- 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