Skip to content

Commit

Permalink
Automated update by SDK Generator version:2.5.2 commit:c1ceda9
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 12, 2023
1 parent 1eeecfe commit c3b526e
Show file tree
Hide file tree
Showing 16 changed files with 10,012 additions and 560 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:
uses: ncipollo/release-action@v1
with:
commit: main
tag: 2.5.1
tag: 2.5.2

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apideck/php",
"version": "2.5.1",
"version": "2.5.2",
"description": "Apideck PHP SDK",
"keywords": [
"apideck",
Expand Down
2,356 changes: 2,232 additions & 124 deletions src/gen/lib/Api/AccountingApi.php

Large diffs are not rendered by default.

494 changes: 468 additions & 26 deletions src/gen/lib/Api/AtsApi.php

Large diffs are not rendered by default.

133 changes: 126 additions & 7 deletions src/gen/lib/Api/ConnectorApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -1184,6 +1184,7 @@ public function apisAllRequest($x_apideck_app_id = null, $cursor = null, $limit
// query params

if ('raw' === 'cursor') {
// Support for raw as true/false parameter
if('form' === 'form' && is_array($cursor)) {
foreach($cursor as $key => $value) {
$queryParams[$key] = $value;
Expand All @@ -1194,7 +1195,23 @@ public function apisAllRequest($x_apideck_app_id = null, $cursor = null, $limit
}
}

if ($cursor !== null && 'cursor' !== 'raw') {

if ($cursor !== null && 'sort' === 'cursor') {
// Support for sort options
$sort_data = $sort->jsonSerialize();
foreach($sort_data as $key => $value) {
$queryParams['sort['.$key.']'] = $value;
}
}

if ($cursor !== null && 'filter' === 'cursor') {
// Support for filter options
$filter_data = $filter->jsonSerialize();
foreach($filter_data as $key => $value) {
$queryParams['filter['.$key.']'] = $value;
}
}
if ($cursor !== null && !('cursor' === 'raw' || 'cursor' === 'sort' || 'cursor' === 'filter')) {
if('form' === 'form' && is_array($cursor)) {
foreach($cursor as $key => $value) {
$queryParams[$key] = $value;
Expand All @@ -1207,6 +1224,7 @@ public function apisAllRequest($x_apideck_app_id = null, $cursor = null, $limit
// query params

if ('raw' === 'limit') {
// Support for raw as true/false parameter
if('form' === 'form' && is_array($limit)) {
foreach($limit as $key => $value) {
$queryParams[$key] = $value;
Expand All @@ -1217,7 +1235,23 @@ public function apisAllRequest($x_apideck_app_id = null, $cursor = null, $limit
}
}

if ($limit !== null && 'limit' !== 'raw') {

if ($limit !== null && 'sort' === 'limit') {
// Support for sort options
$sort_data = $sort->jsonSerialize();
foreach($sort_data as $key => $value) {
$queryParams['sort['.$key.']'] = $value;
}
}

if ($limit !== null && 'filter' === 'limit') {
// Support for filter options
$filter_data = $filter->jsonSerialize();
foreach($filter_data as $key => $value) {
$queryParams['filter['.$key.']'] = $value;
}
}
if ($limit !== null && !('limit' === 'raw' || 'limit' === 'sort' || 'limit' === 'filter')) {
if('form' === 'form' && is_array($limit)) {
foreach($limit as $key => $value) {
$queryParams[$key] = $value;
Expand All @@ -1230,6 +1264,7 @@ public function apisAllRequest($x_apideck_app_id = null, $cursor = null, $limit
// query params

if ('raw' === 'filter') {
// Support for raw as true/false parameter
if('form' === 'deepObject' && is_array($filter)) {
foreach($filter as $key => $value) {
$queryParams[$key] = $value;
Expand All @@ -1240,7 +1275,23 @@ public function apisAllRequest($x_apideck_app_id = null, $cursor = null, $limit
}
}

if ($filter !== null && 'filter' !== 'raw') {

if ($filter !== null && 'sort' === 'filter') {
// Support for sort options
$sort_data = $sort->jsonSerialize();
foreach($sort_data as $key => $value) {
$queryParams['sort['.$key.']'] = $value;
}
}

if ($filter !== null && 'filter' === 'filter') {
// Support for filter options
$filter_data = $filter->jsonSerialize();
foreach($filter_data as $key => $value) {
$queryParams['filter['.$key.']'] = $value;
}
}
if ($filter !== null && !('filter' === 'raw' || 'filter' === 'sort' || 'filter' === 'filter')) {
if('form' === 'deepObject' && is_array($filter)) {
foreach($filter as $key => $value) {
$queryParams[$key] = $value;
Expand Down Expand Up @@ -2375,6 +2426,7 @@ public function connectorResourcesOneRequest($id, $resource_id, $x_apideck_app_i
// query params

if ('raw' === 'unified_api') {
// Support for raw as true/false parameter
if('form' === 'form' && is_array($unified_api)) {
foreach($unified_api as $key => $value) {
$queryParams[$key] = $value;
Expand All @@ -2385,7 +2437,23 @@ public function connectorResourcesOneRequest($id, $resource_id, $x_apideck_app_i
}
}

if ($unified_api !== null && 'unified_api' !== 'raw') {

if ($unified_api !== null && 'sort' === 'unified_api') {
// Support for sort options
$sort_data = $sort->jsonSerialize();
foreach($sort_data as $key => $value) {
$queryParams['sort['.$key.']'] = $value;
}
}

if ($unified_api !== null && 'filter' === 'unified_api') {
// Support for filter options
$filter_data = $filter->jsonSerialize();
foreach($filter_data as $key => $value) {
$queryParams['filter['.$key.']'] = $value;
}
}
if ($unified_api !== null && !('unified_api' === 'raw' || 'unified_api' === 'sort' || 'unified_api' === 'filter')) {
if('form' === 'form' && is_array($unified_api)) {
foreach($unified_api as $key => $value) {
$queryParams[$key] = $value;
Expand Down Expand Up @@ -2782,6 +2850,7 @@ public function connectorsAllRequest($x_apideck_app_id = null, $cursor = null, $
// query params

if ('raw' === 'cursor') {
// Support for raw as true/false parameter
if('form' === 'form' && is_array($cursor)) {
foreach($cursor as $key => $value) {
$queryParams[$key] = $value;
Expand All @@ -2792,7 +2861,23 @@ public function connectorsAllRequest($x_apideck_app_id = null, $cursor = null, $
}
}

if ($cursor !== null && 'cursor' !== 'raw') {

if ($cursor !== null && 'sort' === 'cursor') {
// Support for sort options
$sort_data = $sort->jsonSerialize();
foreach($sort_data as $key => $value) {
$queryParams['sort['.$key.']'] = $value;
}
}

if ($cursor !== null && 'filter' === 'cursor') {
// Support for filter options
$filter_data = $filter->jsonSerialize();
foreach($filter_data as $key => $value) {
$queryParams['filter['.$key.']'] = $value;
}
}
if ($cursor !== null && !('cursor' === 'raw' || 'cursor' === 'sort' || 'cursor' === 'filter')) {
if('form' === 'form' && is_array($cursor)) {
foreach($cursor as $key => $value) {
$queryParams[$key] = $value;
Expand All @@ -2805,6 +2890,7 @@ public function connectorsAllRequest($x_apideck_app_id = null, $cursor = null, $
// query params

if ('raw' === 'limit') {
// Support for raw as true/false parameter
if('form' === 'form' && is_array($limit)) {
foreach($limit as $key => $value) {
$queryParams[$key] = $value;
Expand All @@ -2815,7 +2901,23 @@ public function connectorsAllRequest($x_apideck_app_id = null, $cursor = null, $
}
}

if ($limit !== null && 'limit' !== 'raw') {

if ($limit !== null && 'sort' === 'limit') {
// Support for sort options
$sort_data = $sort->jsonSerialize();
foreach($sort_data as $key => $value) {
$queryParams['sort['.$key.']'] = $value;
}
}

if ($limit !== null && 'filter' === 'limit') {
// Support for filter options
$filter_data = $filter->jsonSerialize();
foreach($filter_data as $key => $value) {
$queryParams['filter['.$key.']'] = $value;
}
}
if ($limit !== null && !('limit' === 'raw' || 'limit' === 'sort' || 'limit' === 'filter')) {
if('form' === 'form' && is_array($limit)) {
foreach($limit as $key => $value) {
$queryParams[$key] = $value;
Expand All @@ -2828,6 +2930,7 @@ public function connectorsAllRequest($x_apideck_app_id = null, $cursor = null, $
// query params

if ('raw' === 'filter') {
// Support for raw as true/false parameter
if('form' === 'deepObject' && is_array($filter)) {
foreach($filter as $key => $value) {
$queryParams[$key] = $value;
Expand All @@ -2838,7 +2941,23 @@ public function connectorsAllRequest($x_apideck_app_id = null, $cursor = null, $
}
}

if ($filter !== null && 'filter' !== 'raw') {

if ($filter !== null && 'sort' === 'filter') {
// Support for sort options
$sort_data = $sort->jsonSerialize();
foreach($sort_data as $key => $value) {
$queryParams['sort['.$key.']'] = $value;
}
}

if ($filter !== null && 'filter' === 'filter') {
// Support for filter options
$filter_data = $filter->jsonSerialize();
foreach($filter_data as $key => $value) {
$queryParams['filter['.$key.']'] = $value;
}
}
if ($filter !== null && !('filter' === 'raw' || 'filter' === 'sort' || 'filter' === 'filter')) {
if('form' === 'deepObject' && is_array($filter)) {
foreach($filter as $key => $value) {
$queryParams[$key] = $value;
Expand Down
Loading

0 comments on commit c3b526e

Please sign in to comment.