-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathBranchService.php
86 lines (76 loc) · 2.73 KB
/
BranchService.php
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
declare(strict_types=1);
namespace Inspirum\Balikobot\Service;
use Inspirum\Balikobot\Model\Branch\BranchIterator;
interface BranchService
{
/**
* Get all available branches
*
* @return \Inspirum\Balikobot\Model\Branch\BranchIterator&iterable<\Inspirum\Balikobot\Model\Branch\Branch>
*
* @throws \Inspirum\Balikobot\Exception\Exception
*/
public function getBranches(): BranchIterator;
/**
* Get all available branches for countries
*
* @param list<string> $countries
*
* @return \Inspirum\Balikobot\Model\Branch\BranchIterator&iterable<\Inspirum\Balikobot\Model\Branch\Branch>
*
* @throws \Inspirum\Balikobot\Exception\Exception
*/
public function getBranchesForCountries(array $countries): BranchIterator;
/**
* Get all available branches for carrier
*
* @throws \Inspirum\Balikobot\Exception\Exception
*/
public function getBranchesForCarrier(string $carrier): BranchIterator;
/**
* Get all available branches for carrier and countries
*
* @param list<string> $countries
*
* @return \Inspirum\Balikobot\Model\Branch\BranchIterator&iterable<\Inspirum\Balikobot\Model\Branch\Branch>
*
* @throws \Inspirum\Balikobot\Exception\Exception
*/
public function getBranchesForCarrierAndCountries(string $carrier, array $countries): BranchIterator;
/**
* Get all available branches for carrier and service type
*
* @return \Inspirum\Balikobot\Model\Branch\BranchIterator&iterable<\Inspirum\Balikobot\Model\Branch\Branch>
*
* @throws \Inspirum\Balikobot\Exception\Exception
*/
public function getBranchesForCarrierService(string $carrier, string $service): BranchIterator;
/**
* Get all available branches for carrier, service type and countries
*
* @param list<string> $countries
*
* @return \Inspirum\Balikobot\Model\Branch\BranchIterator&iterable<\Inspirum\Balikobot\Model\Branch\Branch>
*
* @throws \Inspirum\Balikobot\Exception\Exception
*/
public function getBranchesForCarrierServiceAndCountries(string $carrier, string $service, array $countries): BranchIterator;
/**
* Get all available branches for carrier in specific location
*
* @return \Inspirum\Balikobot\Model\Branch\BranchIterator&iterable<\Inspirum\Balikobot\Model\Branch\Branch>
*
* @throws \Inspirum\Balikobot\Exception\Exception
*/
public function getBranchesForLocation(
string $carrier,
string $country,
string $city,
?string $zipCode = null,
?string $street = null,
?int $maxResults = null,
?float $radius = null,
?string $type = null,
): BranchIterator;
}