Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function allowed(): array |
||
21 | { |
||
22 | return [ |
||
23 | 'instance_id' => 'int', // The instance id for the date, item and time. |
||
24 | // TODO: implement validation like "array of objects" |
||
25 | 'quantities' => 'array[Quantity]', // The quantities of item pricing categories for this basket booking. Pass an array of objects. |
||
26 | 'booking_time' => 'string', // The custom start time of the booking, can result in the creation of a time adjustment or an error if that time is unvavailable . |
||
27 | 'booking_end' => 'string', // The custom end time of the booking, can result in the creation of a time adjustment or an error if that time is unvavailable. |
||
28 | 'fee_exempt' => 'string', // True if this basket booking is fee exempt. |
||
29 | 'tax_exempt' => 'string', // True if this basket booking is tax exempt. |
||
30 | // TODO: implement validation like "array of objects" |
||
31 | 'extras' => 'array[Extra]', // The item extras for this basket booking. Pass an array of objects. |
||
32 | // TODO: implement validation like "array of objects" |
||
33 | 'questions' => 'array[Question]', // The item booking questions for this basket booking. Pass an array of objects. |
||
34 | ]; |
||
37 |