Skip to content

Commit 38b5aab

Browse files
authored
v5.4.1 (#13)
- Fix a request method of the 'document move to folder' endpoint
1 parent d5ea9ec commit 38b5aab

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ or add the following to `composer.json`:
1919
```json
2020
{
2121
"require": {
22-
"pandadoc/php-client": "5.4.0"
22+
"pandadoc/php-client": "5.4.1"
2323
}
2424
}
2525
```
@@ -102,7 +102,7 @@ Class | Method | HTTP request | Description
102102
*DocumentsApi* | [**deleteDocument**](docs/Api/DocumentsApi.md#deletedocument) | **DELETE** /public/v1/documents/{id} | Delete document by id
103103
*DocumentsApi* | [**deleteLinkedObject**](docs/Api/DocumentsApi.md#deletelinkedobject) | **DELETE** /public/v1/documents/{id}/linked-objects/{linked_object_id} | Delete Linked Object
104104
*DocumentsApi* | [**detailsDocument**](docs/Api/DocumentsApi.md#detailsdocument) | **GET** /public/v1/documents/{id}/details | Document details
105-
*DocumentsApi* | [**documentMoveToFolder**](docs/Api/DocumentsApi.md#documentmovetofolder) | **DELETE** /public/v1/documents/{id}/move-to-folder/{folder_id} | Document move to folder
105+
*DocumentsApi* | [**documentMoveToFolder**](docs/Api/DocumentsApi.md#documentmovetofolder) | **POST** /public/v1/documents/{id}/move-to-folder/{folder_id} | Document move to folder
106106
*DocumentsApi* | [**downloadDocument**](docs/Api/DocumentsApi.md#downloaddocument) | **GET** /public/v1/documents/{id}/download | Document download
107107
*DocumentsApi* | [**downloadProtectedDocument**](docs/Api/DocumentsApi.md#downloadprotecteddocument) | **GET** /public/v1/documents/{id}/download-protected | Download document protected
108108
*DocumentsApi* | [**listDocuments**](docs/Api/DocumentsApi.md#listdocuments) | **GET** /public/v1/documents | List documents

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pandadoc/php-client",
3-
"version": "5.4.0",
3+
"version": "5.4.1",
44
"description": "The Official PandaDoc PHP client SDK",
55
"keywords": [
66
"openapi",

docs/Api/DocumentsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Method | HTTP request | Description
1111
[**deleteDocument()**](DocumentsApi.md#deleteDocument) | **DELETE** /public/v1/documents/{id} | Delete document by id
1212
[**deleteLinkedObject()**](DocumentsApi.md#deleteLinkedObject) | **DELETE** /public/v1/documents/{id}/linked-objects/{linked_object_id} | Delete Linked Object
1313
[**detailsDocument()**](DocumentsApi.md#detailsDocument) | **GET** /public/v1/documents/{id}/details | Document details
14-
[**documentMoveToFolder()**](DocumentsApi.md#documentMoveToFolder) | **DELETE** /public/v1/documents/{id}/move-to-folder/{folder_id} | Document move to folder
14+
[**documentMoveToFolder()**](DocumentsApi.md#documentMoveToFolder) | **POST** /public/v1/documents/{id}/move-to-folder/{folder_id} | Document move to folder
1515
[**downloadDocument()**](DocumentsApi.md#downloadDocument) | **GET** /public/v1/documents/{id}/download | Document download
1616
[**downloadProtectedDocument()**](DocumentsApi.md#downloadProtectedDocument) | **GET** /public/v1/documents/{id}/download-protected | Download document protected
1717
[**listDocuments()**](DocumentsApi.md#listDocuments) | **GET** /public/v1/documents | List documents

src/Api/DocumentsApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2749,7 +2749,7 @@ public function documentMoveToFolderRequest($id, $folderId)
27492749

27502750
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
27512751
return new Request(
2752-
'DELETE',
2752+
'POST',
27532753
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
27542754
$headers,
27552755
$httpBody

src/Configuration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class Configuration
8888
*
8989
* @var string
9090
*/
91-
protected $userAgent = 'pandadoc_php_client/5.4.0';
91+
protected $userAgent = 'pandadoc_php_client/5.4.1';
9292

9393
/**
9494
* Debug switch (default set to false)
@@ -396,8 +396,8 @@ public static function toDebugReport()
396396
$report = 'PHP SDK (PandaDoc\Client) Debug Report:' . PHP_EOL;
397397
$report .= ' OS: ' . php_uname() . PHP_EOL;
398398
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
399-
$report .= ' The version of the OpenAPI document: 5.4.0' . PHP_EOL;
400-
$report .= ' SDK Package Version: 5.4.0' . PHP_EOL;
399+
$report .= ' The version of the OpenAPI document: 5.4.1' . PHP_EOL;
400+
$report .= ' SDK Package Version: 5.4.1' . PHP_EOL;
401401
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
402402

403403
return $report;

0 commit comments

Comments
 (0)