| 1 |
<?php |
| 2 |
|
| 3 |
namespace Sendy\WooCommerce\Repositories; |
| 4 |
|
| 5 |
class Shipments extends Repository |
| 6 |
{ |
| 7 |
/** |
| 8 |
* Fetch a shipment from the API |
| 9 |
* |
| 10 |
* @param string $shipmentId The UUID of the shipment |
| 11 |
* @return array<string,mixed> |
| 12 |
* @throws \GuzzleHttp\Exception\GuzzleException |
| 13 |
* @throws \Sendy\Api\ApiException |
| 14 |
*/ |
| 15 |
public function get(string $shipmentId): array |
| 16 |
{ |
| 17 |
return $this->connection->shipment->get($shipmentId); |
| 18 |
} |
| 19 |
} |
| 20 |
|