diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c28949e8d..868fddef2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,5 +14,5 @@ jobs: uses: ncipollo/release-action@v1 with: commit: main - tag: 2.5.0 + tag: 2.5.1 diff --git a/package.json b/package.json index 8abe5820d..937ef4788 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@apideck/php", - "version": "2.5.0", + "version": "2.5.1", "description": "Apideck PHP SDK", "keywords": [ "apideck", diff --git a/src/gen/lib/Api/AccountingApi.php b/src/gen/lib/Api/AccountingApi.php index c3442c33a..f8c181ada 100644 --- a/src/gen/lib/Api/AccountingApi.php +++ b/src/gen/lib/Api/AccountingApi.php @@ -457,7 +457,19 @@ public function balanceSheetOneRequest($x_apideck_consumer_id = null, $x_apideck $multipart = false; // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -468,7 +480,19 @@ public function balanceSheetOneRequest($x_apideck_consumer_id = null, $x_apideck } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -479,7 +503,19 @@ public function balanceSheetOneRequest($x_apideck_consumer_id = null, $x_apideck } } // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -910,7 +946,19 @@ public function billsAddRequest($bill, $raw = false, $x_apideck_consumer_id = nu $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -1368,7 +1416,19 @@ public function billsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -1379,7 +1439,19 @@ public function billsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -1390,7 +1462,19 @@ public function billsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -1401,7 +1485,19 @@ public function billsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($sort !== null) { + + if ('raw' === 'sort') { + if('form' === 'deepObject' && is_array($sort)) { + foreach($sort as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['sort'] = $sort ? 'true' : 'false'; + } + } + + if ($sort !== null && 'sort' !== 'raw') { if('form' === 'deepObject' && is_array($sort)) { foreach($sort as $key => $value) { $queryParams[$key] = $value; @@ -1412,7 +1508,19 @@ public function billsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -1423,7 +1531,19 @@ public function billsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -1854,7 +1974,19 @@ public function billsDeleteRequest($id, $x_apideck_consumer_id = null, $x_apidec $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -2298,7 +2430,19 @@ public function billsOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_a $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -2309,7 +2453,19 @@ public function billsOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_a } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -2759,7 +2915,19 @@ public function billsUpdateRequest($id, $bill, $x_apideck_consumer_id = null, $x $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -3198,7 +3366,19 @@ public function companyInfoOneRequest($raw = false, $x_apideck_consumer_id = nul $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -3209,7 +3389,19 @@ public function companyInfoOneRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -3640,7 +3832,19 @@ public function creditNotesAddRequest($credit_note, $raw = false, $x_apideck_con $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -4093,7 +4297,19 @@ public function creditNotesAllRequest($raw = false, $x_apideck_consumer_id = nul $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -4104,7 +4320,19 @@ public function creditNotesAllRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -4115,7 +4343,19 @@ public function creditNotesAllRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -4126,7 +4366,19 @@ public function creditNotesAllRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -4137,7 +4389,19 @@ public function creditNotesAllRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -4568,7 +4832,19 @@ public function creditNotesDeleteRequest($id, $x_apideck_consumer_id = null, $x_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -5012,7 +5288,19 @@ public function creditNotesOneRequest($id, $x_apideck_consumer_id = null, $x_api $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -5023,7 +5311,19 @@ public function creditNotesOneRequest($id, $x_apideck_consumer_id = null, $x_api } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -5473,7 +5773,19 @@ public function creditNotesUpdateRequest($id, $credit_note, $x_apideck_consumer_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -5918,7 +6230,19 @@ public function customersAddRequest($customer, $raw = false, $x_apideck_consumer $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -6376,7 +6700,19 @@ public function customersAllRequest($raw = false, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -6387,7 +6723,19 @@ public function customersAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -6398,7 +6746,19 @@ public function customersAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -6409,7 +6769,19 @@ public function customersAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -6420,7 +6792,19 @@ public function customersAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -6431,7 +6815,19 @@ public function customersAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -6862,7 +7258,19 @@ public function customersDeleteRequest($id, $x_apideck_consumer_id = null, $x_ap $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -7306,7 +7714,19 @@ public function customersOneRequest($id, $x_apideck_consumer_id = null, $x_apide $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -7317,7 +7737,19 @@ public function customersOneRequest($id, $x_apideck_consumer_id = null, $x_apide } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -7767,7 +8199,19 @@ public function customersUpdateRequest($id, $customer, $x_apideck_consumer_id = $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -8212,7 +8656,19 @@ public function invoiceItemsAddRequest($invoice_item, $raw = false, $x_apideck_c $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -8670,7 +9126,19 @@ public function invoiceItemsAllRequest($raw = false, $x_apideck_consumer_id = nu $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -8681,7 +9149,19 @@ public function invoiceItemsAllRequest($raw = false, $x_apideck_consumer_id = nu } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -8692,7 +9172,19 @@ public function invoiceItemsAllRequest($raw = false, $x_apideck_consumer_id = nu } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -8703,7 +9195,19 @@ public function invoiceItemsAllRequest($raw = false, $x_apideck_consumer_id = nu } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -8714,7 +9218,19 @@ public function invoiceItemsAllRequest($raw = false, $x_apideck_consumer_id = nu } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -8725,7 +9241,19 @@ public function invoiceItemsAllRequest($raw = false, $x_apideck_consumer_id = nu } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -9156,7 +9684,19 @@ public function invoiceItemsDeleteRequest($id, $x_apideck_consumer_id = null, $x $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -9600,7 +10140,19 @@ public function invoiceItemsOneRequest($id, $x_apideck_consumer_id = null, $x_ap $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -9611,7 +10163,19 @@ public function invoiceItemsOneRequest($id, $x_apideck_consumer_id = null, $x_ap } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -10061,7 +10625,19 @@ public function invoiceItemsUpdateRequest($id, $invoice_item, $x_apideck_consume $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -10505,8 +11081,20 @@ public function invoicesAddRequest($invoice, $raw = false, $x_apideck_consumer_i $httpBody = ''; $multipart = false; - // query params - if ($raw !== null) { + // query params + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -10964,7 +11552,19 @@ public function invoicesAllRequest($raw = false, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -10975,7 +11575,19 @@ public function invoicesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -10986,7 +11598,19 @@ public function invoicesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -10997,7 +11621,19 @@ public function invoicesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($sort !== null) { + + if ('raw' === 'sort') { + if('form' === 'deepObject' && is_array($sort)) { + foreach($sort as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['sort'] = $sort ? 'true' : 'false'; + } + } + + if ($sort !== null && 'sort' !== 'raw') { if('form' === 'deepObject' && is_array($sort)) { foreach($sort as $key => $value) { $queryParams[$key] = $value; @@ -11008,7 +11644,19 @@ public function invoicesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -11019,7 +11667,19 @@ public function invoicesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -11450,7 +12110,19 @@ public function invoicesDeleteRequest($id, $x_apideck_consumer_id = null, $x_api $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -11894,7 +12566,19 @@ public function invoicesOneRequest($id, $x_apideck_consumer_id = null, $x_apidec $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -11905,7 +12589,19 @@ public function invoicesOneRequest($id, $x_apideck_consumer_id = null, $x_apidec } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -12355,7 +13051,19 @@ public function invoicesUpdateRequest($id, $invoice, $x_apideck_consumer_id = nu $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -12800,7 +13508,19 @@ public function journalEntriesAddRequest($journal_entry, $raw = false, $x_apidec $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -13253,7 +13973,19 @@ public function journalEntriesAllRequest($raw = false, $x_apideck_consumer_id = $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -13264,7 +13996,19 @@ public function journalEntriesAllRequest($raw = false, $x_apideck_consumer_id = } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -13275,7 +14019,19 @@ public function journalEntriesAllRequest($raw = false, $x_apideck_consumer_id = } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -13286,7 +14042,19 @@ public function journalEntriesAllRequest($raw = false, $x_apideck_consumer_id = } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -13297,7 +14065,19 @@ public function journalEntriesAllRequest($raw = false, $x_apideck_consumer_id = } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -13728,7 +14508,19 @@ public function journalEntriesDeleteRequest($id, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -14172,7 +14964,19 @@ public function journalEntriesOneRequest($id, $x_apideck_consumer_id = null, $x_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -14183,7 +14987,19 @@ public function journalEntriesOneRequest($id, $x_apideck_consumer_id = null, $x_ } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -14633,7 +15449,19 @@ public function journalEntriesUpdateRequest($id, $journal_entry, $x_apideck_cons $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -15078,7 +15906,19 @@ public function ledgerAccountsAddRequest($request_body, $raw = false, $x_apideck $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -15531,7 +16371,19 @@ public function ledgerAccountsAllRequest($raw = false, $x_apideck_consumer_id = $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -15542,7 +16394,19 @@ public function ledgerAccountsAllRequest($raw = false, $x_apideck_consumer_id = } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -15553,18 +16417,42 @@ public function ledgerAccountsAllRequest($raw = false, $x_apideck_consumer_id = } } // query params - if ($limit !== null) { - if('form' === 'form' && is_array($limit)) { - foreach($limit as $key => $value) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit; + } + } + // query params + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { $queryParams[$key] = $value; } } else { - $queryParams['limit'] = $limit; + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; } } - // query params - if ($pass_through !== null) { + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -15575,7 +16463,19 @@ public function ledgerAccountsAllRequest($raw = false, $x_apideck_consumer_id = } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -16006,7 +16906,19 @@ public function ledgerAccountsDeleteRequest($id, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -16450,7 +17362,19 @@ public function ledgerAccountsOneRequest($id, $x_apideck_consumer_id = null, $x_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -16461,7 +17385,19 @@ public function ledgerAccountsOneRequest($id, $x_apideck_consumer_id = null, $x_ } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -16911,7 +17847,19 @@ public function ledgerAccountsUpdateRequest($id, $request_body, $x_apideck_consu $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -17356,7 +18304,19 @@ public function paymentsAddRequest($payment, $raw = false, $x_apideck_consumer_i $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -17814,7 +18774,19 @@ public function paymentsAllRequest($raw = false, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -17825,7 +18797,19 @@ public function paymentsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -17836,7 +18820,19 @@ public function paymentsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -17847,7 +18843,19 @@ public function paymentsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -17858,7 +18866,19 @@ public function paymentsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -17869,7 +18889,19 @@ public function paymentsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -18300,7 +19332,19 @@ public function paymentsDeleteRequest($id, $x_apideck_consumer_id = null, $x_api $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -18744,7 +19788,19 @@ public function paymentsOneRequest($id, $x_apideck_consumer_id = null, $x_apidec $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -18755,7 +19811,19 @@ public function paymentsOneRequest($id, $x_apideck_consumer_id = null, $x_apidec } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -19205,7 +20273,19 @@ public function paymentsUpdateRequest($id, $payment, $x_apideck_consumer_id = nu $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -19654,7 +20734,19 @@ public function profitAndLossOneRequest($raw = false, $x_apideck_consumer_id = n $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -19665,7 +20757,19 @@ public function profitAndLossOneRequest($raw = false, $x_apideck_consumer_id = n } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -19676,7 +20780,19 @@ public function profitAndLossOneRequest($raw = false, $x_apideck_consumer_id = n } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -19687,7 +20803,19 @@ public function profitAndLossOneRequest($raw = false, $x_apideck_consumer_id = n } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -20118,7 +21246,19 @@ public function purchaseOrdersAddRequest($purchase_order, $raw = false, $x_apide $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -20566,7 +21706,19 @@ public function purchaseOrdersAllRequest($raw = false, $x_apideck_consumer_id = $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -20577,7 +21729,19 @@ public function purchaseOrdersAllRequest($raw = false, $x_apideck_consumer_id = } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -20588,18 +21752,42 @@ public function purchaseOrdersAllRequest($raw = false, $x_apideck_consumer_id = } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; } } else { - $queryParams['pass_through'] = $pass_through; + $queryParams['pass_through'] = $pass_through; + } + } + // query params + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; } } - // query params - if ($limit !== null) { + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -21030,7 +22218,19 @@ public function purchaseOrdersDeleteRequest($id, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -21469,7 +22669,19 @@ public function purchaseOrdersOneRequest($id, $x_apideck_consumer_id = null, $x_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -21919,7 +23131,19 @@ public function purchaseOrdersUpdateRequest($id, $purchase_order, $x_apideck_con $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -22364,7 +23588,19 @@ public function suppliersAddRequest($supplier, $raw = false, $x_apideck_consumer $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -22822,7 +24058,19 @@ public function suppliersAllRequest($raw = false, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -22833,7 +24081,19 @@ public function suppliersAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -22844,7 +24104,19 @@ public function suppliersAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -22855,7 +24127,19 @@ public function suppliersAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -22866,7 +24150,19 @@ public function suppliersAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -22877,7 +24173,19 @@ public function suppliersAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -23308,7 +24616,19 @@ public function suppliersDeleteRequest($id, $x_apideck_consumer_id = null, $x_ap $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -23752,7 +25072,19 @@ public function suppliersOneRequest($id, $x_apideck_consumer_id = null, $x_apide $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -23763,7 +25095,19 @@ public function suppliersOneRequest($id, $x_apideck_consumer_id = null, $x_apide } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -24213,7 +25557,19 @@ public function suppliersUpdateRequest($id, $supplier, $x_apideck_consumer_id = $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -24658,7 +26014,19 @@ public function taxRatesAddRequest($tax_rate, $raw = false, $x_apideck_consumer_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -25116,7 +26484,19 @@ public function taxRatesAllRequest($raw = false, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -25127,7 +26507,19 @@ public function taxRatesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -25138,7 +26530,19 @@ public function taxRatesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -25149,7 +26553,19 @@ public function taxRatesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -25160,7 +26576,19 @@ public function taxRatesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -25171,7 +26599,19 @@ public function taxRatesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -25602,7 +27042,19 @@ public function taxRatesDeleteRequest($id, $x_apideck_consumer_id = null, $x_api $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -26046,7 +27498,19 @@ public function taxRatesOneRequest($id, $x_apideck_consumer_id = null, $x_apidec $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -26057,7 +27521,19 @@ public function taxRatesOneRequest($id, $x_apideck_consumer_id = null, $x_apidec } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -26507,7 +27983,19 @@ public function taxRatesUpdateRequest($id, $tax_rate, $x_apideck_consumer_id = n $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; diff --git a/src/gen/lib/Api/AtsApi.php b/src/gen/lib/Api/AtsApi.php index f3b6325bc..aae953244 100644 --- a/src/gen/lib/Api/AtsApi.php +++ b/src/gen/lib/Api/AtsApi.php @@ -458,7 +458,19 @@ public function applicantsAddRequest($applicant, $raw = false, $x_apideck_consum $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -916,7 +928,19 @@ public function applicantsAllRequest($raw = false, $x_apideck_consumer_id = null $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -927,7 +951,19 @@ public function applicantsAllRequest($raw = false, $x_apideck_consumer_id = null } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -938,7 +974,19 @@ public function applicantsAllRequest($raw = false, $x_apideck_consumer_id = null } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -949,7 +997,19 @@ public function applicantsAllRequest($raw = false, $x_apideck_consumer_id = null } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -960,7 +1020,19 @@ public function applicantsAllRequest($raw = false, $x_apideck_consumer_id = null } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -971,7 +1043,19 @@ public function applicantsAllRequest($raw = false, $x_apideck_consumer_id = null } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -1402,7 +1486,19 @@ public function applicantsDeleteRequest($id, $x_apideck_consumer_id = null, $x_a $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -1846,7 +1942,19 @@ public function applicantsOneRequest($id, $x_apideck_consumer_id = null, $x_apid $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -1857,7 +1965,19 @@ public function applicantsOneRequest($id, $x_apideck_consumer_id = null, $x_apid } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -2307,7 +2427,19 @@ public function applicantsUpdateRequest($id, $applicant, $x_apideck_consumer_id $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -2752,7 +2884,19 @@ public function applicationsAddRequest($application, $raw = false, $x_apideck_co $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -3200,7 +3344,19 @@ public function applicationsAllRequest($raw = false, $x_apideck_consumer_id = nu $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -3211,7 +3367,19 @@ public function applicationsAllRequest($raw = false, $x_apideck_consumer_id = nu } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -3222,7 +3390,19 @@ public function applicationsAllRequest($raw = false, $x_apideck_consumer_id = nu } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -3233,7 +3413,19 @@ public function applicationsAllRequest($raw = false, $x_apideck_consumer_id = nu } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -3664,7 +3856,19 @@ public function applicationsDeleteRequest($id, $x_apideck_consumer_id = null, $x $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -4103,7 +4307,19 @@ public function applicationsOneRequest($id, $x_apideck_consumer_id = null, $x_ap $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -4553,7 +4769,19 @@ public function applicationsUpdateRequest($id, $application, $x_apideck_consumer $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -5014,7 +5242,19 @@ public function jobsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_a $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -5025,7 +5265,19 @@ public function jobsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_a } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -5036,7 +5288,19 @@ public function jobsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_a } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -5047,7 +5311,19 @@ public function jobsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_a } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -5058,7 +5334,19 @@ public function jobsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_a } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -5494,7 +5782,19 @@ public function jobsOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_ap $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -5505,7 +5805,19 @@ public function jobsOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_ap } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; diff --git a/src/gen/lib/Api/ConnectorApi.php b/src/gen/lib/Api/ConnectorApi.php index 1be96bd05..b74b29c60 100644 --- a/src/gen/lib/Api/ConnectorApi.php +++ b/src/gen/lib/Api/ConnectorApi.php @@ -1182,7 +1182,19 @@ public function apisAllRequest($x_apideck_app_id = null, $cursor = null, $limit $multipart = false; // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -1193,7 +1205,19 @@ public function apisAllRequest($x_apideck_app_id = null, $cursor = null, $limit } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -1204,7 +1228,19 @@ public function apisAllRequest($x_apideck_app_id = null, $cursor = null, $limit } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -2337,7 +2373,19 @@ public function connectorResourcesOneRequest($id, $resource_id, $x_apideck_app_i $multipart = false; // query params - if ($unified_api !== null) { + + if ('raw' === 'unified_api') { + if('form' === 'form' && is_array($unified_api)) { + foreach($unified_api as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['unified_api'] = $unified_api ? 'true' : 'false'; + } + } + + if ($unified_api !== null && 'unified_api' !== 'raw') { if('form' === 'form' && is_array($unified_api)) { foreach($unified_api as $key => $value) { $queryParams[$key] = $value; @@ -2732,7 +2780,19 @@ public function connectorsAllRequest($x_apideck_app_id = null, $cursor = null, $ $multipart = false; // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -2743,7 +2803,19 @@ public function connectorsAllRequest($x_apideck_app_id = null, $cursor = null, $ } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -2754,7 +2826,19 @@ public function connectorsAllRequest($x_apideck_app_id = null, $cursor = null, $ } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; diff --git a/src/gen/lib/Api/CrmApi.php b/src/gen/lib/Api/CrmApi.php index 3e01004c8..50c518ea2 100644 --- a/src/gen/lib/Api/CrmApi.php +++ b/src/gen/lib/Api/CrmApi.php @@ -458,7 +458,19 @@ public function activitiesAddRequest($activity, $raw = false, $x_apideck_consume $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -916,7 +928,19 @@ public function activitiesAllRequest($raw = false, $x_apideck_consumer_id = null $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -927,7 +951,19 @@ public function activitiesAllRequest($raw = false, $x_apideck_consumer_id = null } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -938,7 +974,19 @@ public function activitiesAllRequest($raw = false, $x_apideck_consumer_id = null } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -949,7 +997,19 @@ public function activitiesAllRequest($raw = false, $x_apideck_consumer_id = null } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -960,7 +1020,19 @@ public function activitiesAllRequest($raw = false, $x_apideck_consumer_id = null } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -971,7 +1043,19 @@ public function activitiesAllRequest($raw = false, $x_apideck_consumer_id = null } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -1402,7 +1486,19 @@ public function activitiesDeleteRequest($id, $x_apideck_consumer_id = null, $x_a $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -1846,7 +1942,19 @@ public function activitiesOneRequest($id, $x_apideck_consumer_id = null, $x_apid $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -1857,7 +1965,19 @@ public function activitiesOneRequest($id, $x_apideck_consumer_id = null, $x_apid } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -2307,7 +2427,19 @@ public function activitiesUpdateRequest($id, $activity, $x_apideck_consumer_id = $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -2752,7 +2884,19 @@ public function companiesAddRequest($company, $raw = false, $x_apideck_consumer_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -3215,7 +3359,19 @@ public function companiesAllRequest($raw = false, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -3226,7 +3382,19 @@ public function companiesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -3237,7 +3405,19 @@ public function companiesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -3248,7 +3428,19 @@ public function companiesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -3259,7 +3451,19 @@ public function companiesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($sort !== null) { + + if ('raw' === 'sort') { + if('form' === 'deepObject' && is_array($sort)) { + foreach($sort as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['sort'] = $sort ? 'true' : 'false'; + } + } + + if ($sort !== null && 'sort' !== 'raw') { if('form' === 'deepObject' && is_array($sort)) { foreach($sort as $key => $value) { $queryParams[$key] = $value; @@ -3270,7 +3474,19 @@ public function companiesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -3281,7 +3497,19 @@ public function companiesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -3712,7 +3940,19 @@ public function companiesDeleteRequest($id, $raw = false, $x_apideck_consumer_id $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -4156,7 +4396,19 @@ public function companiesOneRequest($id, $raw = false, $x_apideck_consumer_id = $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -4167,7 +4419,19 @@ public function companiesOneRequest($id, $raw = false, $x_apideck_consumer_id = } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -4617,7 +4881,19 @@ public function companiesUpdateRequest($id, $company, $raw = false, $x_apideck_c $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -5062,7 +5338,19 @@ public function contactsAddRequest($contact, $raw = false, $x_apideck_consumer_i $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -5525,40 +5813,88 @@ public function contactsAllRequest($raw = false, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; } } else { - $queryParams['raw'] = $raw; + $queryParams['raw'] = $raw ? 'true' : 'false'; } } - // query params - if ($cursor !== null) { - if('form' === 'form' && is_array($cursor)) { - foreach($cursor as $key => $value) { + + if ($raw !== null && 'raw' !== 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { $queryParams[$key] = $value; } } else { - $queryParams['cursor'] = $cursor; + $queryParams['raw'] = $raw; } } // query params - if ($limit !== null) { - if('form' === 'form' && is_array($limit)) { - foreach($limit as $key => $value) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { $queryParams[$key] = $value; } } else { - $queryParams['limit'] = $limit; + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor; + } + } + // query params + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit; } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -5569,7 +5905,19 @@ public function contactsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($sort !== null) { + + if ('raw' === 'sort') { + if('form' === 'deepObject' && is_array($sort)) { + foreach($sort as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['sort'] = $sort ? 'true' : 'false'; + } + } + + if ($sort !== null && 'sort' !== 'raw') { if('form' === 'deepObject' && is_array($sort)) { foreach($sort as $key => $value) { $queryParams[$key] = $value; @@ -5580,7 +5928,19 @@ public function contactsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -5591,7 +5951,19 @@ public function contactsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -6022,7 +6394,19 @@ public function contactsDeleteRequest($id, $x_apideck_consumer_id = null, $x_api $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -6466,7 +6850,19 @@ public function contactsOneRequest($id, $x_apideck_consumer_id = null, $x_apidec $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -6477,7 +6873,19 @@ public function contactsOneRequest($id, $x_apideck_consumer_id = null, $x_apidec } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -6927,7 +7335,19 @@ public function contactsUpdateRequest($id, $contact, $x_apideck_consumer_id = nu $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -7372,7 +7792,19 @@ public function leadsAddRequest($lead, $raw = false, $x_apideck_consumer_id = nu $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -7835,7 +8267,19 @@ public function leadsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -7846,7 +8290,19 @@ public function leadsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -7857,7 +8313,19 @@ public function leadsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -7868,7 +8336,19 @@ public function leadsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -7879,7 +8359,19 @@ public function leadsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($sort !== null) { + + if ('raw' === 'sort') { + if('form' === 'deepObject' && is_array($sort)) { + foreach($sort as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['sort'] = $sort ? 'true' : 'false'; + } + } + + if ($sort !== null && 'sort' !== 'raw') { if('form' === 'deepObject' && is_array($sort)) { foreach($sort as $key => $value) { $queryParams[$key] = $value; @@ -7890,7 +8382,19 @@ public function leadsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -7901,7 +8405,19 @@ public function leadsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -8332,7 +8848,19 @@ public function leadsDeleteRequest($id, $x_apideck_consumer_id = null, $x_apidec $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -8776,7 +9304,19 @@ public function leadsOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_a $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -8787,7 +9327,19 @@ public function leadsOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_a } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -9237,7 +9789,19 @@ public function leadsUpdateRequest($id, $lead, $x_apideck_consumer_id = null, $x $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -9682,7 +10246,19 @@ public function notesAddRequest($note, $raw = false, $x_apideck_consumer_id = nu $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -10135,7 +10711,19 @@ public function notesAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -10146,7 +10734,19 @@ public function notesAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -10157,7 +10757,19 @@ public function notesAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -10168,7 +10780,19 @@ public function notesAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -10179,7 +10803,19 @@ public function notesAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -10610,7 +11246,19 @@ public function notesDeleteRequest($id, $x_apideck_consumer_id = null, $x_apidec $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -11054,7 +11702,19 @@ public function notesOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_a $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -11065,7 +11725,19 @@ public function notesOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_a } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -11515,7 +12187,19 @@ public function notesUpdateRequest($id, $note, $x_apideck_consumer_id = null, $x $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -11960,7 +12644,19 @@ public function opportunitiesAddRequest($opportunity, $raw = false, $x_apideck_c $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -12423,7 +13119,19 @@ public function opportunitiesAllRequest($raw = false, $x_apideck_consumer_id = n $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -12434,7 +13142,19 @@ public function opportunitiesAllRequest($raw = false, $x_apideck_consumer_id = n } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -12445,7 +13165,19 @@ public function opportunitiesAllRequest($raw = false, $x_apideck_consumer_id = n } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -12456,7 +13188,19 @@ public function opportunitiesAllRequest($raw = false, $x_apideck_consumer_id = n } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -12467,18 +13211,42 @@ public function opportunitiesAllRequest($raw = false, $x_apideck_consumer_id = n } } // query params - if ($sort !== null) { + + if ('raw' === 'sort') { + if('form' === 'deepObject' && is_array($sort)) { + foreach($sort as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['sort'] = $sort ? 'true' : 'false'; + } + } + + if ($sort !== null && 'sort' !== 'raw') { if('form' === 'deepObject' && is_array($sort)) { foreach($sort as $key => $value) { $queryParams[$key] = $value; } } else { - $queryParams['sort'] = $sort; + $queryParams['sort'] = $sort; + } + } + // query params + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; } } - // query params - if ($pass_through !== null) { + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -12489,7 +13257,19 @@ public function opportunitiesAllRequest($raw = false, $x_apideck_consumer_id = n } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -12920,7 +13700,19 @@ public function opportunitiesDeleteRequest($id, $x_apideck_consumer_id = null, $ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -13364,7 +14156,19 @@ public function opportunitiesOneRequest($id, $x_apideck_consumer_id = null, $x_a $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -13375,7 +14179,19 @@ public function opportunitiesOneRequest($id, $x_apideck_consumer_id = null, $x_a } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -13825,7 +14641,19 @@ public function opportunitiesUpdateRequest($id, $opportunity, $x_apideck_consume $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -14270,7 +15098,19 @@ public function pipelinesAddRequest($pipeline, $raw = false, $x_apideck_consumer $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -14723,7 +15563,19 @@ public function pipelinesAllRequest($raw = false, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -14734,7 +15586,19 @@ public function pipelinesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -14745,7 +15609,19 @@ public function pipelinesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -14756,7 +15632,19 @@ public function pipelinesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -14767,7 +15655,19 @@ public function pipelinesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -15198,7 +16098,19 @@ public function pipelinesDeleteRequest($id, $x_apideck_consumer_id = null, $x_ap $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -15642,7 +16554,19 @@ public function pipelinesOneRequest($id, $x_apideck_consumer_id = null, $x_apide $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -15653,7 +16577,19 @@ public function pipelinesOneRequest($id, $x_apideck_consumer_id = null, $x_apide } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -16103,7 +17039,19 @@ public function pipelinesUpdateRequest($id, $pipeline, $x_apideck_consumer_id = $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -16548,7 +17496,19 @@ public function usersAddRequest($user, $raw = false, $x_apideck_consumer_id = nu $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -17001,7 +17961,19 @@ public function usersAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -17012,7 +17984,19 @@ public function usersAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -17023,7 +18007,19 @@ public function usersAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -17034,7 +18030,19 @@ public function usersAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -17045,7 +18053,19 @@ public function usersAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -17476,7 +18496,19 @@ public function usersDeleteRequest($id, $x_apideck_consumer_id = null, $x_apidec $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -17920,7 +18952,19 @@ public function usersOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_a $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -17931,7 +18975,19 @@ public function usersOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_a } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -18381,7 +19437,19 @@ public function usersUpdateRequest($id, $user, $x_apideck_consumer_id = null, $x $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; diff --git a/src/gen/lib/Api/EcommerceApi.php b/src/gen/lib/Api/EcommerceApi.php index cff517df3..7449c3f06 100644 --- a/src/gen/lib/Api/EcommerceApi.php +++ b/src/gen/lib/Api/EcommerceApi.php @@ -479,7 +479,19 @@ public function customersAllRequest($raw = false, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -490,7 +502,19 @@ public function customersAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -501,7 +525,19 @@ public function customersAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -512,7 +548,19 @@ public function customersAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -523,7 +571,19 @@ public function customersAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -534,7 +594,19 @@ public function customersAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -970,7 +1042,19 @@ public function customersOneRequest($id, $x_apideck_consumer_id = null, $x_apide $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -981,7 +1065,19 @@ public function customersOneRequest($id, $x_apideck_consumer_id = null, $x_apide } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -1441,7 +1537,19 @@ public function ordersAllRequest($raw = false, $x_apideck_consumer_id = null, $x $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -1452,7 +1560,19 @@ public function ordersAllRequest($raw = false, $x_apideck_consumer_id = null, $x } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -1463,7 +1583,19 @@ public function ordersAllRequest($raw = false, $x_apideck_consumer_id = null, $x } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -1474,7 +1606,19 @@ public function ordersAllRequest($raw = false, $x_apideck_consumer_id = null, $x } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -1485,7 +1629,19 @@ public function ordersAllRequest($raw = false, $x_apideck_consumer_id = null, $x } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -1496,7 +1652,19 @@ public function ordersAllRequest($raw = false, $x_apideck_consumer_id = null, $x } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -1932,7 +2100,19 @@ public function ordersOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -1943,7 +2123,19 @@ public function ordersOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_ } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -2398,7 +2590,19 @@ public function productsAllRequest($raw = false, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -2409,7 +2613,19 @@ public function productsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -2420,7 +2636,19 @@ public function productsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -2431,7 +2659,19 @@ public function productsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -2442,7 +2682,19 @@ public function productsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -2878,7 +3130,19 @@ public function productsOneRequest($id, $x_apideck_consumer_id = null, $x_apidec $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -2889,7 +3153,19 @@ public function productsOneRequest($id, $x_apideck_consumer_id = null, $x_apidec } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -3322,7 +3598,19 @@ public function storesOneRequest($x_apideck_consumer_id = null, $x_apideck_app_i $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -3333,7 +3621,19 @@ public function storesOneRequest($x_apideck_consumer_id = null, $x_apideck_app_i } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; diff --git a/src/gen/lib/Api/FileStorageApi.php b/src/gen/lib/Api/FileStorageApi.php index e243392bb..830d84ea8 100644 --- a/src/gen/lib/Api/FileStorageApi.php +++ b/src/gen/lib/Api/FileStorageApi.php @@ -458,7 +458,19 @@ public function driveGroupsAddRequest($drive_group, $raw = false, $x_apideck_con $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -916,7 +928,19 @@ public function driveGroupsAllRequest($raw = false, $x_apideck_consumer_id = nul $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -927,7 +951,19 @@ public function driveGroupsAllRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -938,7 +974,19 @@ public function driveGroupsAllRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -949,7 +997,19 @@ public function driveGroupsAllRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -960,7 +1020,19 @@ public function driveGroupsAllRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -971,7 +1043,19 @@ public function driveGroupsAllRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -1402,7 +1486,19 @@ public function driveGroupsDeleteRequest($id, $x_apideck_consumer_id = null, $x_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -1846,7 +1942,19 @@ public function driveGroupsOneRequest($id, $x_apideck_consumer_id = null, $x_api $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -1857,7 +1965,19 @@ public function driveGroupsOneRequest($id, $x_apideck_consumer_id = null, $x_api } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -2307,7 +2427,19 @@ public function driveGroupsUpdateRequest($id, $drive_group, $x_apideck_consumer_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -2752,7 +2884,19 @@ public function drivesAddRequest($drive, $raw = false, $x_apideck_consumer_id = $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -3205,7 +3349,19 @@ public function drivesAllRequest($raw = false, $x_apideck_consumer_id = null, $x $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -3216,7 +3372,19 @@ public function drivesAllRequest($raw = false, $x_apideck_consumer_id = null, $x } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -3227,7 +3395,19 @@ public function drivesAllRequest($raw = false, $x_apideck_consumer_id = null, $x } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -3238,7 +3418,19 @@ public function drivesAllRequest($raw = false, $x_apideck_consumer_id = null, $x } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -3249,7 +3441,19 @@ public function drivesAllRequest($raw = false, $x_apideck_consumer_id = null, $x } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -3680,7 +3884,19 @@ public function drivesDeleteRequest($id, $x_apideck_consumer_id = null, $x_apide $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -4124,7 +4340,19 @@ public function drivesOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -4135,7 +4363,19 @@ public function drivesOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_ } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -4585,7 +4825,19 @@ public function drivesUpdateRequest($id, $drive, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -5056,7 +5308,19 @@ public function filesAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -5067,7 +5331,19 @@ public function filesAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -5078,7 +5354,19 @@ public function filesAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -5089,7 +5377,19 @@ public function filesAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -5100,7 +5400,19 @@ public function filesAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($sort !== null) { + + if ('raw' === 'sort') { + if('form' === 'deepObject' && is_array($sort)) { + foreach($sort as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['sort'] = $sort ? 'true' : 'false'; + } + } + + if ($sort !== null && 'sort' !== 'raw') { if('form' === 'deepObject' && is_array($sort)) { foreach($sort as $key => $value) { $queryParams[$key] = $value; @@ -5111,7 +5423,19 @@ public function filesAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -5122,7 +5446,19 @@ public function filesAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -5553,7 +5889,19 @@ public function filesDeleteRequest($id, $x_apideck_consumer_id = null, $x_apidec $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -5992,7 +6340,19 @@ public function filesDownloadRequest($id, $x_apideck_consumer_id = null, $x_apid $multipart = false; // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -6442,7 +6802,19 @@ public function filesExportRequest($id, $format, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -6453,7 +6825,19 @@ public function filesExportRequest($id, $format, $x_apideck_consumer_id = null, } } // query params - if ($format !== null) { + + if ('raw' === 'format') { + if('form' === 'form' && is_array($format)) { + foreach($format as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['format'] = $format ? 'true' : 'false'; + } + } + + if ($format !== null && 'format' !== 'raw') { if('form' === 'form' && is_array($format)) { foreach($format as $key => $value) { $queryParams[$key] = $value; @@ -6897,7 +7281,19 @@ public function filesOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_a $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -6908,7 +7304,19 @@ public function filesOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_a } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -7369,7 +7777,19 @@ public function filesSearchRequest($files_search, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -7380,18 +7800,42 @@ public function filesSearchRequest($files_search, $x_apideck_consumer_id = null, } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; } } else { - $queryParams['fields'] = $fields; + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields; + } + } + // query params + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; } } - // query params - if ($cursor !== null) { + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -7402,7 +7846,19 @@ public function filesSearchRequest($files_search, $x_apideck_consumer_id = null, } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -7850,7 +8306,19 @@ public function filesUpdateRequest($id, $update_file_request, $x_apideck_consume $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -8300,7 +8768,19 @@ public function foldersAddRequest($create_folder_request, $raw = false, $x_apide $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -8311,7 +8791,19 @@ public function foldersAddRequest($create_folder_request, $raw = false, $x_apide } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -8764,7 +9256,19 @@ public function foldersCopyRequest($id, $copy_folder_request, $x_apideck_consume $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -8775,7 +9279,19 @@ public function foldersCopyRequest($id, $copy_folder_request, $x_apideck_consume } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -9220,7 +9736,19 @@ public function foldersDeleteRequest($id, $x_apideck_consumer_id = null, $x_apid $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -9664,7 +10192,19 @@ public function foldersOneRequest($id, $x_apideck_consumer_id = null, $x_apideck $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -9675,7 +10215,19 @@ public function foldersOneRequest($id, $x_apideck_consumer_id = null, $x_apideck } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -10125,7 +10677,19 @@ public function foldersUpdateRequest($id, $update_folder_request, $x_apideck_con $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -10570,7 +11134,19 @@ public function sharedLinksAddRequest($shared_link, $raw = false, $x_apideck_con $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -11023,7 +11599,19 @@ public function sharedLinksAllRequest($raw = false, $x_apideck_consumer_id = nul $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -11034,7 +11622,19 @@ public function sharedLinksAllRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -11045,7 +11645,19 @@ public function sharedLinksAllRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -11056,7 +11668,19 @@ public function sharedLinksAllRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -11067,7 +11691,19 @@ public function sharedLinksAllRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -11498,7 +12134,19 @@ public function sharedLinksDeleteRequest($id, $x_apideck_consumer_id = null, $x_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -11942,7 +12590,19 @@ public function sharedLinksOneRequest($id, $x_apideck_consumer_id = null, $x_api $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -11953,7 +12613,19 @@ public function sharedLinksOneRequest($id, $x_apideck_consumer_id = null, $x_api } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -12403,7 +13075,19 @@ public function sharedLinksUpdateRequest($id, $shared_link, $x_apideck_consumer_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -12863,7 +13547,19 @@ public function uploadSessionsAddRequest($create_upload_session_request, $raw = $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -13306,7 +14002,19 @@ public function uploadSessionsDeleteRequest($id, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -13770,7 +14478,19 @@ public function uploadSessionsFinishRequest($id, $raw = false, $x_apideck_consum $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -14245,7 +14965,19 @@ public function uploadSessionsOneRequest($id, $x_apideck_consumer_id = null, $x_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -14256,7 +14988,19 @@ public function uploadSessionsOneRequest($id, $x_apideck_consumer_id = null, $x_ } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; diff --git a/src/gen/lib/Api/HrisApi.php b/src/gen/lib/Api/HrisApi.php index 815c36a5e..d401afb51 100644 --- a/src/gen/lib/Api/HrisApi.php +++ b/src/gen/lib/Api/HrisApi.php @@ -458,7 +458,19 @@ public function companiesAddRequest($hris_company, $raw = false, $x_apideck_cons $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -911,7 +923,19 @@ public function companiesAllRequest($raw = false, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -922,7 +946,19 @@ public function companiesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -933,7 +969,19 @@ public function companiesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -944,7 +992,19 @@ public function companiesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -955,7 +1015,19 @@ public function companiesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -1386,7 +1458,19 @@ public function companiesDeleteRequest($id, $x_apideck_consumer_id = null, $x_ap $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -1830,7 +1914,19 @@ public function companiesOneRequest($id, $x_apideck_consumer_id = null, $x_apide $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -1841,7 +1937,19 @@ public function companiesOneRequest($id, $x_apideck_consumer_id = null, $x_apide } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -2291,7 +2399,19 @@ public function companiesUpdateRequest($id, $hris_company, $x_apideck_consumer_i $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -2736,7 +2856,19 @@ public function departmentsAddRequest($department, $raw = false, $x_apideck_cons $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -3189,7 +3321,19 @@ public function departmentsAllRequest($raw = false, $x_apideck_consumer_id = nul $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -3200,7 +3344,19 @@ public function departmentsAllRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -3211,7 +3367,19 @@ public function departmentsAllRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -3222,7 +3390,19 @@ public function departmentsAllRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -3233,7 +3413,19 @@ public function departmentsAllRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -3664,7 +3856,19 @@ public function departmentsDeleteRequest($id, $x_apideck_consumer_id = null, $x_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -4108,7 +4312,19 @@ public function departmentsOneRequest($id, $x_apideck_consumer_id = null, $x_api $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -4119,7 +4335,19 @@ public function departmentsOneRequest($id, $x_apideck_consumer_id = null, $x_api } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -4569,7 +4797,19 @@ public function departmentsUpdateRequest($id, $department, $x_apideck_consumer_i $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -5029,7 +5269,19 @@ public function employeePayrollsAllRequest($employee_id, $raw = false, $x_apidec $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -5040,7 +5292,19 @@ public function employeePayrollsAllRequest($employee_id, $raw = false, $x_apidec } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -5051,7 +5315,19 @@ public function employeePayrollsAllRequest($employee_id, $raw = false, $x_apidec } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -5062,7 +5338,19 @@ public function employeePayrollsAllRequest($employee_id, $raw = false, $x_apidec } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -5517,7 +5805,19 @@ public function employeePayrollsOneRequest($payroll_id, $employee_id, $raw = fal $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -5528,22 +5828,34 @@ public function employeePayrollsOneRequest($payroll_id, $employee_id, $raw = fal } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; } } else { - $queryParams['fields'] = $fields; + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields; } } // header params - if ($x_apideck_consumer_id !== null) { - $headerParams['x-apideck-consumer-id'] = ObjectSerializer::toHeaderValue($x_apideck_consumer_id); - } - // header params + if ($x_apideck_consumer_id !== null) { + $headerParams['x-apideck-consumer-id'] = ObjectSerializer::toHeaderValue($x_apideck_consumer_id); + } + // header params if ($x_apideck_app_id !== null) { $headerParams['x-apideck-app-id'] = ObjectSerializer::toHeaderValue($x_apideck_app_id); } @@ -5985,7 +6297,19 @@ public function employeeSchedulesAllRequest($employee_id, $raw = false, $x_apide $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -5996,7 +6320,19 @@ public function employeeSchedulesAllRequest($employee_id, $raw = false, $x_apide } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -6007,7 +6343,19 @@ public function employeeSchedulesAllRequest($employee_id, $raw = false, $x_apide } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -6446,7 +6794,19 @@ public function employeesAddRequest($employee, $raw = false, $x_apideck_consumer $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -6909,7 +7269,19 @@ public function employeesAllRequest($raw = false, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -6920,7 +7292,19 @@ public function employeesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -6931,7 +7315,19 @@ public function employeesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -6942,7 +7338,19 @@ public function employeesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -6953,7 +7361,19 @@ public function employeesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($sort !== null) { + + if ('raw' === 'sort') { + if('form' === 'deepObject' && is_array($sort)) { + foreach($sort as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['sort'] = $sort ? 'true' : 'false'; + } + } + + if ($sort !== null && 'sort' !== 'raw') { if('form' === 'deepObject' && is_array($sort)) { foreach($sort as $key => $value) { $queryParams[$key] = $value; @@ -6964,7 +7384,19 @@ public function employeesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -6975,7 +7407,19 @@ public function employeesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -7406,7 +7850,19 @@ public function employeesDeleteRequest($id, $x_apideck_consumer_id = null, $x_ap $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -7850,7 +8306,19 @@ public function employeesOneRequest($id, $x_apideck_consumer_id = null, $x_apide $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -7861,7 +8329,19 @@ public function employeesOneRequest($id, $x_apideck_consumer_id = null, $x_apide } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -8311,7 +8791,19 @@ public function employeesUpdateRequest($id, $employee, $x_apideck_consumer_id = $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -8760,7 +9252,19 @@ public function payrollsAllRequest($raw = false, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -8771,7 +9275,19 @@ public function payrollsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -8782,7 +9298,19 @@ public function payrollsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -8793,7 +9321,19 @@ public function payrollsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -9229,7 +9769,19 @@ public function payrollsOneRequest($payroll_id, $raw = false, $x_apideck_consume $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -9240,7 +9792,19 @@ public function payrollsOneRequest($payroll_id, $raw = false, $x_apideck_consume } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -9679,7 +10243,19 @@ public function timeOffRequestsAddRequest($time_off_request, $raw = false, $x_ap $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -10137,7 +10713,19 @@ public function timeOffRequestsAllRequest($raw = false, $x_apideck_consumer_id = $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -10148,7 +10736,19 @@ public function timeOffRequestsAllRequest($raw = false, $x_apideck_consumer_id = } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -10159,7 +10759,19 @@ public function timeOffRequestsAllRequest($raw = false, $x_apideck_consumer_id = } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -10170,7 +10782,19 @@ public function timeOffRequestsAllRequest($raw = false, $x_apideck_consumer_id = } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -10181,7 +10805,19 @@ public function timeOffRequestsAllRequest($raw = false, $x_apideck_consumer_id = } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -10192,7 +10828,19 @@ public function timeOffRequestsAllRequest($raw = false, $x_apideck_consumer_id = } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -10623,7 +11271,19 @@ public function timeOffRequestsDeleteRequest($id, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -11067,7 +11727,19 @@ public function timeOffRequestsOneRequest($id, $x_apideck_consumer_id = null, $x $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -11078,7 +11750,19 @@ public function timeOffRequestsOneRequest($id, $x_apideck_consumer_id = null, $x } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -11528,7 +12212,19 @@ public function timeOffRequestsUpdateRequest($id, $time_off_request, $x_apideck_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; diff --git a/src/gen/lib/Api/IssueTrackingApi.php b/src/gen/lib/Api/IssueTrackingApi.php index 196910609..f622b4199 100644 --- a/src/gen/lib/Api/IssueTrackingApi.php +++ b/src/gen/lib/Api/IssueTrackingApi.php @@ -485,7 +485,19 @@ public function collectionTagsAllRequest($collection_id, $raw = false, $x_apidec $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -496,7 +508,19 @@ public function collectionTagsAllRequest($collection_id, $raw = false, $x_apidec } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -507,7 +531,19 @@ public function collectionTagsAllRequest($collection_id, $raw = false, $x_apidec } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -518,7 +554,19 @@ public function collectionTagsAllRequest($collection_id, $raw = false, $x_apidec } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -529,7 +577,19 @@ public function collectionTagsAllRequest($collection_id, $raw = false, $x_apidec } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -990,7 +1050,19 @@ public function collectionTicketCommentsAddRequest($collection_id, $ticket_id, $ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -1486,7 +1558,19 @@ public function collectionTicketCommentsAllRequest($collection_id, $ticket_id, $ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -1497,7 +1581,19 @@ public function collectionTicketCommentsAllRequest($collection_id, $ticket_id, $ } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -1508,7 +1604,19 @@ public function collectionTicketCommentsAllRequest($collection_id, $ticket_id, $ } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -1519,7 +1627,19 @@ public function collectionTicketCommentsAllRequest($collection_id, $ticket_id, $ } } // query params - if ($sort !== null) { + + if ('raw' === 'sort') { + if('form' === 'deepObject' && is_array($sort)) { + foreach($sort as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['sort'] = $sort ? 'true' : 'false'; + } + } + + if ($sort !== null && 'sort' !== 'raw') { if('form' === 'deepObject' && is_array($sort)) { foreach($sort as $key => $value) { $queryParams[$key] = $value; @@ -1530,7 +1650,19 @@ public function collectionTicketCommentsAllRequest($collection_id, $ticket_id, $ } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -1541,7 +1673,19 @@ public function collectionTicketCommentsAllRequest($collection_id, $ticket_id, $ } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -2010,7 +2154,19 @@ public function collectionTicketCommentsDeleteRequest($id, $collection_id, $tick $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -2509,7 +2665,19 @@ public function collectionTicketCommentsOneRequest($id, $collection_id, $ticket_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -2520,7 +2688,19 @@ public function collectionTicketCommentsOneRequest($id, $collection_id, $ticket_ } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -2531,7 +2711,19 @@ public function collectionTicketCommentsOneRequest($id, $collection_id, $ticket_ } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -2542,7 +2734,19 @@ public function collectionTicketCommentsOneRequest($id, $collection_id, $ticket_ } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -3030,7 +3234,19 @@ public function collectionTicketCommentsUpdateRequest($id, $collection_id, $tick $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -3502,7 +3718,19 @@ public function collectionTicketsAddRequest($collection_id, $ticket, $raw = fals $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -3984,7 +4212,19 @@ public function collectionTicketsAllRequest($collection_id, $raw = false, $x_api $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -3995,7 +4235,19 @@ public function collectionTicketsAllRequest($collection_id, $raw = false, $x_api } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -4006,7 +4258,19 @@ public function collectionTicketsAllRequest($collection_id, $raw = false, $x_api } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -4017,7 +4281,19 @@ public function collectionTicketsAllRequest($collection_id, $raw = false, $x_api } } // query params - if ($sort !== null) { + + if ('raw' === 'sort') { + if('form' === 'deepObject' && is_array($sort)) { + foreach($sort as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['sort'] = $sort ? 'true' : 'false'; + } + } + + if ($sort !== null && 'sort' !== 'raw') { if('form' === 'deepObject' && is_array($sort)) { foreach($sort as $key => $value) { $queryParams[$key] = $value; @@ -4028,7 +4304,19 @@ public function collectionTicketsAllRequest($collection_id, $raw = false, $x_api } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -4039,7 +4327,19 @@ public function collectionTicketsAllRequest($collection_id, $raw = false, $x_api } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -4050,7 +4350,19 @@ public function collectionTicketsAllRequest($collection_id, $raw = false, $x_api } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -4500,7 +4812,19 @@ public function collectionTicketsDeleteRequest($ticket_id, $collection_id, $x_ap $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -4963,7 +5287,19 @@ public function collectionTicketsOneRequest($ticket_id, $collection_id, $x_apide $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -4974,7 +5310,19 @@ public function collectionTicketsOneRequest($ticket_id, $collection_id, $x_apide } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -5443,7 +5791,19 @@ public function collectionTicketsUpdateRequest($ticket_id, $collection_id, $tick $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -5923,7 +6283,19 @@ public function collectionUsersAllRequest($collection_id, $raw = false, $x_apide $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -5934,7 +6306,19 @@ public function collectionUsersAllRequest($collection_id, $raw = false, $x_apide } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -5945,7 +6329,19 @@ public function collectionUsersAllRequest($collection_id, $raw = false, $x_apide } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -5956,7 +6352,19 @@ public function collectionUsersAllRequest($collection_id, $raw = false, $x_apide } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -5967,7 +6375,19 @@ public function collectionUsersAllRequest($collection_id, $raw = false, $x_apide } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -6422,7 +6842,19 @@ public function collectionUsersOneRequest($collection_id, $id, $x_apideck_consum $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -6433,7 +6865,19 @@ public function collectionUsersOneRequest($collection_id, $id, $x_apideck_consum } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -6901,7 +7345,19 @@ public function collectionsAllRequest($raw = false, $x_apideck_consumer_id = nul $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -6912,7 +7368,19 @@ public function collectionsAllRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -6923,7 +7391,19 @@ public function collectionsAllRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -6934,7 +7414,19 @@ public function collectionsAllRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($sort !== null) { + + if ('raw' === 'sort') { + if('form' === 'deepObject' && is_array($sort)) { + foreach($sort as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['sort'] = $sort ? 'true' : 'false'; + } + } + + if ($sort !== null && 'sort' !== 'raw') { if('form' === 'deepObject' && is_array($sort)) { foreach($sort as $key => $value) { $queryParams[$key] = $value; @@ -6945,7 +7437,19 @@ public function collectionsAllRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($pass_through !== null) { + + if ('raw' === 'pass_through') { + if('form' === 'deepObject' && is_array($pass_through)) { + foreach($pass_through as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['pass_through'] = $pass_through ? 'true' : 'false'; + } + } + + if ($pass_through !== null && 'pass_through' !== 'raw') { if('form' === 'deepObject' && is_array($pass_through)) { foreach($pass_through as $key => $value) { $queryParams[$key] = $value; @@ -6956,7 +7460,19 @@ public function collectionsAllRequest($raw = false, $x_apideck_consumer_id = nul } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -7392,7 +7908,19 @@ public function collectionsOneRequest($collection_id, $x_apideck_consumer_id = n $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -7403,7 +7931,19 @@ public function collectionsOneRequest($collection_id, $x_apideck_consumer_id = n } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; diff --git a/src/gen/lib/Api/LeadApi.php b/src/gen/lib/Api/LeadApi.php index 69d0e8399..1a5d79ed3 100644 --- a/src/gen/lib/Api/LeadApi.php +++ b/src/gen/lib/Api/LeadApi.php @@ -458,7 +458,19 @@ public function leadsAddRequest($lead, $raw = false, $x_apideck_consumer_id = nu $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -916,7 +928,19 @@ public function leadsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -927,7 +951,19 @@ public function leadsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -938,7 +974,19 @@ public function leadsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -949,7 +997,19 @@ public function leadsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -960,7 +1020,19 @@ public function leadsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($sort !== null) { + + if ('raw' === 'sort') { + if('form' === 'deepObject' && is_array($sort)) { + foreach($sort as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['sort'] = $sort ? 'true' : 'false'; + } + } + + if ($sort !== null && 'sort' !== 'raw') { if('form' === 'deepObject' && is_array($sort)) { foreach($sort as $key => $value) { $queryParams[$key] = $value; @@ -971,7 +1043,19 @@ public function leadsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -1402,7 +1486,19 @@ public function leadsDeleteRequest($id, $x_apideck_consumer_id = null, $x_apidec $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -1846,7 +1942,19 @@ public function leadsOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_a $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -1857,7 +1965,19 @@ public function leadsOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_a } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -2307,7 +2427,19 @@ public function leadsUpdateRequest($id, $lead, $x_apideck_consumer_id = null, $x $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; diff --git a/src/gen/lib/Api/PosApi.php b/src/gen/lib/Api/PosApi.php index 3627014cf..726c91ff5 100644 --- a/src/gen/lib/Api/PosApi.php +++ b/src/gen/lib/Api/PosApi.php @@ -458,7 +458,19 @@ public function itemsAddRequest($item, $raw = false, $x_apideck_consumer_id = nu $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -906,7 +918,19 @@ public function itemsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -917,7 +941,19 @@ public function itemsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -928,7 +964,19 @@ public function itemsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -939,7 +987,19 @@ public function itemsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_ } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -1370,7 +1430,19 @@ public function itemsDeleteRequest($id, $x_apideck_consumer_id = null, $x_apidec $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -1814,7 +1886,19 @@ public function itemsOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_a $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -1825,7 +1909,19 @@ public function itemsOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_a } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -2275,7 +2371,19 @@ public function itemsUpdateRequest($id, $item, $x_apideck_consumer_id = null, $x $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -2720,7 +2828,19 @@ public function locationsAddRequest($location, $raw = false, $x_apideck_consumer $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -3168,7 +3288,19 @@ public function locationsAllRequest($raw = false, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -3179,7 +3311,19 @@ public function locationsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -3190,7 +3334,19 @@ public function locationsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -3201,7 +3357,19 @@ public function locationsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -3632,7 +3800,19 @@ public function locationsDeleteRequest($id, $x_apideck_consumer_id = null, $x_ap $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -4076,7 +4256,19 @@ public function locationsOneRequest($id, $x_apideck_consumer_id = null, $x_apide $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -4087,7 +4279,19 @@ public function locationsOneRequest($id, $x_apideck_consumer_id = null, $x_apide } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -4537,7 +4741,19 @@ public function locationsUpdateRequest($id, $location, $x_apideck_consumer_id = $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -4982,7 +5198,19 @@ public function merchantsAddRequest($merchant, $raw = false, $x_apideck_consumer $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -5430,7 +5658,19 @@ public function merchantsAllRequest($raw = false, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -5441,7 +5681,19 @@ public function merchantsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -5452,7 +5704,19 @@ public function merchantsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -5463,7 +5727,19 @@ public function merchantsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -5894,7 +6170,19 @@ public function merchantsDeleteRequest($id, $x_apideck_consumer_id = null, $x_ap $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -6338,7 +6626,19 @@ public function merchantsOneRequest($id, $x_apideck_consumer_id = null, $x_apide $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -6349,22 +6649,34 @@ public function merchantsOneRequest($id, $x_apideck_consumer_id = null, $x_apide } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; } } else { - $queryParams['fields'] = $fields; + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields; } } // header params - if ($x_apideck_consumer_id !== null) { - $headerParams['x-apideck-consumer-id'] = ObjectSerializer::toHeaderValue($x_apideck_consumer_id); - } - // header params + if ($x_apideck_consumer_id !== null) { + $headerParams['x-apideck-consumer-id'] = ObjectSerializer::toHeaderValue($x_apideck_consumer_id); + } + // header params if ($x_apideck_app_id !== null) { $headerParams['x-apideck-app-id'] = ObjectSerializer::toHeaderValue($x_apideck_app_id); } @@ -6799,7 +7111,19 @@ public function merchantsUpdateRequest($id, $merchant, $x_apideck_consumer_id = $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -7244,7 +7568,19 @@ public function modifierGroupsAddRequest($modifier_group, $raw = false, $x_apide $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -7692,7 +8028,19 @@ public function modifierGroupsAllRequest($raw = false, $x_apideck_consumer_id = $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -7703,7 +8051,19 @@ public function modifierGroupsAllRequest($raw = false, $x_apideck_consumer_id = } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -7714,7 +8074,19 @@ public function modifierGroupsAllRequest($raw = false, $x_apideck_consumer_id = } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -7725,7 +8097,19 @@ public function modifierGroupsAllRequest($raw = false, $x_apideck_consumer_id = } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -8156,7 +8540,19 @@ public function modifierGroupsDeleteRequest($id, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -8600,7 +8996,19 @@ public function modifierGroupsOneRequest($id, $x_apideck_consumer_id = null, $x_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -8611,7 +9019,19 @@ public function modifierGroupsOneRequest($id, $x_apideck_consumer_id = null, $x_ } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -9061,7 +9481,19 @@ public function modifierGroupsUpdateRequest($id, $modifier_group, $x_apideck_con $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -9506,7 +9938,19 @@ public function modifiersAddRequest($modifier, $raw = false, $x_apideck_consumer $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -9954,7 +10398,19 @@ public function modifiersAllRequest($raw = false, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -9965,7 +10421,19 @@ public function modifiersAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -9976,7 +10444,19 @@ public function modifiersAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -9987,7 +10467,19 @@ public function modifiersAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -10423,7 +10915,19 @@ public function modifiersDeleteRequest($id, $x_apideck_consumer_id = null, $x_ap $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -10434,7 +10938,19 @@ public function modifiersDeleteRequest($id, $x_apideck_consumer_id = null, $x_ap } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -10883,7 +11399,19 @@ public function modifiersOneRequest($id, $x_apideck_consumer_id = null, $x_apide $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -10894,7 +11422,19 @@ public function modifiersOneRequest($id, $x_apideck_consumer_id = null, $x_apide } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -10905,7 +11445,19 @@ public function modifiersOneRequest($id, $x_apideck_consumer_id = null, $x_apide } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -11355,7 +11907,19 @@ public function modifiersUpdateRequest($id, $modifier, $x_apideck_consumer_id = $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -11800,7 +12364,19 @@ public function orderTypesAddRequest($order_type, $raw = false, $x_apideck_consu $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -12248,7 +12824,19 @@ public function orderTypesAllRequest($raw = false, $x_apideck_consumer_id = null $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -12259,7 +12847,19 @@ public function orderTypesAllRequest($raw = false, $x_apideck_consumer_id = null } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -12270,7 +12870,19 @@ public function orderTypesAllRequest($raw = false, $x_apideck_consumer_id = null } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -12281,7 +12893,19 @@ public function orderTypesAllRequest($raw = false, $x_apideck_consumer_id = null } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -12712,7 +13336,19 @@ public function orderTypesDeleteRequest($id, $x_apideck_consumer_id = null, $x_a $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -13156,7 +13792,19 @@ public function orderTypesOneRequest($id, $x_apideck_consumer_id = null, $x_apid $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -13167,7 +13815,19 @@ public function orderTypesOneRequest($id, $x_apideck_consumer_id = null, $x_apid } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -13617,7 +14277,19 @@ public function orderTypesUpdateRequest($id, $order_type, $x_apideck_consumer_id $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -14062,7 +14734,19 @@ public function ordersAddRequest($order, $raw = false, $x_apideck_consumer_id = $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -14515,7 +15199,19 @@ public function ordersAllRequest($raw = false, $x_apideck_consumer_id = null, $x $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -14526,7 +15222,19 @@ public function ordersAllRequest($raw = false, $x_apideck_consumer_id = null, $x } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -14537,18 +15245,42 @@ public function ordersAllRequest($raw = false, $x_apideck_consumer_id = null, $x } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; } } else { - $queryParams['limit'] = $limit; + $queryParams['limit'] = $limit; + } + } + // query params + + if ('raw' === 'location_id') { + if('form' === 'form' && is_array($location_id)) { + foreach($location_id as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['location_id'] = $location_id ? 'true' : 'false'; } } - // query params - if ($location_id !== null) { + + if ($location_id !== null && 'location_id' !== 'raw') { if('form' === 'form' && is_array($location_id)) { foreach($location_id as $key => $value) { $queryParams[$key] = $value; @@ -14559,7 +15291,19 @@ public function ordersAllRequest($raw = false, $x_apideck_consumer_id = null, $x } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -14990,7 +15734,19 @@ public function ordersDeleteRequest($id, $x_apideck_consumer_id = null, $x_apide $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -15434,7 +16190,19 @@ public function ordersOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -15445,7 +16213,19 @@ public function ordersOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_ } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -15900,7 +16680,19 @@ public function ordersPayRequest($id, $order, $raw = false, $x_apideck_consumer_ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -15911,7 +16703,19 @@ public function ordersPayRequest($id, $order, $raw = false, $x_apideck_consumer_ } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -16367,7 +17171,19 @@ public function ordersUpdateRequest($id, $order, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -16812,7 +17628,19 @@ public function paymentsAddRequest($pos_payment, $raw = false, $x_apideck_consum $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -17260,7 +18088,19 @@ public function paymentsAllRequest($raw = false, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -17271,7 +18111,19 @@ public function paymentsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -17282,7 +18134,19 @@ public function paymentsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -17293,7 +18157,19 @@ public function paymentsAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -17724,7 +18600,19 @@ public function paymentsDeleteRequest($id, $x_apideck_consumer_id = null, $x_api $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -18168,7 +19056,19 @@ public function paymentsOneRequest($id, $x_apideck_consumer_id = null, $x_apidec $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -18179,7 +19079,19 @@ public function paymentsOneRequest($id, $x_apideck_consumer_id = null, $x_apidec } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -18629,7 +19541,19 @@ public function paymentsUpdateRequest($id, $pos_payment, $x_apideck_consumer_id $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -19074,7 +19998,19 @@ public function tendersAddRequest($tender, $raw = false, $x_apideck_consumer_id $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -19522,7 +20458,19 @@ public function tendersAllRequest($raw = false, $x_apideck_consumer_id = null, $ $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -19533,7 +20481,19 @@ public function tendersAllRequest($raw = false, $x_apideck_consumer_id = null, $ } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -19544,7 +20504,19 @@ public function tendersAllRequest($raw = false, $x_apideck_consumer_id = null, $ } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -19555,7 +20527,19 @@ public function tendersAllRequest($raw = false, $x_apideck_consumer_id = null, $ } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -19986,7 +20970,19 @@ public function tendersDeleteRequest($id, $x_apideck_consumer_id = null, $x_apid $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -20430,7 +21426,19 @@ public function tendersOneRequest($id, $x_apideck_consumer_id = null, $x_apideck $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -20441,7 +21449,19 @@ public function tendersOneRequest($id, $x_apideck_consumer_id = null, $x_apideck } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -20891,7 +21911,19 @@ public function tendersUpdateRequest($id, $tender, $x_apideck_consumer_id = null $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; diff --git a/src/gen/lib/Api/SmsApi.php b/src/gen/lib/Api/SmsApi.php index 72a08babe..0b06dd73f 100644 --- a/src/gen/lib/Api/SmsApi.php +++ b/src/gen/lib/Api/SmsApi.php @@ -458,7 +458,19 @@ public function messagesAddRequest($message, $raw = false, $x_apideck_consumer_i $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -906,7 +918,19 @@ public function messagesAllRequest($raw = false, $x_apideck_consumer_id = null, $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -917,7 +941,19 @@ public function messagesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -928,7 +964,19 @@ public function messagesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -939,7 +987,19 @@ public function messagesAllRequest($raw = false, $x_apideck_consumer_id = null, } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -1370,7 +1430,19 @@ public function messagesDeleteRequest($id, $x_apideck_consumer_id = null, $x_api $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -1814,7 +1886,19 @@ public function messagesOneRequest($id, $x_apideck_consumer_id = null, $x_apidec $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; @@ -1825,7 +1909,19 @@ public function messagesOneRequest($id, $x_apideck_consumer_id = null, $x_apidec } } // query params - if ($fields !== null) { + + if ('raw' === 'fields') { + if('form' === 'form' && is_array($fields)) { + foreach($fields as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['fields'] = $fields ? 'true' : 'false'; + } + } + + if ($fields !== null && 'fields' !== 'raw') { if('form' === 'form' && is_array($fields)) { foreach($fields as $key => $value) { $queryParams[$key] = $value; @@ -2275,7 +2371,19 @@ public function messagesUpdateRequest($id, $message, $x_apideck_consumer_id = nu $multipart = false; // query params - if ($raw !== null) { + + if ('raw' === 'raw') { + if('form' === 'form' && is_array($raw)) { + foreach($raw as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['raw'] = $raw ? 'true' : 'false'; + } + } + + if ($raw !== null && 'raw' !== 'raw') { if('form' === 'form' && is_array($raw)) { foreach($raw as $key => $value) { $queryParams[$key] = $value; diff --git a/src/gen/lib/Api/VaultApi.php b/src/gen/lib/Api/VaultApi.php index 376830c29..2870a0583 100644 --- a/src/gen/lib/Api/VaultApi.php +++ b/src/gen/lib/Api/VaultApi.php @@ -1368,7 +1368,19 @@ public function connectionsAllRequest($x_apideck_consumer_id = null, $x_apideck_ $multipart = false; // query params - if ($api !== null) { + + if ('raw' === 'api') { + if('form' === 'form' && is_array($api)) { + foreach($api as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['api'] = $api ? 'true' : 'false'; + } + } + + if ($api !== null && 'api' !== 'raw') { if('form' === 'form' && is_array($api)) { foreach($api as $key => $value) { $queryParams[$key] = $value; @@ -1379,7 +1391,19 @@ public function connectionsAllRequest($x_apideck_consumer_id = null, $x_apideck_ } } // query params - if ($configured !== null) { + + if ('raw' === 'configured') { + if('form' === 'form' && is_array($configured)) { + foreach($configured as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['configured'] = $configured ? 'true' : 'false'; + } + } + + if ($configured !== null && 'configured' !== 'raw') { if('form' === 'form' && is_array($configured)) { foreach($configured as $key => $value) { $queryParams[$key] = $value; @@ -3462,7 +3486,19 @@ public function consumerRequestCountsAllRequest($consumer_id, $start_datetime, $ $multipart = false; // query params - if ($start_datetime !== null) { + + if ('raw' === 'start_datetime') { + if('form' === 'form' && is_array($start_datetime)) { + foreach($start_datetime as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['start_datetime'] = $start_datetime ? 'true' : 'false'; + } + } + + if ($start_datetime !== null && 'start_datetime' !== 'raw') { if('form' === 'form' && is_array($start_datetime)) { foreach($start_datetime as $key => $value) { $queryParams[$key] = $value; @@ -3473,7 +3509,19 @@ public function consumerRequestCountsAllRequest($consumer_id, $start_datetime, $ } } // query params - if ($end_datetime !== null) { + + if ('raw' === 'end_datetime') { + if('form' === 'form' && is_array($end_datetime)) { + foreach($end_datetime as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['end_datetime'] = $end_datetime ? 'true' : 'false'; + } + } + + if ($end_datetime !== null && 'end_datetime' !== 'raw') { if('form' === 'form' && is_array($end_datetime)) { foreach($end_datetime as $key => $value) { $queryParams[$key] = $value; @@ -4298,7 +4346,19 @@ public function consumersAllRequest($x_apideck_app_id = null, $cursor = null, $l $multipart = false; // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -4309,7 +4369,19 @@ public function consumersAllRequest($x_apideck_app_id = null, $cursor = null, $l } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -5965,7 +6037,19 @@ public function logsAllRequest($x_apideck_app_id = null, $x_apideck_consumer_id $multipart = false; // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -5976,7 +6060,19 @@ public function logsAllRequest($x_apideck_app_id = null, $x_apideck_consumer_id } } // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -5987,7 +6083,19 @@ public function logsAllRequest($x_apideck_app_id = null, $x_apideck_consumer_id } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; diff --git a/src/gen/lib/Api/WebhookApi.php b/src/gen/lib/Api/WebhookApi.php index a6eeeb155..07d9a793e 100644 --- a/src/gen/lib/Api/WebhookApi.php +++ b/src/gen/lib/Api/WebhookApi.php @@ -454,7 +454,19 @@ public function eventLogsAllRequest($x_apideck_app_id = null, $cursor = null, $l $multipart = false; // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -465,7 +477,19 @@ public function eventLogsAllRequest($x_apideck_app_id = null, $cursor = null, $l } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; @@ -476,7 +500,19 @@ public function eventLogsAllRequest($x_apideck_app_id = null, $cursor = null, $l } } // query params - if ($filter !== null) { + + if ('raw' === 'filter') { + if('form' === 'deepObject' && is_array($filter)) { + foreach($filter as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['filter'] = $filter ? 'true' : 'false'; + } + } + + if ($filter !== null && 'filter' !== 'raw') { if('form' === 'deepObject' && is_array($filter)) { foreach($filter as $key => $value) { $queryParams[$key] = $value; @@ -1293,7 +1329,19 @@ public function webhooksAllRequest($x_apideck_app_id = null, $cursor = null, $li $multipart = false; // query params - if ($cursor !== null) { + + if ('raw' === 'cursor') { + if('form' === 'form' && is_array($cursor)) { + foreach($cursor as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['cursor'] = $cursor ? 'true' : 'false'; + } + } + + if ($cursor !== null && 'cursor' !== 'raw') { if('form' === 'form' && is_array($cursor)) { foreach($cursor as $key => $value) { $queryParams[$key] = $value; @@ -1304,7 +1352,19 @@ public function webhooksAllRequest($x_apideck_app_id = null, $cursor = null, $li } } // query params - if ($limit !== null) { + + if ('raw' === 'limit') { + if('form' === 'form' && is_array($limit)) { + foreach($limit as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['limit'] = $limit ? 'true' : 'false'; + } + } + + if ($limit !== null && 'limit' !== 'raw') { if('form' === 'form' && is_array($limit)) { foreach($limit as $key => $value) { $queryParams[$key] = $value; diff --git a/src/gen/lib/Configuration.php b/src/gen/lib/Configuration.php index 44892e6fc..0966ca699 100644 --- a/src/gen/lib/Configuration.php +++ b/src/gen/lib/Configuration.php @@ -97,7 +97,7 @@ class Configuration * * @var string */ - protected $userAgent = 'OpenAPI-Generator/2.5.0/PHP'; + protected $userAgent = 'OpenAPI-Generator/2.5.1/PHP'; /** * Debug switch (default set to false) @@ -448,7 +448,7 @@ public static function toDebugReport() $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; $report .= ' The version of the OpenAPI document: 9.9.0' . PHP_EOL; - $report .= ' SDK Package Version: 2.5.0' . PHP_EOL; + $report .= ' SDK Package Version: 2.5.1' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report;