Skip to content

Commit dceb556

Browse files
committed
Release v1.9.2
* Introducing new optional **specialization_id** query parameter in **getServices** endpoint
1 parent 0846060 commit dceb556

7 files changed

Lines changed: 23 additions & 8 deletions

docs/Api/SlotsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ Name | Type | Description | Notes
196196
197197

198198

199-
Adds or replaces the slots. This will override all existing slots for given date ranges. If a duplicate request (with the same address and payload) is received: * it will be rejected with a 429 \"Too Many Requests\" status code if the original request was not fully processed yet * it will be ignored with a 201 status code for 3 minutes after the original request finished processing
199+
Overrides all existing slots for given date ranges. Can be used for adding, replacing or even removing the slots (check description for address_services in a request body). If a duplicate request (with the same address and payload) is received: * it will be rejected with a 429 \"Too Many Requests\" status code if the original request was not fully processed yet * it will be ignored with a 201 status code for 3 minutes after the original request finished processing
200200

201201
### Example
202202
```php

docs/Model/ReplaceSlotsRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**slots** | [**\DocPlanner\Client\Model\ReplaceSlotsRequestSlots[]**](ReplaceSlotsRequestSlots.md) | | [optional]
6+
**slots** | [**\DocPlanner\Client\Model\ReplaceSlotsRequestSlots[]**](ReplaceSlotsRequestSlots.md) | |
77

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

docs/Model/ReplaceSlotsRequestAddressServices.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**address_service_id** | **string** | | [optional]
7-
**duration** | **int** | | [optional]
6+
**address_service_id** | **string** | |
7+
**duration** | **int** | |
88

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

docs/Model/ReplaceSlotsRequestSlots.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**address_services** | [**\DocPlanner\Client\Model\ReplaceSlotsRequestAddressServices[]**](ReplaceSlotsRequestAddressServices.md) | | [optional]
7-
**start** | [**\DateTime**](\DateTime.md) | | [optional]
8-
**end** | [**\DateTime**](\DateTime.md) | | [optional]
6+
**address_services** | [**\DocPlanner\Client\Model\ReplaceSlotsRequestAddressServices[]**](ReplaceSlotsRequestAddressServices.md) | If set to null or empty collection, it will **remove** all the slots from a given time range | [optional]
7+
**start** | [**\DateTime**](\DateTime.md) | |
8+
**end** | [**\DateTime**](\DateTime.md) | |
99
**insurance_accepted** | **string** | Accepted insurance configuration. If **with-insurance-only** is passed, **insurance_providers** field MUST NOT be empty. If **without-insurance-only** is passed, **insurance_providers** MUST be empty | [optional] [default to 'with-and-without-insurance']
1010
**insurance_providers** | **int[]** | | [optional]
1111

lib/Model/ReplaceSlotsRequest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ public function listInvalidProperties()
181181
{
182182
$invalidProperties = [];
183183

184+
if ($this->container['slots'] === null) {
185+
$invalidProperties[] = "'slots' can't be null";
186+
}
184187
return $invalidProperties;
185188
}
186189

lib/Model/ReplaceSlotsRequestAddressServices.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,12 @@ public function listInvalidProperties()
187187
{
188188
$invalidProperties = [];
189189

190+
if ($this->container['address_service_id'] === null) {
191+
$invalidProperties[] = "'address_service_id' can't be null";
192+
}
193+
if ($this->container['duration'] === null) {
194+
$invalidProperties[] = "'duration' can't be null";
195+
}
190196
return $invalidProperties;
191197
}
192198

lib/Model/ReplaceSlotsRequestSlots.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,12 @@ public function listInvalidProperties()
220220
{
221221
$invalidProperties = [];
222222

223+
if ($this->container['start'] === null) {
224+
$invalidProperties[] = "'start' can't be null";
225+
}
226+
if ($this->container['end'] === null) {
227+
$invalidProperties[] = "'end' can't be null";
228+
}
223229
$allowedValues = $this->getInsuranceAcceptedAllowableValues();
224230
if (!is_null($this->container['insurance_accepted']) && !in_array($this->container['insurance_accepted'], $allowedValues, true)) {
225231
$invalidProperties[] = sprintf(
@@ -256,7 +262,7 @@ public function getAddressServices()
256262
/**
257263
* Sets address_services
258264
*
259-
* @param \DocPlanner\Client\Model\ReplaceSlotsRequestAddressServices[] $address_services address_services
265+
* @param \DocPlanner\Client\Model\ReplaceSlotsRequestAddressServices[] $address_services If set to null or empty collection, it will **remove** all the slots from a given time range
260266
*
261267
* @return $this
262268
*/

0 commit comments

Comments
 (0)