BarcodeService
- class Firstred\PostNL\Service\BarcodeService
Summary
Methods
Properties
- protected static property Firstred\PostNL\Service\BarcodeService::$requestBuilder
- protected static property Firstred\PostNL\Service\BarcodeService::$responseProcessor
Methods
- public Firstred\PostNL\Service\BarcodeService::__construct($apiKey, $sandbox, $httpClient, $requestFactory, $streamFactory)
- Parameters:
$apiKey (
ParagonIE\HiddenString\HiddenString)$sandbox (bool)
$httpClient (
Firstred\PostNL\HttpClient\HttpClientInterface)$requestFactory (
Psr\Http\Message\RequestFactoryInterface)$streamFactory (
Psr\Http\Message\StreamFactoryInterface)
- public Firstred\PostNL\Service\BarcodeService::generateBarcode($generateBarcode)
- Generate a single barcode.
- 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\BarcodeService::generateBarcodes($generateBarcodes)
- Generate multiple barcodes at once.
- Parameters:
$generateBarcodes (
Firstred\PostNL\Entity\Request\GenerateBarcode[])
- Returns:
string[] Barcodes
- 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\BarcodeService::setApiKey($apiKey)
- Parameters:
$apiKey (
ParagonIE\HiddenString\HiddenString)
- Returns:
static
- Since:
2.0.0
- public Firstred\PostNL\Service\BarcodeService::setSandbox($sandbox)
- Parameters:
$sandbox (bool)
- Returns:
static
- Since:
2.0.0
- public Firstred\PostNL\Service\BarcodeService::setRequestFactory($requestFactory)
- Parameters:
$requestFactory (
Psr\Http\Message\RequestFactoryInterface)
- Returns:
static
- Since:
2.0.0
- public Firstred\PostNL\Service\BarcodeService::setStreamFactory($streamFactory)
- Parameters:
$streamFactory (
Psr\Http\Message\StreamFactoryInterface)
- Returns:
static
- Since:
2.0.0