Added location field in the appointments API parser.
This commit is contained in:
parent
cd365551b9
commit
dfd55d9472
1 changed files with 6 additions and 0 deletions
|
@ -32,6 +32,7 @@ class Appointments implements ParsersInterface {
|
||||||
'start' => $response['start_datetime'],
|
'start' => $response['start_datetime'],
|
||||||
'end' => $response['end_datetime'],
|
'end' => $response['end_datetime'],
|
||||||
'hash' => $response['hash'],
|
'hash' => $response['hash'],
|
||||||
|
'location' => $response['location'],
|
||||||
'notes' => $response['notes'],
|
'notes' => $response['notes'],
|
||||||
'customerId' => $response['id_users_customer'] !== NULL ? (int)$response['id_users_customer'] : NULL,
|
'customerId' => $response['id_users_customer'] !== NULL ? (int)$response['id_users_customer'] : NULL,
|
||||||
'providerId' => $response['id_users_provider'] !== NULL ? (int)$response['id_users_provider'] : 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'];
|
$decodedRequest['hash'] = $request['hash'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( ! empty($request['location']))
|
||||||
|
{
|
||||||
|
$decodedRequest['location'] = $request['location'];
|
||||||
|
}
|
||||||
|
|
||||||
if ( ! empty($request['notes']))
|
if ( ! empty($request['notes']))
|
||||||
{
|
{
|
||||||
$decodedRequest['notes'] = $request['notes'];
|
$decodedRequest['notes'] = $request['notes'];
|
||||||
|
|
Loading…
Reference in a new issue