@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | /** |
17 | 17 | * Create a new GoodTill instance. |
18 | 18 | * |
19 | - * @return void |
|
19 | + * @return RESTInterface |
|
20 | 20 | */ |
21 | 21 | public function __construct($user, $url, $id = null) |
22 | 22 | { |
@@ -67,7 +67,6 @@ discard block |
||
67 | 67 | /** |
68 | 68 | * Good Till API: Delete |
69 | 69 | * |
70 | - * @param array $data |
|
71 | 70 | * @return array |
72 | 71 | */ |
73 | 72 | public function delete(): array { |
@@ -2,11 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace FLAIRUK\GoodTillSystem; |
4 | 4 | |
5 | -use Illuminate\Support\Facades\Http; |
|
6 | -use FLAIRUK\GoodTillSystem\Authorize; |
|
7 | -use Illuminate\Support\Facades\Config; |
|
8 | 5 | use FLAIRUK\GoodTillSystem\RESTInterface; |
9 | 6 | use Illuminate\Http\Client\PendingRequest; |
7 | +use Illuminate\Support\Facades\Http; |
|
10 | 8 | |
11 | 9 | class API implements RESTInterface { |
12 | 10 |
@@ -6,8 +6,6 @@ |
||
6 | 6 | use Illuminate\Filesystem\Filesystem; |
7 | 7 | use Symfony\Component\Console\Input\InputOption; |
8 | 8 | use Symfony\Component\Process\Process; |
9 | -use TCG\Voyager\Providers\VoyagerDummyServiceProvider; |
|
10 | -use TCG\Voyager\Traits\Seedable; |
|
11 | 9 | use TCG\Voyager\VoyagerServiceProvider; |
12 | 10 | |
13 | 11 | class SetupCommand extends Command |
@@ -351,7 +351,6 @@ |
||
351 | 351 | /** |
352 | 352 | * Good Till API: External Sale |
353 | 353 | * |
354 | - * @param null|string $id |
|
355 | 354 | * @return ExternalSale |
356 | 355 | * |
357 | 356 | * @source https://apidoc.thegoodtill.com/#api-ExternalSale |
@@ -2,25 +2,22 @@ |
||
2 | 2 | |
3 | 3 | namespace FLAIRUK\GoodTillSystem; |
4 | 4 | |
5 | -use Illuminate\Support\Facades\Http; |
|
6 | -use Illuminate\Support\Facades\Config; |
|
7 | 5 | use FLAIRUK\GoodTillSystem\RESTInterface; |
8 | 6 | |
9 | -use FLAIRUK\GoodTillSystem\Models\Sale; |
|
10 | -use FLAIRUK\GoodTillSystem\Models\Staff; |
|
11 | 7 | use FLAIRUK\GoodTillSystem\Models\Brand; |
12 | -use FLAIRUK\GoodTillSystem\Models\Report; |
|
8 | +use FLAIRUK\GoodTillSystem\Models\Category; |
|
9 | +use FLAIRUK\GoodTillSystem\Models\Customer; |
|
10 | +use FLAIRUK\GoodTillSystem\Models\ExternalSale; |
|
11 | +use FLAIRUK\GoodTillSystem\Models\Loyalty; |
|
13 | 12 | use FLAIRUK\GoodTillSystem\Models\Outlet; |
14 | -use FLAIRUK\GoodTillSystem\Models\VATRate; |
|
15 | -use FLAIRUK\GoodTillSystem\Models\Voucher; |
|
13 | +use FLAIRUK\GoodTillSystem\Models\PaymentType; |
|
16 | 14 | use FLAIRUK\GoodTillSystem\Models\Product; |
17 | -use FLAIRUK\GoodTillSystem\Models\Loyalty; |
|
18 | -use FLAIRUK\GoodTillSystem\Models\Customer; |
|
19 | 15 | use FLAIRUK\GoodTillSystem\Models\Register; |
20 | -use FLAIRUK\GoodTillSystem\Models\Category; |
|
21 | -use FLAIRUK\GoodTillSystem\Models\StaffClock; |
|
22 | -use FLAIRUK\GoodTillSystem\Models\PaymentType; |
|
23 | -use FLAIRUK\GoodTillSystem\Models\ExternalSale; |
|
16 | +use FLAIRUK\GoodTillSystem\Models\Report; |
|
17 | +use FLAIRUK\GoodTillSystem\Models\Sale; |
|
18 | +use FLAIRUK\GoodTillSystem\Models\Staff; |
|
19 | +use FLAIRUK\GoodTillSystem\Models\VATRate; |
|
20 | +use FLAIRUK\GoodTillSystem\Models\Voucher; |
|
24 | 21 | |
25 | 22 | class GoodTillSystem extends Authorize { |
26 | 23 |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace FLAIRUK\GoodTillSystem; |
4 | 4 | |
5 | -use Illuminate\Support\ServiceProvider; |
|
6 | 5 | use FLAIRUK\GoodTillSystem\Commands\SetupCommand; |
6 | +use Illuminate\Support\ServiceProvider; |
|
7 | 7 | |
8 | 8 | class GoodTillSystemServiceProvider extends ServiceProvider |
9 | 9 | { |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | * Create a new Good Till Customer instance. |
12 | 12 | * |
13 | 13 | * @param array $user |
14 | - * @return void |
|
14 | + * @return \FLAIRUK\GoodTillSystem\RESTInterface |
|
15 | 15 | * |
16 | 16 | * @source https://apidoc.thegoodtill.com/#api-Brand |
17 | 17 | */ |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | * Set Product Outlet ID |
34 | 34 | * |
35 | 35 | * @param string $id |
36 | - * @return object |
|
36 | + * @return Brand |
|
37 | 37 | */ |
38 | 38 | public function setID(string $id): object { |
39 | 39 | $this->id = $id; |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * Create a new Good Till Customer instance. |
19 | 19 | * |
20 | 20 | * @param array $user |
21 | - * @return void |
|
21 | + * @return \FLAIRUK\GoodTillSystem\RESTInterface |
|
22 | 22 | * |
23 | 23 | * @source https://apidoc.thegoodtill.com/#api-Outlet |
24 | 24 | */ |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * Set Product Outlet ID |
45 | 45 | * |
46 | 46 | * @param string $id |
47 | - * @return object |
|
47 | + * @return Customer |
|
48 | 48 | */ |
49 | 49 | public function setID(string $id): object { |
50 | 50 | $this->id = $id; |
@@ -18,7 +18,7 @@ |
||
18 | 18 | /** |
19 | 19 | * Create a new GoodTill instance. |
20 | 20 | * |
21 | - * @return void |
|
21 | + * @return \FLAIRUK\GoodTillSystem\RESTInterface |
|
22 | 22 | */ |
23 | 23 | public function __construct($user) |
24 | 24 | { |
@@ -3,9 +3,9 @@ |
||
3 | 3 | namespace FLAIRUK\GoodTillSystem\Models; |
4 | 4 | |
5 | 5 | use FLAIRUK\GoodTillSystem\API; |
6 | -use Illuminate\Support\Facades\Config; |
|
7 | -use FLAIRUK\GoodTillSystem\Models\Sale; |
|
8 | 6 | use FLAIRUK\GoodTillSystem\Models\Product; |
7 | +use FLAIRUK\GoodTillSystem\Models\Sale; |
|
8 | +use Illuminate\Support\Facades\Config; |
|
9 | 9 | |
10 | 10 | class ExternalSale extends API { |
11 | 11 |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | /** |
15 | 15 | * Create a new GoodTill instance. |
16 | 16 | * |
17 | - * @return void |
|
17 | + * @return \FLAIRUK\GoodTillSystem\RESTInterface |
|
18 | 18 | */ |
19 | 19 | public function __construct($user) |
20 | 20 | { |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * Set Product Outlet ID |
30 | 30 | * |
31 | 31 | * @param string $id |
32 | - * @return object |
|
32 | + * @return Loyalty |
|
33 | 33 | */ |
34 | 34 | public function setID(string $id): object { |
35 | 35 | $this->id = $id; |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | * Create a new Good Till Outlet instance. |
12 | 12 | * |
13 | 13 | * @param array $user |
14 | - * @return void |
|
14 | + * @return \FLAIRUK\GoodTillSystem\RESTInterface |
|
15 | 15 | * |
16 | 16 | * @source https://apidoc.thegoodtill.com/#api-Outlet |
17 | 17 | */ |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | * Set Product Outlet ID |
34 | 34 | * |
35 | 35 | * @param string $id |
36 | - * @return object |
|
36 | + * @return Outlet |
|
37 | 37 | */ |
38 | 38 | public function setID(string $id): object { |
39 | 39 | $this->id = $id; |