@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace LauLamanApps\IzettleApi\API\Inventory\Location; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace LauLamanApps\IzettleApi\API\Inventory\Location; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace LauLamanApps\IzettleApi\API\Inventory\Location; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace LauLamanApps\IzettleApi\API\Inventory; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace LauLamanApps\IzettleApi; |
| 6 | 6 | |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | final class IzettleClientFactory |
| 29 | 29 | { |
| 30 | - public static function getProductClient(IzettleClientInterface $client, ?UuidInterface $organizationUuid = null): ProductClient |
|
| 30 | + public static function getProductClient(IzettleClientInterface $client, ?UuidInterface $organizationUuid = null) : ProductClient |
|
| 31 | 31 | { |
| 32 | 32 | $categoryBuilder = new CategoryBuilder(); |
| 33 | 33 | $imageBuilder = new ImageBuilder(); |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | ); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - public static function getFinanceClient(IzettleClientInterface $client, ?UuidInterface $organizationUuid = null): FinanceClient |
|
| 65 | + public static function getFinanceClient(IzettleClientInterface $client, ?UuidInterface $organizationUuid = null) : FinanceClient |
|
| 66 | 66 | { |
| 67 | 67 | return new FinanceClient( |
| 68 | 68 | $client, |
@@ -72,12 +72,12 @@ discard block |
||
| 72 | 72 | ); |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | - public static function getImageClient(IzettleClientInterface $client, ?UuidInterface $organizationUuid = null): ImageClient |
|
| 75 | + public static function getImageClient(IzettleClientInterface $client, ?UuidInterface $organizationUuid = null) : ImageClient |
|
| 76 | 76 | { |
| 77 | 77 | return new ImageClient($client, $organizationUuid, new ImageBuilder()); |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | - public static function getInventoryClient(IzettleClientInterface $client, ?UuidInterface $organizationUuid = null): InventoryClient |
|
| 80 | + public static function getInventoryClient(IzettleClientInterface $client, ?UuidInterface $organizationUuid = null) : InventoryClient |
|
| 81 | 81 | { |
| 82 | 82 | return new InventoryClient( |
| 83 | 83 | $client, |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace LauLamanApps\IzettleApi\Client\Inventory; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace LauLamanApps\IzettleApi\Client; |
| 6 | 6 | |
@@ -19,21 +19,21 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | const BASE_URL = 'https://inventory.izettle.com/organizations/%s'; |
| 21 | 21 | |
| 22 | - const GET_HISTORY = self::BASE_URL . '/history/locations/%s'; |
|
| 22 | + const GET_HISTORY = self::BASE_URL.'/history/locations/%s'; |
|
| 23 | 23 | |
| 24 | - const GET_PRODUCT_INVENTORY = self::BASE_URL . '/inventory/locations/%s/products/%s'; |
|
| 25 | - const GET_LOCATION_INVENTORY = self::BASE_URL . '/inventory/locations/%s'; |
|
| 26 | - const POST_INVENTORY = self::BASE_URL . '/inventory'; |
|
| 27 | - const POST_INVENTORY_BULK = self::BASE_URL . '/inventory/bulk'; |
|
| 28 | - const PUT_INVENTORY = self::BASE_URL . '/inventory'; |
|
| 29 | - const DELETE_PRODUCT_INVENTORY = self::BASE_URL . '/inventory/products/%s'; |
|
| 24 | + const GET_PRODUCT_INVENTORY = self::BASE_URL.'/inventory/locations/%s/products/%s'; |
|
| 25 | + const GET_LOCATION_INVENTORY = self::BASE_URL.'/inventory/locations/%s'; |
|
| 26 | + const POST_INVENTORY = self::BASE_URL.'/inventory'; |
|
| 27 | + const POST_INVENTORY_BULK = self::BASE_URL.'/inventory/bulk'; |
|
| 28 | + const PUT_INVENTORY = self::BASE_URL.'/inventory'; |
|
| 29 | + const DELETE_PRODUCT_INVENTORY = self::BASE_URL.'/inventory/products/%s'; |
|
| 30 | 30 | |
| 31 | - const GET_LOCATIONS = self::BASE_URL . '/locations'; |
|
| 32 | - const PUT_LOCATIONS = self::BASE_URL . '/locations/%s'; |
|
| 31 | + const GET_LOCATIONS = self::BASE_URL.'/locations'; |
|
| 32 | + const PUT_LOCATIONS = self::BASE_URL.'/locations/%s'; |
|
| 33 | 33 | |
| 34 | - const GET_SETTINGS = self::BASE_URL . '/settings'; |
|
| 35 | - const POST_SETTINGS = self::BASE_URL . '/settings'; |
|
| 36 | - const PUT_SETTINGS = self::BASE_URL . '/settings'; |
|
| 34 | + const GET_SETTINGS = self::BASE_URL.'/settings'; |
|
| 35 | + const POST_SETTINGS = self::BASE_URL.'/settings'; |
|
| 36 | + const PUT_SETTINGS = self::BASE_URL.'/settings'; |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * @var IzettleClientInterface |