Added location field in the appointments API parser.

This commit is contained in:
alext 2019-06-08 16:55:44 +02:00
parent cd365551b9
commit dfd55d9472

View file

@ -32,6 +32,7 @@ class Appointments implements ParsersInterface {
'start' => $response['start_datetime'],
'end' => $response['end_datetime'],
'hash' => $response['hash'],
'location' => $response['location'],
'notes' => $response['notes'],
'customerId' => $response['id_users_customer'] !== NULL ? (int)$response['id_users_customer'] : NULL,
'providerId' => $response['id_users_provider'] !== NULL ? (int)$response['id_users_provider'] : NULL,
@ -98,6 +99,11 @@ class Appointments implements ParsersInterface {
$decodedRequest['hash'] = $request['hash'];
}
if ( ! empty($request['location']))
{
$decodedRequest['location'] = $request['location'];
}
if ( ! empty($request['notes']))
{
$decodedRequest['notes'] = $request['notes'];