-
Notifications
You must be signed in to change notification settings - Fork 12
/
SettingService.php
123 lines (105 loc) · 3.61 KB
/
SettingService.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?php
declare(strict_types=1);
namespace Inspirum\Balikobot\Service;
use Inspirum\Balikobot\Model\AdrUnit\AdrUnitCollection;
use Inspirum\Balikobot\Model\Attribute\AttributeCollection;
use Inspirum\Balikobot\Model\Carrier\Carrier;
use Inspirum\Balikobot\Model\Carrier\CarrierCollection;
use Inspirum\Balikobot\Model\Country\CountryCollection;
use Inspirum\Balikobot\Model\ManipulationUnit\ManipulationUnitCollection;
use Inspirum\Balikobot\Model\Service\Service;
use Inspirum\Balikobot\Model\Service\ServiceCollection;
use Inspirum\Balikobot\Model\ZipCode\ZipCodeIterator;
interface SettingService
{
/**
* Get list of carriers
*
* @throws \Inspirum\Balikobot\Exception\Exception
*/
public function getCarriers(): CarrierCollection;
/**
* Get info about carrier
*
* @throws \Inspirum\Balikobot\Exception\Exception
*/
public function getCarrier(string $carrier): Carrier;
/**
* Get services for carrier
*
* @throws \Inspirum\Balikobot\Exception\Exception
*/
public function getServices(string $carrier): ServiceCollection;
/**
* Get activated services for carrier
*
* @throws \Inspirum\Balikobot\Exception\Exception
*/
public function getActivatedServices(string $carrier): ServiceCollection;
/**
* Get B2A services for carrier
*
* @throws \Inspirum\Balikobot\Exception\Exception
*/
public function getB2AServices(string $carrier): ServiceCollection;
/**
* Get manipulation units for carrier
*
* @throws \Inspirum\Balikobot\Exception\Exception
*/
public function getManipulationUnits(string $carrier): ManipulationUnitCollection;
/**
* Get activated manipulation units for carrier
*
* @throws \Inspirum\Balikobot\Exception\Exception
*/
public function getActivatedManipulationUnits(string $carrier): ManipulationUnitCollection;
/**
* Get available countries by service type
*
* @throws \Inspirum\Balikobot\Exception\Exception
*/
public function getCountries(string $carrier): ServiceCollection;
/**
* Get countries by service type where cash-on-delivery payment type is available
*
* @throws \Inspirum\Balikobot\Exception\Exception
*/
public function getCodCountries(string $carrier): ServiceCollection;
/**
* Get information about countries
*
* @throws \Inspirum\Balikobot\Exception\Exception
*/
public function getCountriesData(): CountryCollection;
/**
* Get post codes for carrier and its service type (and optionally by country)
*
* @throws \Inspirum\Balikobot\Exception\Exception
*/
public function getZipCodes(string $carrier, string $service, ?string $country = null): ZipCodeIterator;
/**
* Get ADR units for carrier
*
* @throws \Inspirum\Balikobot\Exception\Exception
*/
public function getAdrUnits(string $carrier): AdrUnitCollection;
/**
* Get available package data options for carrier
*
* @throws \Inspirum\Balikobot\Exception\Exception
*/
public function getAddAttributes(string $carrier): AttributeCollection;
/**
* Get additional services (package data `services`) for carrier
*
* @throws \Inspirum\Balikobot\Exception\Exception
*/
public function getAddServiceOptions(string $carrier): ServiceCollection;
/**
* Get additional services (package data `services`) for carrier and service type
*
* @throws \Inspirum\Balikobot\Exception\Exception
*/
public function getAddServiceOptionsForService(string $carrier, string $service): Service;
}