-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathShipments.php
More file actions
32 lines (26 loc) · 740 Bytes
/
Shipments.php
File metadata and controls
32 lines (26 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
namespace Imper86\PhpInpostApi\Resource;
use Imper86\PhpInpostApi\Resource\Shipments\Buy;
use Imper86\PhpInpostApi\Resource\Shipments\Label;
use Imper86\PhpInpostApi\Resource\Shipments\SelectOffer;
use Psr\Http\Message\ResponseInterface;
/**
* Class Shipments
* @package Imper86\PhpInpostApi\Resource
*
* @method Buy buy()
* @method Label label()
* @method SelectOffer selectOffer()
*/
class Shipments extends AbstractResource
{
use DeleteTrait, PutTrait;
public function get(string $id, ?array $query = null): ResponseInterface
{
return $this->apiGet(sprintf('%s/%s', $this->getBaseUri(), $id), $query);
}
protected function getBaseUri(): string
{
return '/v1/shipments';
}
}