Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
10.53% covered (danger)
10.53%
2 / 19
10.53% covered (danger)
10.53%
2 / 19
CRAP
0.00% covered (danger)
0.00%
0 / 1
ApiController
10.53% covered (danger)
10.53%
2 / 19
10.53% covered (danger)
10.53%
2 / 19
277.58
0.00% covered (danger)
0.00%
0 / 1
 apiBillUpdate
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 apiBillCreate
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 apiMediaAddToBill
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 apiBillElementCreate
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 apiPreviewRender
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 apiBillPdfArchiveCreate
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 apiBillPdfCreate
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 apiNoteCreate
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 apiSupplierBillUpload
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 apiBillTypeCreate
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 apiBillTypeL11nCreate
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 apiTaxCombinationCreate
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 apiPriceCreate
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 apiBillAttributeCreate
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 apiBillAttributeTypeL11nCreate
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 apiBillAttributeTypeCreate
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 apiBillAttributeValueCreate
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 apiBillAttributeValueL11nCreate
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 apiSubscriptionFind
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3/**
4 * Jingga
5 *
6 * PHP Version 8.1
7 *
8 * @package   Modules\Billing
9 * @copyright Dennis Eichhorn
10 * @license   OMS License 2.0
11 * @version   1.0.0
12 * @link      https://jingga.app
13 */
14declare(strict_types=1);
15
16namespace Modules\Billing\Controller;
17
18use phpOMS\Message\RequestAbstract;
19use phpOMS\Message\ResponseAbstract;
20
21/**
22 * Billing class.
23 *
24 * @package Modules\Billing
25 * @license OMS License 2.0
26 * @link    https://jingga.app
27 * @since   1.0.0
28 */
29final class ApiController extends Controller
30{
31    /**
32     * Api method to update a bill
33     *
34     * @param RequestAbstract  $request  Request
35     * @param ResponseAbstract $response Response
36     * @param array            $data     Generic data
37     *
38     * @return void
39     *
40     * @api
41     *
42     * @since 1.0.0
43     */
44    public function apiBillUpdate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
45    {
46        $this->app->moduleManager->get('Billing', 'ApiBill')->apiBillUpdate($request, $response, $data);
47    }
48
49    /**
50     * Api method to create a bill
51     *
52     * @param RequestAbstract  $request  Request
53     * @param ResponseAbstract $response Response
54     * @param array            $data     Generic data
55     *
56     * @return void
57     *
58     * @api
59     *
60     * @since 1.0.0
61     */
62    public function apiBillCreate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
63    {
64        $this->app->moduleManager->get('Billing', 'ApiBill')->apiBillCreate($request, $response, $data);
65    }
66
67    /**
68     * Api method to create a bill
69     *
70     * @param RequestAbstract  $request  Request
71     * @param ResponseAbstract $response Response
72     * @param array            $data     Generic data
73     *
74     * @return void
75     *
76     * @api
77     *
78     * @since 1.0.0
79     */
80    public function apiMediaAddToBill(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
81    {
82        $this->app->moduleManager->get('Billing', 'ApiBill')->apiMediaAddToBill($request, $response, $data);
83    }
84
85    /**
86     * Api method to create a bill element
87     *
88     * @param RequestAbstract  $request  Request
89     * @param ResponseAbstract $response Response
90     * @param array            $data     Generic data
91     *
92     * @return void
93     *
94     * @api
95     *
96     * @since 1.0.0
97     */
98    public function apiBillElementCreate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
99    {
100        $this->app->moduleManager->get('Billing', 'ApiBill')->apiBillElementCreate($request, $response, $data);
101    }
102
103    /**
104     * Api method to create a bill preview
105     *
106     * @param RequestAbstract  $request  Request
107     * @param ResponseAbstract $response Response
108     * @param array            $data     Generic data
109     *
110     * @return void
111     *
112     * @api
113     *
114     * @since 1.0.0
115     */
116    public function apiPreviewRender(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
117    {
118        $this->app->moduleManager->get('Billing', 'ApiBill')->apiPreviewRender($request, $response, $data);
119    }
120
121    /**
122     * Api method to create and archive a bill
123     *
124     * @param RequestAbstract  $request  Request
125     * @param ResponseAbstract $response Response
126     * @param array            $data     Generic data
127     *
128     * @return void
129     *
130     * @api
131     *
132     * @since 1.0.0
133     */
134    public function apiBillPdfArchiveCreate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
135    {
136        $this->app->moduleManager->get('Billing', 'ApiBill')->apiBillPdfArchiveCreate($request, $response, $data);
137    }
138
139    /**
140     * Api method to create a bill
141     *
142     * @param RequestAbstract  $request  Request
143     * @param ResponseAbstract $response Response
144     * @param array            $data     Generic data
145     *
146     * @return void
147     *
148     * @api
149     *
150     * @since 1.0.0
151     */
152    public function apiBillPdfCreate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
153    {
154        $this->app->moduleManager->get('Billing', 'ApiBill')->apiBillPdfCreate($request, $response, $data);
155    }
156
157    /**
158     * Api method to create bill files
159     *
160     * @param RequestAbstract  $request  Request
161     * @param ResponseAbstract $response Response
162     * @param array            $data     Generic data
163     *
164     * @return void
165     *
166     * @api
167     *
168     * @since 1.0.0
169     */
170    public function apiNoteCreate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
171    {
172        $this->app->moduleManager->get('Billing', 'ApiBill')->apiNoteCreate($request, $response, $data);
173    }
174
175    /**
176     * Api method to create bill files
177     *
178     * @param RequestAbstract  $request  Request
179     * @param ResponseAbstract $response Response
180     * @param array            $data     Generic data
181     *
182     * @return void
183     *
184     * @api
185     *
186     * @since 1.0.0
187     */
188    public function apiSupplierBillUpload(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
189    {
190        $this->app->moduleManager->get('Billing', 'ApiPurchase')->apiSupplierBillUpload($request, $response, $data);
191    }
192
193    /**
194     * Api method to create item bill type
195     *
196     * @param RequestAbstract  $request  Request
197     * @param ResponseAbstract $response Response
198     * @param array            $data     Generic data
199     *
200     * @return void
201     *
202     * @api
203     *
204     * @since 1.0.0
205     */
206    public function apiBillTypeCreate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
207    {
208        $this->app->moduleManager->get('Billing', 'ApiBillType')->apiBillTypeCreate($request, $response, $data);
209    }
210
211    /**
212     * Api method to create item attribute l11n
213     *
214     * @param RequestAbstract  $request  Request
215     * @param ResponseAbstract $response Response
216     * @param array            $data     Generic data
217     *
218     * @return void
219     *
220     * @api
221     *
222     * @since 1.0.0
223     */
224    public function apiBillTypeL11nCreate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
225    {
226        $this->app->moduleManager->get('Billing', 'ApiBillType')->apiBillTypeL11nCreate($request, $response, $data);
227    }
228
229    /**
230     * Api method to create item bill type
231     *
232     * @param RequestAbstract  $request  Request
233     * @param ResponseAbstract $response Response
234     * @param array            $data     Generic data
235     *
236     * @return void
237     *
238     * @api
239     *
240     * @since 1.0.0
241     */
242    public function apiTaxCombinationCreate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
243    {
244        $this->app->moduleManager->get('Billing', 'ApiTax')->apiTaxCombinationCreate($request, $response, $data);
245    }
246
247    /**
248     * Api method to create item bill type
249     *
250     * @param RequestAbstract  $request  Request
251     * @param ResponseAbstract $response Response
252     * @param array            $data     Generic data
253     *
254     * @return void
255     *
256     * @api
257     *
258     * @since 1.0.0
259     */
260    public function apiPriceCreate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
261    {
262        $this->app->moduleManager->get('Billing', 'ApiPrice')->apiPriceCreate($request, $response, $data);
263    }
264
265    /**
266     * Api method to create item attribute
267     *
268     * @param RequestAbstract  $request  Request
269     * @param ResponseAbstract $response Response
270     * @param array            $data     Generic data
271     *
272     * @return void
273     *
274     * @api
275     *
276     * @since 1.0.0
277     */
278    public function apiBillAttributeCreate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
279    {
280        $this->app->moduleManager->get('Billing', 'ApiAttribute')->apiBillAttributeCreate($request, $response, $data);
281    }
282
283    /**
284     * Api method to create bill attribute l11n
285     *
286     * @param RequestAbstract  $request  Request
287     * @param ResponseAbstract $response Response
288     * @param array            $data     Generic data
289     *
290     * @return void
291     *
292     * @api
293     *
294     * @since 1.0.0
295     */
296    public function apiBillAttributeTypeL11nCreate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
297    {
298        $this->app->moduleManager->get('Billing', 'ApiAttribute')->apiBillAttributeTypeL11nCreate($request, $response, $data);
299    }
300
301    /**
302     * Api method to create bill attribute type
303     *
304     * @param RequestAbstract  $request  Request
305     * @param ResponseAbstract $response Response
306     * @param array            $data     Generic data
307     *
308     * @return void
309     *
310     * @api
311     *
312     * @since 1.0.0
313     */
314    public function apiBillAttributeTypeCreate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
315    {
316        $this->app->moduleManager->get('Billing', 'ApiAttribute')->apiBillAttributeTypeCreate($request, $response, $data);
317    }
318
319    /**
320     * Api method to create bill attribute value
321     *
322     * @param RequestAbstract  $request  Request
323     * @param ResponseAbstract $response Response
324     * @param array            $data     Generic data
325     *
326     * @return void
327     *
328     * @api
329     *
330     * @since 1.0.0
331     */
332    public function apiBillAttributeValueCreate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
333    {
334        $this->app->moduleManager->get('Billing', 'ApiAttribute')->apiBillAttributeValueCreate($request, $response, $data);
335    }
336
337    /**
338     * Api method to create bill attribute l11n
339     *
340     * @param RequestAbstract  $request  Request
341     * @param ResponseAbstract $response Response
342     * @param array            $data     Generic data
343     *
344     * @return void
345     *
346     * @api
347     *
348     * @since 1.0.0
349     */
350    public function apiBillAttributeValueL11nCreate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
351    {
352        $this->app->moduleManager->get('Billing', 'ApiAttribute')->apiBillAttributeValueL11nCreate($request, $response, $data);
353    }
354
355    /**
356     * Api method to find subscriptions
357     *
358     * @param RequestAbstract  $request  Request
359     * @param ResponseAbstract $response Response
360     * @param array            $data     Generic data
361     *
362     * @return void
363     *
364     * @api
365     *
366     * @since 1.0.0
367     */
368    public function apiSubscriptionFind(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
369    {
370    }
371}