Skip to content

Commit 1996b1c

Browse files
committed
Release v1.0.26
* Introducing **address.insurance_support** scope for **getAddress** and **getAddresses** endpoints * Introducing **updateAddress** endpoint for changing insurance support type of an address
1 parent 96913a3 commit 1996b1c

File tree

101 files changed

+904
-107
lines changed

Some content is hidden

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

101 files changed

+904
-107
lines changed

docs/Api/AddressesApi.md

+62-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**getAddress**](AddressesApi.md#getaddress) | **GET** /facilities/{facility_id}/doctors/{doctor_id}/addresses/{address_id} |
88
[**getAddresses**](AddressesApi.md#getaddresses) | **GET** /facilities/{facility_id}/doctors/{doctor_id}/addresses |
9+
[**updateAddress**](AddressesApi.md#updateaddress) | **PATCH** /facilities/{facility_id}/doctors/{doctor_id}/addresses/{address_id} |
910

1011
# **getAddress**
1112
> \DocPlanner\Client\Model\Address getAddress($facility_id, $doctor_id, $address_id, $with)
1213
1314

1415

15-
Get a single address of a doctor Extensions: * `address.online_only` - with this parameter in url, query results will return additional parameter indicating if an address is dedicated to video consultations * `address.visit_payment` - with this parameter in url, query results will return additional parameter indicating if visit payment isr enabled * `address.commercial_type` - with this parameter in url, query results will return additional parameter indicating address commercial type
16+
Get a single address of a doctor Extensions: * `address.online_only` - with this parameter in url, query results will return additional parameter indicating if an address is dedicated to video consultations * `address.visit_payment` - with this parameter in url, query results will return additional parameter indicating if visit payment isr enabled * `address.commercial_type` - with this parameter in url, query results will return additional parameter indicating address commercial type * `address.insurance_support` - with this parameter in url, query results will return additional parameter indicating insurance support type of an address
1617

1718
### Example
1819
```php
@@ -71,7 +72,7 @@ Name | Type | Description | Notes
7172
7273

7374

74-
Get a list of addresses of a doctor Extensions: * `address.online_only` - with this parameter in url, query results will return additional parameter indicating if returned addresses are dedicated to video consultations * `address.visit_payment` - with this parameter in url, query results will return additional parameter indicating if visit payments are enabled * `address.commercial_type` - with this parameter in url, query results will return additional parameter indicating address commercial type
75+
Get a list of addresses of a doctor Extensions: * `address.online_only` - with this parameter in url, query results will return additional parameter indicating if returned addresses are dedicated to video consultations * `address.visit_payment` - with this parameter in url, query results will return additional parameter indicating if visit payments are enabled * `address.commercial_type` - with this parameter in url, query results will return additional parameter indicating address commercial type * `address.insurance_support` - with this parameter in url, query results will return additional parameter indicating insurance support type of an address
7576

7677
### Example
7778
```php
@@ -123,3 +124,62 @@ Name | Type | Description | Notes
123124

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

127+
# **updateAddress**
128+
> \DocPlanner\Client\Model\Address updateAddress($body, $facility_id, $doctor_id, $address_id)
129+
130+
131+
132+
Get a single address of a doctor
133+
134+
### Example
135+
```php
136+
<?php
137+
require_once(__DIR__ . '/vendor/autoload.php');
138+
139+
// Configure OAuth2 access token for authorization: oauth2
140+
$config = DocPlanner\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
141+
142+
$apiInstance = new DocPlanner\Client\Api\AddressesApi(
143+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
144+
// This is optional, `GuzzleHttp\Client` will be used as default.
145+
new GuzzleHttp\Client(),
146+
$config
147+
);
148+
$body = new \DocPlanner\Client\Model\UpdateAddressRequest(); // \DocPlanner\Client\Model\UpdateAddressRequest |
149+
$facility_id = "facility_id_example"; // string | ID of the Facility
150+
$doctor_id = "doctor_id_example"; // string | ID of a doctor in a facility
151+
$address_id = "address_id_example"; // string | ID of a doctor`s address in a facility
152+
153+
try {
154+
$result = $apiInstance->updateAddress($body, $facility_id, $doctor_id, $address_id);
155+
print_r($result);
156+
} catch (Exception $e) {
157+
echo 'Exception when calling AddressesApi->updateAddress: ', $e->getMessage(), PHP_EOL;
158+
}
159+
?>
160+
```
161+
162+
### Parameters
163+
164+
Name | Type | Description | Notes
165+
------------- | ------------- | ------------- | -------------
166+
**body** | [**\DocPlanner\Client\Model\UpdateAddressRequest**](../Model/UpdateAddressRequest.md)| |
167+
**facility_id** | **string**| ID of the Facility |
168+
**doctor_id** | **string**| ID of a doctor in a facility |
169+
**address_id** | **string**| ID of a doctor&#x60;s address in a facility |
170+
171+
### Return type
172+
173+
[**\DocPlanner\Client\Model\Address**](../Model/Address.md)
174+
175+
### Authorization
176+
177+
[oauth2](../../README.md#oauth2)
178+
179+
### HTTP request headers
180+
181+
- **Content-Type**: application/json
182+
- **Accept**: application/vnd.docplanner+json; charset=UTF-8, application/vnd.error+docplanner+json
183+
184+
[[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)
185+

docs/Model/Address.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**visit_payment** | **bool** | | [optional]
1212
**booking_extra_fields** | [**\DocPlanner\Client\Model\AddressBookingExtraFields**](AddressBookingExtraFields.md) | | [optional]
1313
**commercial_type** | **string** | | [optional]
14+
**insurance_support** | **string** | | [optional]
1415

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

docs/Model/UpdateAddressRequest.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# UpdateAddressRequest
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**insurance_support** | **string** | | [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

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

0 commit comments

Comments
 (0)