Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function allowed(): array |
||
21 | { |
||
22 | return [ |
||
23 | 'id' => 'string', // Globally unique ID that identifies this person [read-only], |
||
24 | 'firstName' => 'string', |
||
25 | 'middleName' => 'string', |
||
26 | 'lastName' => 'string', |
||
27 | 'emailAddress' => 'string', |
||
28 | 'phoneNumbers' => 'Array[PhoneNumber]', |
||
29 | 'streetAddress' => StreetAddress::class, |
||
30 | 'creationTime' => 'string:datetime', // [read-only], |
||
31 | 'startTimeOfNextBooking' => 'string:datetime', // The start time of the next booking. null if there are no bookings starting after 'now'. [read-only], |
||
32 | 'startTimeOfPreviousBooking' => 'string:datetime', // The start time of the last booking that occurred before 'now'. It is updated only after that booking's stop time [read-only], |
||
33 | 'dateOfBirth' => 'string:date', |
||
34 | 'customFields' => 'Array[CustomField]', |
||
35 | 'gender' => 'string', // The gender of this person. = ['male' or 'female' or 'unknown'], |
||
36 | 'customerId' => 'string', // The id of the customer to whom this person is linked. [read-only] |
||
37 | ]; |
||
38 | } |
||
39 | } |
||
40 |