Skip to content

Commit bd1ef2d

Browse files
committed
Release v1.0.32
* Added **address-assigned** and **address-unassigned** callbacks
1 parent e83e0d7 commit bd1ef2d

File tree

106 files changed

+988
-118
lines changed

Some content is hidden

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

106 files changed

+988
-118
lines changed

docs/Api/BookingsApi.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ Name | Type | Description | Notes
130130
[[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)
131131

132132
# **getBookings**
133-
> \DocPlanner\Client\Model\Bookings getBookings($facility_id, $doctor_id, $address_id, $start, $end, $with)
133+
> \DocPlanner\Client\Model\Bookings getBookings($facility_id, $doctor_id, $address_id, $start, $end, $page, $limit, $with)
134134
135135

136136

137-
Get bookings list of a doctor in the facility Extensions: * `booking.patient` - with this parameter in url, query results will return patient data for every booking * `booking.address_service` - with this parameter in url, query results will return address service for every booking * `booking.presence` - with this parameter in url, query results will return additional information weather patient was present for every booking
137+
Get bookings list of a doctor in the facility Passing the `page` parameter in the query string will enable pagination. Extensions: * `booking.patient` - with this parameter in url, query results will return patient data for every booking * `booking.address_service` - with this parameter in url, query results will return address service for every booking * `booking.presence` - with this parameter in url, query results will return additional information weather patient was present for every booking
138138

139139
### Example
140140
```php
@@ -155,10 +155,12 @@ $doctor_id = "doctor_id_example"; // string | ID of a doctor in a facility
155155
$address_id = "address_id_example"; // string | ID of a doctor`s address in a facility
156156
$start = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | Slot start date (parameter must be urlencoded before sending request)
157157
$end = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | Slot start date (parameter must be urlencoded before sending request)
158+
$page = 56; // int | Page number to use for pagination. If not provided the pagination is not applied.
159+
$limit = 56; // int | Maximum number of items per page. If not provided the default value of 100 is applied if pagination is used.
158160
$with = array(new \DocPlanner\Client\Model\BookingsScopes()); // \DocPlanner\Client\Model\BookingsScopes[] |
159161

160162
try {
161-
$result = $apiInstance->getBookings($facility_id, $doctor_id, $address_id, $start, $end, $with);
163+
$result = $apiInstance->getBookings($facility_id, $doctor_id, $address_id, $start, $end, $page, $limit, $with);
162164
print_r($result);
163165
} catch (Exception $e) {
164166
echo 'Exception when calling BookingsApi->getBookings: ', $e->getMessage(), PHP_EOL;
@@ -175,6 +177,8 @@ Name | Type | Description | Notes
175177
**address_id** | **string**| ID of a doctor`s address in a facility |
176178
**start** | **\DateTime**| Slot start date (parameter must be urlencoded before sending request) |
177179
**end** | **\DateTime**| Slot start date (parameter must be urlencoded before sending request) |
180+
**page** | **int**| Page number to use for pagination. If not provided the pagination is not applied. | [optional]
181+
**limit** | **int**| Maximum number of items per page. If not provided the default value of 100 is applied if pagination is used. | [optional]
178182
**with** | [**\DocPlanner\Client\Model\BookingsScopes[]**](../Model/\DocPlanner\Client\Model\BookingsScopes.md)| | [optional]
179183

180184
### Return type
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# AddressAssignedNotification
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**name** | **string** | | [optional]
7+
**data** | [**\DocPlanner\Client\Model\AddressCommercialTypeChangedNotificationData**](AddressCommercialTypeChangedNotificationData.md) | | [optional]
8+
**created_at** | [**\DateTime**](\DateTime.md) | | [optional]
9+
10+
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# AddressUnassignedNotification
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**name** | **string** | | [optional]
7+
**data** | [**\DocPlanner\Client\Model\AddressCommercialTypeChangedNotificationData**](AddressCommercialTypeChangedNotificationData.md) | | [optional]
8+
**created_at** | [**\DateTime**](\DateTime.md) | | [optional]
9+
10+
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
11+

docs/Model/Bookings.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**_items** | [**\DocPlanner\Client\Model\Booking[]**](Booking.md) | | [optional]
7+
**page** | **int** | | [optional]
8+
**limit** | **int** | | [optional]
9+
**pages** | **int** | | [optional]
10+
**total** | **int** | | [optional]
711

812
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
913

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.30
17+
* OpenAPI spec version: 1.0.32
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.30
17+
* OpenAPI spec version: 1.0.32
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: 28 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.0.30
17+
* OpenAPI spec version: 1.0.32
1818
*
1919
* Generated by: https://github.com/swagger-api/swagger-codegen.git
2020
* Swagger Codegen version: 3.0.24
@@ -743,15 +743,17 @@ protected function getBookingRequest($facility_id, $doctor_id, $address_id, $boo
743743
* @param string $address_id ID of a doctor`s address in a facility (required)
744744
* @param \DateTime $start Slot start date (parameter must be urlencoded before sending request) (required)
745745
* @param \DateTime $end Slot start date (parameter must be urlencoded before sending request) (required)
746+
* @param int $page Page number to use for pagination. If not provided the pagination is not applied. (optional)
747+
* @param int $limit Maximum number of items per page. If not provided the default value of 100 is applied if pagination is used. (optional)
746748
* @param \DocPlanner\Client\Model\BookingsScopes[] $with with (optional)
747749
*
748750
* @throws \DocPlanner\Client\ApiException on non-2xx response
749751
* @throws \InvalidArgumentException
750752
* @return \DocPlanner\Client\Model\Bookings
751753
*/
752-
public function getBookings($facility_id, $doctor_id, $address_id, $start, $end, $with = null)
754+
public function getBookings($facility_id, $doctor_id, $address_id, $start, $end, $page = null, $limit = null, $with = null)
753755
{
754-
list($response) = $this->getBookingsWithHttpInfo($facility_id, $doctor_id, $address_id, $start, $end, $with);
756+
list($response) = $this->getBookingsWithHttpInfo($facility_id, $doctor_id, $address_id, $start, $end, $page, $limit, $with);
755757
return $response;
756758
}
757759

@@ -763,16 +765,18 @@ public function getBookings($facility_id, $doctor_id, $address_id, $start, $end,
763765
* @param string $address_id ID of a doctor`s address in a facility (required)
764766
* @param \DateTime $start Slot start date (parameter must be urlencoded before sending request) (required)
765767
* @param \DateTime $end Slot start date (parameter must be urlencoded before sending request) (required)
768+
* @param int $page Page number to use for pagination. If not provided the pagination is not applied. (optional)
769+
* @param int $limit Maximum number of items per page. If not provided the default value of 100 is applied if pagination is used. (optional)
766770
* @param \DocPlanner\Client\Model\BookingsScopes[] $with (optional)
767771
*
768772
* @throws \DocPlanner\Client\ApiException on non-2xx response
769773
* @throws \InvalidArgumentException
770774
* @return array of \DocPlanner\Client\Model\Bookings, HTTP status code, HTTP response headers (array of strings)
771775
*/
772-
public function getBookingsWithHttpInfo($facility_id, $doctor_id, $address_id, $start, $end, $with = null)
776+
public function getBookingsWithHttpInfo($facility_id, $doctor_id, $address_id, $start, $end, $page = null, $limit = null, $with = null)
773777
{
774778
$returnType = '\DocPlanner\Client\Model\Bookings';
775-
$request = $this->getBookingsRequest($facility_id, $doctor_id, $address_id, $start, $end, $with);
779+
$request = $this->getBookingsRequest($facility_id, $doctor_id, $address_id, $start, $end, $page, $limit, $with);
776780

777781
try {
778782
$options = $this->createHttpClientOption();
@@ -859,14 +863,16 @@ public function getBookingsWithHttpInfo($facility_id, $doctor_id, $address_id, $
859863
* @param string $address_id ID of a doctor`s address in a facility (required)
860864
* @param \DateTime $start Slot start date (parameter must be urlencoded before sending request) (required)
861865
* @param \DateTime $end Slot start date (parameter must be urlencoded before sending request) (required)
866+
* @param int $page Page number to use for pagination. If not provided the pagination is not applied. (optional)
867+
* @param int $limit Maximum number of items per page. If not provided the default value of 100 is applied if pagination is used. (optional)
862868
* @param \DocPlanner\Client\Model\BookingsScopes[] $with (optional)
863869
*
864870
* @throws \InvalidArgumentException
865871
* @return \GuzzleHttp\Promise\PromiseInterface
866872
*/
867-
public function getBookingsAsync($facility_id, $doctor_id, $address_id, $start, $end, $with = null)
873+
public function getBookingsAsync($facility_id, $doctor_id, $address_id, $start, $end, $page = null, $limit = null, $with = null)
868874
{
869-
return $this->getBookingsAsyncWithHttpInfo($facility_id, $doctor_id, $address_id, $start, $end, $with)
875+
return $this->getBookingsAsyncWithHttpInfo($facility_id, $doctor_id, $address_id, $start, $end, $page, $limit, $with)
870876
->then(
871877
function ($response) {
872878
return $response[0];
@@ -884,15 +890,17 @@ function ($response) {
884890
* @param string $address_id ID of a doctor`s address in a facility (required)
885891
* @param \DateTime $start Slot start date (parameter must be urlencoded before sending request) (required)
886892
* @param \DateTime $end Slot start date (parameter must be urlencoded before sending request) (required)
893+
* @param int $page Page number to use for pagination. If not provided the pagination is not applied. (optional)
894+
* @param int $limit Maximum number of items per page. If not provided the default value of 100 is applied if pagination is used. (optional)
887895
* @param \DocPlanner\Client\Model\BookingsScopes[] $with (optional)
888896
*
889897
* @throws \InvalidArgumentException
890898
* @return \GuzzleHttp\Promise\PromiseInterface
891899
*/
892-
public function getBookingsAsyncWithHttpInfo($facility_id, $doctor_id, $address_id, $start, $end, $with = null)
900+
public function getBookingsAsyncWithHttpInfo($facility_id, $doctor_id, $address_id, $start, $end, $page = null, $limit = null, $with = null)
893901
{
894902
$returnType = '\DocPlanner\Client\Model\Bookings';
895-
$request = $this->getBookingsRequest($facility_id, $doctor_id, $address_id, $start, $end, $with);
903+
$request = $this->getBookingsRequest($facility_id, $doctor_id, $address_id, $start, $end, $page, $limit, $with);
896904

897905
return $this->client
898906
->sendAsync($request, $this->createHttpClientOption())
@@ -939,12 +947,14 @@ function ($exception) {
939947
* @param string $address_id ID of a doctor`s address in a facility (required)
940948
* @param \DateTime $start Slot start date (parameter must be urlencoded before sending request) (required)
941949
* @param \DateTime $end Slot start date (parameter must be urlencoded before sending request) (required)
950+
* @param int $page Page number to use for pagination. If not provided the pagination is not applied. (optional)
951+
* @param int $limit Maximum number of items per page. If not provided the default value of 100 is applied if pagination is used. (optional)
942952
* @param \DocPlanner\Client\Model\BookingsScopes[] $with (optional)
943953
*
944954
* @throws \InvalidArgumentException
945955
* @return \GuzzleHttp\Psr7\Request
946956
*/
947-
protected function getBookingsRequest($facility_id, $doctor_id, $address_id, $start, $end, $with = null)
957+
protected function getBookingsRequest($facility_id, $doctor_id, $address_id, $start, $end, $page = null, $limit = null, $with = null)
948958
{
949959
// verify the required parameter 'facility_id' is set
950960
if ($facility_id === null || (is_array($facility_id) && count($facility_id) === 0)) {
@@ -993,6 +1003,14 @@ protected function getBookingsRequest($facility_id, $doctor_id, $address_id, $st
9931003
$queryParams['end'] = ObjectSerializer::toQueryValue($end, 'date-time');
9941004
}
9951005
// query params
1006+
if ($page !== null) {
1007+
$queryParams['page'] = ObjectSerializer::toQueryValue($page, null);
1008+
}
1009+
// query params
1010+
if ($limit !== null) {
1011+
$queryParams['limit'] = ObjectSerializer::toQueryValue($limit, null);
1012+
}
1013+
// query params
9961014
if ($with !== null) {
9971015
$queryParams['with'] = ObjectSerializer::toQueryValue($with, null);
9981016
}

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

0 commit comments

Comments
 (0)