Skip to content

Commit ba24eca

Browse files
committed
Release v1.4.0
* Introducing new **booking.moving** scope for **getBooking** endpoint
1 parent e9954d7 commit ba24eca

File tree

118 files changed

+768
-129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+768
-129
lines changed

docs/Api/BookingsApi.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ void (empty response body)
7171
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
7272

7373
# **getBooking**
74-
> \DocPlanner\Client\Model\Booking getBooking($facility_id, $doctor_id, $address_id, $booking_id)
74+
> \DocPlanner\Client\Model\Booking getBooking($facility_id, $doctor_id, $address_id, $booking_id, $with)
7575
7676

7777

78-
View specific booking
78+
View specific booking. Extensions: * `booking.moving` - with this parameter in url, query results will return moving data (origin and newest booking ids) as long as the booking was created after 2nd April 2025 (otherwise it will return null); for bookings that were not moved, origin and newest booking ids will be equal the id of a booking requested
7979

8080
### Example
8181
```php
@@ -95,9 +95,10 @@ $facility_id = "facility_id_example"; // string | ID of the Facility
9595
$doctor_id = "doctor_id_example"; // string | ID of a doctor in a facility
9696
$address_id = "address_id_example"; // string | ID of a doctor`s address in a facility
9797
$booking_id = "booking_id_example"; // string | ID of the Booking
98+
$with = array(new \DocPlanner\Client\Model\BookingScopes()); // \DocPlanner\Client\Model\BookingScopes[] |
9899

