1 | <?php |
||
13 | class Setting implements CreatableFromArray |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $name; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $orgNo; |
||
24 | |||
25 | /** |
||
26 | * @var Contact |
||
27 | */ |
||
28 | private $contact; |
||
29 | |||
30 | /** |
||
31 | * @var BusinessAddress |
||
32 | */ |
||
33 | private $businessAddress; |
||
34 | |||
35 | /** |
||
36 | * @var InvoiceAddress |
||
37 | */ |
||
38 | private $invoiceAddress; |
||
39 | |||
40 | /** |
||
41 | * @var VisitingAddress |
||
42 | */ |
||
43 | private $visitingAddress; |
||
44 | |||
45 | /** |
||
46 | * @var PaymentSetting |
||
47 | */ |
||
48 | private $payment; |
||
49 | |||
50 | /** |
||
51 | * @var TaxSetting |
||
52 | */ |
||
53 | private $tax; |
||
54 | |||
55 | /** |
||
56 | * @var BookkeepingSetting |
||
57 | */ |
||
58 | private $bookkeeping; |
||
59 | |||
60 | /** |
||
61 | * @var InvoiceDefaults |
||
62 | */ |
||
63 | private $invoices; |
||
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | public function getName() |
||
72 | |||
73 | /** |
||
74 | * @param string $name |
||
75 | * |
||
76 | * @return Setting |
||
77 | */ |
||
78 | 1 | public function withName(string $name) |
|
85 | |||
86 | /** |
||
87 | * @return string |
||
88 | */ |
||
89 | public function getOrgNo() |
||
93 | |||
94 | /** |
||
95 | * @param string $orgNo |
||
96 | * |
||
97 | * @return Setting |
||
98 | */ |
||
99 | 1 | public function withOrgNo(string $orgNo) |
|
106 | |||
107 | /** |
||
108 | * @return Contact |
||
109 | */ |
||
110 | public function getContact() |
||
114 | |||
115 | /** |
||
116 | * @param Contact $contact |
||
117 | * |
||
118 | * @return Setting |
||
119 | */ |
||
120 | 1 | public function withContact(Contact $contact) |
|
127 | |||
128 | /** |
||
129 | * @return BusinessAddress |
||
130 | */ |
||
131 | public function getBusinessAddress() |
||
135 | |||
136 | /** |
||
137 | * @param BusinessAddress $businessAddress |
||
138 | * |
||
139 | * @return Setting |
||
140 | */ |
||
141 | 1 | public function withBusinessAddress(BusinessAddress $businessAddress) |
|
148 | |||
149 | /** |
||
150 | * @return InvoiceAddress |
||
151 | */ |
||
152 | public function getInvoiceAddress() |
||
156 | |||
157 | /** |
||
158 | * @param InvoiceAddress $invoiceAddress |
||
159 | * |
||
160 | * @return Setting |
||
161 | */ |
||
162 | 1 | public function withInvoiceAddress(InvoiceAddress $invoiceAddress) |
|
169 | |||
170 | /** |
||
171 | * @return VisitingAddress |
||
172 | */ |
||
173 | public function getVisitingAddress() |
||
177 | |||
178 | /** |
||
179 | * @param VisitingAddress $visitingAddress |
||
180 | * |
||
181 | * @return Setting |
||
182 | */ |
||
183 | 1 | public function withVisitingAddress(VisitingAddress $visitingAddress) |
|
190 | |||
191 | /** |
||
192 | * @return mixed |
||
193 | */ |
||
194 | public function getPayment() |
||
198 | |||
199 | /** |
||
200 | * @param $payment |
||
201 | * |
||
202 | * @return Setting |
||
203 | */ |
||
204 | 1 | public function withPayment($payment) |
|
211 | |||
212 | /** |
||
213 | * @return mixed |
||
214 | */ |
||
215 | public function getTax() |
||
219 | |||
220 | /** |
||
221 | * @param $tax |
||
222 | * |
||
223 | * @return Setting |
||
224 | */ |
||
225 | 1 | public function withTax($tax) |
|
232 | |||
233 | /** |
||
234 | * @return mixed |
||
235 | */ |
||
236 | public function getBookkeeping() |
||
240 | |||
241 | /** |
||
242 | * @param $bookkeeping |
||
243 | * |
||
244 | * @return Setting |
||
245 | */ |
||
246 | 1 | public function withBookkeeping($bookkeeping) |
|
253 | |||
254 | /** |
||
255 | * @return mixed |
||
256 | */ |
||
257 | public function getInvoices() |
||
261 | |||
262 | /** |
||
263 | * @param $invoices |
||
264 | * |
||
265 | * @return Setting |
||
266 | */ |
||
267 | 1 | public function withInvoices($invoices) |
|
274 | |||
275 | /** |
||
276 | * Create an API response object from the HTTP response from the API server. |
||
277 | * |
||
278 | * @param array $data |
||
279 | * |
||
280 | * @return Setting |
||
281 | */ |
||
282 | 2 | public static function createFromArray(array $data) |
|
297 | |||
298 | 1 | public function toArray() |
|
334 | } |
||
335 |