Skip to content

Commit

Permalink
Release v1.0.12
Browse files Browse the repository at this point in the history
 * Returning whole Booking on moveBooking action.
  • Loading branch information
actions-user committed Sep 7, 2021
1 parent da237b5 commit e4902c5
Show file tree
Hide file tree
Showing 85 changed files with 136 additions and 98 deletions.
9 changes: 5 additions & 4 deletions docs/Api/BookingsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ Name | Type | Description | Notes
[[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)

# **moveBooking**
> moveBooking($body, $facility_id, $doctor_id, $address_id, $booking_id)
> \DocPlanner\Client\Model\Booking moveBooking($body, $facility_id, $doctor_id, $address_id, $booking_id)


Expand All @@ -220,7 +220,8 @@ $address_id = "address_id_example"; // string | ID of a doctor`s address in a fa
$booking_id = "booking_id_example"; // string | ID of the Booking

try {
$apiInstance->moveBooking($body, $facility_id, $doctor_id, $address_id, $booking_id);
$result = $apiInstance->moveBooking($body, $facility_id, $doctor_id, $address_id, $booking_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BookingsApi->moveBooking: ', $e->getMessage(), PHP_EOL;
}
Expand All @@ -239,7 +240,7 @@ Name | Type | Description | Notes

### Return type

void (empty response body)
[**\DocPlanner\Client\Model\Booking**](../Model/Booking.md)

### Authorization

Expand All @@ -248,7 +249,7 @@ void (empty response body)
### HTTP request headers

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

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

Expand Down
2 changes: 1 addition & 1 deletion lib/Api/APINotificationCallbacksApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/AddressesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
57 changes: 47 additions & 10 deletions lib/Api/BookingsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down Expand Up @@ -1101,11 +1101,12 @@ protected function getBookingsRequest($facility_id, $doctor_id, $address_id, $st
*
* @throws \DocPlanner\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return void
* @return \DocPlanner\Client\Model\Booking
*/
public function moveBooking($body, $facility_id, $doctor_id, $address_id, $booking_id)
{
$this->moveBookingWithHttpInfo($body, $facility_id, $doctor_id, $address_id, $booking_id);
list($response) = $this->moveBookingWithHttpInfo($body, $facility_id, $doctor_id, $address_id, $booking_id);
return $response;
}

/**
Expand All @@ -1119,11 +1120,11 @@ public function moveBooking($body, $facility_id, $doctor_id, $address_id, $booki
*
* @throws \DocPlanner\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of null, HTTP status code, HTTP response headers (array of strings)
* @return array of \DocPlanner\Client\Model\Booking, HTTP status code, HTTP response headers (array of strings)
*/
public function moveBookingWithHttpInfo($body, $facility_id, $doctor_id, $address_id, $booking_id)
{
$returnType = '';
$returnType = '\DocPlanner\Client\Model\Booking';
$request = $this->moveBookingRequest($body, $facility_id, $doctor_id, $address_id, $booking_id);

try {
Expand Down Expand Up @@ -1154,10 +1155,32 @@ public function moveBookingWithHttpInfo($body, $facility_id, $doctor_id, $addres
);
}

return [null, $statusCode, $response->getHeaders()];
$responseBody = $response->getBody();
if ($returnType === '\SplFileObject') {
$content = $responseBody; //stream goes to serializer
} else {
$content = $responseBody->getContents();
if (!in_array($returnType, ['string','integer','bool'])) {
$content = json_decode($content);
}
}

return [
ObjectSerializer::deserialize($content, $returnType, []),
$response->getStatusCode(),
$response->getHeaders()
];

} catch (ApiException $e) {
switch ($e->getCode()) {
case 201:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\DocPlanner\Client\Model\Booking',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
break;
case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
Expand Down Expand Up @@ -1235,14 +1258,28 @@ function ($response) {
*/
public function moveBookingAsyncWithHttpInfo($body, $facility_id, $doctor_id, $address_id, $booking_id)
{
$returnType = '';
$returnType = '\DocPlanner\Client\Model\Booking';
$request = $this->moveBookingRequest($body, $facility_id, $doctor_id, $address_id, $booking_id);

return $this->client
->sendAsync($request, $this->createHttpClientOption())
->then(
function ($response) use ($returnType) {
return [null, $response->getStatusCode(), $response->getHeaders()];
$responseBody = $response->getBody();
if ($returnType === '\SplFileObject') {
$content = $responseBody; //stream goes to serializer
} else {
$content = $responseBody->getContents();
if ($returnType !== 'string') {
$content = json_decode($content);
}
}

return [
ObjectSerializer::deserialize($content, $returnType, []),
$response->getStatusCode(),
$response->getHeaders()
];
},
function ($exception) {
$response = $exception->getResponse();
Expand Down Expand Up @@ -1355,11 +1392,11 @@ protected function moveBookingRequest($body, $facility_id, $doctor_id, $address_

if ($multipart) {
$headers = $this->headerSelector->selectHeadersForMultipart(
['application/vnd.error+docplanner+json']
['application/vnd.docplanner+json; charset=UTF-8', 'application/vnd.error+docplanner+json']
);
} else {
$headers = $this->headerSelector->selectHeaders(
['application/vnd.error+docplanner+json'],
['application/vnd.docplanner+json; charset=UTF-8', 'application/vnd.error+docplanner+json'],
['application/json']
);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/CalendarBreaksApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/CalendarsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/DoctorsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/FacilitiesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/InsurancesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/PatientPresenceApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/ServicesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/SlotsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
2 changes: 1 addition & 1 deletion lib/ApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
4 changes: 2 additions & 2 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down Expand Up @@ -395,7 +395,7 @@ public static function toDebugReport()
$report = 'PHP SDK (DocPlanner\Client) Debug Report:' . PHP_EOL;
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' OpenAPI Spec Version: 1.0.11' . PHP_EOL;
$report .= ' OpenAPI Spec Version: 1.0.12' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
2 changes: 1 addition & 1 deletion lib/HeaderSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/AddAddressInsuranceProviderRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/AddAddressServiceRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/AddCalendarBreakRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/AddressBookingExtraFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/AddressScopes.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/AddressService.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/AddressServiceNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/AddressServices.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/Addresses.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/AddressesScopes.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/BookSlotRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/Booking.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* 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.
*
* OpenAPI spec version: 1.0.11
* OpenAPI spec version: 1.0.12
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.24
Expand Down
Loading

0 comments on commit e4902c5

Please sign in to comment.