99100
try {
100-
$result = $apiInstance->getBooking($facility_id, $doctor_id, $address_id, $booking_id);
101+
$result = $apiInstance->getBooking($facility_id, $doctor_id, $address_id, $booking_id, $with);
101102
print_r($result);
102103
} catch (Exception $e) {
103104
echo 'Exception when calling BookingsApi->getBooking: ', $e->getMessage(), PHP_EOL;
@@ -113,6 +114,7 @@ Name | Type | Description | Notes
113114
**doctor_id** | **string**| ID of a doctor in a facility |
114115
**address_id** | **string**| ID of a doctor`s address in a facility |
115116
**booking_id** | **string**| ID of the Booking |
117+
**with** | [**\DocPlanner\Client\Model\BookingScopes[]**](../Model/\DocPlanner\Client\Model\BookingScopes.md)| | [optional]
116118

117119
### Return type
118120

docs/Model/AllOfBookingMoving.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# AllOfBookingMoving
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
7+
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
8+

docs/Model/Booking.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**canceled_by** | **string** | | [optional]
1313
**booked_at** | [**\DateTime**](\DateTime.md) | | [optional]
1414
**canceled_at** | [**\DateTime**](\DateTime.md) | | [optional]
15+
**moving** | [**AllOfBookingMoving**](AllOfBookingMoving.md) | | [optional]
1516
**patient** | [**\DocPlanner\Client\Model\BookingPatient**](BookingPatient.md) | | [optional]
1617
**address_service** | [**AllOfBookingAddressService**](AllOfBookingAddressService.md) | | [optional]
1718
**comment** | **string** | | [optional]

docs/Model/BookingMoving.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# BookingMoving
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**origin_booking_id** | **string** | | [optional]
7+
**newest_booking_id** | **string** | | [optional]
8+
9+
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
10+

lib/Api/APINotificationCallbacksApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* Welcome to Docplanner Integrations [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) API! This API gives You the ability to build Your own application and integrate it with Docplanner services.
1616
*
17-
* OpenAPI spec version: 1.3.3
17+
* OpenAPI spec version: 1.4.0
1818
*
1919
* Generated by: https://github.com/swagger-api/swagger-codegen.git
2020
* Swagger Codegen version: 3.0.24

lib/Api/AddressesApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* Welcome to Docplanner Integrations [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) API! This API gives You the ability to build Your own application and integrate it with Docplanner services.
1616
*
17-
* OpenAPI spec version: 1.3.3
17+
* OpenAPI spec version: 1.4.0
1818
*
1919
* Generated by: https://github.com/swagger-api/swagger-codegen.git
2020
* Swagger Codegen version: 3.0.24

lib/Api/BookingsApi.php

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* Welcome to Docplanner Integrations [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) API! This API gives You the ability to build Your own application and integrate it with Docplanner services.
1616
*
17-
* OpenAPI spec version: 1.3.3
17+
* OpenAPI spec version: 1.4.0
1818
*
1919
* Generated by: https://github.com/swagger-api/swagger-codegen.git
2020
* Swagger Codegen version: 3.0.24
@@ -407,14 +407,15 @@ protected function cancelBookingRequest($facility_id, $doctor_id, $address_id, $
407407
* @param string $doctor_id ID of a doctor in a facility (required)
408408
* @param string $address_id ID of a doctor`s address in a facility (required)
409409
* @param string $booking_id ID of the Booking (required)
410+
* @param \DocPlanner\Client\Model\BookingScopes[] $with with (optional)
410411
*
411412
* @throws \DocPlanner\Client\ApiException on non-2xx response
412413
* @throws \InvalidArgumentException
413414
* @return \DocPlanner\Client\Model\Booking
414415
*/
415-
public function getBooking($facility_id, $doctor_id, $address_id, $booking_id)
416+
public function getBooking($facility_id, $doctor_id, $address_id, $booking_id, $with = null)
416417
{
417-
list($response) = $this->getBookingWithHttpInfo($facility_id, $doctor_id, $address_id, $booking_id);
418+
list($response) = $this->getBookingWithHttpInfo($facility_id, $doctor_id, $address_id, $booking_id, $with);
418419
return $response;
419420
}
420421

@@ -425,15 +426,16 @@ public function getBooking($facility_id, $doctor_id, $address_id, $booking_id)
425426
* @param string $doctor_id ID of a doctor in a facility (required)
426427
* @param string $address_id ID of a doctor`s address in a facility (required)
427428
* @param string $booking_id ID of the Booking (required)
429+
* @param \DocPlanner\Client\Model\BookingScopes[] $with (optional)
428430
*
429431
* @throws \DocPlanner\Client\ApiException on non-2xx response
430432
* @throws \InvalidArgumentException
431433
* @return array of \DocPlanner\Client\Model\Booking, HTTP status code, HTTP response headers (array of strings)
432434
*/
433-
public function getBookingWithHttpInfo($facility_id, $doctor_id, $address_id, $booking_id)
435+
public function getBookingWithHttpInfo($facility_id, $doctor_id, $address_id, $booking_id, $with = null)
434436
{
435437
$returnType = '\DocPlanner\Client\Model\Booking';
436-
$request = $this->getBookingRequest($facility_id, $doctor_id, $address_id, $booking_id);
438+
$request = $this->getBookingRequest($facility_id, $doctor_id, $address_id, $booking_id, $with);
437439

438440
try {
439441
$options = $this->createHttpClientOption();
@@ -519,13 +521,14 @@ public function getBookingWithHttpInfo($facility_id, $doctor_id, $address_id, $b
519521
* @param string $doctor_id ID of a doctor in a facility (required)
520522
* @param string $address_id ID of a doctor`s address in a facility (required)
521523
* @param string $booking_id ID of the Booking (required)
524+
* @param \DocPlanner\Client\Model\BookingScopes[] $with (optional)
522525
*
523526
* @throws \InvalidArgumentException
524527
* @return \GuzzleHttp\Promise\PromiseInterface
525528
*/
526-
public function getBookingAsync($facility_id, $doctor_id, $address_id, $booking_id)
529+
public function getBookingAsync($facility_id, $doctor_id, $address_id, $booking_id, $with = null)
527530
{
528-
return $this->getBookingAsyncWithHttpInfo($facility_id, $doctor_id, $address_id, $booking_id)
531+
return $this->getBookingAsyncWithHttpInfo($facility_id, $doctor_id, $address_id, $booking_id, $with)
529532
->then(
530533
function ($response) {
531534
return $response[0];
@@ -542,14 +545,15 @@ function ($response) {
542545
* @param string $doctor_id ID of a doctor in a facility (required)
543546
* @param string $address_id ID of a doctor`s address in a facility (required)
544547
* @param string $booking_id ID of the Booking (required)
548+
* @param \DocPlanner\Client\Model\BookingScopes[] $with (optional)
545549
*
546550
* @throws \InvalidArgumentException
547551
* @return \GuzzleHttp\Promise\PromiseInterface
548552
*/
549-
public function getBookingAsyncWithHttpInfo($facility_id, $doctor_id, $address_id, $booking_id)
553+
public function getBookingAsyncWithHttpInfo($facility_id, $doctor_id, $address_id, $booking_id, $with = null)
550554
{
551555
$returnType = '\DocPlanner\Client\Model\Booking';
552-
$request = $this->getBookingRequest($facility_id, $doctor_id, $address_id, $booking_id);
556+
$request = $this->getBookingRequest($facility_id, $doctor_id, $address_id, $booking_id, $with);
553557

554558
return $this->client
555559
->sendAsync($request, $this->createHttpClientOption())
@@ -595,11 +599,12 @@ function ($exception) {
595599
* @param string $doctor_id ID of a doctor in a facility (required)
596600
* @param string $address_id ID of a doctor`s address in a facility (required)
597601
* @param string $booking_id ID of the Booking (required)
602+
* @param \DocPlanner\Client\Model\BookingScopes[] $with (optional)
598603
*
599604
* @throws \InvalidArgumentException
600605
* @return \GuzzleHttp\Psr7\Request
601606
*/
602-
protected function getBookingRequest($facility_id, $doctor_id, $address_id, $booking_id)
607+
protected function getBookingRequest($facility_id, $doctor_id, $address_id, $booking_id, $with = null)
603608
{
604609
// verify the required parameter 'facility_id' is set
605610
if ($facility_id === null || (is_array($facility_id) && count($facility_id) === 0)) {
@@ -633,6 +638,10 @@ protected function getBookingRequest($facility_id, $doctor_id, $address_id, $boo
633638
$httpBody = '';
634639
$multipart = false;
635640

641+
// query params
642+
if ($with !== null) {
643+
$queryParams['with'] = ObjectSerializer::toQueryValue($with);
644+
}
636645

637646
// path params
638647
if ($facility_id !== null) {

lib/Api/CalendarBreaksApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* Welcome to Docplanner Integrations [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) API! This API gives You the ability to build Your own application and integrate it with Docplanner services.
1616
*
17-
* OpenAPI spec version: 1.3.3
17+
* OpenAPI spec version: 1.4.0
1818
*
1919
* Generated by: https://github.com/swagger-api/swagger-codegen.git
2020
* Swagger Codegen version: 3.0.24

lib/Api/CalendarsApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* Welcome to Docplanner Integrations [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) API! This API gives You the ability to build Your own application and integrate it with Docplanner services.
1616
*
17-
* OpenAPI spec version: 1.3.3
17+
* OpenAPI spec version: 1.4.0
1818
*
1919
* Generated by: https://github.com/swagger-api/swagger-codegen.git
2020
* Swagger Codegen version: 3.0.24

lib/Api/DoctorsApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* Welcome to Docplanner Integrations [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) API! This API gives You the ability to build Your own application and integrate it with Docplanner services.
1616
*
17-
* OpenAPI spec version: 1.3.3
17+
* OpenAPI spec version: 1.4.0
1818
*
1919
* Generated by: https://github.com/swagger-api/swagger-codegen.git
2020
* Swagger Codegen version: 3.0.24

0 commit comments

Comments
 (0)