Skip to content

Commit 584e337

Browse files
committed
Release v1.0.8
* New (optional) property **send_notifications** for **CancelBookingRequest** (it is now possible to set if the patient should get notifications on canceling the visit)
1 parent 2eff458 commit 584e337

File tree

83 files changed

+404
-94
lines changed

Some content is hidden

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

83 files changed

+404
-94
lines changed

docs/Api/BookingsApi.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Method | HTTP request | Description
1111
[**requestOpinion**](BookingsApi.md#requestopinion) | **PUT** /facilities/{facility_id}/doctors/{doctor_id}/opinion-request |
1212

1313
# **cancelBooking**
14-
> cancelBooking($facility_id, $doctor_id, $address_id, $booking_id)
14+
> cancelBooking($facility_id, $doctor_id, $address_id, $booking_id, $body)
1515
1616

1717

@@ -35,9 +35,10 @@ $facility_id = "facility_id_example"; // string | ID of the Facility
3535
$doctor_id = "doctor_id_example"; // string | ID of a doctor in a facility
3636
$address_id = "address_id_example"; // string | ID of a doctor`s address in a facility
3737
$booking_id = "booking_id_example"; // string | ID of the Booking
38+
$body = new \DocPlanner\Client\Model\CancelBookingRequest(); // \DocPlanner\Client\Model\CancelBookingRequest |
3839

3940
try {
40-
$apiInstance->cancelBooking($facility_id, $doctor_id, $address_id, $booking_id);
41+
$apiInstance->cancelBooking($facility_id, $doctor_id, $address_id, $booking_id, $body);
4142
} catch (Exception $e) {
4243
echo 'Exception when calling BookingsApi->cancelBooking: ', $e->getMessage(), PHP_EOL;
4344
}
@@ -52,6 +53,7 @@ Name | Type | Description | Notes
5253
**doctor_id** | **string**| ID of a doctor in a facility |
5354
**address_id** | **string**| ID of a doctor`s address in a facility |
5455
**booking_id** | **string**| ID of the Booking |
56+
**body** | [**\DocPlanner\Client\Model\CancelBookingRequest**](../Model/CancelBookingRequest.md)| | [optional]
5557

5658
### Return type
5759

@@ -63,7 +65,7 @@ void (empty response body)
6365

6466
### HTTP request headers
6567

66-
- **Content-Type**: Not defined
68+
- **Content-Type**: application/json
6769
- **Accept**: application/vnd.error+docplanner+json
6870

6971
[[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)

docs/Model/CancelBookingRequest.md

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

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.0.7
17+
* OpenAPI spec version: 1.0.8
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.0.7
17+
* OpenAPI spec version: 1.0.8
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 & 11 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.0.7
17+
* OpenAPI spec version: 1.0.8
1818
*
1919
* Generated by: https://github.com/swagger-api/swagger-codegen.git
2020
* Swagger Codegen version: 3.0.24
@@ -93,14 +93,15 @@ public function getConfig()
9393
* @param string $doctor_id ID of a doctor in a facility (required)
9494
* @param string $address_id ID of a doctor`s address in a facility (required)
9595
* @param string $booking_id ID of the Booking (required)
96+
* @param \DocPlanner\Client\Model\CancelBookingRequest $body body (optional)
9697
*
9798
* @throws \DocPlanner\Client\ApiException on non-2xx response
9899
* @throws \InvalidArgumentException
99100
* @return void
100101
*/
101-
public function cancelBooking($facility_id, $doctor_id, $address_id, $booking_id)
102+
public function cancelBooking($facility_id, $doctor_id, $address_id, $booking_id, $body = null)
102103
{
103-
$this->cancelBookingWithHttpInfo($facility_id, $doctor_id, $address_id, $booking_id);
104+
$this->cancelBookingWithHttpInfo($facility_id, $doctor_id, $address_id, $booking_id, $body);
104105
}
105106

106107
/**
@@ -110,15 +111,16 @@ public function cancelBooking($facility_id, $doctor_id, $address_id, $booking_id
110111
* @param string $doctor_id ID of a doctor in a facility (required)
111112
* @param string $address_id ID of a doctor`s address in a facility (required)
112113
* @param string $booking_id ID of the Booking (required)
114+
* @param \DocPlanner\Client\Model\CancelBookingRequest $body (optional)
113115
*
114116
* @throws \DocPlanner\Client\ApiException on non-2xx response
115117
* @throws \InvalidArgumentException
116118
* @return array of null, HTTP status code, HTTP response headers (array of strings)
117119
*/
118-
public function cancelBookingWithHttpInfo($facility_id, $doctor_id, $address_id, $booking_id)
120+
public function cancelBookingWithHttpInfo($facility_id, $doctor_id, $address_id, $booking_id, $body = null)
119121
{
120122
$returnType = '';
121-
$request = $this->cancelBookingRequest($facility_id, $doctor_id, $address_id, $booking_id);
123+
$request = $this->cancelBookingRequest($facility_id, $doctor_id, $address_id, $booking_id, $body);
122124

123125
try {
124126
$options = $this->createHttpClientOption();
@@ -190,13 +192,14 @@ public function cancelBookingWithHttpInfo($facility_id, $doctor_id, $address_id,
190192
* @param string $doctor_id ID of a doctor in a facility (required)
191193
* @param string $address_id ID of a doctor`s address in a facility (required)
192194
* @param string $booking_id ID of the Booking (required)
195+
* @param \DocPlanner\Client\Model\CancelBookingRequest $body (optional)
193196
*
194197
* @throws \InvalidArgumentException
195198
* @return \GuzzleHttp\Promise\PromiseInterface
196199
*/
197-
public function cancelBookingAsync($facility_id, $doctor_id, $address_id, $booking_id)
200+
public function cancelBookingAsync($facility_id, $doctor_id, $address_id, $booking_id, $body = null)
198201
{
199-
return $this->cancelBookingAsyncWithHttpInfo($facility_id, $doctor_id, $address_id, $booking_id)
202+
return $this->cancelBookingAsyncWithHttpInfo($facility_id, $doctor_id, $address_id, $booking_id, $body)
200203
->then(
201204
function ($response) {
202205
return $response[0];
@@ -213,14 +216,15 @@ function ($response) {
213216
* @param string $doctor_id ID of a doctor in a facility (required)
214217
* @param string $address_id ID of a doctor`s address in a facility (required)
215218
* @param string $booking_id ID of the Booking (required)
219+
* @param \DocPlanner\Client\Model\CancelBookingRequest $body (optional)
216220
*
217221
* @throws \InvalidArgumentException
218222
* @return \GuzzleHttp\Promise\PromiseInterface
219223
*/
220-
public function cancelBookingAsyncWithHttpInfo($facility_id, $doctor_id, $address_id, $booking_id)
224+
public function cancelBookingAsyncWithHttpInfo($facility_id, $doctor_id, $address_id, $booking_id, $body = null)
221225
{
222226
$returnType = '';
223-
$request = $this->cancelBookingRequest($facility_id, $doctor_id, $address_id, $booking_id);
227+
$request = $this->cancelBookingRequest($facility_id, $doctor_id, $address_id, $booking_id, $body);
224228

225229
return $this->client
226230
->sendAsync($request, $this->createHttpClientOption())
@@ -252,11 +256,12 @@ function ($exception) {
252256
* @param string $doctor_id ID of a doctor in a facility (required)
253257
* @param string $address_id ID of a doctor`s address in a facility (required)
254258
* @param string $booking_id ID of the Booking (required)
259+
* @param \DocPlanner\Client\Model\CancelBookingRequest $body (optional)
255260
*
256261
* @throws \InvalidArgumentException
257262
* @return \GuzzleHttp\Psr7\Request
258263
*/
259-
protected function cancelBookingRequest($facility_id, $doctor_id, $address_id, $booking_id)
264+
protected function cancelBookingRequest($facility_id, $doctor_id, $address_id, $booking_id, $body = null)
260265
{
261266
// verify the required parameter 'facility_id' is set
262267
if ($facility_id === null || (is_array($facility_id) && count($facility_id) === 0)) {
@@ -326,6 +331,9 @@ protected function cancelBookingRequest($facility_id, $doctor_id, $address_id, $
326331

327332
// body params
328333
$_tempBody = null;
334+
if (isset($body)) {
335+
$_tempBody = $body;
336+
}
329337

330338
if ($multipart) {
331339
$headers = $this->headerSelector->selectHeadersForMultipart(
@@ -334,7 +342,7 @@ protected function cancelBookingRequest($facility_id, $doctor_id, $address_id, $
334342
} else {
335343
$headers = $this->headerSelector->selectHeaders(
336344
['application/vnd.error+docplanner+json'],
337-
[]
345+
['application/json']
338346
);
339347
}
340348

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.0.7
17+
* OpenAPI spec version: 1.0.8
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.0.7
17+
* OpenAPI spec version: 1.0.8
1818
*
1919
* Generated by: https://github.com/swagger-api/swagger-codegen.git
2020
* Swagger Codegen version: 3.0.24

lib/Api/FacilitiesApi.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.0.7
17+
* OpenAPI spec version: 1.0.8
1818
*
1919
* Generated by: https://github.com/swagger-api/swagger-codegen.git
2020
* Swagger Codegen version: 3.0.24

lib/Api/InsurancesApi.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.0.7
17+
* OpenAPI spec version: 1.0.8
1818
*
1919
* Generated by: https://github.com/swagger-api/swagger-codegen.git
2020
* Swagger Codegen version: 3.0.24

lib/Api/PatientPresenceApi.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.0.7
17+
* OpenAPI spec version: 1.0.8
1818
*
1919
* Generated by: https://github.com/swagger-api/swagger-codegen.git
2020
* Swagger Codegen version: 3.0.24

0 commit comments

Comments
 (0)