Skip to content

Commit 96c3c25

Browse files
committed
Release v1.4.7
* Fixed **addAddressService** and **addCalendarBreak** response not having body
1 parent f1f9951 commit 96c3c25

File tree

115 files changed

+166
-128
lines changed

Some content is hidden

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

115 files changed

+166
-128
lines changed

docs/Api/CalendarBreaksApi.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Method | HTTP request | Description
1111
[**moveCalendarBreak**](CalendarBreaksApi.md#movecalendarbreak) | **PATCH** /facilities/{facility_id}/doctors/{doctor_id}/addresses/{address_id}/breaks/{break_id} |
1212

1313
# **addCalendarBreak**
14-
> addCalendarBreak($body, $facility_id, $doctor_id, $address_id)
14+
> \DocPlanner\Client\Model\CalendarBreak addCalendarBreak($body, $facility_id, $doctor_id, $address_id)
1515
1616

1717

@@ -37,7 +37,8 @@ $doctor_id = "doctor_id_example"; // string | ID of a doctor in a facility
3737
$address_id = "address_id_example"; // string | ID of a doctor`s address in a facility
3838

3939
try {
40-
$apiInstance->addCalendarBreak($body, $facility_id, $doctor_id, $address_id);
40+
$result = $apiInstance->addCalendarBreak($body, $facility_id, $doctor_id, $address_id);
41+
print_r($result);
4142
} catch (Exception $e) {
4243
echo 'Exception when calling CalendarBreaksApi->addCalendarBreak: ', $e->getMessage(), PHP_EOL;
4344
}
@@ -55,7 +56,7 @@ Name | Type | Description | Notes
5556

5657
### Return type
5758

58-
void (empty response body)
59+
[**\DocPlanner\Client\Model\CalendarBreak**](../Model/CalendarBreak.md)
5960

6061
### Authorization
6162

@@ -64,7 +65,7 @@ void (empty response body)
6465
### HTTP request headers
6566

6667
- **Content-Type**: application/json
67-
- **Accept**: application/vnd.error+docplanner+json
68+
- **Accept**: application/vnd.docplanner+json; charset=UTF-8, application/vnd.error+docplanner+json
6869

6970
[[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)
7071

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

lib/Api/CalendarBreaksApi.php

Lines changed: 47 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.4.6
17+
* OpenAPI spec version: 1.4.7
1818
*
1919
* Generated by: https://github.com/swagger-api/swagger-codegen.git
2020
* Swagger Codegen version: 3.0.24
@@ -96,11 +96,12 @@ public function getConfig()
9696
*
9797
* @throws \DocPlanner\Client\ApiException on non-2xx response
9898
* @throws \InvalidArgumentException
99-
* @return void
99+
* @return \DocPlanner\Client\Model\CalendarBreak
100100
*/
101101
public function addCalendarBreak($body, $facility_id, $doctor_id, $address_id)
102102
{
103-
$this->addCalendarBreakWithHttpInfo($body, $facility_id, $doctor_id, $address_id);
103+
list($response) = $this->addCalendarBreakWithHttpInfo($body, $facility_id, $doctor_id, $address_id);
104+
return $response;
104105
}
105106

106107
/**
@@ -113,11 +114,11 @@ public function addCalendarBreak($body, $facility_id, $doctor_id, $address_id)
113114
*
114115
* @throws \DocPlanner\Client\ApiException on non-2xx response
115116
* @throws \InvalidArgumentException
116-
* @return array of null, HTTP status code, HTTP response headers (array of strings)
117+
* @return array of \DocPlanner\Client\Model\CalendarBreak, HTTP status code, HTTP response headers (array of strings)
117118
*/
118119
public function addCalendarBreakWithHttpInfo($body, $facility_id, $doctor_id, $address_id)
119120
{
120-
$returnType = '';
121+
$returnType = '\DocPlanner\Client\Model\CalendarBreak';
121122
$request = $this->addCalendarBreakRequest($body, $facility_id, $doctor_id, $address_id);
122123

123124
try {
@@ -148,10 +149,32 @@ public function addCalendarBreakWithHttpInfo($body, $facility_id, $doctor_id, $a
148149
);
149150
}
150151

151-
return [null, $statusCode, $response->getHeaders()];
152+
$responseBody = $response->getBody();
153+
if ($returnType === '\SplFileObject') {
154+
$content = $responseBody; //stream goes to serializer
155+
} else {
156+
$content = $responseBody->getContents();
157+
if (!in_array($returnType, ['string','integer','bool'])) {
158+
$content = json_decode($content);
159+
}
160+
}
161+
162+
return [
163+
ObjectSerializer::deserialize($content, $returnType, []),
164+
$response->getStatusCode(),
165+
$response->getHeaders()
166+
];
152167

153168
} catch (ApiException $e) {
154169
switch ($e->getCode()) {
170+
case 201:
171+
$data = ObjectSerializer::deserialize(
172+
$e->getResponseBody(),
173+
'\DocPlanner\Client\Model\CalendarBreak',
174+
$e->getResponseHeaders()
175+
);
176+
$e->setResponseObject($data);
177+
break;
155178
case 400:
156179
$data = ObjectSerializer::deserialize(
157180
$e->getResponseBody(),
@@ -235,14 +258,28 @@ function ($response) {
235258
*/
236259
public function addCalendarBreakAsyncWithHttpInfo($body, $facility_id, $doctor_id, $address_id)
237260
{
238-
$returnType = '';
261+
$returnType = '\DocPlanner\Client\Model\CalendarBreak';
239262
$request = $this->addCalendarBreakRequest($body, $facility_id, $doctor_id, $address_id);
240263

241264
return $this->client
242265
->sendAsync($request, $this->createHttpClientOption())
243266
->then(
244267
function ($response) use ($returnType) {
245-
return [null, $response->getStatusCode(), $response->getHeaders()];
268+
$responseBody = $response->getBody();
269+
if ($returnType === '\SplFileObject') {
270+
$content = $responseBody; //stream goes to serializer
271+
} else {
272+
$content = $responseBody->getContents();
273+
if ($returnType !== 'string') {
274+
$content = json_decode($content);
275+
}
276+
}
277+
278+
return [
279+
ObjectSerializer::deserialize($content, $returnType, []),
280+
$response->getStatusCode(),
281+
$response->getHeaders()
282+
];
246283
},
247284
function ($exception) {
248285
$response = $exception->getResponse();
@@ -340,11 +377,11 @@ protected function addCalendarBreakRequest($body, $facility_id, $doctor_id, $add
340377

341378
if ($multipart) {
342379
$headers = $this->headerSelector->selectHeadersForMultipart(
343-
['application/vnd.error+docplanner+json']
380+
['application/vnd.docplanner+json; charset=UTF-8', 'application/vnd.error+docplanner+json']
344381
);
345382
} else {
346383
$headers = $this->headerSelector->selectHeaders(
347-
['application/vnd.error+docplanner+json'],
384+
['application/vnd.docplanner+json; charset=UTF-8', 'application/vnd.error+docplanner+json'],
348385
['application/json']
349386
);
350387
}

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

0 commit comments

Comments
 (0)