diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index ea33d971d..a263fab16 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -18,5 +18,5 @@ jobs:
uses: ncipollo/release-action@v1
with:
commit: main
- tag: 3.10.0
+ tag: 3.11.0
diff --git a/package.json b/package.json
index b03960f12..7010ad088 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@apideck/php",
- "version": "3.10.0",
+ "version": "3.11.0",
"description": "Apideck PHP SDK",
"keywords": [
"apideck",
diff --git a/src/gen/.openapi-generator/FILES b/src/gen/.openapi-generator/FILES
index 541127dba..5d4ff9d4d 100644
--- a/src/gen/.openapi-generator/FILES
+++ b/src/gen/.openapi-generator/FILES
@@ -70,6 +70,9 @@ docs/Model/BalanceSheetLiabilitiesAccount.md
docs/Model/BalanceSheetReports.md
docs/Model/BalanceSheetUncategorizedItemsAccount.md
docs/Model/BankAccount.md
+docs/Model/BankFeedAccount.md
+docs/Model/BankFeedStatement.md
+docs/Model/BankFeedStatementTransactions.md
docs/Model/Benefit.md
docs/Model/Bill.md
docs/Model/BillLineItem.md
@@ -127,6 +130,8 @@ docs/Model/CreateApplicantResponse.md
docs/Model/CreateApplicationResponse.md
docs/Model/CreateAttachmentRequest.md
docs/Model/CreateAttachmentResponse.md
+docs/Model/CreateBankFeedAccountResponse.md
+docs/Model/CreateBankFeedStatementResponse.md
docs/Model/CreateBillPaymentResponse.md
docs/Model/CreateBillResponse.md
docs/Model/CreateCallbackState.md
@@ -140,6 +145,8 @@ docs/Model/CreateContactResponse.md
docs/Model/CreateCreditNoteResponse.md
docs/Model/CreateCustomMappingRequest.md
docs/Model/CreateCustomMappingResponse.md
+docs/Model/CreateCustomObjectResponse.md
+docs/Model/CreateCustomObjectSchemaResponse.md
docs/Model/CreateCustomerResponse.md
docs/Model/CreateDepartmentResponse.md
docs/Model/CreateDriveGroupResponse.md
@@ -192,11 +199,19 @@ docs/Model/CreateWebhookResponse.md
docs/Model/CreditNote.md
docs/Model/CreditNotesFilter.md
docs/Model/CreditNotesSort.md
+docs/Model/CreditOrDebit.md
docs/Model/CrmEventType.md
docs/Model/Currency.md
docs/Model/CustomField.md
docs/Model/CustomFieldFinder.md
docs/Model/CustomMapping.md
+docs/Model/CustomObject.md
+docs/Model/CustomObjectFields.md
+docs/Model/CustomObjectSchema.md
+docs/Model/CustomObjectSchemaFields.md
+docs/Model/CustomObjectSchemaOptions.md
+docs/Model/CustomObjectSchemasSort.md
+docs/Model/CustomObjectsSort.md
docs/Model/Customer.md
docs/Model/CustomersFilter.md
docs/Model/CustomersSort.md
@@ -207,6 +222,8 @@ docs/Model/DeleteActivityResponse.md
docs/Model/DeleteApplicantResponse.md
docs/Model/DeleteApplicationResponse.md
docs/Model/DeleteAttachmentResponse.md
+docs/Model/DeleteBankFeedAccountResponse.md
+docs/Model/DeleteBankFeedStatementResponse.md
docs/Model/DeleteBillPaymentResponse.md
docs/Model/DeleteBillResponse.md
docs/Model/DeleteCommentResponse.md
@@ -214,6 +231,8 @@ docs/Model/DeleteCompanyResponse.md
docs/Model/DeleteConsumerResponse.md
docs/Model/DeleteContactResponse.md
docs/Model/DeleteCreditNoteResponse.md
+docs/Model/DeleteCustomObjectResponse.md
+docs/Model/DeleteCustomObjectSchemaResponse.md
docs/Model/DeleteCustomerResponse.md
docs/Model/DeleteDepartmentResponse.md
docs/Model/DeleteDriveGroupResponse.md
@@ -271,6 +290,7 @@ docs/Model/EcommerceDiscount.md
docs/Model/EcommerceEventType.md
docs/Model/EcommerceOrder.md
docs/Model/EcommerceOrderLineItem.md
+docs/Model/EcommerceOrderRefund.md
docs/Model/EcommerceOrderStatus.md
docs/Model/EcommerceOrdersFilter.md
docs/Model/EcommerceProduct.md
@@ -328,6 +348,10 @@ docs/Model/GetApplicationsResponse.md
docs/Model/GetAttachmentResponse.md
docs/Model/GetAttachmentsResponse.md
docs/Model/GetBalanceSheetResponse.md
+docs/Model/GetBankFeedAccountResponse.md
+docs/Model/GetBankFeedAccountsResponse.md
+docs/Model/GetBankFeedStatementResponse.md
+docs/Model/GetBankFeedStatementsResponse.md
docs/Model/GetBillPaymentResponse.md
docs/Model/GetBillPaymentsResponse.md
docs/Model/GetBillResponse.md
@@ -360,6 +384,10 @@ docs/Model/GetCreditNotesResponse.md
docs/Model/GetCustomFieldsResponse.md
docs/Model/GetCustomMappingResponse.md
docs/Model/GetCustomMappingsResponse.md
+docs/Model/GetCustomObjectResponse.md
+docs/Model/GetCustomObjectSchemaResponse.md
+docs/Model/GetCustomObjectSchemasResponse.md
+docs/Model/GetCustomObjectsResponse.md
docs/Model/GetCustomerResponse.md
docs/Model/GetCustomersResponse.md
docs/Model/GetDepartmentResponse.md
@@ -473,6 +501,7 @@ docs/Model/InvoiceItemSalesDetails.md
docs/Model/InvoiceItemsFilter.md
docs/Model/InvoiceItemsSort.md
docs/Model/InvoiceLineItem.md
+docs/Model/InvoicePaymentAllocations.md
docs/Model/InvoiceResponse.md
docs/Model/InvoicesFilter.md
docs/Model/InvoicesSort.md
@@ -633,6 +662,8 @@ docs/Model/UpdateAccountingLocationResponse.md
docs/Model/UpdateActivityResponse.md
docs/Model/UpdateApplicantResponse.md
docs/Model/UpdateApplicationResponse.md
+docs/Model/UpdateBankFeedAccountResponse.md
+docs/Model/UpdateBankFeedStatementResponse.md
docs/Model/UpdateBillPaymentResponse.md
docs/Model/UpdateBillResponse.md
docs/Model/UpdateCommentResponse.md
@@ -644,6 +675,8 @@ docs/Model/UpdateContactResponse.md
docs/Model/UpdateCreditNoteResponse.md
docs/Model/UpdateCustomMappingRequest.md
docs/Model/UpdateCustomMappingResponse.md
+docs/Model/UpdateCustomObjectResponse.md
+docs/Model/UpdateCustomObjectSchemaResponse.md
docs/Model/UpdateCustomerResponse.md
docs/Model/UpdateDepartmentResponse.md
docs/Model/UpdateDriveGroupResponse.md
@@ -776,6 +809,9 @@ lib/Model/BalanceSheetLiabilitiesAccount.php
lib/Model/BalanceSheetReports.php
lib/Model/BalanceSheetUncategorizedItemsAccount.php
lib/Model/BankAccount.php
+lib/Model/BankFeedAccount.php
+lib/Model/BankFeedStatement.php
+lib/Model/BankFeedStatementTransactions.php
lib/Model/Benefit.php
lib/Model/Bill.php
lib/Model/BillLineItem.php
@@ -833,6 +869,8 @@ lib/Model/CreateApplicantResponse.php
lib/Model/CreateApplicationResponse.php
lib/Model/CreateAttachmentRequest.php
lib/Model/CreateAttachmentResponse.php
+lib/Model/CreateBankFeedAccountResponse.php
+lib/Model/CreateBankFeedStatementResponse.php
lib/Model/CreateBillPaymentResponse.php
lib/Model/CreateBillResponse.php
lib/Model/CreateCallbackState.php
@@ -846,6 +884,8 @@ lib/Model/CreateContactResponse.php
lib/Model/CreateCreditNoteResponse.php
lib/Model/CreateCustomMappingRequest.php
lib/Model/CreateCustomMappingResponse.php
+lib/Model/CreateCustomObjectResponse.php
+lib/Model/CreateCustomObjectSchemaResponse.php
lib/Model/CreateCustomerResponse.php
lib/Model/CreateDepartmentResponse.php
lib/Model/CreateDriveGroupResponse.php
@@ -898,11 +938,19 @@ lib/Model/CreateWebhookResponse.php
lib/Model/CreditNote.php
lib/Model/CreditNotesFilter.php
lib/Model/CreditNotesSort.php
+lib/Model/CreditOrDebit.php
lib/Model/CrmEventType.php
lib/Model/Currency.php
lib/Model/CustomField.php
lib/Model/CustomFieldFinder.php
lib/Model/CustomMapping.php
+lib/Model/CustomObject.php
+lib/Model/CustomObjectFields.php
+lib/Model/CustomObjectSchema.php
+lib/Model/CustomObjectSchemaFields.php
+lib/Model/CustomObjectSchemaOptions.php
+lib/Model/CustomObjectSchemasSort.php
+lib/Model/CustomObjectsSort.php
lib/Model/Customer.php
lib/Model/CustomersFilter.php
lib/Model/CustomersSort.php
@@ -913,6 +961,8 @@ lib/Model/DeleteActivityResponse.php
lib/Model/DeleteApplicantResponse.php
lib/Model/DeleteApplicationResponse.php
lib/Model/DeleteAttachmentResponse.php
+lib/Model/DeleteBankFeedAccountResponse.php
+lib/Model/DeleteBankFeedStatementResponse.php
lib/Model/DeleteBillPaymentResponse.php
lib/Model/DeleteBillResponse.php
lib/Model/DeleteCommentResponse.php
@@ -920,6 +970,8 @@ lib/Model/DeleteCompanyResponse.php
lib/Model/DeleteConsumerResponse.php
lib/Model/DeleteContactResponse.php
lib/Model/DeleteCreditNoteResponse.php
+lib/Model/DeleteCustomObjectResponse.php
+lib/Model/DeleteCustomObjectSchemaResponse.php
lib/Model/DeleteCustomerResponse.php
lib/Model/DeleteDepartmentResponse.php
lib/Model/DeleteDriveGroupResponse.php
@@ -977,6 +1029,7 @@ lib/Model/EcommerceDiscount.php
lib/Model/EcommerceEventType.php
lib/Model/EcommerceOrder.php
lib/Model/EcommerceOrderLineItem.php
+lib/Model/EcommerceOrderRefund.php
lib/Model/EcommerceOrderStatus.php
lib/Model/EcommerceOrdersFilter.php
lib/Model/EcommerceProduct.php
@@ -1034,6 +1087,10 @@ lib/Model/GetApplicationsResponse.php
lib/Model/GetAttachmentResponse.php
lib/Model/GetAttachmentsResponse.php
lib/Model/GetBalanceSheetResponse.php
+lib/Model/GetBankFeedAccountResponse.php
+lib/Model/GetBankFeedAccountsResponse.php
+lib/Model/GetBankFeedStatementResponse.php
+lib/Model/GetBankFeedStatementsResponse.php
lib/Model/GetBillPaymentResponse.php
lib/Model/GetBillPaymentsResponse.php
lib/Model/GetBillResponse.php
@@ -1066,6 +1123,10 @@ lib/Model/GetCreditNotesResponse.php
lib/Model/GetCustomFieldsResponse.php
lib/Model/GetCustomMappingResponse.php
lib/Model/GetCustomMappingsResponse.php
+lib/Model/GetCustomObjectResponse.php
+lib/Model/GetCustomObjectSchemaResponse.php
+lib/Model/GetCustomObjectSchemasResponse.php
+lib/Model/GetCustomObjectsResponse.php
lib/Model/GetCustomerResponse.php
lib/Model/GetCustomersResponse.php
lib/Model/GetDepartmentResponse.php
@@ -1179,6 +1240,7 @@ lib/Model/InvoiceItemSalesDetails.php
lib/Model/InvoiceItemsFilter.php
lib/Model/InvoiceItemsSort.php
lib/Model/InvoiceLineItem.php
+lib/Model/InvoicePaymentAllocations.php
lib/Model/InvoiceResponse.php
lib/Model/InvoicesFilter.php
lib/Model/InvoicesSort.php
@@ -1340,6 +1402,8 @@ lib/Model/UpdateAccountingLocationResponse.php
lib/Model/UpdateActivityResponse.php
lib/Model/UpdateApplicantResponse.php
lib/Model/UpdateApplicationResponse.php
+lib/Model/UpdateBankFeedAccountResponse.php
+lib/Model/UpdateBankFeedStatementResponse.php
lib/Model/UpdateBillPaymentResponse.php
lib/Model/UpdateBillResponse.php
lib/Model/UpdateCommentResponse.php
@@ -1351,6 +1415,8 @@ lib/Model/UpdateContactResponse.php
lib/Model/UpdateCreditNoteResponse.php
lib/Model/UpdateCustomMappingRequest.php
lib/Model/UpdateCustomMappingResponse.php
+lib/Model/UpdateCustomObjectResponse.php
+lib/Model/UpdateCustomObjectSchemaResponse.php
lib/Model/UpdateCustomerResponse.php
lib/Model/UpdateDepartmentResponse.php
lib/Model/UpdateDriveGroupResponse.php
@@ -1479,6 +1545,9 @@ test/Model/BalanceSheetReportsTest.php
test/Model/BalanceSheetTest.php
test/Model/BalanceSheetUncategorizedItemsAccountTest.php
test/Model/BankAccountTest.php
+test/Model/BankFeedAccountTest.php
+test/Model/BankFeedStatementTest.php
+test/Model/BankFeedStatementTransactionsTest.php
test/Model/BenefitTest.php
test/Model/BillLineItemTest.php
test/Model/BillPaymentAllocationsTest.php
@@ -1536,6 +1605,8 @@ test/Model/CreateApplicantResponseTest.php
test/Model/CreateApplicationResponseTest.php
test/Model/CreateAttachmentRequestTest.php
test/Model/CreateAttachmentResponseTest.php
+test/Model/CreateBankFeedAccountResponseTest.php
+test/Model/CreateBankFeedStatementResponseTest.php
test/Model/CreateBillPaymentResponseTest.php
test/Model/CreateBillResponseTest.php
test/Model/CreateCallbackStateResponseDataTest.php
@@ -1549,6 +1620,8 @@ test/Model/CreateContactResponseTest.php
test/Model/CreateCreditNoteResponseTest.php
test/Model/CreateCustomMappingRequestTest.php
test/Model/CreateCustomMappingResponseTest.php
+test/Model/CreateCustomObjectResponseTest.php
+test/Model/CreateCustomObjectSchemaResponseTest.php
test/Model/CreateCustomerResponseTest.php
test/Model/CreateDepartmentResponseTest.php
test/Model/CreateDriveGroupResponseTest.php
@@ -1601,11 +1674,19 @@ test/Model/CreateWebhookResponseTest.php
test/Model/CreditNoteTest.php
test/Model/CreditNotesFilterTest.php
test/Model/CreditNotesSortTest.php
+test/Model/CreditOrDebitTest.php
test/Model/CrmEventTypeTest.php
test/Model/CurrencyTest.php
test/Model/CustomFieldFinderTest.php
test/Model/CustomFieldTest.php
test/Model/CustomMappingTest.php
+test/Model/CustomObjectFieldsTest.php
+test/Model/CustomObjectSchemaFieldsTest.php
+test/Model/CustomObjectSchemaOptionsTest.php
+test/Model/CustomObjectSchemaTest.php
+test/Model/CustomObjectSchemasSortTest.php
+test/Model/CustomObjectTest.php
+test/Model/CustomObjectsSortTest.php
test/Model/CustomerTest.php
test/Model/CustomersFilterTest.php
test/Model/CustomersSortTest.php
@@ -1616,6 +1697,8 @@ test/Model/DeleteActivityResponseTest.php
test/Model/DeleteApplicantResponseTest.php
test/Model/DeleteApplicationResponseTest.php
test/Model/DeleteAttachmentResponseTest.php
+test/Model/DeleteBankFeedAccountResponseTest.php
+test/Model/DeleteBankFeedStatementResponseTest.php
test/Model/DeleteBillPaymentResponseTest.php
test/Model/DeleteBillResponseTest.php
test/Model/DeleteCommentResponseTest.php
@@ -1623,6 +1706,8 @@ test/Model/DeleteCompanyResponseTest.php
test/Model/DeleteConsumerResponseTest.php
test/Model/DeleteContactResponseTest.php
test/Model/DeleteCreditNoteResponseTest.php
+test/Model/DeleteCustomObjectResponseTest.php
+test/Model/DeleteCustomObjectSchemaResponseTest.php
test/Model/DeleteCustomerResponseTest.php
test/Model/DeleteDepartmentResponseTest.php
test/Model/DeleteDriveGroupResponseTest.php
@@ -1679,6 +1764,7 @@ test/Model/EcommerceCustomersFilterTest.php
test/Model/EcommerceDiscountTest.php
test/Model/EcommerceEventTypeTest.php
test/Model/EcommerceOrderLineItemTest.php
+test/Model/EcommerceOrderRefundTest.php
test/Model/EcommerceOrderStatusTest.php
test/Model/EcommerceOrderTest.php
test/Model/EcommerceOrdersFilterTest.php
@@ -1737,6 +1823,10 @@ test/Model/GetApplicationsResponseTest.php
test/Model/GetAttachmentResponseTest.php
test/Model/GetAttachmentsResponseTest.php
test/Model/GetBalanceSheetResponseTest.php
+test/Model/GetBankFeedAccountResponseTest.php
+test/Model/GetBankFeedAccountsResponseTest.php
+test/Model/GetBankFeedStatementResponseTest.php
+test/Model/GetBankFeedStatementsResponseTest.php
test/Model/GetBillPaymentResponseTest.php
test/Model/GetBillPaymentsResponseTest.php
test/Model/GetBillResponseTest.php
@@ -1769,6 +1859,10 @@ test/Model/GetCreditNotesResponseTest.php
test/Model/GetCustomFieldsResponseTest.php
test/Model/GetCustomMappingResponseTest.php
test/Model/GetCustomMappingsResponseTest.php
+test/Model/GetCustomObjectResponseTest.php
+test/Model/GetCustomObjectSchemaResponseTest.php
+test/Model/GetCustomObjectSchemasResponseTest.php
+test/Model/GetCustomObjectsResponseTest.php
test/Model/GetCustomerResponseTest.php
test/Model/GetCustomersResponseTest.php
test/Model/GetDepartmentResponseTest.php
@@ -1881,6 +1975,7 @@ test/Model/InvoiceItemTest.php
test/Model/InvoiceItemsFilterTest.php
test/Model/InvoiceItemsSortTest.php
test/Model/InvoiceLineItemTest.php
+test/Model/InvoicePaymentAllocationsTest.php
test/Model/InvoiceResponseTest.php
test/Model/InvoiceTest.php
test/Model/InvoicesFilterTest.php
@@ -2042,6 +2137,8 @@ test/Model/UpdateAccountingLocationResponseTest.php
test/Model/UpdateActivityResponseTest.php
test/Model/UpdateApplicantResponseTest.php
test/Model/UpdateApplicationResponseTest.php
+test/Model/UpdateBankFeedAccountResponseTest.php
+test/Model/UpdateBankFeedStatementResponseTest.php
test/Model/UpdateBillPaymentResponseTest.php
test/Model/UpdateBillResponseTest.php
test/Model/UpdateCommentResponseTest.php
@@ -2053,6 +2150,8 @@ test/Model/UpdateContactResponseTest.php
test/Model/UpdateCreditNoteResponseTest.php
test/Model/UpdateCustomMappingRequestTest.php
test/Model/UpdateCustomMappingResponseTest.php
+test/Model/UpdateCustomObjectResponseTest.php
+test/Model/UpdateCustomObjectSchemaResponseTest.php
test/Model/UpdateCustomerResponseTest.php
test/Model/UpdateDepartmentResponseTest.php
test/Model/UpdateDriveGroupResponseTest.php
diff --git a/src/gen/docs/apis/AccountingApi.md b/src/gen/docs/apis/AccountingApi.md
index df239a013..c99f38fd5 100644
--- a/src/gen/docs/apis/AccountingApi.md
+++ b/src/gen/docs/apis/AccountingApi.md
@@ -12,6 +12,16 @@
* [Download Attachment](#attachmentsDownload)
* [Get Attachment](#attachmentsOne)
* [Get BalanceSheet](#balanceSheetOne)
+* [Create Bank Feed Account](#bankFeedAccountsAdd)
+* [List Bank Feed Accounts](#bankFeedAccountsAll)
+* [Delete Bank Feed Account](#bankFeedAccountsDelete)
+* [Get Bank Feed Account](#bankFeedAccountsOne)
+* [Update Bank Feed Account](#bankFeedAccountsUpdate)
+* [Create Bank Feed Statement](#bankFeedStatementsAdd)
+* [List Bank Feed Statements](#bankFeedStatementsAll)
+* [Delete Bank Feed Statement](#bankFeedStatementsDelete)
+* [Get Bank Feed Statement](#bankFeedStatementsOne)
+* [Update Bank Feed Statement](#bankFeedStatementsUpdate)
* [Create Bill Payment](#billPaymentsAdd)
* [List Bill Payments](#billPaymentsAll)
* [Delete Bill Payment](#billPaymentsDelete)
@@ -576,6 +586,676 @@ try {
```
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
+# Create Bank Feed Account
+
+
+Method: **bankFeedAccountsAdd**
+
+```php
+Apideck->getAccountingApi()->bankFeedAccountsAdd($data)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **bank_feed_account** | [\Apideck\Client\Model\BankFeedAccount](../models/\Apideck\Client\Model\BankFeedAccount.md)| |
+ **x_apideck_consumer_id** | **string**| ID of the consumer which you want to get or push data from |
+ **x_apideck_app_id** | **string**| The ID of your Unify application |
+ **x_apideck_service_id** | **string**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. |
+ **raw** | [**bool**] | Include raw response. Mostly used for debugging purposes | (optional) defaults to false
+
+
+
+### Response Type
+
+[`\Apideck\Client\Model\CreateBankFeedAccountResponse`](../models/\Apideck\Client\Model\CreateBankFeedAccountResponse.md)
+
+
+
+### HTTP response details
+| Status code | Description |
+|-------------|-------------|
+**201** | Bank Feed Accounts |
+**400** | Bad Request |
+**401** | Unauthorized |
+**402** | Payment Required |
+**404** | The specified resource was not found |
+**422** | Unprocessable |
+4/5xx | Unexpected error |
+
+
+## Example Usage
+
+```php
+', '', '', '');
+
+$apideck = new Apideck($config);
+
+try {
+ $response = $apideck->getAccountingApi()->bankFeedAccountsAdd($bankFeedAccount);
+ var_dump('API called successfully', $response);
+} catch(ApiException $error) {
+ var_dump('API called failed', $error);
+}
+
+```
+
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
+# List Bank Feed Accounts
+
+
+Method: **bankFeedAccountsAll**
+
+```php
+Apideck->getAccountingApi()->bankFeedAccountsAll($data)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **x_apideck_consumer_id** | **string**| ID of the consumer which you want to get or push data from |
+ **x_apideck_app_id** | **string**| The ID of your Unify application |
+ **x_apideck_service_id** | **string**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. |
+ **cursor** | **string**| Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. |
+ **pass_through** | [\Apideck\Client\Model\PassThroughQuery](../models/\Apideck\Client\Model\PassThroughQuery.md)| Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads |
+ **fields** | **string**| The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.
Example: `fields=name,email,addresses.city`
In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. |
+ **raw** | [**bool**] | Include raw response. Mostly used for debugging purposes | (optional) defaults to false
+ **limit** | [**int**] | Number of results to return. Minimum 1, Maximum 200, Default 20 | (optional) defaults to 20
+
+
+
+### Response Type
+
+[`\Apideck\Client\Model\GetBankFeedAccountsResponse`](../models/\Apideck\Client\Model\GetBankFeedAccountsResponse.md)
+
+
+
+### HTTP response details
+| Status code | Description |
+|-------------|-------------|
+**200** | Bank Feed Accounts |
+**400** | Bad Request |
+**401** | Unauthorized |
+**402** | Payment Required |
+**404** | The specified resource was not found |
+**422** | Unprocessable |
+4/5xx | Unexpected error |
+
+
+## Example Usage
+
+```php
+', '', '', '');
+
+$apideck = new Apideck($config);
+
+try {
+ $response = $apideck->getAccountingApi()->bankFeedAccountsAll();
+ var_dump('API called successfully', $response);
+} catch(ApiException $error) {
+ var_dump('API called failed', $error);
+}
+
+```
+
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
+# Delete Bank Feed Account
+
+
+Method: **bankFeedAccountsDelete**
+
+```php
+Apideck->getAccountingApi()->bankFeedAccountsDelete($data)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| ID of the record you are acting upon. |
+ **x_apideck_consumer_id** | **string**| ID of the consumer which you want to get or push data from |
+ **x_apideck_app_id** | **string**| The ID of your Unify application |
+ **x_apideck_service_id** | **string**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. |
+ **raw** | [**bool**] | Include raw response. Mostly used for debugging purposes | (optional) defaults to false
+
+
+
+### Response Type
+
+[`\Apideck\Client\Model\DeleteBankFeedAccountResponse`](../models/\Apideck\Client\Model\DeleteBankFeedAccountResponse.md)
+
+
+
+### HTTP response details
+| Status code | Description |
+|-------------|-------------|
+**200** | Bank Feed Accounts |
+**400** | Bad Request |
+**401** | Unauthorized |
+**402** | Payment Required |
+**404** | The specified resource was not found |
+**422** | Unprocessable |
+4/5xx | Unexpected error |
+
+
+## Example Usage
+
+```php
+', '', '', '');
+
+$apideck = new Apideck($config);
+
+try {
+ $response = $apideck->getAccountingApi()->bankFeedAccountsDelete('id_example');
+ var_dump('API called successfully', $response);
+} catch(ApiException $error) {
+ var_dump('API called failed', $error);
+}
+
+```
+
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
+# Get Bank Feed Account
+
+
+Method: **bankFeedAccountsOne**
+
+```php
+Apideck->getAccountingApi()->bankFeedAccountsOne($data)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| ID of the record you are acting upon. |
+ **x_apideck_consumer_id** | **string**| ID of the consumer which you want to get or push data from |
+ **x_apideck_app_id** | **string**| The ID of your Unify application |
+ **x_apideck_service_id** | **string**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. |
+ **fields** | **string**| The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.
Example: `fields=name,email,addresses.city`
In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. |
+ **raw** | [**bool**] | Include raw response. Mostly used for debugging purposes | (optional) defaults to false
+
+
+
+### Response Type
+
+[`\Apideck\Client\Model\GetBankFeedAccountResponse`](../models/\Apideck\Client\Model\GetBankFeedAccountResponse.md)
+
+
+
+### HTTP response details
+| Status code | Description |
+|-------------|-------------|
+**200** | Bank Feed Accounts |
+**400** | Bad Request |
+**401** | Unauthorized |
+**402** | Payment Required |
+**404** | The specified resource was not found |
+**422** | Unprocessable |
+4/5xx | Unexpected error |
+
+
+## Example Usage
+
+```php
+', '', '', '');
+
+$apideck = new Apideck($config);
+
+try {
+ $response = $apideck->getAccountingApi()->bankFeedAccountsOne('id_example');
+ var_dump('API called successfully', $response);
+} catch(ApiException $error) {
+ var_dump('API called failed', $error);
+}
+
+```
+
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
+# Update Bank Feed Account
+
+
+Method: **bankFeedAccountsUpdate**
+
+```php
+Apideck->getAccountingApi()->bankFeedAccountsUpdate($data)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| ID of the record you are acting upon. |
+ **bank_feed_account** | [\Apideck\Client\Model\BankFeedAccount](../models/\Apideck\Client\Model\BankFeedAccount.md)| |
+ **x_apideck_consumer_id** | **string**| ID of the consumer which you want to get or push data from |
+ **x_apideck_app_id** | **string**| The ID of your Unify application |
+ **x_apideck_service_id** | **string**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. |
+ **raw** | [**bool**] | Include raw response. Mostly used for debugging purposes | (optional) defaults to false
+
+
+
+### Response Type
+
+[`\Apideck\Client\Model\UpdateBankFeedAccountResponse`](../models/\Apideck\Client\Model\UpdateBankFeedAccountResponse.md)
+
+
+
+### HTTP response details
+| Status code | Description |
+|-------------|-------------|
+**200** | Bank Feed Accounts |
+**400** | Bad Request |
+**401** | Unauthorized |
+**402** | Payment Required |
+**404** | The specified resource was not found |
+**422** | Unprocessable |
+4/5xx | Unexpected error |
+
+
+## Example Usage
+
+```php
+', '', '', '');
+
+$apideck = new Apideck($config);
+
+try {
+ $response = $apideck->getAccountingApi()->bankFeedAccountsUpdate('id_example', $bankFeedAccount);
+ var_dump('API called successfully', $response);
+} catch(ApiException $error) {
+ var_dump('API called failed', $error);
+}
+
+```
+
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
+# Create Bank Feed Statement
+
+
+Method: **bankFeedStatementsAdd**
+
+```php
+Apideck->getAccountingApi()->bankFeedStatementsAdd($data)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **bank_feed_statement** | [\Apideck\Client\Model\BankFeedStatement](../models/\Apideck\Client\Model\BankFeedStatement.md)| |
+ **x_apideck_consumer_id** | **string**| ID of the consumer which you want to get or push data from |
+ **x_apideck_app_id** | **string**| The ID of your Unify application |
+ **x_apideck_service_id** | **string**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. |
+ **raw** | [**bool**] | Include raw response. Mostly used for debugging purposes | (optional) defaults to false
+
+
+
+### Response Type
+
+[`\Apideck\Client\Model\CreateBankFeedStatementResponse`](../models/\Apideck\Client\Model\CreateBankFeedStatementResponse.md)
+
+
+
+### HTTP response details
+| Status code | Description |
+|-------------|-------------|
+**201** | Bank Feed Statements |
+**400** | Bad Request |
+**401** | Unauthorized |
+**402** | Payment Required |
+**404** | The specified resource was not found |
+**422** | Unprocessable |
+4/5xx | Unexpected error |
+
+
+## Example Usage
+
+```php
+', '', '', '');
+
+$apideck = new Apideck($config);
+
+try {
+ $response = $apideck->getAccountingApi()->bankFeedStatementsAdd($bankFeedStatement);
+ var_dump('API called successfully', $response);
+} catch(ApiException $error) {
+ var_dump('API called failed', $error);
+}
+
+```
+
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
+# List Bank Feed Statements
+
+
+Method: **bankFeedStatementsAll**
+
+```php
+Apideck->getAccountingApi()->bankFeedStatementsAll($data)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **x_apideck_consumer_id** | **string**| ID of the consumer which you want to get or push data from |
+ **x_apideck_app_id** | **string**| The ID of your Unify application |
+ **x_apideck_service_id** | **string**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. |
+ **cursor** | **string**| Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. |
+ **pass_through** | [\Apideck\Client\Model\PassThroughQuery](../models/\Apideck\Client\Model\PassThroughQuery.md)| Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads |
+ **fields** | **string**| The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.
Example: `fields=name,email,addresses.city`
In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. |
+ **raw** | [**bool**] | Include raw response. Mostly used for debugging purposes | (optional) defaults to false
+ **limit** | [**int**] | Number of results to return. Minimum 1, Maximum 200, Default 20 | (optional) defaults to 20
+
+
+
+### Response Type
+
+[`\Apideck\Client\Model\GetBankFeedStatementsResponse`](../models/\Apideck\Client\Model\GetBankFeedStatementsResponse.md)
+
+
+
+### HTTP response details
+| Status code | Description |
+|-------------|-------------|
+**200** | Bank Feed Statements |
+**400** | Bad Request |
+**401** | Unauthorized |
+**402** | Payment Required |
+**404** | The specified resource was not found |
+**422** | Unprocessable |
+4/5xx | Unexpected error |
+
+
+## Example Usage
+
+```php
+', '', '', '');
+
+$apideck = new Apideck($config);
+
+try {
+ $response = $apideck->getAccountingApi()->bankFeedStatementsAll();
+ var_dump('API called successfully', $response);
+} catch(ApiException $error) {
+ var_dump('API called failed', $error);
+}
+
+```
+
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
+# Delete Bank Feed Statement
+
+
+Method: **bankFeedStatementsDelete**
+
+```php
+Apideck->getAccountingApi()->bankFeedStatementsDelete($data)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| ID of the record you are acting upon. |
+ **x_apideck_consumer_id** | **string**| ID of the consumer which you want to get or push data from |
+ **x_apideck_app_id** | **string**| The ID of your Unify application |
+ **x_apideck_service_id** | **string**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. |
+ **raw** | [**bool**] | Include raw response. Mostly used for debugging purposes | (optional) defaults to false
+
+
+
+### Response Type
+
+[`\Apideck\Client\Model\DeleteBankFeedStatementResponse`](../models/\Apideck\Client\Model\DeleteBankFeedStatementResponse.md)
+
+
+
+### HTTP response details
+| Status code | Description |
+|-------------|-------------|
+**200** | Bank Feed Statements |
+**400** | Bad Request |
+**401** | Unauthorized |
+**402** | Payment Required |
+**404** | The specified resource was not found |
+**422** | Unprocessable |
+4/5xx | Unexpected error |
+
+
+## Example Usage
+
+```php
+', '', '', '');
+
+$apideck = new Apideck($config);
+
+try {
+ $response = $apideck->getAccountingApi()->bankFeedStatementsDelete('id_example');
+ var_dump('API called successfully', $response);
+} catch(ApiException $error) {
+ var_dump('API called failed', $error);
+}
+
+```
+
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
+# Get Bank Feed Statement
+
+
+Method: **bankFeedStatementsOne**
+
+```php
+Apideck->getAccountingApi()->bankFeedStatementsOne($data)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| ID of the record you are acting upon. |
+ **x_apideck_consumer_id** | **string**| ID of the consumer which you want to get or push data from |
+ **x_apideck_app_id** | **string**| The ID of your Unify application |
+ **x_apideck_service_id** | **string**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. |
+ **fields** | **string**| The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.
Example: `fields=name,email,addresses.city`
In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. |
+ **raw** | [**bool**] | Include raw response. Mostly used for debugging purposes | (optional) defaults to false
+
+
+
+### Response Type
+
+[`\Apideck\Client\Model\GetBankFeedStatementResponse`](../models/\Apideck\Client\Model\GetBankFeedStatementResponse.md)
+
+
+
+### HTTP response details
+| Status code | Description |
+|-------------|-------------|
+**200** | Bank Feed Statements |
+**400** | Bad Request |
+**401** | Unauthorized |
+**402** | Payment Required |
+**404** | The specified resource was not found |
+**422** | Unprocessable |
+4/5xx | Unexpected error |
+
+
+## Example Usage
+
+```php
+', '', '', '');
+
+$apideck = new Apideck($config);
+
+try {
+ $response = $apideck->getAccountingApi()->bankFeedStatementsOne('id_example');
+ var_dump('API called successfully', $response);
+} catch(ApiException $error) {
+ var_dump('API called failed', $error);
+}
+
+```
+
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
+# Update Bank Feed Statement
+
+
+Method: **bankFeedStatementsUpdate**
+
+```php
+Apideck->getAccountingApi()->bankFeedStatementsUpdate($data)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| ID of the record you are acting upon. |
+ **bank_feed_statement** | [\Apideck\Client\Model\BankFeedStatement](../models/\Apideck\Client\Model\BankFeedStatement.md)| |
+ **x_apideck_consumer_id** | **string**| ID of the consumer which you want to get or push data from |
+ **x_apideck_app_id** | **string**| The ID of your Unify application |
+ **x_apideck_service_id** | **string**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. |
+ **raw** | [**bool**] | Include raw response. Mostly used for debugging purposes | (optional) defaults to false
+
+
+
+### Response Type
+
+[`\Apideck\Client\Model\UpdateBankFeedStatementResponse`](../models/\Apideck\Client\Model\UpdateBankFeedStatementResponse.md)
+
+
+
+### HTTP response details
+| Status code | Description |
+|-------------|-------------|
+**200** | Bank Feed Statements |
+**400** | Bad Request |
+**401** | Unauthorized |
+**402** | Payment Required |
+**404** | The specified resource was not found |
+**422** | Unprocessable |
+4/5xx | Unexpected error |
+
+
+## Example Usage
+
+```php
+', '', '', '');
+
+$apideck = new Apideck($config);
+
+try {
+ $response = $apideck->getAccountingApi()->bankFeedStatementsUpdate('id_example', $bankFeedStatement);
+ var_dump('API called successfully', $response);
+} catch(ApiException $error) {
+ var_dump('API called failed', $error);
+}
+
+```
+
+
[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
diff --git a/src/gen/docs/apis/CrmApi.md b/src/gen/docs/apis/CrmApi.md
index f09a6c0a9..76e1812a7 100644
--- a/src/gen/docs/apis/CrmApi.md
+++ b/src/gen/docs/apis/CrmApi.md
@@ -20,6 +20,16 @@
* [Delete Contact](#contactsDelete)
* [Get Contact](#contactsOne)
* [Update Contact](#contactsUpdate)
+* [Create Custom Object Schema](#customObjectSchemasAdd)
+* [List Custom Object Schemas](#customObjectSchemasAll)
+* [Delete Custom Object Schema](#customObjectSchemasDelete)
+* [Get Custom Object Schema](#customObjectSchemasOne)
+* [Update Custom Object Schema](#customObjectSchemasUpdate)
+* [Create Custom Object](#customObjectsAdd)
+* [List Custom Objects](#customObjectsAll)
+* [Delete Custom Object](#customObjectsDelete)
+* [Get Custom Object](#customObjectsOne)
+* [Update Custom Object](#customObjectsUpdate)
* [Create Lead](#leadsAdd)
* [List Leads](#leadsAll)
* [Delete Lead](#leadsDelete)
@@ -1056,6 +1066,678 @@ try {
```
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
+# Create Custom Object Schema
+
+
+Method: **customObjectSchemasAdd**
+
+```php
+Apideck->getCrmApi()->customObjectSchemasAdd($data)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **custom_object_schema** | [\Apideck\Client\Model\CustomObjectSchema](../models/\Apideck\Client\Model\CustomObjectSchema.md)| |
+ **x_apideck_consumer_id** | **string**| ID of the consumer which you want to get or push data from |
+ **x_apideck_app_id** | **string**| The ID of your Unify application |
+ **x_apideck_service_id** | **string**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. |
+ **raw** | [**bool**] | Include raw response. Mostly used for debugging purposes | (optional) defaults to false
+
+
+
+### Response Type
+
+[`\Apideck\Client\Model\CreateCustomObjectSchemaResponse`](../models/\Apideck\Client\Model\CreateCustomObjectSchemaResponse.md)
+
+
+
+### HTTP response details
+| Status code | Description |
+|-------------|-------------|
+**201** | Custom object schema created |
+**400** | Bad Request |
+**401** | Unauthorized |
+**402** | Payment Required |
+**404** | The specified resource was not found |
+**422** | Unprocessable |
+4/5xx | Unexpected error |
+
+
+## Example Usage
+
+```php
+', '', '', '');
+
+$apideck = new Apideck($config);
+
+try {
+ $response = $apideck->getCrmApi()->customObjectSchemasAdd($customObjectSchema);
+ var_dump('API called successfully', $response);
+} catch(ApiException $error) {
+ var_dump('API called failed', $error);
+}
+
+```
+
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
+# List Custom Object Schemas
+
+
+Method: **customObjectSchemasAll**
+
+```php
+Apideck->getCrmApi()->customObjectSchemasAll($data)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **x_apideck_consumer_id** | **string**| ID of the consumer which you want to get or push data from |
+ **x_apideck_app_id** | **string**| The ID of your Unify application |
+ **x_apideck_service_id** | **string**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. |
+ **cursor** | **string**| Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. |
+ **pass_through** | [\Apideck\Client\Model\PassThroughQuery](../models/\Apideck\Client\Model\PassThroughQuery.md)| Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads |
+ **raw** | [**bool**] | Include raw response. Mostly used for debugging purposes | (optional) defaults to false
+ **limit** | [**int**] | Number of results to return. Minimum 1, Maximum 200, Default 20 | (optional) defaults to 20
+
+
+
+### Response Type
+
+[`\Apideck\Client\Model\GetCustomObjectSchemasResponse`](../models/\Apideck\Client\Model\GetCustomObjectSchemasResponse.md)
+
+
+
+### HTTP response details
+| Status code | Description |
+|-------------|-------------|
+**200** | Custom object schemas |
+**400** | Bad Request |
+**401** | Unauthorized |
+**402** | Payment Required |
+**404** | The specified resource was not found |
+**422** | Unprocessable |
+4/5xx | Unexpected error |
+
+
+## Example Usage
+
+```php
+', '', '', '');
+
+$apideck = new Apideck($config);
+
+try {
+ $response = $apideck->getCrmApi()->customObjectSchemasAll();
+ var_dump('API called successfully', $response);
+} catch(ApiException $error) {
+ var_dump('API called failed', $error);
+}
+
+```
+
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
+# Delete Custom Object Schema
+
+
+Method: **customObjectSchemasDelete**
+
+```php
+Apideck->getCrmApi()->customObjectSchemasDelete($data)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| ID of the record you are acting upon. |
+ **x_apideck_consumer_id** | **string**| ID of the consumer which you want to get or push data from |
+ **x_apideck_app_id** | **string**| The ID of your Unify application |
+ **x_apideck_service_id** | **string**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. |
+ **raw** | [**bool**] | Include raw response. Mostly used for debugging purposes | (optional) defaults to false
+
+
+
+### Response Type
+
+[`\Apideck\Client\Model\DeleteCustomObjectSchemaResponse`](../models/\Apideck\Client\Model\DeleteCustomObjectSchemaResponse.md)
+
+
+
+### HTTP response details
+| Status code | Description |
+|-------------|-------------|
+**200** | Custom object schema deleted |
+**400** | Bad Request |
+**401** | Unauthorized |
+**402** | Payment Required |
+**404** | The specified resource was not found |
+**422** | Unprocessable |
+4/5xx | Unexpected error |
+
+
+## Example Usage
+
+```php
+', '', '', '');
+
+$apideck = new Apideck($config);
+
+try {
+ $response = $apideck->getCrmApi()->customObjectSchemasDelete('id_example');
+ var_dump('API called successfully', $response);
+} catch(ApiException $error) {
+ var_dump('API called failed', $error);
+}
+
+```
+
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
+# Get Custom Object Schema
+
+
+Method: **customObjectSchemasOne**
+
+```php
+Apideck->getCrmApi()->customObjectSchemasOne($data)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| ID of the record you are acting upon. |
+ **x_apideck_consumer_id** | **string**| ID of the consumer which you want to get or push data from |
+ **x_apideck_app_id** | **string**| The ID of your Unify application |
+ **x_apideck_service_id** | **string**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. |
+ **raw** | [**bool**] | Include raw response. Mostly used for debugging purposes | (optional) defaults to false
+
+
+
+### Response Type
+
+[`\Apideck\Client\Model\GetCustomObjectSchemaResponse`](../models/\Apideck\Client\Model\GetCustomObjectSchemaResponse.md)
+
+
+
+### HTTP response details
+| Status code | Description |
+|-------------|-------------|
+**200** | Custom object schema |
+**400** | Bad Request |
+**401** | Unauthorized |
+**402** | Payment Required |
+**404** | The specified resource was not found |
+**422** | Unprocessable |
+4/5xx | Unexpected error |
+
+
+## Example Usage
+
+```php
+', '', '', '');
+
+$apideck = new Apideck($config);
+
+try {
+ $response = $apideck->getCrmApi()->customObjectSchemasOne('id_example');
+ var_dump('API called successfully', $response);
+} catch(ApiException $error) {
+ var_dump('API called failed', $error);
+}
+
+```
+
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
+# Update Custom Object Schema
+
+
+Method: **customObjectSchemasUpdate**
+
+```php
+Apideck->getCrmApi()->customObjectSchemasUpdate($data)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| ID of the record you are acting upon. |
+ **custom_object_schema** | [\Apideck\Client\Model\CustomObjectSchema](../models/\Apideck\Client\Model\CustomObjectSchema.md)| |
+ **x_apideck_consumer_id** | **string**| ID of the consumer which you want to get or push data from |
+ **x_apideck_app_id** | **string**| The ID of your Unify application |
+ **x_apideck_service_id** | **string**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. |
+ **raw** | [**bool**] | Include raw response. Mostly used for debugging purposes | (optional) defaults to false
+
+
+
+### Response Type
+
+[`\Apideck\Client\Model\UpdateCustomObjectSchemaResponse`](../models/\Apideck\Client\Model\UpdateCustomObjectSchemaResponse.md)
+
+
+
+### HTTP response details
+| Status code | Description |
+|-------------|-------------|
+**200** | Custom object schema updated |
+**400** | Bad Request |
+**401** | Unauthorized |
+**402** | Payment Required |
+**404** | The specified resource was not found |
+**422** | Unprocessable |
+4/5xx | Unexpected error |
+
+
+## Example Usage
+
+```php
+', '', '', '');
+
+$apideck = new Apideck($config);
+
+try {
+ $response = $apideck->getCrmApi()->customObjectSchemasUpdate('id_example', $customObjectSchema);
+ var_dump('API called successfully', $response);
+} catch(ApiException $error) {
+ var_dump('API called failed', $error);
+}
+
+```
+
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
+# Create Custom Object
+
+
+Method: **customObjectsAdd**
+
+```php
+Apideck->getCrmApi()->customObjectsAdd($data)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **object_id** | **string**| The id of the custom object to query |
+ **custom_object** | [\Apideck\Client\Model\CustomObject](../models/\Apideck\Client\Model\CustomObject.md)| |
+ **x_apideck_consumer_id** | **string**| ID of the consumer which you want to get or push data from |
+ **x_apideck_app_id** | **string**| The ID of your Unify application |
+ **x_apideck_service_id** | **string**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. |
+ **raw** | [**bool**] | Include raw response. Mostly used for debugging purposes | (optional) defaults to false
+
+
+
+### Response Type
+
+[`\Apideck\Client\Model\CreateCustomObjectResponse`](../models/\Apideck\Client\Model\CreateCustomObjectResponse.md)
+
+
+
+### HTTP response details
+| Status code | Description |
+|-------------|-------------|
+**201** | Custom object created |
+**400** | Bad Request |
+**401** | Unauthorized |
+**402** | Payment Required |
+**404** | The specified resource was not found |
+**422** | Unprocessable |
+4/5xx | Unexpected error |
+
+
+## Example Usage
+
+```php
+', '', '', '');
+
+$apideck = new Apideck($config);
+
+try {
+ $response = $apideck->getCrmApi()->customObjectsAdd('object_id_example', $customObject);
+ var_dump('API called successfully', $response);
+} catch(ApiException $error) {
+ var_dump('API called failed', $error);
+}
+
+```
+
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
+# List Custom Objects
+
+
+Method: **customObjectsAll**
+
+```php
+Apideck->getCrmApi()->customObjectsAll($data)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **object_id** | **string**| The id of the custom object to query |
+ **x_apideck_consumer_id** | **string**| ID of the consumer which you want to get or push data from |
+ **x_apideck_app_id** | **string**| The ID of your Unify application |
+ **x_apideck_service_id** | **string**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. |
+ **cursor** | **string**| Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. |
+ **pass_through** | [\Apideck\Client\Model\PassThroughQuery](../models/\Apideck\Client\Model\PassThroughQuery.md)| Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads |
+ **fields** | **string**| The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.
Example: `fields=name,email,addresses.city`
In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. |
+ **raw** | [**bool**] | Include raw response. Mostly used for debugging purposes | (optional) defaults to false
+ **limit** | [**int**] | Number of results to return. Minimum 1, Maximum 200, Default 20 | (optional) defaults to 20
+
+
+
+### Response Type
+
+[`\Apideck\Client\Model\GetCustomObjectsResponse`](../models/\Apideck\Client\Model\GetCustomObjectsResponse.md)
+
+
+
+### HTTP response details
+| Status code | Description |
+|-------------|-------------|
+**200** | Custom objects |
+**400** | Bad Request |
+**401** | Unauthorized |
+**402** | Payment Required |
+**404** | The specified resource was not found |
+**422** | Unprocessable |
+4/5xx | Unexpected error |
+
+
+## Example Usage
+
+```php
+', '', '', '');
+
+$apideck = new Apideck($config);
+
+try {
+ $response = $apideck->getCrmApi()->customObjectsAll('object_id_example');
+ var_dump('API called successfully', $response);
+} catch(ApiException $error) {
+ var_dump('API called failed', $error);
+}
+
+```
+
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
+# Delete Custom Object
+
+
+Method: **customObjectsDelete**
+
+```php
+Apideck->getCrmApi()->customObjectsDelete($data)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| ID of the record you are acting upon. |
+ **object_id** | **string**| The id of the custom object to query |
+ **x_apideck_consumer_id** | **string**| ID of the consumer which you want to get or push data from |
+ **x_apideck_app_id** | **string**| The ID of your Unify application |
+ **x_apideck_service_id** | **string**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. |
+ **raw** | [**bool**] | Include raw response. Mostly used for debugging purposes | (optional) defaults to false
+
+
+
+### Response Type
+
+[`\Apideck\Client\Model\DeleteCustomObjectResponse`](../models/\Apideck\Client\Model\DeleteCustomObjectResponse.md)
+
+
+
+### HTTP response details
+| Status code | Description |
+|-------------|-------------|
+**200** | Custom object deleted |
+**400** | Bad Request |
+**401** | Unauthorized |
+**402** | Payment Required |
+**404** | The specified resource was not found |
+**422** | Unprocessable |
+4/5xx | Unexpected error |
+
+
+## Example Usage
+
+```php
+', '', '', '');
+
+$apideck = new Apideck($config);
+
+try {
+ $response = $apideck->getCrmApi()->customObjectsDelete('id_example', 'object_id_example');
+ var_dump('API called successfully', $response);
+} catch(ApiException $error) {
+ var_dump('API called failed', $error);
+}
+
+```
+
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
+# Get Custom Object
+
+
+Method: **customObjectsOne**
+
+```php
+Apideck->getCrmApi()->customObjectsOne($data)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| ID of the record you are acting upon. |
+ **object_id** | **string**| The id of the custom object to query |
+ **x_apideck_consumer_id** | **string**| ID of the consumer which you want to get or push data from |
+ **x_apideck_app_id** | **string**| The ID of your Unify application |
+ **x_apideck_service_id** | **string**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. |
+ **raw** | [**bool**] | Include raw response. Mostly used for debugging purposes | (optional) defaults to false
+
+
+
+### Response Type
+
+[`\Apideck\Client\Model\GetCustomObjectResponse`](../models/\Apideck\Client\Model\GetCustomObjectResponse.md)
+
+
+
+### HTTP response details
+| Status code | Description |
+|-------------|-------------|
+**200** | Custom object |
+**400** | Bad Request |
+**401** | Unauthorized |
+**402** | Payment Required |
+**404** | The specified resource was not found |
+**422** | Unprocessable |
+4/5xx | Unexpected error |
+
+
+## Example Usage
+
+```php
+', '', '', '');
+
+$apideck = new Apideck($config);
+
+try {
+ $response = $apideck->getCrmApi()->customObjectsOne('id_example', 'object_id_example');
+ var_dump('API called successfully', $response);
+} catch(ApiException $error) {
+ var_dump('API called failed', $error);
+}
+
+```
+
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
+# Update Custom Object
+
+
+Method: **customObjectsUpdate**
+
+```php
+Apideck->getCrmApi()->customObjectsUpdate($data)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| ID of the record you are acting upon. |
+ **object_id** | **string**| The id of the custom object to query |
+ **custom_object** | [\Apideck\Client\Model\CustomObject](../models/\Apideck\Client\Model\CustomObject.md)| |
+ **x_apideck_consumer_id** | **string**| ID of the consumer which you want to get or push data from |
+ **x_apideck_app_id** | **string**| The ID of your Unify application |
+ **x_apideck_service_id** | **string**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. |
+ **raw** | [**bool**] | Include raw response. Mostly used for debugging purposes | (optional) defaults to false
+
+
+
+### Response Type
+
+[`\Apideck\Client\Model\UpdateCustomObjectResponse`](../models/\Apideck\Client\Model\UpdateCustomObjectResponse.md)
+
+
+
+### HTTP response details
+| Status code | Description |
+|-------------|-------------|
+**200** | Custom object updated |
+**400** | Bad Request |
+**401** | Unauthorized |
+**402** | Payment Required |
+**404** | The specified resource was not found |
+**422** | Unprocessable |
+4/5xx | Unexpected error |
+
+
+## Example Usage
+
+```php
+', '', '', '');
+
+$apideck = new Apideck($config);
+
+try {
+ $response = $apideck->getCrmApi()->customObjectsUpdate('id_example', 'object_id_example', $customObject);
+ var_dump('API called successfully', $response);
+} catch(ApiException $error) {
+ var_dump('API called failed', $error);
+}
+
+```
+
+
[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
diff --git a/src/gen/docs/models/AccountingDepartment.md b/src/gen/docs/models/AccountingDepartment.md
index 3535e08e9..3bb930df3 100644
--- a/src/gen/docs/models/AccountingDepartment.md
+++ b/src/gen/docs/models/AccountingDepartment.md
@@ -10,7 +10,8 @@ Name | Type | Description | Notes
`name` | **string** | The name of the department. | [optional]
`status` | **string** | Based on the status some functionality is enabled or disabled. | [optional]
`subsidiaries` | [**\Apideck\Client\Model\SubsidiaryReference[]**](SubsidiaryReference.md) | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`code` | **string** | The code of the department. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`row_version` | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
@@ -47,6 +48,7 @@ Name | Type | Description | Notes
+
---
[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
diff --git a/src/gen/docs/models/AccountingLocation.md b/src/gen/docs/models/AccountingLocation.md
index dc46860a2..485e32645 100644
--- a/src/gen/docs/models/AccountingLocation.md
+++ b/src/gen/docs/models/AccountingLocation.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
`status` | **string** | Based on the status some functionality is enabled or disabled. | [optional]
`addresses` | [**\Apideck\Client\Model\Address[]**](Address.md) | | [optional]
`subsidiaries` | [**\Apideck\Client\Model\SubsidiaryReference[]**](SubsidiaryReference.md) | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`row_version` | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
diff --git a/src/gen/docs/models/Activity.md b/src/gen/docs/models/Activity.md
index 31b7de38e..5afee87bc 100644
--- a/src/gen/docs/models/Activity.md
+++ b/src/gen/docs/models/Activity.md
@@ -51,7 +51,7 @@ Name | Type | Description | Notes
`video_conference_id` | **string** | The ID of the video conference | [optional]
`custom_fields` | [**\Apideck\Client\Model\CustomField[]**](CustomField.md) | Custom fields of the activity | [optional]
`attendees` | [**\Apideck\Client\Model\ActivityAttendee[]**](ActivityAttendee.md) | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user who last updated the activity | [optional]
`created_by` | **string** | The user who created the activity | [optional]
`updated_at` | **string** | The date and time when the activity was last updated | [optional]
diff --git a/src/gen/docs/models/Applicant.md b/src/gen/docs/models/Applicant.md
index 1914f91c3..d4e8eac33 100644
--- a/src/gen/docs/models/Applicant.md
+++ b/src/gen/docs/models/Applicant.md
@@ -41,7 +41,7 @@ Name | Type | Description | Notes
`cv_url` | **string** | | [optional]
`record_url` | **string** | | [optional]
`rejected_at` | **\DateTime** | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`deleted` | **bool** | Flag to indicate if the object is deleted. | [optional]
`deleted_by` | **string** | The user who deleted the object. | [optional]
`deleted_at` | **\DateTime** | The time at which the object was deleted. | [optional]
diff --git a/src/gen/docs/models/Application.md b/src/gen/docs/models/Application.md
index 1323d0bd8..9d3f6fe75 100644
--- a/src/gen/docs/models/Application.md
+++ b/src/gen/docs/models/Application.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
`id` | **string** | A unique identifier for an object. | [optional]
`status` | **string** | | [optional]
`stage` | [**\Apideck\Client\Model\ApplicationStage**](ApplicationStage.md) | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
diff --git a/src/gen/docs/models/AtsActivity.md b/src/gen/docs/models/AtsActivity.md
index 4fe1b7e87..fa2a63cbb 100644
--- a/src/gen/docs/models/AtsActivity.md
+++ b/src/gen/docs/models/AtsActivity.md
@@ -6,7 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
`id` | **string** | A unique identifier for an object. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
diff --git a/src/gen/docs/models/BalanceSheetReports.md b/src/gen/docs/models/BalanceSheetReports.md
index 1b140259f..d798c2a40 100644
--- a/src/gen/docs/models/BalanceSheetReports.md
+++ b/src/gen/docs/models/BalanceSheetReports.md
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
`start_date` | **string** | The start date of the report | [optional]
`currency` | [**\Apideck\Client\Model\Currency**](Currency.md) | | [optional]
`net_assets` | **float** | The net assets of the balance sheet | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
diff --git a/src/gen/docs/models/BankFeedAccount.md b/src/gen/docs/models/BankFeedAccount.md
new file mode 100644
index 000000000..75868b123
--- /dev/null
+++ b/src/gen/docs/models/BankFeedAccount.md
@@ -0,0 +1,71 @@
+# Apideck.BankFeedAccount
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`id` | **string** | A unique identifier for an object. |
+`bank_account_type` | **string** | Type of the bank account. | [optional]
+`source_account_id` | **string** | The source account's unique identifier. | [optional]
+`target_account_id` | **string** | The target account's unique identifier in the accounting connector. | [optional]
+`target_account_name` | **string** | Name associated with the target account. | [optional]
+`target_account_number` | **string** | Account number of the destination bank account. | [optional]
+`currency` | [**\Apideck\Client\Model\Currency**](Currency.md) | | [optional]
+`feed_status` | **string** | Current status of the bank feed. | [optional]
+`country` | **string** | Country code according to ISO 3166-1 alpha-2. | [optional]
+`custom_fields` | [**\Apideck\Client\Model\CustomField[]**](CustomField.md) | | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`created_at` | **\DateTime** | The date and time when the object was created. | [optional]
+`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
+`updated_by` | **string** | The user who last updated the object. | [optional]
+`created_by` | **string** | The user who created the object. | [optional]
+
+
+
+
+
+
+## Enum: BankFeedAccount.bank_account_type
+
+
+* `BANK` (value: `'bank'`)
+
+* `CREDIT_CARD` (value: `'credit_card'`)
+
+
+
+
+
+## Enum: BankFeedAccount.feed_status
+
+
+* `PENDING` (value: `'pending'`)
+
+* `REJECTED` (value: `'rejected'`)
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+
+* [`Currency`](Currency.md)
+
+
+* [`CustomField`](CustomField.md)
+
+
+
+
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/BankFeedStatement.md b/src/gen/docs/models/BankFeedStatement.md
new file mode 100644
index 000000000..feb7c7ad0
--- /dev/null
+++ b/src/gen/docs/models/BankFeedStatement.md
@@ -0,0 +1,60 @@
+# Apideck.BankFeedStatement
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`id` | **string** | A unique identifier for an object. |
+`bank_feed_account_id` | **string** | The ID of the bank feed account this statement belongs to. | [optional]
+`status` | **string** | The current status of the bank feed statement. | [optional]
+`start_date` | **\DateTime** | Start date of the bank feed statement. | [optional]
+`end_date` | **\DateTime** | End date of the bank feed statement. | [optional]
+`start_balance` | **float** | Balance amount at the start of the period. | [optional]
+`start_balance_credit_or_debit` | [**\Apideck\Client\Model\CreditOrDebit**](CreditOrDebit.md) | | [optional]
+`end_balance` | **float** | Balance amount at the end of the period. | [optional]
+`end_balance_credit_or_debit` | [**\Apideck\Client\Model\CreditOrDebit**](CreditOrDebit.md) | | [optional]
+`transactions` | [**\Apideck\Client\Model\BankFeedStatementTransactions[]**](BankFeedStatementTransactions.md) | List of transactions in the bank feed statement. | [optional]
+`created_at` | **\DateTime** | The date and time when the object was created. | [optional]
+`created_by` | **string** | The user who created the object. | [optional]
+`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
+`updated_by` | **string** | The user who last updated the object. | [optional]
+
+
+
+
+
+
+## Enum: BankFeedStatement.status
+
+
+* `PENDING` (value: `'pending'`)
+
+* `REJECTED` (value: `'rejected'`)
+
+* `SUCCESS` (value: `'success'`)
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+
+* [`CreditOrDebit`](CreditOrDebit.md)
+
+* [`CreditOrDebit`](CreditOrDebit.md)
+* [`BankFeedStatementTransactions`](BankFeedStatementTransactions.md)
+
+
+
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/BankFeedStatementTransactions.md b/src/gen/docs/models/BankFeedStatementTransactions.md
new file mode 100644
index 000000000..cfe6d19dc
--- /dev/null
+++ b/src/gen/docs/models/BankFeedStatementTransactions.md
@@ -0,0 +1,54 @@
+# Apideck.BankFeedStatementTransactions
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`posted_date` | **\DateTime** | The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD |
+`amount` | **float** | The amount of the transaction. |
+`credit_or_debit` | [**\Apideck\Client\Model\CreditOrDebit**](CreditOrDebit.md) | |
+`source_transaction_id` | **string** | The ID of the source transaction. |
+`description` | **string** | A description of the transaction. | [optional]
+`counterparty` | **string** | The counterparty of the transaction. | [optional]
+`reference` | **string** | The reference of the transaction. | [optional]
+`transaction_type` | **string** | Type of transaction. | [optional]
+
+
+
+
+
+
+## Enum: BankFeedStatementTransactions.transaction_type
+
+
+* `CREDIT` (value: `'credit'`)
+
+* `DEBIT` (value: `'debit'`)
+
+* `DEPOSIT` (value: `'deposit'`)
+
+* `TRANSFER` (value: `'transfer'`)
+
+* `PAYMENT` (value: `'payment'`)
+
+* `OTHER` (value: `'other'`)
+
+
+
+
+## Referenced Types:
+
+
+* [`CreditOrDebit`](CreditOrDebit.md)
+
+
+
+
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/Bill.md b/src/gen/docs/models/Bill.md
index b156a8334..ae72b6e12 100644
--- a/src/gen/docs/models/Bill.md
+++ b/src/gen/docs/models/Bill.md
@@ -43,7 +43,7 @@ Name | Type | Description | Notes
`created_at` | **\DateTime** | The date and time when the object was created. | [optional]
`row_version` | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional]
`custom_fields` | [**\Apideck\Client\Model\CustomField[]**](CustomField.md) | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`pass_through` | **object[]** | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | [optional]
`accounting_period` | **string** | Accounting period | [optional]
diff --git a/src/gen/docs/models/BillPayment.md b/src/gen/docs/models/BillPayment.md
index fb49ee455..0c473e231 100644
--- a/src/gen/docs/models/BillPayment.md
+++ b/src/gen/docs/models/BillPayment.md
@@ -28,7 +28,7 @@ Name | Type | Description | Notes
`custom_fields` | [**\Apideck\Client\Model\CustomField[]**](CustomField.md) | | [optional]
`row_version` | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional]
`display_id` | **string** | Id to be displayed. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
`created_at` | **\DateTime** | The date and time when the object was created. | [optional]
diff --git a/src/gen/docs/models/Collection.md b/src/gen/docs/models/Collection.md
index ca3942734..21c8a21f0 100644
--- a/src/gen/docs/models/Collection.md
+++ b/src/gen/docs/models/Collection.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
`type` | **string** | The collections's type | [optional]
`name` | **string** | Name of the collection | [optional]
`description` | **string** | Description of the collection | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
`created_at` | **\DateTime** | The date and time when the object was created. | [optional]
diff --git a/src/gen/docs/models/CollectionTag.md b/src/gen/docs/models/CollectionTag.md
index 885f0270e..de20b959b 100644
--- a/src/gen/docs/models/CollectionTag.md
+++ b/src/gen/docs/models/CollectionTag.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
`id` | **string** | A unique identifier for an object. |
`name` | **string** | The name of the tag. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
diff --git a/src/gen/docs/models/CollectionTicketComment.md b/src/gen/docs/models/CollectionTicketComment.md
index 519a5b216..464d11b79 100644
--- a/src/gen/docs/models/CollectionTicketComment.md
+++ b/src/gen/docs/models/CollectionTicketComment.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
`id` | **string** | A unique identifier for an object. | [optional]
`body` | **string** | Body of the comment | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
`created_at` | **\DateTime** | The date and time when the object was created. | [optional]
diff --git a/src/gen/docs/models/CollectionUser.md b/src/gen/docs/models/CollectionUser.md
index de7f227a7..5e75d9e03 100644
--- a/src/gen/docs/models/CollectionUser.md
+++ b/src/gen/docs/models/CollectionUser.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
`last_name` | **string** | Last name of the user | [optional]
`email` | **string** | Email address of the user | [optional]
`photo_url` | **string** | The URL of the photo of a person. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
`created_at` | **\DateTime** | The date and time when the object was created. | [optional]
diff --git a/src/gen/docs/models/Company.md b/src/gen/docs/models/Company.md
index 8d0658bec..417b024a8 100644
--- a/src/gen/docs/models/Company.md
+++ b/src/gen/docs/models/Company.md
@@ -41,7 +41,7 @@ Name | Type | Description | Notes
`deleted` | **bool** | Whether the company is deleted or not | [optional]
`salutation` | **string** | A formal salutation for the person. For example, 'Mr', 'Mrs' | [optional]
`birthday` | **\DateTime** | The date of birth of the person. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | Updated by user ID | [optional]
`created_by` | **string** | Created by user ID | [optional]
`updated_at` | **\DateTime** | Last updated date | [optional]
diff --git a/src/gen/docs/models/CompanyInfo.md b/src/gen/docs/models/CompanyInfo.md
index 305a8d70f..83ffbbc93 100644
--- a/src/gen/docs/models/CompanyInfo.md
+++ b/src/gen/docs/models/CompanyInfo.md
@@ -21,7 +21,7 @@ Name | Type | Description | Notes
`addresses` | [**\Apideck\Client\Model\Address[]**](Address.md) | | [optional]
`phone_numbers` | [**\Apideck\Client\Model\PhoneNumber[]**](PhoneNumber.md) | | [optional]
`emails` | [**\Apideck\Client\Model\Email[]**](Email.md) | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`row_version` | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
diff --git a/src/gen/docs/models/Contact.md b/src/gen/docs/models/Contact.md
index e906d50ac..1cc011b9b 100644
--- a/src/gen/docs/models/Contact.md
+++ b/src/gen/docs/models/Contact.md
@@ -41,7 +41,7 @@ Name | Type | Description | Notes
`first_call_at` | **\DateTime** | The first call date of the contact. | [optional]
`first_email_at` | **\DateTime** | The first email date of the contact. | [optional]
`last_activity_at` | **\DateTime** | The last activity date of the contact. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_at` | **\DateTime** | The last update date of the contact. | [optional]
`created_at` | **\DateTime** | The creation date of the contact. | [optional]
`opportunity_ids` | **string[]** | The opportunity ids of the contact. | [optional]
diff --git a/src/gen/docs/models/CreateBankFeedAccountResponse.md b/src/gen/docs/models/CreateBankFeedAccountResponse.md
new file mode 100644
index 000000000..4b3d30ba1
--- /dev/null
+++ b/src/gen/docs/models/CreateBankFeedAccountResponse.md
@@ -0,0 +1,33 @@
+# Apideck.CreateBankFeedAccountResponse
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`status_code` | **int** | HTTP Response Status Code |
+`status` | **string** | HTTP Response Status |
+`service` | **string** | Apideck ID of service provider |
+`resource` | **string** | Unified API resource name |
+`operation` | **string** | Operation performed |
+`data` | [**\Apideck\Client\Model\UnifiedId**](UnifiedId.md) | |
+`_raw` | **array<string,object>** | Raw response from the integration when raw=true query param is provided | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+* [`UnifiedId`](UnifiedId.md)
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/CreateBankFeedStatementResponse.md b/src/gen/docs/models/CreateBankFeedStatementResponse.md
new file mode 100644
index 000000000..f84eb8de1
--- /dev/null
+++ b/src/gen/docs/models/CreateBankFeedStatementResponse.md
@@ -0,0 +1,33 @@
+# Apideck.CreateBankFeedStatementResponse
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`status_code` | **int** | HTTP Response Status Code |
+`status` | **string** | HTTP Response Status |
+`service` | **string** | Apideck ID of service provider |
+`resource` | **string** | Unified API resource name |
+`operation` | **string** | Operation performed |
+`data` | [**\Apideck\Client\Model\UnifiedId**](UnifiedId.md) | |
+`_raw` | **array<string,object>** | Raw response from the integration when raw=true query param is provided | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+* [`UnifiedId`](UnifiedId.md)
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/CreateCustomObjectResponse.md b/src/gen/docs/models/CreateCustomObjectResponse.md
new file mode 100644
index 000000000..2c1b2978e
--- /dev/null
+++ b/src/gen/docs/models/CreateCustomObjectResponse.md
@@ -0,0 +1,33 @@
+# Apideck.CreateCustomObjectResponse
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`status_code` | **int** | HTTP Response Status Code |
+`status` | **string** | HTTP Response Status |
+`service` | **string** | Apideck ID of service provider |
+`resource` | **string** | Unified API resource name |
+`operation` | **string** | Operation performed |
+`data` | [**\Apideck\Client\Model\UnifiedId**](UnifiedId.md) | |
+`_raw` | **array<string,object>** | Raw response from the integration when raw=true query param is provided | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+* [`UnifiedId`](UnifiedId.md)
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/CreateCustomObjectSchemaResponse.md b/src/gen/docs/models/CreateCustomObjectSchemaResponse.md
new file mode 100644
index 000000000..1ad46a6ec
--- /dev/null
+++ b/src/gen/docs/models/CreateCustomObjectSchemaResponse.md
@@ -0,0 +1,33 @@
+# Apideck.CreateCustomObjectSchemaResponse
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`status_code` | **int** | HTTP Response Status Code |
+`status` | **string** | HTTP Response Status |
+`service` | **string** | Apideck ID of service provider |
+`resource` | **string** | Unified API resource name |
+`operation` | **string** | Operation performed |
+`data` | [**\Apideck\Client\Model\CustomObjectSchema**](CustomObjectSchema.md) | |
+`_raw` | **array<string,object>** | Raw response from the integration when raw=true query param is provided | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+* [`CustomObjectSchema`](CustomObjectSchema.md)
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/CreditNote.md b/src/gen/docs/models/CreditNote.md
index 24c1ae78c..7238a5222 100644
--- a/src/gen/docs/models/CreditNote.md
+++ b/src/gen/docs/models/CreditNote.md
@@ -31,7 +31,7 @@ Name | Type | Description | Notes
`billing_address` | [**\Apideck\Client\Model\Address**](Address.md) | | [optional]
`shipping_address` | [**\Apideck\Client\Model\Address**](Address.md) | | [optional]
`tracking_categories` | [**\Apideck\Client\Model\LinkedTrackingCategory[]**](LinkedTrackingCategory.md) | A list of linked tracking categories. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`custom_fields` | [**\Apideck\Client\Model\CustomField[]**](CustomField.md) | | [optional]
`row_version` | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
diff --git a/src/gen/docs/models/CreditOrDebit.md b/src/gen/docs/models/CreditOrDebit.md
new file mode 100644
index 000000000..74844f97c
--- /dev/null
+++ b/src/gen/docs/models/CreditOrDebit.md
@@ -0,0 +1,15 @@
+# Apideck.CreditOrDebit
+
+## Enum
+
+
+* `CREDIT` (value: `'credit'`)
+
+* `DEBIT` (value: `'debit'`)
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/CustomObject.md b/src/gen/docs/models/CustomObject.md
new file mode 100644
index 000000000..49d8f968a
--- /dev/null
+++ b/src/gen/docs/models/CustomObject.md
@@ -0,0 +1,37 @@
+# Apideck.CustomObject
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`id` | **string** | The unique identifier of the custom object | [optional]
+`owner_id` | **string** | The unique identifier of the owner of the custom object | [optional]
+`name` | **string** | The name of the custom object | [optional]
+`fields` | [**\Apideck\Client\Model\CustomObjectFields[]**](CustomObjectFields.md) | | [optional]
+`updated_by` | **string** | The unique identifier of the user who last updated the custom object | [optional]
+`created_by` | **string** | The unique identifier of the user who created the custom object | [optional]
+`updated_at` | **string** | The timestamp when the custom object was last updated | [optional]
+`created_at` | **string** | The timestamp when the custom object was created | [optional]
+`pass_through` | **object[]** | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+
+* [`CustomObjectFields`](CustomObjectFields.md)
+
+
+
+
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/CustomObjectFields.md b/src/gen/docs/models/CustomObjectFields.md
new file mode 100644
index 000000000..62783c995
--- /dev/null
+++ b/src/gen/docs/models/CustomObjectFields.md
@@ -0,0 +1,19 @@
+# Apideck.CustomObjectFields
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`name` | **string** | | [optional]
+`value` | **string** | | [optional]
+
+
+
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/CustomObjectSchema.md b/src/gen/docs/models/CustomObjectSchema.md
new file mode 100644
index 000000000..d393cbb42
--- /dev/null
+++ b/src/gen/docs/models/CustomObjectSchema.md
@@ -0,0 +1,41 @@
+# Apideck.CustomObjectSchema
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`id` | **string** | The unique identifier of the custom object schema | [optional]
+`name` | **string** | The name of the custom object schema | [optional]
+`description` | **string** | The description of the custom object schema | [optional]
+`fields` | [**\Apideck\Client\Model\CustomObjectSchemaFields[]**](CustomObjectSchemaFields.md) | The fields defined in the schema | [optional]
+`visible` | **bool** | Whether the custom object schema is visible in the UI | [optional]
+`active` | **bool** | Whether the custom object schema is active | [optional]
+`created_by` | **string** | The ID of the user who created the custom object schema | [optional]
+`updated_by` | **string** | The ID of the user who last updated the custom object schema | [optional]
+`updated_at` | **string** | The timestamp when the custom object schema was last updated | [optional]
+`created_at` | **string** | The timestamp when the custom object schema was created | [optional]
+`pass_through` | **object[]** | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+
+* [`CustomObjectSchemaFields`](CustomObjectSchemaFields.md)
+
+
+
+
+
+
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/CustomObjectSchemaFields.md b/src/gen/docs/models/CustomObjectSchemaFields.md
new file mode 100644
index 000000000..a81e66532
--- /dev/null
+++ b/src/gen/docs/models/CustomObjectSchemaFields.md
@@ -0,0 +1,64 @@
+# Apideck.CustomObjectSchemaFields
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`id` | **string** | | [optional]
+`name` | **string** | | [optional]
+`description` | **string** | | [optional]
+`type` | **string** | | [optional]
+`required` | **bool** | | [optional]
+`options` | [**\Apideck\Client\Model\CustomObjectSchemaOptions[]**](CustomObjectSchemaOptions.md) | Options for select and multiselect types | [optional]
+`default_value` | **string** | Default value for the field | [optional]
+
+
+
+
+
+
+## Enum: CustomObjectSchemaFields.type
+
+
+* `STRING` (value: `'string'`)
+
+* `NUMBER` (value: `'number'`)
+
+* `INTEGER` (value: `'integer'`)
+
+* `BOOLEAN` (value: `'boolean'`)
+
+* `DATE` (value: `'date'`)
+
+* `DATETIME` (value: `'datetime'`)
+
+* `CURRENCY` (value: `'currency'`)
+
+* `EMAIL` (value: `'email'`)
+
+* `PHONE` (value: `'phone'`)
+
+* `REFERENCE` (value: `'reference'`)
+
+* `SELECT` (value: `'select'`)
+
+* `MULTISELECT` (value: `'multiselect'`)
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+* [`CustomObjectSchemaOptions`](CustomObjectSchemaOptions.md)
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/CustomObjectSchemaOptions.md b/src/gen/docs/models/CustomObjectSchemaOptions.md
new file mode 100644
index 000000000..6d2d523b3
--- /dev/null
+++ b/src/gen/docs/models/CustomObjectSchemaOptions.md
@@ -0,0 +1,19 @@
+# Apideck.CustomObjectSchemaOptions
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`value` | **string** | | [optional]
+`label` | **string** | | [optional]
+
+
+
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/CustomObjectSchemasSort.md b/src/gen/docs/models/CustomObjectSchemasSort.md
new file mode 100644
index 000000000..4f39b735e
--- /dev/null
+++ b/src/gen/docs/models/CustomObjectSchemasSort.md
@@ -0,0 +1,36 @@
+# Apideck.CustomObjectSchemasSort
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`by` | **string** | The field on which to sort the Custom Object Schemas | [optional]
+`direction` | [**\Apideck\Client\Model\SortDirection**](SortDirection.md) | | [optional]
+
+
+
+
+
+
+## Enum: CustomObjectSchemasSort.by
+
+
+* `CREATED_AT` (value: `'created_at'`)
+
+* `UPDATED_AT` (value: `'updated_at'`)
+
+* `NAME` (value: `'name'`)
+
+
+
+
+## Referenced Types:
+
+* [`SortDirection`](SortDirection.md)
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/CustomObjectsSort.md b/src/gen/docs/models/CustomObjectsSort.md
new file mode 100644
index 000000000..beb77a3ed
--- /dev/null
+++ b/src/gen/docs/models/CustomObjectsSort.md
@@ -0,0 +1,36 @@
+# Apideck.CustomObjectsSort
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`by` | **string** | The field on which to sort the Custom Objects | [optional]
+`direction` | [**\Apideck\Client\Model\SortDirection**](SortDirection.md) | | [optional]
+
+
+
+
+
+
+## Enum: CustomObjectsSort.by
+
+
+* `CREATED_AT` (value: `'created_at'`)
+
+* `UPDATED_AT` (value: `'updated_at'`)
+
+* `NAME` (value: `'name'`)
+
+
+
+
+## Referenced Types:
+
+* [`SortDirection`](SortDirection.md)
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/Customer.md b/src/gen/docs/models/Customer.md
index e3d5abec3..f397c5155 100644
--- a/src/gen/docs/models/Customer.md
+++ b/src/gen/docs/models/Customer.md
@@ -33,7 +33,7 @@ Name | Type | Description | Notes
`payment_method` | **string** | Payment method used for the transaction, such as cash, credit card, bank transfer, or check | [optional]
`channel` | **string** | The channel through which the transaction is processed. | [optional]
`custom_fields` | [**\Apideck\Client\Model\CustomField[]**](CustomField.md) | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
diff --git a/src/gen/docs/models/DeleteBankFeedAccountResponse.md b/src/gen/docs/models/DeleteBankFeedAccountResponse.md
new file mode 100644
index 000000000..2c5673eea
--- /dev/null
+++ b/src/gen/docs/models/DeleteBankFeedAccountResponse.md
@@ -0,0 +1,33 @@
+# Apideck.DeleteBankFeedAccountResponse
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`status_code` | **int** | HTTP Response Status Code |
+`status` | **string** | HTTP Response Status |
+`service` | **string** | Apideck ID of service provider |
+`resource` | **string** | Unified API resource name |
+`operation` | **string** | Operation performed |
+`data` | [**\Apideck\Client\Model\UnifiedId**](UnifiedId.md) | |
+`_raw` | **array<string,object>** | Raw response from the integration when raw=true query param is provided | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+* [`UnifiedId`](UnifiedId.md)
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/DeleteBankFeedStatementResponse.md b/src/gen/docs/models/DeleteBankFeedStatementResponse.md
new file mode 100644
index 000000000..db024321b
--- /dev/null
+++ b/src/gen/docs/models/DeleteBankFeedStatementResponse.md
@@ -0,0 +1,33 @@
+# Apideck.DeleteBankFeedStatementResponse
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`status_code` | **int** | HTTP Response Status Code |
+`status` | **string** | HTTP Response Status |
+`service` | **string** | Apideck ID of service provider |
+`resource` | **string** | Unified API resource name |
+`operation` | **string** | Operation performed |
+`data` | [**\Apideck\Client\Model\UnifiedId**](UnifiedId.md) | |
+`_raw` | **array<string,object>** | Raw response from the integration when raw=true query param is provided | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+* [`UnifiedId`](UnifiedId.md)
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/DeleteCustomObjectResponse.md b/src/gen/docs/models/DeleteCustomObjectResponse.md
new file mode 100644
index 000000000..d75e7afc1
--- /dev/null
+++ b/src/gen/docs/models/DeleteCustomObjectResponse.md
@@ -0,0 +1,33 @@
+# Apideck.DeleteCustomObjectResponse
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`status_code` | **int** | HTTP Response Status Code |
+`status` | **string** | HTTP Response Status |
+`service` | **string** | Apideck ID of service provider |
+`resource` | **string** | Unified API resource name |
+`operation` | **string** | Operation performed |
+`data` | [**\Apideck\Client\Model\UnifiedId**](UnifiedId.md) | |
+`_raw` | **array<string,object>** | Raw response from the integration when raw=true query param is provided | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+* [`UnifiedId`](UnifiedId.md)
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/DeleteCustomObjectSchemaResponse.md b/src/gen/docs/models/DeleteCustomObjectSchemaResponse.md
new file mode 100644
index 000000000..082da4d31
--- /dev/null
+++ b/src/gen/docs/models/DeleteCustomObjectSchemaResponse.md
@@ -0,0 +1,33 @@
+# Apideck.DeleteCustomObjectSchemaResponse
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`status_code` | **int** | HTTP Response Status Code |
+`status` | **string** | HTTP Response Status |
+`service` | **string** | Apideck ID of service provider |
+`resource` | **string** | Unified API resource name |
+`operation` | **string** | Operation performed |
+`data` | [**\Apideck\Client\Model\UnifiedId**](UnifiedId.md) | |
+`_raw` | **array<string,object>** | Raw response from the integration when raw=true query param is provided | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+* [`UnifiedId`](UnifiedId.md)
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/Department.md b/src/gen/docs/models/Department.md
index f5bab8587..71d5cfa99 100644
--- a/src/gen/docs/models/Department.md
+++ b/src/gen/docs/models/Department.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
`name` | **string** | Department name | [optional]
`code` | **string** | | [optional]
`description` | **string** | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
diff --git a/src/gen/docs/models/Drive.md b/src/gen/docs/models/Drive.md
index f381ed964..b29b07203 100644
--- a/src/gen/docs/models/Drive.md
+++ b/src/gen/docs/models/Drive.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
`id` | **string** | A unique identifier for an object. |
`name` | **string** | The name of the drive |
`description` | **string** | A description of the object. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
diff --git a/src/gen/docs/models/DriveGroup.md b/src/gen/docs/models/DriveGroup.md
index d24d0f56d..83c078291 100644
--- a/src/gen/docs/models/DriveGroup.md
+++ b/src/gen/docs/models/DriveGroup.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
`name` | **string** | The name of the drive group |
`display_name` | **string** | The display name of the drive group | [optional]
`description` | **string** | A description of the object. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
diff --git a/src/gen/docs/models/EcommerceCustomer.md b/src/gen/docs/models/EcommerceCustomer.md
index 372aaced2..5f956bff7 100644
--- a/src/gen/docs/models/EcommerceCustomer.md
+++ b/src/gen/docs/models/EcommerceCustomer.md
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
`phone_numbers` | [**\Apideck\Client\Model\PhoneNumber[]**](PhoneNumber.md) | An array of phone numbers for the customer. | [optional]
`addresses` | [**\Apideck\Client\Model\EcommerceCustomerAddresses[]**](EcommerceCustomerAddresses.md) | An array of addresses for the customer. | [optional]
`orders` | [**\Apideck\Client\Model\LinkedEcommerceOrder[]**](LinkedEcommerceOrder.md) | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`created_at` | **\DateTime** | The date and time when the object was created. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
diff --git a/src/gen/docs/models/EcommerceOrder.md b/src/gen/docs/models/EcommerceOrder.md
index a78928740..cdf8bb593 100644
--- a/src/gen/docs/models/EcommerceOrder.md
+++ b/src/gen/docs/models/EcommerceOrder.md
@@ -26,7 +26,8 @@ Name | Type | Description | Notes
`tracking` | [**\Apideck\Client\Model\TrackingItem[]**](TrackingItem.md) | | [optional]
`line_items` | [**\Apideck\Client\Model\EcommerceOrderLineItem[]**](EcommerceOrderLineItem.md) | | [optional]
`note` | **string** | Note for the order. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`refunds` | [**\Apideck\Client\Model\EcommerceOrderRefund[]**](EcommerceOrderRefund.md) | | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`created_at` | **\DateTime** | The date and time when the object was created. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
@@ -98,6 +99,7 @@ Name | Type | Description | Notes
* [`TrackingItem`](TrackingItem.md)
* [`EcommerceOrderLineItem`](EcommerceOrderLineItem.md)
+* [`EcommerceOrderRefund`](EcommerceOrderRefund.md)
diff --git a/src/gen/docs/models/EcommerceOrderLineItem.md b/src/gen/docs/models/EcommerceOrderLineItem.md
index 792900094..2b3b2efeb 100644
--- a/src/gen/docs/models/EcommerceOrderLineItem.md
+++ b/src/gen/docs/models/EcommerceOrderLineItem.md
@@ -9,7 +9,6 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
`name` | **string** | The name of the product or variant associated with the line item. |
`quantity` | **string** | The quantity of the product or variant associated with the line item. |
-`total_amount` | **string** | The total amount for the product(s) or variant associated with the line item, including taxes and discounts. |
`id` | **string** | A unique identifier for an object. | [optional]
`product_id` | **string** | A unique identifier for the product associated with the line item. | [optional]
`variant_id` | **string** | A unique identifier for the variant of the product associated with the line item, if applicable. | [optional]
@@ -23,6 +22,7 @@ Name | Type | Description | Notes
`refunded_amount` | **string** | The amount of the line item that has been refunded. | [optional]
`refunded_quantity` | **string** | The quantity of the line item that has been refunded. | [optional]
`sub_total` | **string** | The sub total for the product(s) or variant associated with the line item, excluding taxes and discounts. | [optional]
+`total_amount` | **string** | The total amount for the product(s) or variant associated with the line item, including taxes and discounts. | [optional]
`discounts` | [**\Apideck\Client\Model\EcommerceDiscount[]**](EcommerceDiscount.md) | | [optional]
diff --git a/src/gen/docs/models/EcommerceOrderRefund.md b/src/gen/docs/models/EcommerceOrderRefund.md
new file mode 100644
index 000000000..95bd55c3f
--- /dev/null
+++ b/src/gen/docs/models/EcommerceOrderRefund.md
@@ -0,0 +1,31 @@
+# Apideck.EcommerceOrderRefund
+
+### Description
+
+A refund for an ecommerce order.
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`id` | **string** | A unique identifier for an object. | [optional]
+`amount` | **string** | The amount of the refund. | [optional]
+`currency` | [**\Apideck\Client\Model\Currency**](Currency.md) | | [optional]
+`reason` | **string** | The reason for the refund. | [optional]
+`created_at` | **\DateTime** | The date and time when the object was created. | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+* [`Currency`](Currency.md)
+
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/EcommerceProduct.md b/src/gen/docs/models/EcommerceProduct.md
index c4c9bd3b5..90c2d818e 100644
--- a/src/gen/docs/models/EcommerceProduct.md
+++ b/src/gen/docs/models/EcommerceProduct.md
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
`variants` | [**\Apideck\Client\Model\EcommerceProductVariants[]**](EcommerceProductVariants.md) | | [optional]
`tags` | **string[]** | An array of tags for the product, used for organization and searching. | [optional]
`categories` | [**\Apideck\Client\Model\EcommerceProductCategories[]**](EcommerceProductCategories.md) | An array of categories for the product, used for organization and searching. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`created_at` | **\DateTime** | The date and time when the object was created. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
diff --git a/src/gen/docs/models/EcommerceStore.md b/src/gen/docs/models/EcommerceStore.md
index 76aef8aee..400183a9b 100644
--- a/src/gen/docs/models/EcommerceStore.md
+++ b/src/gen/docs/models/EcommerceStore.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
`name` | **string** | The store's name | [optional]
`store_url` | **string** | The store's website URL | [optional]
`admin_url` | **string** | The store's admin login URL | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`created_at` | **\DateTime** | The date and time when the object was created. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
diff --git a/src/gen/docs/models/Employee.md b/src/gen/docs/models/Employee.md
index ce93f50c7..550bed39f 100644
--- a/src/gen/docs/models/Employee.md
+++ b/src/gen/docs/models/Employee.md
@@ -64,7 +64,7 @@ Name | Type | Description | Notes
`food_allergies` | **string[]** | Indicate the employee's food allergies. | [optional]
`probation_period` | [**\Apideck\Client\Model\ProbationPeriod**](ProbationPeriod.md) | | [optional]
`tags` | **string[]** | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`row_version` | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional]
`deleted` | **bool** | Flag to indicate if the object is deleted. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
diff --git a/src/gen/docs/models/EmployeesFilter.md b/src/gen/docs/models/EmployeesFilter.md
index b32b80985..34f4e8f17 100644
--- a/src/gen/docs/models/EmployeesFilter.md
+++ b/src/gen/docs/models/EmployeesFilter.md
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
`employee_number` | **string** | Employee number to filter on | [optional]
`department_id` | **string** | ID of the department to filter on | [optional]
`city` | **string** | City to filter on | [optional]
+`country` | **string** | Country to filter on | [optional]
diff --git a/src/gen/docs/models/Expense.md b/src/gen/docs/models/Expense.md
index 1a16554d4..dc4f31722 100644
--- a/src/gen/docs/models/Expense.md
+++ b/src/gen/docs/models/Expense.md
@@ -22,10 +22,12 @@ Name | Type | Description | Notes
`tax_rate` | [**\Apideck\Client\Model\LinkedTaxRate**](LinkedTaxRate.md) | | [optional]
`total_amount` | **float** | The total amount of the expense line item. | [optional]
`custom_fields` | [**\Apideck\Client\Model\CustomField[]**](CustomField.md) | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
`created_at` | **\DateTime** | The date and time when the object was created. | [optional]
`row_version` | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional]
+`updated_by` | **string** | The user who last updated the object. | [optional]
+`created_by` | **string** | The user who created the object. | [optional]
`pass_through` | **object[]** | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | [optional]
@@ -80,6 +82,8 @@ Name | Type | Description | Notes
+
+
---
[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
diff --git a/src/gen/docs/models/ExpenseLineItem.md b/src/gen/docs/models/ExpenseLineItem.md
index f549c79ab..e58b5aabf 100644
--- a/src/gen/docs/models/ExpenseLineItem.md
+++ b/src/gen/docs/models/ExpenseLineItem.md
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
`tax_rate` | [**\Apideck\Client\Model\LinkedTaxRate**](LinkedTaxRate.md) | | [optional]
`description` | **string** | The expense line item description | [optional]
`billable` | **bool** | Boolean that indicates if the line item is billable or not. | [optional]
+`line_number` | **int** | Line number of the resource | [optional]
@@ -34,6 +35,7 @@ Name | Type | Description | Notes
+
---
[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
diff --git a/src/gen/docs/models/Folder.md b/src/gen/docs/models/Folder.md
index 50b7fbc67..7abe9ff44 100644
--- a/src/gen/docs/models/Folder.md
+++ b/src/gen/docs/models/Folder.md
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
`size` | **int** | The size of the folder in bytes | [optional]
`owner` | [**\Apideck\Client\Model\Owner**](Owner.md) | | [optional]
`parent_folders_complete` | **bool** | Whether the list of parent folder is complete. Some connectors only return the direct parent of a folder | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
diff --git a/src/gen/docs/models/GetBankFeedAccountResponse.md b/src/gen/docs/models/GetBankFeedAccountResponse.md
new file mode 100644
index 000000000..cad7614d4
--- /dev/null
+++ b/src/gen/docs/models/GetBankFeedAccountResponse.md
@@ -0,0 +1,33 @@
+# Apideck.GetBankFeedAccountResponse
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`status_code` | **int** | HTTP Response Status Code |
+`status` | **string** | HTTP Response Status |
+`service` | **string** | Apideck ID of service provider |
+`resource` | **string** | Unified API resource name |
+`operation` | **string** | Operation performed |
+`data` | [**\Apideck\Client\Model\BankFeedAccount**](BankFeedAccount.md) | |
+`_raw` | **array<string,object>** | Raw response from the integration when raw=true query param is provided | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+* [`BankFeedAccount`](BankFeedAccount.md)
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/GetBankFeedAccountsResponse.md b/src/gen/docs/models/GetBankFeedAccountsResponse.md
new file mode 100644
index 000000000..f11e72238
--- /dev/null
+++ b/src/gen/docs/models/GetBankFeedAccountsResponse.md
@@ -0,0 +1,37 @@
+# Apideck.GetBankFeedAccountsResponse
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`status_code` | **int** | HTTP Response Status Code |
+`status` | **string** | HTTP Response Status |
+`service` | **string** | Apideck ID of service provider |
+`resource` | **string** | Unified API resource name |
+`operation` | **string** | Operation performed |
+`data` | [**\Apideck\Client\Model\BankFeedAccount[]**](BankFeedAccount.md) | |
+`meta` | [**\Apideck\Client\Model\Meta**](Meta.md) | | [optional]
+`links` | [**\Apideck\Client\Model\Links**](Links.md) | | [optional]
+`_raw` | **array<string,object>** | Raw response from the integration when raw=true query param is provided | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+* [`BankFeedAccount`](BankFeedAccount.md)
+* [`Meta`](Meta.md)
+* [`Links`](Links.md)
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/GetBankFeedStatementResponse.md b/src/gen/docs/models/GetBankFeedStatementResponse.md
new file mode 100644
index 000000000..eb9235675
--- /dev/null
+++ b/src/gen/docs/models/GetBankFeedStatementResponse.md
@@ -0,0 +1,33 @@
+# Apideck.GetBankFeedStatementResponse
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`status_code` | **int** | HTTP Response Status Code |
+`status` | **string** | HTTP Response Status |
+`service` | **string** | Apideck ID of service provider |
+`resource` | **string** | Unified API resource name |
+`operation` | **string** | Operation performed |
+`data` | [**\Apideck\Client\Model\BankFeedStatement**](BankFeedStatement.md) | |
+`_raw` | **array<string,object>** | Raw response from the integration when raw=true query param is provided | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+* [`BankFeedStatement`](BankFeedStatement.md)
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/GetBankFeedStatementsResponse.md b/src/gen/docs/models/GetBankFeedStatementsResponse.md
new file mode 100644
index 000000000..636e70fdd
--- /dev/null
+++ b/src/gen/docs/models/GetBankFeedStatementsResponse.md
@@ -0,0 +1,37 @@
+# Apideck.GetBankFeedStatementsResponse
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`status_code` | **int** | HTTP Response Status Code |
+`status` | **string** | HTTP Response Status |
+`service` | **string** | Apideck ID of service provider |
+`resource` | **string** | Unified API resource name |
+`operation` | **string** | Operation performed |
+`data` | [**\Apideck\Client\Model\BankFeedStatement[]**](BankFeedStatement.md) | |
+`meta` | [**\Apideck\Client\Model\Meta**](Meta.md) | | [optional]
+`links` | [**\Apideck\Client\Model\Links**](Links.md) | | [optional]
+`_raw` | **array<string,object>** | Raw response from the integration when raw=true query param is provided | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+* [`BankFeedStatement`](BankFeedStatement.md)
+* [`Meta`](Meta.md)
+* [`Links`](Links.md)
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/GetCustomObjectResponse.md b/src/gen/docs/models/GetCustomObjectResponse.md
new file mode 100644
index 000000000..ea979bb9a
--- /dev/null
+++ b/src/gen/docs/models/GetCustomObjectResponse.md
@@ -0,0 +1,33 @@
+# Apideck.GetCustomObjectResponse
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`status_code` | **int** | HTTP Response Status Code |
+`status` | **string** | HTTP Response Status |
+`service` | **string** | Apideck ID of service provider |
+`resource` | **string** | Unified API resource name |
+`operation` | **string** | Operation performed |
+`data` | [**\Apideck\Client\Model\CustomObject**](CustomObject.md) | |
+`_raw` | **array<string,object>** | Raw response from the integration when raw=true query param is provided | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+* [`CustomObject`](CustomObject.md)
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/GetCustomObjectSchemaResponse.md b/src/gen/docs/models/GetCustomObjectSchemaResponse.md
new file mode 100644
index 000000000..9d0334b8c
--- /dev/null
+++ b/src/gen/docs/models/GetCustomObjectSchemaResponse.md
@@ -0,0 +1,33 @@
+# Apideck.GetCustomObjectSchemaResponse
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`status_code` | **int** | HTTP Response Status Code |
+`status` | **string** | HTTP Response Status |
+`service` | **string** | Apideck ID of service provider |
+`resource` | **string** | Unified API resource name |
+`operation` | **string** | Operation performed |
+`data` | [**\Apideck\Client\Model\CustomObjectSchema**](CustomObjectSchema.md) | |
+`_raw` | **array<string,object>** | Raw response from the integration when raw=true query param is provided | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+* [`CustomObjectSchema`](CustomObjectSchema.md)
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/GetCustomObjectSchemasResponse.md b/src/gen/docs/models/GetCustomObjectSchemasResponse.md
new file mode 100644
index 000000000..cc4d3eef0
--- /dev/null
+++ b/src/gen/docs/models/GetCustomObjectSchemasResponse.md
@@ -0,0 +1,37 @@
+# Apideck.GetCustomObjectSchemasResponse
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`status_code` | **int** | HTTP Response Status Code |
+`status` | **string** | HTTP Response Status |
+`service` | **string** | Apideck ID of service provider |
+`resource` | **string** | Unified API resource name |
+`operation` | **string** | Operation performed |
+`data` | [**\Apideck\Client\Model\CustomObjectSchema[]**](CustomObjectSchema.md) | |
+`_raw` | **array<string,object>** | Raw response from the integration when raw=true query param is provided | [optional]
+`meta` | [**\Apideck\Client\Model\Meta**](Meta.md) | | [optional]
+`links` | [**\Apideck\Client\Model\Links**](Links.md) | | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+* [`CustomObjectSchema`](CustomObjectSchema.md)
+
+* [`Meta`](Meta.md)
+* [`Links`](Links.md)
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/GetCustomObjectsResponse.md b/src/gen/docs/models/GetCustomObjectsResponse.md
new file mode 100644
index 000000000..23ccef884
--- /dev/null
+++ b/src/gen/docs/models/GetCustomObjectsResponse.md
@@ -0,0 +1,37 @@
+# Apideck.GetCustomObjectsResponse
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`status_code` | **int** | HTTP Response Status Code |
+`status` | **string** | HTTP Response Status |
+`service` | **string** | Apideck ID of service provider |
+`resource` | **string** | Unified API resource name |
+`operation` | **string** | Operation performed |
+`data` | [**\Apideck\Client\Model\CustomObject[]**](CustomObject.md) | |
+`_raw` | **array<string,object>** | Raw response from the integration when raw=true query param is provided | [optional]
+`meta` | [**\Apideck\Client\Model\Meta**](Meta.md) | | [optional]
+`links` | [**\Apideck\Client\Model\Links**](Links.md) | | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+* [`CustomObject`](CustomObject.md)
+
+* [`Meta`](Meta.md)
+* [`Links`](Links.md)
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/HrisCompany.md b/src/gen/docs/models/HrisCompany.md
index 968c82fca..8e7d52fb8 100644
--- a/src/gen/docs/models/HrisCompany.md
+++ b/src/gen/docs/models/HrisCompany.md
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
`emails` | [**\Apideck\Client\Model\Email[]**](Email.md) | | [optional]
`websites` | [**\Apideck\Client\Model\Website[]**](Website.md) | | [optional]
`debtor_id` | **string** | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`deleted` | **bool** | | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
diff --git a/src/gen/docs/models/HrisJob.md b/src/gen/docs/models/HrisJob.md
index 04bebd53b..f37929288 100644
--- a/src/gen/docs/models/HrisJob.md
+++ b/src/gen/docs/models/HrisJob.md
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
`department` | **string** | Department name | [optional]
`is_primary` | **bool** | Indicates whether this the employee's primary job. | [optional]
`location` | [**\Apideck\Client\Model\HrisJobLocation**](HrisJobLocation.md) | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
diff --git a/src/gen/docs/models/Invoice.md b/src/gen/docs/models/Invoice.md
index 727196a68..2a0d1ec06 100644
--- a/src/gen/docs/models/Invoice.md
+++ b/src/gen/docs/models/Invoice.md
@@ -37,13 +37,14 @@ Name | Type | Description | Notes
`shipping_address` | [**\Apideck\Client\Model\Address**](Address.md) | | [optional]
`template_id` | **string** | Optional invoice template | [optional]
`source_document_url` | **string** | URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. | [optional]
+`payment_allocations` | [**\Apideck\Client\Model\InvoicePaymentAllocations[]**](InvoicePaymentAllocations.md) | IDs of payments made on the invoice | [optional]
`payment_method` | **string** | Payment method used for the transaction, such as cash, credit card, bank transfer, or check | [optional]
`channel` | **string** | The channel through which the transaction is processed. | [optional]
`language` | **string** | language code according to ISO 639-1. For the United States - EN | [optional]
`accounting_by_row` | **bool** | Indicates if accounting by row is used (true) or not (false). Accounting by row means that a separate ledger transaction is created for each row. | [optional]
`bank_account` | [**\Apideck\Client\Model\BankAccount**](BankAccount.md) | | [optional]
`ledger_account` | [**\Apideck\Client\Model\LinkedLedgerAccount**](LinkedLedgerAccount.md) | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`custom_fields` | [**\Apideck\Client\Model\CustomField[]**](CustomField.md) | | [optional]
`row_version` | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
@@ -131,6 +132,7 @@ Name | Type | Description | Notes
* [`Address`](Address.md)
+* [`InvoicePaymentAllocations`](InvoicePaymentAllocations.md)
diff --git a/src/gen/docs/models/InvoiceItem.md b/src/gen/docs/models/InvoiceItem.md
index 961576679..71ce06bc0 100644
--- a/src/gen/docs/models/InvoiceItem.md
+++ b/src/gen/docs/models/InvoiceItem.md
@@ -29,7 +29,7 @@ Name | Type | Description | Notes
`location_id` | **string** | The ID of the location | [optional]
`subsidiary_id` | **string** | The ID of the subsidiary | [optional]
`tax_schedule_id` | **string** | The ID of the tax schedule | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`row_version` | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
diff --git a/src/gen/docs/models/InvoiceLineItem.md b/src/gen/docs/models/InvoiceLineItem.md
index a70e24484..02a7e6aa3 100644
--- a/src/gen/docs/models/InvoiceLineItem.md
+++ b/src/gen/docs/models/InvoiceLineItem.md
@@ -47,6 +47,8 @@ Name | Type | Description | Notes
* `SUB_TOTAL` (value: `'sub_total'`)
+* `SERVICE` (value: `'service'`)
+
* `OTHER` (value: `'other'`)
diff --git a/src/gen/docs/models/InvoicePaymentAllocations.md b/src/gen/docs/models/InvoicePaymentAllocations.md
new file mode 100644
index 000000000..cb2290580
--- /dev/null
+++ b/src/gen/docs/models/InvoicePaymentAllocations.md
@@ -0,0 +1,20 @@
+# Apideck.InvoicePaymentAllocations
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`id` | **string** | ID of the payment | [optional]
+`allocated_amount` | **float** | Amount of the payment allocated to the invoice | [optional]
+`date` | **\DateTime** | Date of the payment | [optional]
+
+
+
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/Item.md b/src/gen/docs/models/Item.md
index 6a272ec6d..71b530c91 100644
--- a/src/gen/docs/models/Item.md
+++ b/src/gen/docs/models/Item.md
@@ -31,7 +31,7 @@ Name | Type | Description | Notes
`available` | **bool** | | [optional]
`hidden` | **bool** | | [optional]
`version` | **string** | The user who last updated the object. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`deleted` | **bool** | Flag to indicate if the object is deleted. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
diff --git a/src/gen/docs/models/Job.md b/src/gen/docs/models/Job.md
index 1128466a7..a7a31068f 100644
--- a/src/gen/docs/models/Job.md
+++ b/src/gen/docs/models/Job.md
@@ -42,7 +42,7 @@ Name | Type | Description | Notes
`deleted` | **bool** | Flag to indicate if the object is deleted. | [optional]
`owner_id` | **string** | | [optional]
`published_at` | **\DateTime** | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
diff --git a/src/gen/docs/models/JournalEntry.md b/src/gen/docs/models/JournalEntry.md
index 9e721d3c0..2fcc9147b 100644
--- a/src/gen/docs/models/JournalEntry.md
+++ b/src/gen/docs/models/JournalEntry.md
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
`currency` | [**\Apideck\Client\Model\Currency**](Currency.md) | | [optional]
`company_id` | **string** | The company or subsidiary id the transaction belongs to | [optional]
`line_items` | [**\Apideck\Client\Model\JournalEntryLineItem[]**](JournalEntryLineItem.md) | Requires a minimum of 2 line items that sum to 0 | [optional]
+`status` | **string** | Journal entry status | [optional]
`memo` | **string** | Reference for the journal entry. | [optional]
`posted_at` | **\DateTime** | This is the date on which the journal entry was added. This can be different from the creation date and can also be backdated. | [optional]
`journal_symbol` | **string** | Journal symbol of the entry. For example IND for indirect costs | [optional]
@@ -19,7 +20,7 @@ Name | Type | Description | Notes
`number` | **string** | Journal entry number. | [optional]
`tracking_categories` | [**\Apideck\Client\Model\LinkedTrackingCategory[]**](LinkedTrackingCategory.md) | A list of linked tracking categories. | [optional]
`accounting_period` | **string** | Accounting period | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
@@ -32,6 +33,27 @@ Name | Type | Description | Notes
+
+## Enum: JournalEntry.status
+
+
+* `DRAFT` (value: `'draft'`)
+
+* `PENDING_APPROVAL` (value: `'pending_approval'`)
+
+* `APPROVED` (value: `'approved'`)
+
+* `POSTED` (value: `'posted'`)
+
+* `VOIDED` (value: `'voided'`)
+
+* `REJECTED` (value: `'rejected'`)
+
+* `DELETED` (value: `'deleted'`)
+
+
+
+
## Referenced Types:
@@ -45,6 +67,7 @@ Name | Type | Description | Notes
+
* [`LinkedTrackingCategory`](LinkedTrackingCategory.md)
diff --git a/src/gen/docs/models/Lead.md b/src/gen/docs/models/Lead.md
index d6006ef4a..ec14fed20 100644
--- a/src/gen/docs/models/Lead.md
+++ b/src/gen/docs/models/Lead.md
@@ -6,8 +6,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
`name` | **string** | Full name of the lead. |
-`company_name` | **string** | The name of the company the lead is associated with. |
`id` | **string** | Unique identifier for the contact. | [optional]
+`company_name` | **string** | The name of the company the lead is associated with. | [optional]
`owner_id` | **string** | The owner of the lead. | [optional]
`owner_name` | **string** | The name of the owner of the lead. | [optional]
`company_id` | **string** | The company the lead is associated with. | [optional]
@@ -30,7 +30,7 @@ Name | Type | Description | Notes
`emails` | [**\Apideck\Client\Model\Email[]**](Email.md) | | [optional]
`custom_fields` | [**\Apideck\Client\Model\CustomField[]**](CustomField.md) | | [optional]
`tags` | **string[]** | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_at` | **string** | Date updated in ISO 8601 format | [optional]
`created_at` | **string** | Date created in ISO 8601 format | [optional]
`pass_through` | **object[]** | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | [optional]
diff --git a/src/gen/docs/models/LedgerAccount.md b/src/gen/docs/models/LedgerAccount.md
index d3dab57b7..160e4c0f6 100644
--- a/src/gen/docs/models/LedgerAccount.md
+++ b/src/gen/docs/models/LedgerAccount.md
@@ -31,7 +31,7 @@ Name | Type | Description | Notes
`sub_accounts` | **object[]** | The sub accounts of the account. | [optional]
`last_reconciliation_date` | **\DateTime** | Reconciliation Date means the last calendar day of each Reconciliation Period. | [optional]
`subsidiaries` | **object[]** | The subsidiaries the account belongs to. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`custom_fields` | [**\Apideck\Client\Model\CustomField[]**](CustomField.md) | | [optional]
`row_version` | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
diff --git a/src/gen/docs/models/Location.md b/src/gen/docs/models/Location.md
index 68fa17bfe..8d42bac9d 100644
--- a/src/gen/docs/models/Location.md
+++ b/src/gen/docs/models/Location.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
`status` | **string** | Status of this location. | [optional]
`merchant_id` | **string** | | [optional]
`currency` | [**\Apideck\Client\Model\Currency**](Currency.md) | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
diff --git a/src/gen/docs/models/Merchant.md b/src/gen/docs/models/Merchant.md
index d810ffdf3..0e929c666 100644
--- a/src/gen/docs/models/Merchant.md
+++ b/src/gen/docs/models/Merchant.md
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
`service_charges` | [**\Apideck\Client\Model\ServiceCharge[]**](ServiceCharge.md) | | [optional]
`language` | **string** | language code according to ISO 639-1. For the United States - EN | [optional]
`currency` | [**\Apideck\Client\Model\Currency**](Currency.md) | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
diff --git a/src/gen/docs/models/Message.md b/src/gen/docs/models/Message.md
index 2a69f7fe7..42e9dbf5f 100644
--- a/src/gen/docs/models/Message.md
+++ b/src/gen/docs/models/Message.md
@@ -22,7 +22,7 @@ Name | Type | Description | Notes
`price` | [**\Apideck\Client\Model\Price**](Price.md) | | [optional]
`error` | [**\Apideck\Client\Model\Error**](Error.md) | | [optional]
`messaging_service_id` | **string** | The ID of the Messaging Service used with the message. In case of Plivo this links to the Powerpack ID. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
diff --git a/src/gen/docs/models/Modifier.md b/src/gen/docs/models/Modifier.md
index 85c31b673..899592cc7 100644
--- a/src/gen/docs/models/Modifier.md
+++ b/src/gen/docs/models/Modifier.md
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
`price_amount` | **float** | | [optional]
`currency` | [**\Apideck\Client\Model\Currency**](Currency.md) | | [optional]
`available` | **bool** | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
diff --git a/src/gen/docs/models/ModifierGroup.md b/src/gen/docs/models/ModifierGroup.md
index cbc5da9a8..5c3392378 100644
--- a/src/gen/docs/models/ModifierGroup.md
+++ b/src/gen/docs/models/ModifierGroup.md
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
`present_at_all_locations` | **bool** | | [optional]
`modifiers` | **object[]** | | [optional]
`deleted` | **bool** | Flag to indicate if the object is deleted. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`row_version` | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
diff --git a/src/gen/docs/models/Note.md b/src/gen/docs/models/Note.md
index 39e1614de..68dfa2e0f 100644
--- a/src/gen/docs/models/Note.md
+++ b/src/gen/docs/models/Note.md
@@ -12,9 +12,10 @@ Name | Type | Description | Notes
`contact_id` | **string** | The contact that is related to the note. | [optional]
`company_id` | **string** | The company that is related to the note. | [optional]
`opportunity_id` | **string** | The opportunity that is related to the note. | [optional]
+`activity_id` | **string** | The activity that is related to the note. | [optional]
`lead_id` | **string** | The lead that is related to the note. | [optional]
`active` | **bool** | Whether the Note is active or not. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user that last updated the note. | [optional]
`created_by` | **string** | The user that created the note. | [optional]
`updated_at` | **string** | The timestamp when the note was last updated | [optional]
diff --git a/src/gen/docs/models/Offer.md b/src/gen/docs/models/Offer.md
index 3aa358fcb..876a337ac 100644
--- a/src/gen/docs/models/Offer.md
+++ b/src/gen/docs/models/Offer.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
`id` | **string** | A unique identifier for an object. | [optional]
`application_id` | **string** | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
diff --git a/src/gen/docs/models/Opportunity.md b/src/gen/docs/models/Opportunity.md
index 3f86edf25..100e5e6d2 100644
--- a/src/gen/docs/models/Opportunity.md
+++ b/src/gen/docs/models/Opportunity.md
@@ -41,7 +41,7 @@ Name | Type | Description | Notes
`date_stage_changed` | **\DateTime** | The date and time when the stage of the opportunity was last changed. | [optional]
`date_last_contacted` | **\DateTime** | The date and time when the opportunity was last contacted. | [optional]
`date_lead_created` | **\DateTime** | The date and time when the lead associated with the opportunity was created. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The unique identifier of the user who last updated the opportunity. | [optional]
`created_by` | **string** | The unique identifier of the user who created the opportunity. | [optional]
`updated_at` | **\DateTime** | The date and time when the opportunity was last updated. | [optional]
diff --git a/src/gen/docs/models/Order.md b/src/gen/docs/models/Order.md
index 30a67745d..d7b5d8b86 100644
--- a/src/gen/docs/models/Order.md
+++ b/src/gen/docs/models/Order.md
@@ -42,7 +42,7 @@ Name | Type | Description | Notes
`source` | **string** | Source of order. Indicates the way that the order was placed. | [optional]
`voided` | **bool** | | [optional]
`voided_at` | **\DateTime** | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`version` | **string** | | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
diff --git a/src/gen/docs/models/OtherExpenses.md b/src/gen/docs/models/OtherExpenses.md
index 55db6dcbd..f167e5daf 100644
--- a/src/gen/docs/models/OtherExpenses.md
+++ b/src/gen/docs/models/OtherExpenses.md
@@ -7,25 +7,25 @@ The other expenses accounts
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-`total` | **float** | The aggregated total of all accounts within this category. |
`records` | [**AnyOfProfitAndLossSectionProfitAndLossRecord[]**](AnyOfProfitAndLossSectionProfitAndLossRecord.md) | |
`id` | **string** | A unique identifier for an object. | [optional]
`code` | **string** | The account code of the account | [optional]
`title` | **string** | The name of the account. | [optional]
`type` | [**\Apideck\Client\Model\ProfitAndLossType**](ProfitAndLossType.md) | | [optional]
+`total` | **float** | The aggregated total of all accounts within this category. | [optional]
## Referenced Types:
-
* [`AnyOfProfitAndLossSectionProfitAndLossRecord`](AnyOfProfitAndLossSectionProfitAndLossRecord.md)
* [`ProfitAndLossType`](ProfitAndLossType.md)
+
---
[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
diff --git a/src/gen/docs/models/OtherIncome.md b/src/gen/docs/models/OtherIncome.md
index 3caf4c1f7..9d6b13122 100644
--- a/src/gen/docs/models/OtherIncome.md
+++ b/src/gen/docs/models/OtherIncome.md
@@ -7,25 +7,25 @@ The other income accounts
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-`total` | **float** | The aggregated total of all accounts within this category. |
`records` | [**AnyOfProfitAndLossSectionProfitAndLossRecord[]**](AnyOfProfitAndLossSectionProfitAndLossRecord.md) | |
`id` | **string** | A unique identifier for an object. | [optional]
`code` | **string** | The account code of the account | [optional]
`title` | **string** | The name of the account. | [optional]
`type` | [**\Apideck\Client\Model\ProfitAndLossType**](ProfitAndLossType.md) | | [optional]
+`total` | **float** | The aggregated total of all accounts within this category. | [optional]
## Referenced Types:
-
* [`AnyOfProfitAndLossSectionProfitAndLossRecord`](AnyOfProfitAndLossSectionProfitAndLossRecord.md)
* [`ProfitAndLossType`](ProfitAndLossType.md)
+
---
[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
diff --git a/src/gen/docs/models/Payment.md b/src/gen/docs/models/Payment.md
index 865568ba2..0bd56e352 100644
--- a/src/gen/docs/models/Payment.md
+++ b/src/gen/docs/models/Payment.md
@@ -31,7 +31,7 @@ Name | Type | Description | Notes
`custom_fields` | [**\Apideck\Client\Model\CustomField[]**](CustomField.md) | | [optional]
`row_version` | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional]
`display_id` | **string** | Id to be displayed. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
`created_at` | **\DateTime** | The date and time when the object was created. | [optional]
diff --git a/src/gen/docs/models/PaymentsFilter.md b/src/gen/docs/models/PaymentsFilter.md
index 4bf9047ab..23fd02ccd 100644
--- a/src/gen/docs/models/PaymentsFilter.md
+++ b/src/gen/docs/models/PaymentsFilter.md
@@ -6,6 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
`updated_since` | **\DateTime** | | [optional]
+`invoice_id` | **string** | | [optional]
diff --git a/src/gen/docs/models/Payroll.md b/src/gen/docs/models/Payroll.md
index f79db367c..a12d6e55f 100644
--- a/src/gen/docs/models/Payroll.md
+++ b/src/gen/docs/models/Payroll.md
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
`processed_date` | **string** | The date the payroll was processed. | [optional]
`totals` | [**\Apideck\Client\Model\PayrollTotals**](PayrollTotals.md) | | [optional]
`compensations` | [**\Apideck\Client\Model\Compensation[]**](Compensation.md) | An array of compensations for the payroll. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
diff --git a/src/gen/docs/models/Person.md b/src/gen/docs/models/Person.md
index 1154fd1b7..48b23e47a 100644
--- a/src/gen/docs/models/Person.md
+++ b/src/gen/docs/models/Person.md
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
`initials` | **string** | Initials of the person | [optional]
`birthday` | **\DateTime** | Date of birth | [optional]
`deceased_on` | **\DateTime** | Date of death | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
diff --git a/src/gen/docs/models/PosPayment.md b/src/gen/docs/models/PosPayment.md
index 3a57c7af9..46d33c8a0 100644
--- a/src/gen/docs/models/PosPayment.md
+++ b/src/gen/docs/models/PosPayment.md
@@ -34,7 +34,7 @@ Name | Type | Description | Notes
`wallet` | [**\Apideck\Client\Model\WalletDetails**](WalletDetails.md) | | [optional]
`external_details` | [**\Apideck\Client\Model\PosPaymentExternalDetails**](PosPaymentExternalDetails.md) | | [optional]
`service_charges` | [**\Apideck\Client\Model\ServiceCharge[]**](ServiceCharge.md) | Optional service charges or gratuity tip applied to the order. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
diff --git a/src/gen/docs/models/ProfitAndLoss.md b/src/gen/docs/models/ProfitAndLoss.md
index 596af35ec..34fa07643 100644
--- a/src/gen/docs/models/ProfitAndLoss.md
+++ b/src/gen/docs/models/ProfitAndLoss.md
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
`gross_profit` | [**\Apideck\Client\Model\ProfitAndLossIndicator**](ProfitAndLossIndicator.md) | | [optional]
`net_operating_income` | [**\Apideck\Client\Model\ProfitAndLossIndicator**](ProfitAndLossIndicator.md) | | [optional]
`net_income` | [**\Apideck\Client\Model\ProfitAndLossIndicator**](ProfitAndLossIndicator.md) | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`customer` | **string** | The customer id | [optional]
diff --git a/src/gen/docs/models/PurchaseOrder.md b/src/gen/docs/models/PurchaseOrder.md
index a9607a44c..4fc708f71 100644
--- a/src/gen/docs/models/PurchaseOrder.md
+++ b/src/gen/docs/models/PurchaseOrder.md
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
`po_number` | **string** | A PO Number uniquely identifies a purchase order and is generally defined by the buyer. | [optional]
`reference` | **string** | Optional purchase order reference. | [optional]
`supplier` | [**\Apideck\Client\Model\LinkedSupplier**](LinkedSupplier.md) | | [optional]
+`subsidiary_id` | **string** | The ID of the subsidiary | [optional]
`company_id` | **string** | The company or subsidiary id the transaction belongs to | [optional]
`status` | **string** | | [optional]
`issued_date` | **\DateTime** | Date purchase order was issued - YYYY-MM-DD. | [optional]
@@ -34,7 +35,7 @@ Name | Type | Description | Notes
`channel` | **string** | The channel through which the transaction is processed. | [optional]
`memo` | **string** | Message for the supplier. This text appears on the Purchase Order. | [optional]
`tracking_categories` | [**\Apideck\Client\Model\LinkedTrackingCategory[]**](LinkedTrackingCategory.md) | A list of linked tracking categories. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`custom_fields` | [**\Apideck\Client\Model\CustomField[]**](CustomField.md) | | [optional]
`row_version` | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
@@ -77,6 +78,7 @@ Name | Type | Description | Notes
+
* [`Currency`](Currency.md)
diff --git a/src/gen/docs/models/Subsidiary.md b/src/gen/docs/models/Subsidiary.md
index c55d14b35..7ba0ce1bb 100644
--- a/src/gen/docs/models/Subsidiary.md
+++ b/src/gen/docs/models/Subsidiary.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
`parent_id` | **string** | A unique identifier for an object. | [optional]
`name` | **string** | The name of the company. | [optional]
`status` | **string** | Based on the status some functionality is enabled or disabled. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`row_version` | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
diff --git a/src/gen/docs/models/Supplier.md b/src/gen/docs/models/Supplier.md
index 77ef1264b..0525335b0 100644
--- a/src/gen/docs/models/Supplier.md
+++ b/src/gen/docs/models/Supplier.md
@@ -30,7 +30,7 @@ Name | Type | Description | Notes
`status` | **string** | Supplier status | [optional]
`payment_method` | **string** | Payment method used for the transaction, such as cash, credit card, bank transfer, or check | [optional]
`channel` | **string** | The channel through which the transaction is processed. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`custom_fields` | [**\Apideck\Client\Model\CustomField[]**](CustomField.md) | | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
diff --git a/src/gen/docs/models/TaxRate.md b/src/gen/docs/models/TaxRate.md
index 5c2c9b774..e876afe0e 100644
--- a/src/gen/docs/models/TaxRate.md
+++ b/src/gen/docs/models/TaxRate.md
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
`report_tax_type` | **string** | Report Tax type to aggregate tax collected or paid for reporting purposes | [optional]
`original_tax_rate_id` | **string** | ID of the original tax rate from which the new tax rate is derived. Helps to understand the relationship between corresponding tax rate entities. | [optional]
`status` | **string** | Tax rate status | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`row_version` | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
diff --git a/src/gen/docs/models/Tender.md b/src/gen/docs/models/Tender.md
index 6c3360bc9..58550c1f5 100644
--- a/src/gen/docs/models/Tender.md
+++ b/src/gen/docs/models/Tender.md
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
`editable` | **bool** | | [optional]
`opens_cash_drawer` | **bool** | If this tender opens the cash drawer | [optional]
`allows_tipping` | **bool** | Allow tipping on payment from tender | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
diff --git a/src/gen/docs/models/Ticket.md b/src/gen/docs/models/Ticket.md
index 1e9fcb9ec..2a69b8d99 100644
--- a/src/gen/docs/models/Ticket.md
+++ b/src/gen/docs/models/Ticket.md
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
`due_date` | **\DateTime** | Due date of the ticket | [optional]
`completed_at` | **\DateTime** | When the ticket was completed | [optional]
`tags` | [**\Apideck\Client\Model\CollectionTag[]**](CollectionTag.md) | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`pass_through` | **object[]** | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | [optional]
diff --git a/src/gen/docs/models/TimeOffRequest.md b/src/gen/docs/models/TimeOffRequest.md
index b15d6d7d7..1e49aeb4d 100644
--- a/src/gen/docs/models/TimeOffRequest.md
+++ b/src/gen/docs/models/TimeOffRequest.md
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
`amount` | **float** | The amount of time off requested. | [optional]
`day_part` | **string** | The day part of the time off request. | [optional]
`notes` | [**\Apideck\Client\Model\TimeOffRequestNotes**](TimeOffRequestNotes.md) | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
diff --git a/src/gen/docs/models/TrackingCategory.md b/src/gen/docs/models/TrackingCategory.md
index bca775d28..fb662a8a5 100644
--- a/src/gen/docs/models/TrackingCategory.md
+++ b/src/gen/docs/models/TrackingCategory.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
`name` | **string** | The name of the tracking category. | [optional]
`code` | **string** | The code of the tracking category. | [optional]
`status` | **string** | Based on the status some functionality is enabled or disabled. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`row_version` | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
diff --git a/src/gen/docs/models/UnifiedFile.md b/src/gen/docs/models/UnifiedFile.md
index ad581b612..899904721 100644
--- a/src/gen/docs/models/UnifiedFile.md
+++ b/src/gen/docs/models/UnifiedFile.md
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
`permissions` | [**\Apideck\Client\Model\UnifiedFilePermissions**](UnifiedFilePermissions.md) | | [optional]
`exportable` | **bool** | Whether the current file is exportable to other file formats. This property is relevant for proprietary file formats such as Google Docs or Dropbox Paper. | [optional]
`export_formats` | **string[]** | The available file formats when exporting this file. | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_by` | **string** | The user who last updated the object. | [optional]
`created_by` | **string** | The user who created the object. | [optional]
`updated_at` | **\DateTime** | The date and time when the object was last updated. | [optional]
diff --git a/src/gen/docs/models/UpdateBankFeedAccountResponse.md b/src/gen/docs/models/UpdateBankFeedAccountResponse.md
new file mode 100644
index 000000000..e89c1641d
--- /dev/null
+++ b/src/gen/docs/models/UpdateBankFeedAccountResponse.md
@@ -0,0 +1,33 @@
+# Apideck.UpdateBankFeedAccountResponse
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`status_code` | **int** | HTTP Response Status Code |
+`status` | **string** | HTTP Response Status |
+`service` | **string** | Apideck ID of service provider |
+`resource` | **string** | Unified API resource name |
+`operation` | **string** | Operation performed |
+`data` | [**\Apideck\Client\Model\UnifiedId**](UnifiedId.md) | |
+`_raw` | **array<string,object>** | Raw response from the integration when raw=true query param is provided | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+* [`UnifiedId`](UnifiedId.md)
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/UpdateBankFeedStatementResponse.md b/src/gen/docs/models/UpdateBankFeedStatementResponse.md
new file mode 100644
index 000000000..1b6b39a7c
--- /dev/null
+++ b/src/gen/docs/models/UpdateBankFeedStatementResponse.md
@@ -0,0 +1,33 @@
+# Apideck.UpdateBankFeedStatementResponse
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`status_code` | **int** | HTTP Response Status Code |
+`status` | **string** | HTTP Response Status |
+`service` | **string** | Apideck ID of service provider |
+`resource` | **string** | Unified API resource name |
+`operation` | **string** | Operation performed |
+`data` | [**\Apideck\Client\Model\UnifiedId**](UnifiedId.md) | |
+`_raw` | **array<string,object>** | Raw response from the integration when raw=true query param is provided | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+* [`UnifiedId`](UnifiedId.md)
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/UpdateCustomObjectResponse.md b/src/gen/docs/models/UpdateCustomObjectResponse.md
new file mode 100644
index 000000000..6d32f6ad2
--- /dev/null
+++ b/src/gen/docs/models/UpdateCustomObjectResponse.md
@@ -0,0 +1,33 @@
+# Apideck.UpdateCustomObjectResponse
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`status_code` | **int** | HTTP Response Status Code |
+`status` | **string** | HTTP Response Status |
+`service` | **string** | Apideck ID of service provider |
+`resource` | **string** | Unified API resource name |
+`operation` | **string** | Operation performed |
+`data` | [**\Apideck\Client\Model\UnifiedId**](UnifiedId.md) | |
+`_raw` | **array<string,object>** | Raw response from the integration when raw=true query param is provided | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+* [`UnifiedId`](UnifiedId.md)
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/UpdateCustomObjectSchemaResponse.md b/src/gen/docs/models/UpdateCustomObjectSchemaResponse.md
new file mode 100644
index 000000000..01b8aabbb
--- /dev/null
+++ b/src/gen/docs/models/UpdateCustomObjectSchemaResponse.md
@@ -0,0 +1,33 @@
+# Apideck.UpdateCustomObjectSchemaResponse
+
+### Description
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+`status_code` | **int** | HTTP Response Status Code |
+`status` | **string** | HTTP Response Status |
+`service` | **string** | Apideck ID of service provider |
+`resource` | **string** | Unified API resource name |
+`operation` | **string** | Operation performed |
+`data` | [**\Apideck\Client\Model\UnifiedId**](UnifiedId.md) | |
+`_raw` | **array<string,object>** | Raw response from the integration when raw=true query param is provided | [optional]
+
+
+
+
+
+## Referenced Types:
+
+
+
+
+
+* [`UnifiedId`](UnifiedId.md)
+
+
+---
+
+[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)
+
+
diff --git a/src/gen/docs/models/User.md b/src/gen/docs/models/User.md
index 4b7468229..0f4c4da87 100644
--- a/src/gen/docs/models/User.md
+++ b/src/gen/docs/models/User.md
@@ -23,7 +23,7 @@ Name | Type | Description | Notes
`password` | **string** | The password of the user | [optional]
`addresses` | [**\Apideck\Client\Model\Address[]**](Address.md) | | [optional]
`phone_numbers` | [**\Apideck\Client\Model\PhoneNumber[]**](PhoneNumber.md) | | [optional]
-`custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional]
+`custom_mappings` | **array<string,object>** | When custom mappings are configured on the resource, the result is included here. | [optional]
`updated_at` | **string** | The date and time when the user was last updated. | [optional]
`created_at` | **string** | The date and time when the user was created. | [optional]
`pass_through` | **object[]** | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | [optional]
diff --git a/src/gen/lib/Api/AccountingApi.php b/src/gen/lib/Api/AccountingApi.php
index 744577361..528b84b4c 100644
--- a/src/gen/lib/Api/AccountingApi.php
+++ b/src/gen/lib/Api/AccountingApi.php
@@ -14,7 +14,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -4129,6 +4129,5262 @@ public function balanceSheetOneRequest($x_apideck_consumer_id = null, $x_apideck
);
}
+ /**
+ * Operation bankFeedAccountsAdd
+ *
+ * Create Bank Feed Account
+ *
+ * @param \Apideck\Client\Model\BankFeedAccount $bank_feed_account bank_feed_account (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \Apideck\Client\Model\CreateBankFeedAccountResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse
+ */
+ public function bankFeedAccountsAdd($bank_feed_account, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null)
+ {
+ list($response) = $this->bankFeedAccountsAddWithHttpInfo($bank_feed_account, $raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id);
+ return $response;
+ }
+
+ /**
+ * Operation bankFeedAccountsAddWithHttpInfo
+ *
+ * Create Bank Feed Account
+ *
+ * @param \Apideck\Client\Model\BankFeedAccount $bank_feed_account (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \Apideck\Client\Model\CreateBankFeedAccountResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function bankFeedAccountsAddWithHttpInfo($bank_feed_account, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null)
+ {
+ $request = $this->bankFeedAccountsAddRequest($bank_feed_account, $raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ switch($statusCode) {
+ case 201:
+ if ('\Apideck\Client\Model\CreateBankFeedAccountResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\CreateBankFeedAccountResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 400:
+ if ('\Apideck\Client\Model\BadRequestResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\BadRequestResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 401:
+ if ('\Apideck\Client\Model\UnauthorizedResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnauthorizedResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 402:
+ if ('\Apideck\Client\Model\PaymentRequiredResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\PaymentRequiredResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\Apideck\Client\Model\NotFoundResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\NotFoundResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 422:
+ if ('\Apideck\Client\Model\UnprocessableResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnprocessableResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ default:
+ if ('\Apideck\Client\Model\UnexpectedErrorResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnexpectedErrorResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ $returnType = '\Apideck\Client\Model\CreateBankFeedAccountResponse';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 201:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\CreateBankFeedAccountResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\BadRequestResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 401:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnauthorizedResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 402:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\PaymentRequiredResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\NotFoundResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 422:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnprocessableResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ default:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnexpectedErrorResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation bankFeedAccountsAddAsync
+ *
+ * Create Bank Feed Account
+ *
+ * @param \Apideck\Client\Model\BankFeedAccount $bank_feed_account (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function bankFeedAccountsAddAsync($bank_feed_account, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null)
+ {
+ return $this->bankFeedAccountsAddAsyncWithHttpInfo($bank_feed_account, $raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation bankFeedAccountsAddAsyncWithHttpInfo
+ *
+ * Create Bank Feed Account
+ *
+ * @param \Apideck\Client\Model\BankFeedAccount $bank_feed_account (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function bankFeedAccountsAddAsyncWithHttpInfo($bank_feed_account, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null)
+ {
+ $returnType = '\Apideck\Client\Model\CreateBankFeedAccountResponse';
+ $request = $this->bankFeedAccountsAddRequest($bank_feed_account, $raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'bankFeedAccountsAdd'
+ *
+ * @param \Apideck\Client\Model\BankFeedAccount $bank_feed_account (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function bankFeedAccountsAddRequest($bank_feed_account, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null)
+ {
+ // verify the required parameter 'bank_feed_account' is set
+ if ($bank_feed_account === null || (is_array($bank_feed_account) && count($bank_feed_account) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $bank_feed_account when calling bankFeedAccountsAdd'
+ );
+ }
+
+ $resourcePath = '/accounting/bank-feed-accounts';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+
+ if ('raw' === 'raw') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw ? 'true' : 'false';
+ }
+ }
+
+
+ if ($raw !== null && 'sort' === 'raw') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'filter' === 'raw') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'pass_through' === 'raw') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && !('raw' === 'raw' || 'raw' === 'sort' || 'raw' === 'filter' || 'raw' === 'pass_through')) {
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw;
+ }
+ }
+
+ // 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);
+ }
+ // header params
+ if ($x_apideck_service_id !== null) {
+ $headerParams['x-apideck-service-id'] = ObjectSerializer::toHeaderValue($x_apideck_service_id);
+ }
+
+
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($bank_feed_account)) {
+ if ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($bank_feed_account));
+ } else {
+ $httpBody = $bank_feed_account;
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('Authorization');
+ if ($apiKey !== null) {
+ $headers['Authorization'] = $apiKey;
+ }
+
+ $defaultHeaders = $this->config->getDefaultHeaders();
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'POST',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation bankFeedAccountsAll
+ *
+ * List Bank Feed Accounts
+ *
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param string $cursor Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. (optional)
+ * @param int $limit Number of results to return. Minimum 1, Maximum 200, Default 20 (optional, default to 20)
+ * @param \Apideck\Client\Model\PassThroughQuery $pass_through Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads (optional)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \Apideck\Client\Model\GetBankFeedAccountsResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse
+ */
+ public function bankFeedAccountsAll($raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $cursor = null, $limit = 20, $pass_through = null, $fields = null)
+ {
+ list($response) = $this->bankFeedAccountsAllWithHttpInfo($raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $cursor, $limit, $pass_through, $fields);
+ return $response;
+ }
+
+ /**
+ * Operation bankFeedAccountsAllWithHttpInfo
+ *
+ * List Bank Feed Accounts
+ *
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param string $cursor Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. (optional)
+ * @param int $limit Number of results to return. Minimum 1, Maximum 200, Default 20 (optional, default to 20)
+ * @param \Apideck\Client\Model\PassThroughQuery $pass_through Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads (optional)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \Apideck\Client\Model\GetBankFeedAccountsResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function bankFeedAccountsAllWithHttpInfo($raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $cursor = null, $limit = 20, $pass_through = null, $fields = null)
+ {
+ $request = $this->bankFeedAccountsAllRequest($raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $cursor, $limit, $pass_through, $fields);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ switch($statusCode) {
+ case 200:
+ if ('\Apideck\Client\Model\GetBankFeedAccountsResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\GetBankFeedAccountsResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 400:
+ if ('\Apideck\Client\Model\BadRequestResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\BadRequestResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 401:
+ if ('\Apideck\Client\Model\UnauthorizedResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnauthorizedResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 402:
+ if ('\Apideck\Client\Model\PaymentRequiredResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\PaymentRequiredResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\Apideck\Client\Model\NotFoundResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\NotFoundResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 422:
+ if ('\Apideck\Client\Model\UnprocessableResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnprocessableResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ default:
+ if ('\Apideck\Client\Model\UnexpectedErrorResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnexpectedErrorResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ $returnType = '\Apideck\Client\Model\GetBankFeedAccountsResponse';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\GetBankFeedAccountsResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\BadRequestResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 401:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnauthorizedResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 402:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\PaymentRequiredResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\NotFoundResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 422:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnprocessableResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ default:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnexpectedErrorResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation bankFeedAccountsAllAsync
+ *
+ * List Bank Feed Accounts
+ *
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param string $cursor Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. (optional)
+ * @param int $limit Number of results to return. Minimum 1, Maximum 200, Default 20 (optional, default to 20)
+ * @param \Apideck\Client\Model\PassThroughQuery $pass_through Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads (optional)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function bankFeedAccountsAllAsync($raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $cursor = null, $limit = 20, $pass_through = null, $fields = null)
+ {
+ return $this->bankFeedAccountsAllAsyncWithHttpInfo($raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $cursor, $limit, $pass_through, $fields)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation bankFeedAccountsAllAsyncWithHttpInfo
+ *
+ * List Bank Feed Accounts
+ *
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param string $cursor Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. (optional)
+ * @param int $limit Number of results to return. Minimum 1, Maximum 200, Default 20 (optional, default to 20)
+ * @param \Apideck\Client\Model\PassThroughQuery $pass_through Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads (optional)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function bankFeedAccountsAllAsyncWithHttpInfo($raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $cursor = null, $limit = 20, $pass_through = null, $fields = null)
+ {
+ $returnType = '\Apideck\Client\Model\GetBankFeedAccountsResponse';
+ $request = $this->bankFeedAccountsAllRequest($raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $cursor, $limit, $pass_through, $fields);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'bankFeedAccountsAll'
+ *
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param string $cursor Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. (optional)
+ * @param int $limit Number of results to return. Minimum 1, Maximum 200, Default 20 (optional, default to 20)
+ * @param \Apideck\Client\Model\PassThroughQuery $pass_through Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads (optional)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function bankFeedAccountsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $cursor = null, $limit = 20, $pass_through = null, $fields = null)
+ {
+ if ($limit !== null && $limit > 200) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling AccountingApi.bankFeedAccountsAll, must be smaller than or equal to 200.');
+ }
+ if ($limit !== null && $limit < 1) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling AccountingApi.bankFeedAccountsAll, must be bigger than or equal to 1.');
+ }
+
+
+ $resourcePath = '/accounting/bank-feed-accounts';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+
+ if ('raw' === 'raw') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw ? 'true' : 'false';
+ }
+ }
+
+
+ if ($raw !== null && 'sort' === 'raw') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'filter' === 'raw') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'pass_through' === 'raw') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && !('raw' === 'raw' || 'raw' === 'sort' || 'raw' === 'filter' || 'raw' === 'pass_through')) {
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw;
+ }
+ }
+ // query params
+
+ if ('raw' === 'cursor') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($cursor)) {
+ foreach($cursor as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['cursor'] = $cursor ? 'true' : 'false';
+ }
+ }
+
+
+ if ($cursor !== null && 'sort' === 'cursor') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($cursor !== null && 'filter' === 'cursor') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($cursor !== null && 'pass_through' === 'cursor') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($cursor !== null && !('cursor' === 'raw' || 'cursor' === 'sort' || 'cursor' === 'filter' || 'cursor' === 'pass_through')) {
+ if('form' === 'form' && is_array($cursor)) {
+ foreach($cursor as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['cursor'] = $cursor;
+ }
+ }
+ // query params
+
+ if ('raw' === 'limit') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($limit)) {
+ foreach($limit as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['limit'] = $limit ? 'true' : 'false';
+ }
+ }
+
+
+ if ($limit !== null && 'sort' === 'limit') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($limit !== null && 'filter' === 'limit') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($limit !== null && 'pass_through' === 'limit') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($limit !== null && !('limit' === 'raw' || 'limit' === 'sort' || 'limit' === 'filter' || 'limit' === 'pass_through')) {
+ if('form' === 'form' && is_array($limit)) {
+ foreach($limit as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['limit'] = $limit;
+ }
+ }
+ // query params
+
+ if ('raw' === 'pass_through') {
+ // Support for raw as true/false parameter
+ 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 && 'sort' === 'pass_through') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($pass_through !== null && 'filter' === 'pass_through') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($pass_through !== null && 'pass_through' === 'pass_through') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($pass_through !== null && !('pass_through' === 'raw' || 'pass_through' === 'sort' || 'pass_through' === 'filter' || 'pass_through' === 'pass_through')) {
+ if('form' === 'deepObject' && is_array($pass_through)) {
+ foreach($pass_through as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['pass_through'] = $pass_through;
+ }
+ }
+ // query params
+
+ if ('raw' === 'fields') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($fields)) {
+ foreach($fields as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['fields'] = $fields ? 'true' : 'false';
+ }
+ }
+
+
+ if ($fields !== null && 'sort' === 'fields') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($fields !== null && 'filter' === 'fields') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($fields !== null && 'pass_through' === 'fields') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($fields !== null && !('fields' === 'raw' || 'fields' === 'sort' || 'fields' === 'filter' || 'fields' === 'pass_through')) {
+ 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_app_id !== null) {
+ $headerParams['x-apideck-app-id'] = ObjectSerializer::toHeaderValue($x_apideck_app_id);
+ }
+ // header params
+ if ($x_apideck_service_id !== null) {
+ $headerParams['x-apideck-service-id'] = ObjectSerializer::toHeaderValue($x_apideck_service_id);
+ }
+
+
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ []
+ );
+ }
+
+ // for model (json/xml)
+ if (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('Authorization');
+ if ($apiKey !== null) {
+ $headers['Authorization'] = $apiKey;
+ }
+
+ $defaultHeaders = $this->config->getDefaultHeaders();
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation bankFeedAccountsDelete
+ *
+ * Delete Bank Feed Account
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \Apideck\Client\Model\DeleteBankFeedAccountResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse
+ */
+ public function bankFeedAccountsDelete($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ list($response) = $this->bankFeedAccountsDeleteWithHttpInfo($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+ return $response;
+ }
+
+ /**
+ * Operation bankFeedAccountsDeleteWithHttpInfo
+ *
+ * Delete Bank Feed Account
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \Apideck\Client\Model\DeleteBankFeedAccountResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function bankFeedAccountsDeleteWithHttpInfo($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ $request = $this->bankFeedAccountsDeleteRequest($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ switch($statusCode) {
+ case 200:
+ if ('\Apideck\Client\Model\DeleteBankFeedAccountResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\DeleteBankFeedAccountResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 400:
+ if ('\Apideck\Client\Model\BadRequestResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\BadRequestResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 401:
+ if ('\Apideck\Client\Model\UnauthorizedResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnauthorizedResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 402:
+ if ('\Apideck\Client\Model\PaymentRequiredResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\PaymentRequiredResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\Apideck\Client\Model\NotFoundResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\NotFoundResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 422:
+ if ('\Apideck\Client\Model\UnprocessableResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnprocessableResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ default:
+ if ('\Apideck\Client\Model\UnexpectedErrorResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnexpectedErrorResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ $returnType = '\Apideck\Client\Model\DeleteBankFeedAccountResponse';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\DeleteBankFeedAccountResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\BadRequestResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 401:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnauthorizedResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 402:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\PaymentRequiredResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\NotFoundResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 422:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnprocessableResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ default:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnexpectedErrorResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation bankFeedAccountsDeleteAsync
+ *
+ * Delete Bank Feed Account
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function bankFeedAccountsDeleteAsync($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ return $this->bankFeedAccountsDeleteAsyncWithHttpInfo($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation bankFeedAccountsDeleteAsyncWithHttpInfo
+ *
+ * Delete Bank Feed Account
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function bankFeedAccountsDeleteAsyncWithHttpInfo($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ $returnType = '\Apideck\Client\Model\DeleteBankFeedAccountResponse';
+ $request = $this->bankFeedAccountsDeleteRequest($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'bankFeedAccountsDelete'
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function bankFeedAccountsDeleteRequest($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling bankFeedAccountsDelete'
+ );
+ }
+
+ $resourcePath = '/accounting/bank-feed-accounts/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+
+ if ('raw' === 'raw') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw ? 'true' : 'false';
+ }
+ }
+
+
+ if ($raw !== null && 'sort' === 'raw') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'filter' === 'raw') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'pass_through' === 'raw') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && !('raw' === 'raw' || 'raw' === 'sort' || 'raw' === 'filter' || 'raw' === 'pass_through')) {
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw;
+ }
+ }
+
+ // 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);
+ }
+ // header params
+ if ($x_apideck_service_id !== null) {
+ $headerParams['x-apideck-service-id'] = ObjectSerializer::toHeaderValue($x_apideck_service_id);
+ }
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ []
+ );
+ }
+
+ // for model (json/xml)
+ if (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('Authorization');
+ if ($apiKey !== null) {
+ $headers['Authorization'] = $apiKey;
+ }
+
+ $defaultHeaders = $this->config->getDefaultHeaders();
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'DELETE',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation bankFeedAccountsOne
+ *
+ * Get Bank Feed Account
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \Apideck\Client\Model\GetBankFeedAccountResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse
+ */
+ public function bankFeedAccountsOne($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false, $fields = null)
+ {
+ list($response) = $this->bankFeedAccountsOneWithHttpInfo($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw, $fields);
+ return $response;
+ }
+
+ /**
+ * Operation bankFeedAccountsOneWithHttpInfo
+ *
+ * Get Bank Feed Account
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \Apideck\Client\Model\GetBankFeedAccountResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function bankFeedAccountsOneWithHttpInfo($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false, $fields = null)
+ {
+ $request = $this->bankFeedAccountsOneRequest($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw, $fields);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ switch($statusCode) {
+ case 200:
+ if ('\Apideck\Client\Model\GetBankFeedAccountResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\GetBankFeedAccountResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 400:
+ if ('\Apideck\Client\Model\BadRequestResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\BadRequestResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 401:
+ if ('\Apideck\Client\Model\UnauthorizedResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnauthorizedResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 402:
+ if ('\Apideck\Client\Model\PaymentRequiredResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\PaymentRequiredResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\Apideck\Client\Model\NotFoundResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\NotFoundResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 422:
+ if ('\Apideck\Client\Model\UnprocessableResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnprocessableResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ default:
+ if ('\Apideck\Client\Model\UnexpectedErrorResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnexpectedErrorResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ $returnType = '\Apideck\Client\Model\GetBankFeedAccountResponse';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\GetBankFeedAccountResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\BadRequestResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 401:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnauthorizedResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 402:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\PaymentRequiredResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\NotFoundResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 422:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnprocessableResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ default:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnexpectedErrorResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation bankFeedAccountsOneAsync
+ *
+ * Get Bank Feed Account
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function bankFeedAccountsOneAsync($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false, $fields = null)
+ {
+ return $this->bankFeedAccountsOneAsyncWithHttpInfo($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw, $fields)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation bankFeedAccountsOneAsyncWithHttpInfo
+ *
+ * Get Bank Feed Account
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function bankFeedAccountsOneAsyncWithHttpInfo($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false, $fields = null)
+ {
+ $returnType = '\Apideck\Client\Model\GetBankFeedAccountResponse';
+ $request = $this->bankFeedAccountsOneRequest($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw, $fields);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'bankFeedAccountsOne'
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function bankFeedAccountsOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false, $fields = null)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling bankFeedAccountsOne'
+ );
+ }
+
+ $resourcePath = '/accounting/bank-feed-accounts/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+
+ if ('raw' === 'raw') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw ? 'true' : 'false';
+ }
+ }
+
+
+ if ($raw !== null && 'sort' === 'raw') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'filter' === 'raw') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'pass_through' === 'raw') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && !('raw' === 'raw' || 'raw' === 'sort' || 'raw' === 'filter' || 'raw' === 'pass_through')) {
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw;
+ }
+ }
+ // query params
+
+ if ('raw' === 'fields') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($fields)) {
+ foreach($fields as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['fields'] = $fields ? 'true' : 'false';
+ }
+ }
+
+
+ if ($fields !== null && 'sort' === 'fields') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($fields !== null && 'filter' === 'fields') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($fields !== null && 'pass_through' === 'fields') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($fields !== null && !('fields' === 'raw' || 'fields' === 'sort' || 'fields' === 'filter' || 'fields' === 'pass_through')) {
+ 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_app_id !== null) {
+ $headerParams['x-apideck-app-id'] = ObjectSerializer::toHeaderValue($x_apideck_app_id);
+ }
+ // header params
+ if ($x_apideck_service_id !== null) {
+ $headerParams['x-apideck-service-id'] = ObjectSerializer::toHeaderValue($x_apideck_service_id);
+ }
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ []
+ );
+ }
+
+ // for model (json/xml)
+ if (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('Authorization');
+ if ($apiKey !== null) {
+ $headers['Authorization'] = $apiKey;
+ }
+
+ $defaultHeaders = $this->config->getDefaultHeaders();
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation bankFeedAccountsUpdate
+ *
+ * Update Bank Feed Account
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param \Apideck\Client\Model\BankFeedAccount $bank_feed_account bank_feed_account (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \Apideck\Client\Model\UpdateBankFeedAccountResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse
+ */
+ public function bankFeedAccountsUpdate($id, $bank_feed_account, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ list($response) = $this->bankFeedAccountsUpdateWithHttpInfo($id, $bank_feed_account, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+ return $response;
+ }
+
+ /**
+ * Operation bankFeedAccountsUpdateWithHttpInfo
+ *
+ * Update Bank Feed Account
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param \Apideck\Client\Model\BankFeedAccount $bank_feed_account (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \Apideck\Client\Model\UpdateBankFeedAccountResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function bankFeedAccountsUpdateWithHttpInfo($id, $bank_feed_account, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ $request = $this->bankFeedAccountsUpdateRequest($id, $bank_feed_account, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ switch($statusCode) {
+ case 200:
+ if ('\Apideck\Client\Model\UpdateBankFeedAccountResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UpdateBankFeedAccountResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 400:
+ if ('\Apideck\Client\Model\BadRequestResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\BadRequestResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 401:
+ if ('\Apideck\Client\Model\UnauthorizedResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnauthorizedResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 402:
+ if ('\Apideck\Client\Model\PaymentRequiredResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\PaymentRequiredResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\Apideck\Client\Model\NotFoundResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\NotFoundResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 422:
+ if ('\Apideck\Client\Model\UnprocessableResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnprocessableResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ default:
+ if ('\Apideck\Client\Model\UnexpectedErrorResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnexpectedErrorResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ $returnType = '\Apideck\Client\Model\UpdateBankFeedAccountResponse';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UpdateBankFeedAccountResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\BadRequestResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 401:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnauthorizedResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 402:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\PaymentRequiredResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\NotFoundResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 422:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnprocessableResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ default:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnexpectedErrorResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation bankFeedAccountsUpdateAsync
+ *
+ * Update Bank Feed Account
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param \Apideck\Client\Model\BankFeedAccount $bank_feed_account (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function bankFeedAccountsUpdateAsync($id, $bank_feed_account, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ return $this->bankFeedAccountsUpdateAsyncWithHttpInfo($id, $bank_feed_account, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation bankFeedAccountsUpdateAsyncWithHttpInfo
+ *
+ * Update Bank Feed Account
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param \Apideck\Client\Model\BankFeedAccount $bank_feed_account (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function bankFeedAccountsUpdateAsyncWithHttpInfo($id, $bank_feed_account, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ $returnType = '\Apideck\Client\Model\UpdateBankFeedAccountResponse';
+ $request = $this->bankFeedAccountsUpdateRequest($id, $bank_feed_account, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'bankFeedAccountsUpdate'
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param \Apideck\Client\Model\BankFeedAccount $bank_feed_account (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function bankFeedAccountsUpdateRequest($id, $bank_feed_account, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling bankFeedAccountsUpdate'
+ );
+ }
+ // verify the required parameter 'bank_feed_account' is set
+ if ($bank_feed_account === null || (is_array($bank_feed_account) && count($bank_feed_account) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $bank_feed_account when calling bankFeedAccountsUpdate'
+ );
+ }
+
+ $resourcePath = '/accounting/bank-feed-accounts/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+
+ if ('raw' === 'raw') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw ? 'true' : 'false';
+ }
+ }
+
+
+ if ($raw !== null && 'sort' === 'raw') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'filter' === 'raw') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'pass_through' === 'raw') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && !('raw' === 'raw' || 'raw' === 'sort' || 'raw' === 'filter' || 'raw' === 'pass_through')) {
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw;
+ }
+ }
+
+ // 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);
+ }
+ // header params
+ if ($x_apideck_service_id !== null) {
+ $headerParams['x-apideck-service-id'] = ObjectSerializer::toHeaderValue($x_apideck_service_id);
+ }
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($bank_feed_account)) {
+ if ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($bank_feed_account));
+ } else {
+ $httpBody = $bank_feed_account;
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('Authorization');
+ if ($apiKey !== null) {
+ $headers['Authorization'] = $apiKey;
+ }
+
+ $defaultHeaders = $this->config->getDefaultHeaders();
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'PATCH',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation bankFeedStatementsAdd
+ *
+ * Create Bank Feed Statement
+ *
+ * @param \Apideck\Client\Model\BankFeedStatement $bank_feed_statement bank_feed_statement (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \Apideck\Client\Model\CreateBankFeedStatementResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse
+ */
+ public function bankFeedStatementsAdd($bank_feed_statement, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null)
+ {
+ list($response) = $this->bankFeedStatementsAddWithHttpInfo($bank_feed_statement, $raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id);
+ return $response;
+ }
+
+ /**
+ * Operation bankFeedStatementsAddWithHttpInfo
+ *
+ * Create Bank Feed Statement
+ *
+ * @param \Apideck\Client\Model\BankFeedStatement $bank_feed_statement (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \Apideck\Client\Model\CreateBankFeedStatementResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function bankFeedStatementsAddWithHttpInfo($bank_feed_statement, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null)
+ {
+ $request = $this->bankFeedStatementsAddRequest($bank_feed_statement, $raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ switch($statusCode) {
+ case 201:
+ if ('\Apideck\Client\Model\CreateBankFeedStatementResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\CreateBankFeedStatementResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 400:
+ if ('\Apideck\Client\Model\BadRequestResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\BadRequestResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 401:
+ if ('\Apideck\Client\Model\UnauthorizedResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnauthorizedResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 402:
+ if ('\Apideck\Client\Model\PaymentRequiredResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\PaymentRequiredResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\Apideck\Client\Model\NotFoundResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\NotFoundResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 422:
+ if ('\Apideck\Client\Model\UnprocessableResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnprocessableResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ default:
+ if ('\Apideck\Client\Model\UnexpectedErrorResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnexpectedErrorResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ $returnType = '\Apideck\Client\Model\CreateBankFeedStatementResponse';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 201:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\CreateBankFeedStatementResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\BadRequestResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 401:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnauthorizedResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 402:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\PaymentRequiredResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\NotFoundResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 422:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnprocessableResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ default:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnexpectedErrorResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation bankFeedStatementsAddAsync
+ *
+ * Create Bank Feed Statement
+ *
+ * @param \Apideck\Client\Model\BankFeedStatement $bank_feed_statement (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function bankFeedStatementsAddAsync($bank_feed_statement, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null)
+ {
+ return $this->bankFeedStatementsAddAsyncWithHttpInfo($bank_feed_statement, $raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation bankFeedStatementsAddAsyncWithHttpInfo
+ *
+ * Create Bank Feed Statement
+ *
+ * @param \Apideck\Client\Model\BankFeedStatement $bank_feed_statement (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function bankFeedStatementsAddAsyncWithHttpInfo($bank_feed_statement, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null)
+ {
+ $returnType = '\Apideck\Client\Model\CreateBankFeedStatementResponse';
+ $request = $this->bankFeedStatementsAddRequest($bank_feed_statement, $raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'bankFeedStatementsAdd'
+ *
+ * @param \Apideck\Client\Model\BankFeedStatement $bank_feed_statement (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function bankFeedStatementsAddRequest($bank_feed_statement, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null)
+ {
+ // verify the required parameter 'bank_feed_statement' is set
+ if ($bank_feed_statement === null || (is_array($bank_feed_statement) && count($bank_feed_statement) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $bank_feed_statement when calling bankFeedStatementsAdd'
+ );
+ }
+
+ $resourcePath = '/accounting/bank-feed-statements';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+
+ if ('raw' === 'raw') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw ? 'true' : 'false';
+ }
+ }
+
+
+ if ($raw !== null && 'sort' === 'raw') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'filter' === 'raw') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'pass_through' === 'raw') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && !('raw' === 'raw' || 'raw' === 'sort' || 'raw' === 'filter' || 'raw' === 'pass_through')) {
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw;
+ }
+ }
+
+ // 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);
+ }
+ // header params
+ if ($x_apideck_service_id !== null) {
+ $headerParams['x-apideck-service-id'] = ObjectSerializer::toHeaderValue($x_apideck_service_id);
+ }
+
+
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($bank_feed_statement)) {
+ if ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($bank_feed_statement));
+ } else {
+ $httpBody = $bank_feed_statement;
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('Authorization');
+ if ($apiKey !== null) {
+ $headers['Authorization'] = $apiKey;
+ }
+
+ $defaultHeaders = $this->config->getDefaultHeaders();
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'POST',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation bankFeedStatementsAll
+ *
+ * List Bank Feed Statements
+ *
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param string $cursor Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. (optional)
+ * @param int $limit Number of results to return. Minimum 1, Maximum 200, Default 20 (optional, default to 20)
+ * @param \Apideck\Client\Model\PassThroughQuery $pass_through Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads (optional)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \Apideck\Client\Model\GetBankFeedStatementsResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse
+ */
+ public function bankFeedStatementsAll($raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $cursor = null, $limit = 20, $pass_through = null, $fields = null)
+ {
+ list($response) = $this->bankFeedStatementsAllWithHttpInfo($raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $cursor, $limit, $pass_through, $fields);
+ return $response;
+ }
+
+ /**
+ * Operation bankFeedStatementsAllWithHttpInfo
+ *
+ * List Bank Feed Statements
+ *
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param string $cursor Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. (optional)
+ * @param int $limit Number of results to return. Minimum 1, Maximum 200, Default 20 (optional, default to 20)
+ * @param \Apideck\Client\Model\PassThroughQuery $pass_through Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads (optional)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \Apideck\Client\Model\GetBankFeedStatementsResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function bankFeedStatementsAllWithHttpInfo($raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $cursor = null, $limit = 20, $pass_through = null, $fields = null)
+ {
+ $request = $this->bankFeedStatementsAllRequest($raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $cursor, $limit, $pass_through, $fields);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ switch($statusCode) {
+ case 200:
+ if ('\Apideck\Client\Model\GetBankFeedStatementsResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\GetBankFeedStatementsResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 400:
+ if ('\Apideck\Client\Model\BadRequestResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\BadRequestResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 401:
+ if ('\Apideck\Client\Model\UnauthorizedResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnauthorizedResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 402:
+ if ('\Apideck\Client\Model\PaymentRequiredResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\PaymentRequiredResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\Apideck\Client\Model\NotFoundResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\NotFoundResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 422:
+ if ('\Apideck\Client\Model\UnprocessableResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnprocessableResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ default:
+ if ('\Apideck\Client\Model\UnexpectedErrorResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnexpectedErrorResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ $returnType = '\Apideck\Client\Model\GetBankFeedStatementsResponse';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\GetBankFeedStatementsResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\BadRequestResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 401:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnauthorizedResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 402:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\PaymentRequiredResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\NotFoundResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 422:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnprocessableResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ default:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnexpectedErrorResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation bankFeedStatementsAllAsync
+ *
+ * List Bank Feed Statements
+ *
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param string $cursor Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. (optional)
+ * @param int $limit Number of results to return. Minimum 1, Maximum 200, Default 20 (optional, default to 20)
+ * @param \Apideck\Client\Model\PassThroughQuery $pass_through Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads (optional)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function bankFeedStatementsAllAsync($raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $cursor = null, $limit = 20, $pass_through = null, $fields = null)
+ {
+ return $this->bankFeedStatementsAllAsyncWithHttpInfo($raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $cursor, $limit, $pass_through, $fields)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation bankFeedStatementsAllAsyncWithHttpInfo
+ *
+ * List Bank Feed Statements
+ *
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param string $cursor Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. (optional)
+ * @param int $limit Number of results to return. Minimum 1, Maximum 200, Default 20 (optional, default to 20)
+ * @param \Apideck\Client\Model\PassThroughQuery $pass_through Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads (optional)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function bankFeedStatementsAllAsyncWithHttpInfo($raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $cursor = null, $limit = 20, $pass_through = null, $fields = null)
+ {
+ $returnType = '\Apideck\Client\Model\GetBankFeedStatementsResponse';
+ $request = $this->bankFeedStatementsAllRequest($raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $cursor, $limit, $pass_through, $fields);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'bankFeedStatementsAll'
+ *
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param string $cursor Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. (optional)
+ * @param int $limit Number of results to return. Minimum 1, Maximum 200, Default 20 (optional, default to 20)
+ * @param \Apideck\Client\Model\PassThroughQuery $pass_through Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads (optional)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function bankFeedStatementsAllRequest($raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $cursor = null, $limit = 20, $pass_through = null, $fields = null)
+ {
+ if ($limit !== null && $limit > 200) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling AccountingApi.bankFeedStatementsAll, must be smaller than or equal to 200.');
+ }
+ if ($limit !== null && $limit < 1) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling AccountingApi.bankFeedStatementsAll, must be bigger than or equal to 1.');
+ }
+
+
+ $resourcePath = '/accounting/bank-feed-statements';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+
+ if ('raw' === 'raw') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw ? 'true' : 'false';
+ }
+ }
+
+
+ if ($raw !== null && 'sort' === 'raw') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'filter' === 'raw') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'pass_through' === 'raw') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && !('raw' === 'raw' || 'raw' === 'sort' || 'raw' === 'filter' || 'raw' === 'pass_through')) {
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw;
+ }
+ }
+ // query params
+
+ if ('raw' === 'cursor') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($cursor)) {
+ foreach($cursor as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['cursor'] = $cursor ? 'true' : 'false';
+ }
+ }
+
+
+ if ($cursor !== null && 'sort' === 'cursor') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($cursor !== null && 'filter' === 'cursor') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($cursor !== null && 'pass_through' === 'cursor') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($cursor !== null && !('cursor' === 'raw' || 'cursor' === 'sort' || 'cursor' === 'filter' || 'cursor' === 'pass_through')) {
+ if('form' === 'form' && is_array($cursor)) {
+ foreach($cursor as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['cursor'] = $cursor;
+ }
+ }
+ // query params
+
+ if ('raw' === 'limit') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($limit)) {
+ foreach($limit as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['limit'] = $limit ? 'true' : 'false';
+ }
+ }
+
+
+ if ($limit !== null && 'sort' === 'limit') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($limit !== null && 'filter' === 'limit') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($limit !== null && 'pass_through' === 'limit') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($limit !== null && !('limit' === 'raw' || 'limit' === 'sort' || 'limit' === 'filter' || 'limit' === 'pass_through')) {
+ if('form' === 'form' && is_array($limit)) {
+ foreach($limit as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['limit'] = $limit;
+ }
+ }
+ // query params
+
+ if ('raw' === 'pass_through') {
+ // Support for raw as true/false parameter
+ 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 && 'sort' === 'pass_through') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($pass_through !== null && 'filter' === 'pass_through') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($pass_through !== null && 'pass_through' === 'pass_through') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($pass_through !== null && !('pass_through' === 'raw' || 'pass_through' === 'sort' || 'pass_through' === 'filter' || 'pass_through' === 'pass_through')) {
+ if('form' === 'deepObject' && is_array($pass_through)) {
+ foreach($pass_through as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['pass_through'] = $pass_through;
+ }
+ }
+ // query params
+
+ if ('raw' === 'fields') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($fields)) {
+ foreach($fields as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['fields'] = $fields ? 'true' : 'false';
+ }
+ }
+
+
+ if ($fields !== null && 'sort' === 'fields') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($fields !== null && 'filter' === 'fields') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($fields !== null && 'pass_through' === 'fields') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($fields !== null && !('fields' === 'raw' || 'fields' === 'sort' || 'fields' === 'filter' || 'fields' === 'pass_through')) {
+ 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_app_id !== null) {
+ $headerParams['x-apideck-app-id'] = ObjectSerializer::toHeaderValue($x_apideck_app_id);
+ }
+ // header params
+ if ($x_apideck_service_id !== null) {
+ $headerParams['x-apideck-service-id'] = ObjectSerializer::toHeaderValue($x_apideck_service_id);
+ }
+
+
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ []
+ );
+ }
+
+ // for model (json/xml)
+ if (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('Authorization');
+ if ($apiKey !== null) {
+ $headers['Authorization'] = $apiKey;
+ }
+
+ $defaultHeaders = $this->config->getDefaultHeaders();
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation bankFeedStatementsDelete
+ *
+ * Delete Bank Feed Statement
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \Apideck\Client\Model\DeleteBankFeedStatementResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse
+ */
+ public function bankFeedStatementsDelete($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ list($response) = $this->bankFeedStatementsDeleteWithHttpInfo($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+ return $response;
+ }
+
+ /**
+ * Operation bankFeedStatementsDeleteWithHttpInfo
+ *
+ * Delete Bank Feed Statement
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \Apideck\Client\Model\DeleteBankFeedStatementResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function bankFeedStatementsDeleteWithHttpInfo($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ $request = $this->bankFeedStatementsDeleteRequest($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ switch($statusCode) {
+ case 200:
+ if ('\Apideck\Client\Model\DeleteBankFeedStatementResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\DeleteBankFeedStatementResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 400:
+ if ('\Apideck\Client\Model\BadRequestResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\BadRequestResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 401:
+ if ('\Apideck\Client\Model\UnauthorizedResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnauthorizedResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 402:
+ if ('\Apideck\Client\Model\PaymentRequiredResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\PaymentRequiredResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\Apideck\Client\Model\NotFoundResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\NotFoundResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 422:
+ if ('\Apideck\Client\Model\UnprocessableResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnprocessableResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ default:
+ if ('\Apideck\Client\Model\UnexpectedErrorResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnexpectedErrorResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ $returnType = '\Apideck\Client\Model\DeleteBankFeedStatementResponse';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\DeleteBankFeedStatementResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\BadRequestResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 401:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnauthorizedResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 402:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\PaymentRequiredResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\NotFoundResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 422:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnprocessableResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ default:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnexpectedErrorResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation bankFeedStatementsDeleteAsync
+ *
+ * Delete Bank Feed Statement
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function bankFeedStatementsDeleteAsync($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ return $this->bankFeedStatementsDeleteAsyncWithHttpInfo($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation bankFeedStatementsDeleteAsyncWithHttpInfo
+ *
+ * Delete Bank Feed Statement
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function bankFeedStatementsDeleteAsyncWithHttpInfo($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ $returnType = '\Apideck\Client\Model\DeleteBankFeedStatementResponse';
+ $request = $this->bankFeedStatementsDeleteRequest($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'bankFeedStatementsDelete'
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function bankFeedStatementsDeleteRequest($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling bankFeedStatementsDelete'
+ );
+ }
+
+ $resourcePath = '/accounting/bank-feed-statements/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+
+ if ('raw' === 'raw') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw ? 'true' : 'false';
+ }
+ }
+
+
+ if ($raw !== null && 'sort' === 'raw') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'filter' === 'raw') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'pass_through' === 'raw') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && !('raw' === 'raw' || 'raw' === 'sort' || 'raw' === 'filter' || 'raw' === 'pass_through')) {
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw;
+ }
+ }
+
+ // 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);
+ }
+ // header params
+ if ($x_apideck_service_id !== null) {
+ $headerParams['x-apideck-service-id'] = ObjectSerializer::toHeaderValue($x_apideck_service_id);
+ }
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ []
+ );
+ }
+
+ // for model (json/xml)
+ if (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('Authorization');
+ if ($apiKey !== null) {
+ $headers['Authorization'] = $apiKey;
+ }
+
+ $defaultHeaders = $this->config->getDefaultHeaders();
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'DELETE',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation bankFeedStatementsOne
+ *
+ * Get Bank Feed Statement
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \Apideck\Client\Model\GetBankFeedStatementResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse
+ */
+ public function bankFeedStatementsOne($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false, $fields = null)
+ {
+ list($response) = $this->bankFeedStatementsOneWithHttpInfo($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw, $fields);
+ return $response;
+ }
+
+ /**
+ * Operation bankFeedStatementsOneWithHttpInfo
+ *
+ * Get Bank Feed Statement
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \Apideck\Client\Model\GetBankFeedStatementResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function bankFeedStatementsOneWithHttpInfo($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false, $fields = null)
+ {
+ $request = $this->bankFeedStatementsOneRequest($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw, $fields);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ switch($statusCode) {
+ case 200:
+ if ('\Apideck\Client\Model\GetBankFeedStatementResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\GetBankFeedStatementResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 400:
+ if ('\Apideck\Client\Model\BadRequestResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\BadRequestResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 401:
+ if ('\Apideck\Client\Model\UnauthorizedResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnauthorizedResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 402:
+ if ('\Apideck\Client\Model\PaymentRequiredResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\PaymentRequiredResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\Apideck\Client\Model\NotFoundResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\NotFoundResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 422:
+ if ('\Apideck\Client\Model\UnprocessableResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnprocessableResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ default:
+ if ('\Apideck\Client\Model\UnexpectedErrorResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnexpectedErrorResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ $returnType = '\Apideck\Client\Model\GetBankFeedStatementResponse';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\GetBankFeedStatementResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\BadRequestResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 401:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnauthorizedResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 402:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\PaymentRequiredResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\NotFoundResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 422:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnprocessableResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ default:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnexpectedErrorResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation bankFeedStatementsOneAsync
+ *
+ * Get Bank Feed Statement
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function bankFeedStatementsOneAsync($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false, $fields = null)
+ {
+ return $this->bankFeedStatementsOneAsyncWithHttpInfo($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw, $fields)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation bankFeedStatementsOneAsyncWithHttpInfo
+ *
+ * Get Bank Feed Statement
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function bankFeedStatementsOneAsyncWithHttpInfo($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false, $fields = null)
+ {
+ $returnType = '\Apideck\Client\Model\GetBankFeedStatementResponse';
+ $request = $this->bankFeedStatementsOneRequest($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw, $fields);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'bankFeedStatementsOne'
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function bankFeedStatementsOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false, $fields = null)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling bankFeedStatementsOne'
+ );
+ }
+
+ $resourcePath = '/accounting/bank-feed-statements/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+
+ if ('raw' === 'raw') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw ? 'true' : 'false';
+ }
+ }
+
+
+ if ($raw !== null && 'sort' === 'raw') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'filter' === 'raw') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'pass_through' === 'raw') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && !('raw' === 'raw' || 'raw' === 'sort' || 'raw' === 'filter' || 'raw' === 'pass_through')) {
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw;
+ }
+ }
+ // query params
+
+ if ('raw' === 'fields') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($fields)) {
+ foreach($fields as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['fields'] = $fields ? 'true' : 'false';
+ }
+ }
+
+
+ if ($fields !== null && 'sort' === 'fields') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($fields !== null && 'filter' === 'fields') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($fields !== null && 'pass_through' === 'fields') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($fields !== null && !('fields' === 'raw' || 'fields' === 'sort' || 'fields' === 'filter' || 'fields' === 'pass_through')) {
+ 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_app_id !== null) {
+ $headerParams['x-apideck-app-id'] = ObjectSerializer::toHeaderValue($x_apideck_app_id);
+ }
+ // header params
+ if ($x_apideck_service_id !== null) {
+ $headerParams['x-apideck-service-id'] = ObjectSerializer::toHeaderValue($x_apideck_service_id);
+ }
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ []
+ );
+ }
+
+ // for model (json/xml)
+ if (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('Authorization');
+ if ($apiKey !== null) {
+ $headers['Authorization'] = $apiKey;
+ }
+
+ $defaultHeaders = $this->config->getDefaultHeaders();
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation bankFeedStatementsUpdate
+ *
+ * Update Bank Feed Statement
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param \Apideck\Client\Model\BankFeedStatement $bank_feed_statement bank_feed_statement (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \Apideck\Client\Model\UpdateBankFeedStatementResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse
+ */
+ public function bankFeedStatementsUpdate($id, $bank_feed_statement, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ list($response) = $this->bankFeedStatementsUpdateWithHttpInfo($id, $bank_feed_statement, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+ return $response;
+ }
+
+ /**
+ * Operation bankFeedStatementsUpdateWithHttpInfo
+ *
+ * Update Bank Feed Statement
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param \Apideck\Client\Model\BankFeedStatement $bank_feed_statement (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \Apideck\Client\Model\UpdateBankFeedStatementResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function bankFeedStatementsUpdateWithHttpInfo($id, $bank_feed_statement, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ $request = $this->bankFeedStatementsUpdateRequest($id, $bank_feed_statement, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ switch($statusCode) {
+ case 200:
+ if ('\Apideck\Client\Model\UpdateBankFeedStatementResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UpdateBankFeedStatementResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 400:
+ if ('\Apideck\Client\Model\BadRequestResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\BadRequestResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 401:
+ if ('\Apideck\Client\Model\UnauthorizedResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnauthorizedResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 402:
+ if ('\Apideck\Client\Model\PaymentRequiredResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\PaymentRequiredResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\Apideck\Client\Model\NotFoundResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\NotFoundResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 422:
+ if ('\Apideck\Client\Model\UnprocessableResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnprocessableResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ default:
+ if ('\Apideck\Client\Model\UnexpectedErrorResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnexpectedErrorResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ $returnType = '\Apideck\Client\Model\UpdateBankFeedStatementResponse';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UpdateBankFeedStatementResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\BadRequestResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 401:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnauthorizedResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 402:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\PaymentRequiredResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\NotFoundResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 422:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnprocessableResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ default:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnexpectedErrorResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation bankFeedStatementsUpdateAsync
+ *
+ * Update Bank Feed Statement
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param \Apideck\Client\Model\BankFeedStatement $bank_feed_statement (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function bankFeedStatementsUpdateAsync($id, $bank_feed_statement, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ return $this->bankFeedStatementsUpdateAsyncWithHttpInfo($id, $bank_feed_statement, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation bankFeedStatementsUpdateAsyncWithHttpInfo
+ *
+ * Update Bank Feed Statement
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param \Apideck\Client\Model\BankFeedStatement $bank_feed_statement (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function bankFeedStatementsUpdateAsyncWithHttpInfo($id, $bank_feed_statement, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ $returnType = '\Apideck\Client\Model\UpdateBankFeedStatementResponse';
+ $request = $this->bankFeedStatementsUpdateRequest($id, $bank_feed_statement, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'bankFeedStatementsUpdate'
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param \Apideck\Client\Model\BankFeedStatement $bank_feed_statement (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function bankFeedStatementsUpdateRequest($id, $bank_feed_statement, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling bankFeedStatementsUpdate'
+ );
+ }
+ // verify the required parameter 'bank_feed_statement' is set
+ if ($bank_feed_statement === null || (is_array($bank_feed_statement) && count($bank_feed_statement) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $bank_feed_statement when calling bankFeedStatementsUpdate'
+ );
+ }
+
+ $resourcePath = '/accounting/bank-feed-statements/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+
+ if ('raw' === 'raw') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw ? 'true' : 'false';
+ }
+ }
+
+
+ if ($raw !== null && 'sort' === 'raw') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'filter' === 'raw') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'pass_through' === 'raw') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && !('raw' === 'raw' || 'raw' === 'sort' || 'raw' === 'filter' || 'raw' === 'pass_through')) {
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw;
+ }
+ }
+
+ // 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);
+ }
+ // header params
+ if ($x_apideck_service_id !== null) {
+ $headerParams['x-apideck-service-id'] = ObjectSerializer::toHeaderValue($x_apideck_service_id);
+ }
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($bank_feed_statement)) {
+ if ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($bank_feed_statement));
+ } else {
+ $httpBody = $bank_feed_statement;
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('Authorization');
+ if ($apiKey !== null) {
+ $headers['Authorization'] = $apiKey;
+ }
+
+ $defaultHeaders = $this->config->getDefaultHeaders();
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'PATCH',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
/**
* Operation billPaymentsAdd
*
diff --git a/src/gen/lib/Api/AtsApi.php b/src/gen/lib/Api/AtsApi.php
index f5f39ccca..1a2ac08cb 100644
--- a/src/gen/lib/Api/AtsApi.php
+++ b/src/gen/lib/Api/AtsApi.php
@@ -14,7 +14,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Api/ConnectorApi.php b/src/gen/lib/Api/ConnectorApi.php
index f42b6a755..b508e4a22 100644
--- a/src/gen/lib/Api/ConnectorApi.php
+++ b/src/gen/lib/Api/ConnectorApi.php
@@ -14,7 +14,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Api/CrmApi.php b/src/gen/lib/Api/CrmApi.php
index 956c57cc8..09f408084 100644
--- a/src/gen/lib/Api/CrmApi.php
+++ b/src/gen/lib/Api/CrmApi.php
@@ -14,7 +14,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -8357,6 +8357,5204 @@ public function contactsUpdateRequest($id, $contact, $x_apideck_consumer_id = nu
);
}
+ /**
+ * Operation customObjectSchemasAdd
+ *
+ * Create custom object schema
+ *
+ * @param \Apideck\Client\Model\CustomObjectSchema $custom_object_schema custom_object_schema (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \Apideck\Client\Model\CreateCustomObjectSchemaResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse
+ */
+ public function customObjectSchemasAdd($custom_object_schema, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null)
+ {
+ list($response) = $this->customObjectSchemasAddWithHttpInfo($custom_object_schema, $raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id);
+ return $response;
+ }
+
+ /**
+ * Operation customObjectSchemasAddWithHttpInfo
+ *
+ * Create custom object schema
+ *
+ * @param \Apideck\Client\Model\CustomObjectSchema $custom_object_schema (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \Apideck\Client\Model\CreateCustomObjectSchemaResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function customObjectSchemasAddWithHttpInfo($custom_object_schema, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null)
+ {
+ $request = $this->customObjectSchemasAddRequest($custom_object_schema, $raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ switch($statusCode) {
+ case 201:
+ if ('\Apideck\Client\Model\CreateCustomObjectSchemaResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\CreateCustomObjectSchemaResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 400:
+ if ('\Apideck\Client\Model\BadRequestResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\BadRequestResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 401:
+ if ('\Apideck\Client\Model\UnauthorizedResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnauthorizedResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 402:
+ if ('\Apideck\Client\Model\PaymentRequiredResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\PaymentRequiredResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\Apideck\Client\Model\NotFoundResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\NotFoundResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 422:
+ if ('\Apideck\Client\Model\UnprocessableResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnprocessableResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ default:
+ if ('\Apideck\Client\Model\UnexpectedErrorResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnexpectedErrorResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ $returnType = '\Apideck\Client\Model\CreateCustomObjectSchemaResponse';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 201:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\CreateCustomObjectSchemaResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\BadRequestResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 401:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnauthorizedResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 402:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\PaymentRequiredResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\NotFoundResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 422:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnprocessableResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ default:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnexpectedErrorResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation customObjectSchemasAddAsync
+ *
+ * Create custom object schema
+ *
+ * @param \Apideck\Client\Model\CustomObjectSchema $custom_object_schema (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function customObjectSchemasAddAsync($custom_object_schema, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null)
+ {
+ return $this->customObjectSchemasAddAsyncWithHttpInfo($custom_object_schema, $raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation customObjectSchemasAddAsyncWithHttpInfo
+ *
+ * Create custom object schema
+ *
+ * @param \Apideck\Client\Model\CustomObjectSchema $custom_object_schema (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function customObjectSchemasAddAsyncWithHttpInfo($custom_object_schema, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null)
+ {
+ $returnType = '\Apideck\Client\Model\CreateCustomObjectSchemaResponse';
+ $request = $this->customObjectSchemasAddRequest($custom_object_schema, $raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'customObjectSchemasAdd'
+ *
+ * @param \Apideck\Client\Model\CustomObjectSchema $custom_object_schema (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function customObjectSchemasAddRequest($custom_object_schema, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null)
+ {
+ // verify the required parameter 'custom_object_schema' is set
+ if ($custom_object_schema === null || (is_array($custom_object_schema) && count($custom_object_schema) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $custom_object_schema when calling customObjectSchemasAdd'
+ );
+ }
+
+ $resourcePath = '/crm/custom-object-schemas';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+
+ if ('raw' === 'raw') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw ? 'true' : 'false';
+ }
+ }
+
+
+ if ($raw !== null && 'sort' === 'raw') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'filter' === 'raw') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'pass_through' === 'raw') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && !('raw' === 'raw' || 'raw' === 'sort' || 'raw' === 'filter' || 'raw' === 'pass_through')) {
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw;
+ }
+ }
+
+ // 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);
+ }
+ // header params
+ if ($x_apideck_service_id !== null) {
+ $headerParams['x-apideck-service-id'] = ObjectSerializer::toHeaderValue($x_apideck_service_id);
+ }
+
+
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($custom_object_schema)) {
+ if ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($custom_object_schema));
+ } else {
+ $httpBody = $custom_object_schema;
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('Authorization');
+ if ($apiKey !== null) {
+ $headers['Authorization'] = $apiKey;
+ }
+
+ $defaultHeaders = $this->config->getDefaultHeaders();
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'POST',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation customObjectSchemasAll
+ *
+ * List custom object schemas
+ *
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param string $cursor Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. (optional)
+ * @param int $limit Number of results to return. Minimum 1, Maximum 200, Default 20 (optional, default to 20)
+ * @param \Apideck\Client\Model\PassThroughQuery $pass_through Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads (optional)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \Apideck\Client\Model\GetCustomObjectSchemasResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse
+ */
+ public function customObjectSchemasAll($raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $cursor = null, $limit = 20, $pass_through = null)
+ {
+ list($response) = $this->customObjectSchemasAllWithHttpInfo($raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $cursor, $limit, $pass_through);
+ return $response;
+ }
+
+ /**
+ * Operation customObjectSchemasAllWithHttpInfo
+ *
+ * List custom object schemas
+ *
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param string $cursor Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. (optional)
+ * @param int $limit Number of results to return. Minimum 1, Maximum 200, Default 20 (optional, default to 20)
+ * @param \Apideck\Client\Model\PassThroughQuery $pass_through Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads (optional)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \Apideck\Client\Model\GetCustomObjectSchemasResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function customObjectSchemasAllWithHttpInfo($raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $cursor = null, $limit = 20, $pass_through = null)
+ {
+ $request = $this->customObjectSchemasAllRequest($raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $cursor, $limit, $pass_through);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ switch($statusCode) {
+ case 200:
+ if ('\Apideck\Client\Model\GetCustomObjectSchemasResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\GetCustomObjectSchemasResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 400:
+ if ('\Apideck\Client\Model\BadRequestResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\BadRequestResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 401:
+ if ('\Apideck\Client\Model\UnauthorizedResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnauthorizedResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 402:
+ if ('\Apideck\Client\Model\PaymentRequiredResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\PaymentRequiredResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\Apideck\Client\Model\NotFoundResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\NotFoundResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 422:
+ if ('\Apideck\Client\Model\UnprocessableResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnprocessableResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ default:
+ if ('\Apideck\Client\Model\UnexpectedErrorResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnexpectedErrorResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ $returnType = '\Apideck\Client\Model\GetCustomObjectSchemasResponse';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\GetCustomObjectSchemasResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\BadRequestResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 401:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnauthorizedResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 402:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\PaymentRequiredResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\NotFoundResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 422:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnprocessableResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ default:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnexpectedErrorResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation customObjectSchemasAllAsync
+ *
+ * List custom object schemas
+ *
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param string $cursor Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. (optional)
+ * @param int $limit Number of results to return. Minimum 1, Maximum 200, Default 20 (optional, default to 20)
+ * @param \Apideck\Client\Model\PassThroughQuery $pass_through Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function customObjectSchemasAllAsync($raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $cursor = null, $limit = 20, $pass_through = null)
+ {
+ return $this->customObjectSchemasAllAsyncWithHttpInfo($raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $cursor, $limit, $pass_through)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation customObjectSchemasAllAsyncWithHttpInfo
+ *
+ * List custom object schemas
+ *
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param string $cursor Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. (optional)
+ * @param int $limit Number of results to return. Minimum 1, Maximum 200, Default 20 (optional, default to 20)
+ * @param \Apideck\Client\Model\PassThroughQuery $pass_through Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function customObjectSchemasAllAsyncWithHttpInfo($raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $cursor = null, $limit = 20, $pass_through = null)
+ {
+ $returnType = '\Apideck\Client\Model\GetCustomObjectSchemasResponse';
+ $request = $this->customObjectSchemasAllRequest($raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $cursor, $limit, $pass_through);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'customObjectSchemasAll'
+ *
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param string $cursor Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. (optional)
+ * @param int $limit Number of results to return. Minimum 1, Maximum 200, Default 20 (optional, default to 20)
+ * @param \Apideck\Client\Model\PassThroughQuery $pass_through Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function customObjectSchemasAllRequest($raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $cursor = null, $limit = 20, $pass_through = null)
+ {
+ if ($limit !== null && $limit > 200) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling CrmApi.customObjectSchemasAll, must be smaller than or equal to 200.');
+ }
+ if ($limit !== null && $limit < 1) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling CrmApi.customObjectSchemasAll, must be bigger than or equal to 1.');
+ }
+
+
+ $resourcePath = '/crm/custom-object-schemas';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+
+ if ('raw' === 'raw') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw ? 'true' : 'false';
+ }
+ }
+
+
+ if ($raw !== null && 'sort' === 'raw') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'filter' === 'raw') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'pass_through' === 'raw') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && !('raw' === 'raw' || 'raw' === 'sort' || 'raw' === 'filter' || 'raw' === 'pass_through')) {
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw;
+ }
+ }
+ // query params
+
+ if ('raw' === 'cursor') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($cursor)) {
+ foreach($cursor as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['cursor'] = $cursor ? 'true' : 'false';
+ }
+ }
+
+
+ if ($cursor !== null && 'sort' === 'cursor') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($cursor !== null && 'filter' === 'cursor') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($cursor !== null && 'pass_through' === 'cursor') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($cursor !== null && !('cursor' === 'raw' || 'cursor' === 'sort' || 'cursor' === 'filter' || 'cursor' === 'pass_through')) {
+ if('form' === 'form' && is_array($cursor)) {
+ foreach($cursor as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['cursor'] = $cursor;
+ }
+ }
+ // query params
+
+ if ('raw' === 'limit') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($limit)) {
+ foreach($limit as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['limit'] = $limit ? 'true' : 'false';
+ }
+ }
+
+
+ if ($limit !== null && 'sort' === 'limit') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($limit !== null && 'filter' === 'limit') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($limit !== null && 'pass_through' === 'limit') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($limit !== null && !('limit' === 'raw' || 'limit' === 'sort' || 'limit' === 'filter' || 'limit' === 'pass_through')) {
+ if('form' === 'form' && is_array($limit)) {
+ foreach($limit as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['limit'] = $limit;
+ }
+ }
+ // query params
+
+ if ('raw' === 'pass_through') {
+ // Support for raw as true/false parameter
+ 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 && 'sort' === 'pass_through') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($pass_through !== null && 'filter' === 'pass_through') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($pass_through !== null && 'pass_through' === 'pass_through') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($pass_through !== null && !('pass_through' === 'raw' || 'pass_through' === 'sort' || 'pass_through' === 'filter' || 'pass_through' === 'pass_through')) {
+ if('form' === 'deepObject' && is_array($pass_through)) {
+ foreach($pass_through as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['pass_through'] = $pass_through;
+ }
+ }
+
+ // 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);
+ }
+ // header params
+ if ($x_apideck_service_id !== null) {
+ $headerParams['x-apideck-service-id'] = ObjectSerializer::toHeaderValue($x_apideck_service_id);
+ }
+
+
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ []
+ );
+ }
+
+ // for model (json/xml)
+ if (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('Authorization');
+ if ($apiKey !== null) {
+ $headers['Authorization'] = $apiKey;
+ }
+
+ $defaultHeaders = $this->config->getDefaultHeaders();
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation customObjectSchemasDelete
+ *
+ * Delete custom object schema
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \Apideck\Client\Model\DeleteCustomObjectSchemaResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse
+ */
+ public function customObjectSchemasDelete($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ list($response) = $this->customObjectSchemasDeleteWithHttpInfo($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+ return $response;
+ }
+
+ /**
+ * Operation customObjectSchemasDeleteWithHttpInfo
+ *
+ * Delete custom object schema
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \Apideck\Client\Model\DeleteCustomObjectSchemaResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function customObjectSchemasDeleteWithHttpInfo($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ $request = $this->customObjectSchemasDeleteRequest($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ switch($statusCode) {
+ case 200:
+ if ('\Apideck\Client\Model\DeleteCustomObjectSchemaResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\DeleteCustomObjectSchemaResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 400:
+ if ('\Apideck\Client\Model\BadRequestResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\BadRequestResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 401:
+ if ('\Apideck\Client\Model\UnauthorizedResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnauthorizedResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 402:
+ if ('\Apideck\Client\Model\PaymentRequiredResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\PaymentRequiredResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\Apideck\Client\Model\NotFoundResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\NotFoundResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 422:
+ if ('\Apideck\Client\Model\UnprocessableResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnprocessableResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ default:
+ if ('\Apideck\Client\Model\UnexpectedErrorResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnexpectedErrorResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ $returnType = '\Apideck\Client\Model\DeleteCustomObjectSchemaResponse';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\DeleteCustomObjectSchemaResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\BadRequestResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 401:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnauthorizedResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 402:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\PaymentRequiredResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\NotFoundResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 422:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnprocessableResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ default:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnexpectedErrorResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation customObjectSchemasDeleteAsync
+ *
+ * Delete custom object schema
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function customObjectSchemasDeleteAsync($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ return $this->customObjectSchemasDeleteAsyncWithHttpInfo($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation customObjectSchemasDeleteAsyncWithHttpInfo
+ *
+ * Delete custom object schema
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function customObjectSchemasDeleteAsyncWithHttpInfo($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ $returnType = '\Apideck\Client\Model\DeleteCustomObjectSchemaResponse';
+ $request = $this->customObjectSchemasDeleteRequest($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'customObjectSchemasDelete'
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function customObjectSchemasDeleteRequest($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling customObjectSchemasDelete'
+ );
+ }
+
+ $resourcePath = '/crm/custom-object-schemas/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+
+ if ('raw' === 'raw') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw ? 'true' : 'false';
+ }
+ }
+
+
+ if ($raw !== null && 'sort' === 'raw') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'filter' === 'raw') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'pass_through' === 'raw') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && !('raw' === 'raw' || 'raw' === 'sort' || 'raw' === 'filter' || 'raw' === 'pass_through')) {
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw;
+ }
+ }
+
+ // 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);
+ }
+ // header params
+ if ($x_apideck_service_id !== null) {
+ $headerParams['x-apideck-service-id'] = ObjectSerializer::toHeaderValue($x_apideck_service_id);
+ }
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ []
+ );
+ }
+
+ // for model (json/xml)
+ if (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('Authorization');
+ if ($apiKey !== null) {
+ $headers['Authorization'] = $apiKey;
+ }
+
+ $defaultHeaders = $this->config->getDefaultHeaders();
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'DELETE',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation customObjectSchemasOne
+ *
+ * Get custom object schema
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \Apideck\Client\Model\GetCustomObjectSchemaResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse
+ */
+ public function customObjectSchemasOne($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ list($response) = $this->customObjectSchemasOneWithHttpInfo($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+ return $response;
+ }
+
+ /**
+ * Operation customObjectSchemasOneWithHttpInfo
+ *
+ * Get custom object schema
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \Apideck\Client\Model\GetCustomObjectSchemaResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function customObjectSchemasOneWithHttpInfo($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ $request = $this->customObjectSchemasOneRequest($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ switch($statusCode) {
+ case 200:
+ if ('\Apideck\Client\Model\GetCustomObjectSchemaResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\GetCustomObjectSchemaResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 400:
+ if ('\Apideck\Client\Model\BadRequestResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\BadRequestResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 401:
+ if ('\Apideck\Client\Model\UnauthorizedResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnauthorizedResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 402:
+ if ('\Apideck\Client\Model\PaymentRequiredResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\PaymentRequiredResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\Apideck\Client\Model\NotFoundResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\NotFoundResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 422:
+ if ('\Apideck\Client\Model\UnprocessableResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnprocessableResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ default:
+ if ('\Apideck\Client\Model\UnexpectedErrorResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnexpectedErrorResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ $returnType = '\Apideck\Client\Model\GetCustomObjectSchemaResponse';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\GetCustomObjectSchemaResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\BadRequestResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 401:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnauthorizedResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 402:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\PaymentRequiredResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\NotFoundResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 422:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnprocessableResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ default:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnexpectedErrorResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation customObjectSchemasOneAsync
+ *
+ * Get custom object schema
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function customObjectSchemasOneAsync($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ return $this->customObjectSchemasOneAsyncWithHttpInfo($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation customObjectSchemasOneAsyncWithHttpInfo
+ *
+ * Get custom object schema
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function customObjectSchemasOneAsyncWithHttpInfo($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ $returnType = '\Apideck\Client\Model\GetCustomObjectSchemaResponse';
+ $request = $this->customObjectSchemasOneRequest($id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'customObjectSchemasOne'
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function customObjectSchemasOneRequest($id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling customObjectSchemasOne'
+ );
+ }
+
+ $resourcePath = '/crm/custom-object-schemas/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+
+ if ('raw' === 'raw') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw ? 'true' : 'false';
+ }
+ }
+
+
+ if ($raw !== null && 'sort' === 'raw') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'filter' === 'raw') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'pass_through' === 'raw') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && !('raw' === 'raw' || 'raw' === 'sort' || 'raw' === 'filter' || 'raw' === 'pass_through')) {
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw;
+ }
+ }
+
+ // 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);
+ }
+ // header params
+ if ($x_apideck_service_id !== null) {
+ $headerParams['x-apideck-service-id'] = ObjectSerializer::toHeaderValue($x_apideck_service_id);
+ }
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ []
+ );
+ }
+
+ // for model (json/xml)
+ if (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('Authorization');
+ if ($apiKey !== null) {
+ $headers['Authorization'] = $apiKey;
+ }
+
+ $defaultHeaders = $this->config->getDefaultHeaders();
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation customObjectSchemasUpdate
+ *
+ * Update custom object schema
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param \Apideck\Client\Model\CustomObjectSchema $custom_object_schema custom_object_schema (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \Apideck\Client\Model\UpdateCustomObjectSchemaResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse
+ */
+ public function customObjectSchemasUpdate($id, $custom_object_schema, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ list($response) = $this->customObjectSchemasUpdateWithHttpInfo($id, $custom_object_schema, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+ return $response;
+ }
+
+ /**
+ * Operation customObjectSchemasUpdateWithHttpInfo
+ *
+ * Update custom object schema
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param \Apideck\Client\Model\CustomObjectSchema $custom_object_schema (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \Apideck\Client\Model\UpdateCustomObjectSchemaResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function customObjectSchemasUpdateWithHttpInfo($id, $custom_object_schema, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ $request = $this->customObjectSchemasUpdateRequest($id, $custom_object_schema, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ switch($statusCode) {
+ case 200:
+ if ('\Apideck\Client\Model\UpdateCustomObjectSchemaResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UpdateCustomObjectSchemaResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 400:
+ if ('\Apideck\Client\Model\BadRequestResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\BadRequestResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 401:
+ if ('\Apideck\Client\Model\UnauthorizedResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnauthorizedResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 402:
+ if ('\Apideck\Client\Model\PaymentRequiredResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\PaymentRequiredResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\Apideck\Client\Model\NotFoundResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\NotFoundResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 422:
+ if ('\Apideck\Client\Model\UnprocessableResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnprocessableResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ default:
+ if ('\Apideck\Client\Model\UnexpectedErrorResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnexpectedErrorResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ $returnType = '\Apideck\Client\Model\UpdateCustomObjectSchemaResponse';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UpdateCustomObjectSchemaResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\BadRequestResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 401:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnauthorizedResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 402:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\PaymentRequiredResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\NotFoundResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 422:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnprocessableResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ default:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnexpectedErrorResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation customObjectSchemasUpdateAsync
+ *
+ * Update custom object schema
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param \Apideck\Client\Model\CustomObjectSchema $custom_object_schema (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function customObjectSchemasUpdateAsync($id, $custom_object_schema, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ return $this->customObjectSchemasUpdateAsyncWithHttpInfo($id, $custom_object_schema, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation customObjectSchemasUpdateAsyncWithHttpInfo
+ *
+ * Update custom object schema
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param \Apideck\Client\Model\CustomObjectSchema $custom_object_schema (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function customObjectSchemasUpdateAsyncWithHttpInfo($id, $custom_object_schema, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ $returnType = '\Apideck\Client\Model\UpdateCustomObjectSchemaResponse';
+ $request = $this->customObjectSchemasUpdateRequest($id, $custom_object_schema, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'customObjectSchemasUpdate'
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param \Apideck\Client\Model\CustomObjectSchema $custom_object_schema (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function customObjectSchemasUpdateRequest($id, $custom_object_schema, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling customObjectSchemasUpdate'
+ );
+ }
+ // verify the required parameter 'custom_object_schema' is set
+ if ($custom_object_schema === null || (is_array($custom_object_schema) && count($custom_object_schema) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $custom_object_schema when calling customObjectSchemasUpdate'
+ );
+ }
+
+ $resourcePath = '/crm/custom-object-schemas/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+
+ if ('raw' === 'raw') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw ? 'true' : 'false';
+ }
+ }
+
+
+ if ($raw !== null && 'sort' === 'raw') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'filter' === 'raw') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'pass_through' === 'raw') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && !('raw' === 'raw' || 'raw' === 'sort' || 'raw' === 'filter' || 'raw' === 'pass_through')) {
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw;
+ }
+ }
+
+ // 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);
+ }
+ // header params
+ if ($x_apideck_service_id !== null) {
+ $headerParams['x-apideck-service-id'] = ObjectSerializer::toHeaderValue($x_apideck_service_id);
+ }
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($custom_object_schema)) {
+ if ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($custom_object_schema));
+ } else {
+ $httpBody = $custom_object_schema;
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('Authorization');
+ if ($apiKey !== null) {
+ $headers['Authorization'] = $apiKey;
+ }
+
+ $defaultHeaders = $this->config->getDefaultHeaders();
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'PATCH',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation customObjectsAdd
+ *
+ * Create custom object
+ *
+ * @param string $object_id The id of the custom object to query (required)
+ * @param \Apideck\Client\Model\CustomObject $custom_object custom_object (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \Apideck\Client\Model\CreateCustomObjectResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse
+ */
+ public function customObjectsAdd($object_id, $custom_object, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null)
+ {
+ list($response) = $this->customObjectsAddWithHttpInfo($object_id, $custom_object, $raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id);
+ return $response;
+ }
+
+ /**
+ * Operation customObjectsAddWithHttpInfo
+ *
+ * Create custom object
+ *
+ * @param string $object_id The id of the custom object to query (required)
+ * @param \Apideck\Client\Model\CustomObject $custom_object (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \Apideck\Client\Model\CreateCustomObjectResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function customObjectsAddWithHttpInfo($object_id, $custom_object, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null)
+ {
+ $request = $this->customObjectsAddRequest($object_id, $custom_object, $raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ switch($statusCode) {
+ case 201:
+ if ('\Apideck\Client\Model\CreateCustomObjectResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\CreateCustomObjectResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 400:
+ if ('\Apideck\Client\Model\BadRequestResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\BadRequestResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 401:
+ if ('\Apideck\Client\Model\UnauthorizedResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnauthorizedResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 402:
+ if ('\Apideck\Client\Model\PaymentRequiredResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\PaymentRequiredResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\Apideck\Client\Model\NotFoundResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\NotFoundResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 422:
+ if ('\Apideck\Client\Model\UnprocessableResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnprocessableResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ default:
+ if ('\Apideck\Client\Model\UnexpectedErrorResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnexpectedErrorResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ $returnType = '\Apideck\Client\Model\CreateCustomObjectResponse';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 201:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\CreateCustomObjectResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\BadRequestResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 401:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnauthorizedResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 402:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\PaymentRequiredResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\NotFoundResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 422:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnprocessableResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ default:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnexpectedErrorResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation customObjectsAddAsync
+ *
+ * Create custom object
+ *
+ * @param string $object_id The id of the custom object to query (required)
+ * @param \Apideck\Client\Model\CustomObject $custom_object (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function customObjectsAddAsync($object_id, $custom_object, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null)
+ {
+ return $this->customObjectsAddAsyncWithHttpInfo($object_id, $custom_object, $raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation customObjectsAddAsyncWithHttpInfo
+ *
+ * Create custom object
+ *
+ * @param string $object_id The id of the custom object to query (required)
+ * @param \Apideck\Client\Model\CustomObject $custom_object (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function customObjectsAddAsyncWithHttpInfo($object_id, $custom_object, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null)
+ {
+ $returnType = '\Apideck\Client\Model\CreateCustomObjectResponse';
+ $request = $this->customObjectsAddRequest($object_id, $custom_object, $raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'customObjectsAdd'
+ *
+ * @param string $object_id The id of the custom object to query (required)
+ * @param \Apideck\Client\Model\CustomObject $custom_object (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function customObjectsAddRequest($object_id, $custom_object, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null)
+ {
+ // verify the required parameter 'object_id' is set
+ if ($object_id === null || (is_array($object_id) && count($object_id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $object_id when calling customObjectsAdd'
+ );
+ }
+ // verify the required parameter 'custom_object' is set
+ if ($custom_object === null || (is_array($custom_object) && count($custom_object) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $custom_object when calling customObjectsAdd'
+ );
+ }
+
+ $resourcePath = '/crm/custom-objects/{object_id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+
+ if ('raw' === 'raw') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw ? 'true' : 'false';
+ }
+ }
+
+
+ if ($raw !== null && 'sort' === 'raw') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'filter' === 'raw') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'pass_through' === 'raw') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && !('raw' === 'raw' || 'raw' === 'sort' || 'raw' === 'filter' || 'raw' === 'pass_through')) {
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw;
+ }
+ }
+
+ // 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);
+ }
+ // header params
+ if ($x_apideck_service_id !== null) {
+ $headerParams['x-apideck-service-id'] = ObjectSerializer::toHeaderValue($x_apideck_service_id);
+ }
+
+ // path params
+ if ($object_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'object_id' . '}',
+ ObjectSerializer::toPathValue($object_id),
+ $resourcePath
+ );
+ }
+
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($custom_object)) {
+ if ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($custom_object));
+ } else {
+ $httpBody = $custom_object;
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('Authorization');
+ if ($apiKey !== null) {
+ $headers['Authorization'] = $apiKey;
+ }
+
+ $defaultHeaders = $this->config->getDefaultHeaders();
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'POST',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation customObjectsAll
+ *
+ * List custom objects
+ *
+ * @param string $object_id The id of the custom object to query (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param string $cursor Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. (optional)
+ * @param int $limit Number of results to return. Minimum 1, Maximum 200, Default 20 (optional, default to 20)
+ * @param \Apideck\Client\Model\PassThroughQuery $pass_through Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads (optional)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \Apideck\Client\Model\GetCustomObjectsResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse
+ */
+ public function customObjectsAll($object_id, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $cursor = null, $limit = 20, $pass_through = null, $fields = null)
+ {
+ list($response) = $this->customObjectsAllWithHttpInfo($object_id, $raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $cursor, $limit, $pass_through, $fields);
+ return $response;
+ }
+
+ /**
+ * Operation customObjectsAllWithHttpInfo
+ *
+ * List custom objects
+ *
+ * @param string $object_id The id of the custom object to query (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param string $cursor Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. (optional)
+ * @param int $limit Number of results to return. Minimum 1, Maximum 200, Default 20 (optional, default to 20)
+ * @param \Apideck\Client\Model\PassThroughQuery $pass_through Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads (optional)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \Apideck\Client\Model\GetCustomObjectsResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function customObjectsAllWithHttpInfo($object_id, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $cursor = null, $limit = 20, $pass_through = null, $fields = null)
+ {
+ $request = $this->customObjectsAllRequest($object_id, $raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $cursor, $limit, $pass_through, $fields);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ switch($statusCode) {
+ case 200:
+ if ('\Apideck\Client\Model\GetCustomObjectsResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\GetCustomObjectsResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 400:
+ if ('\Apideck\Client\Model\BadRequestResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\BadRequestResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 401:
+ if ('\Apideck\Client\Model\UnauthorizedResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnauthorizedResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 402:
+ if ('\Apideck\Client\Model\PaymentRequiredResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\PaymentRequiredResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\Apideck\Client\Model\NotFoundResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\NotFoundResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 422:
+ if ('\Apideck\Client\Model\UnprocessableResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnprocessableResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ default:
+ if ('\Apideck\Client\Model\UnexpectedErrorResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnexpectedErrorResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ $returnType = '\Apideck\Client\Model\GetCustomObjectsResponse';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\GetCustomObjectsResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\BadRequestResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 401:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnauthorizedResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 402:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\PaymentRequiredResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\NotFoundResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 422:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnprocessableResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ default:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnexpectedErrorResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation customObjectsAllAsync
+ *
+ * List custom objects
+ *
+ * @param string $object_id The id of the custom object to query (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param string $cursor Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. (optional)
+ * @param int $limit Number of results to return. Minimum 1, Maximum 200, Default 20 (optional, default to 20)
+ * @param \Apideck\Client\Model\PassThroughQuery $pass_through Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads (optional)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function customObjectsAllAsync($object_id, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $cursor = null, $limit = 20, $pass_through = null, $fields = null)
+ {
+ return $this->customObjectsAllAsyncWithHttpInfo($object_id, $raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $cursor, $limit, $pass_through, $fields)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation customObjectsAllAsyncWithHttpInfo
+ *
+ * List custom objects
+ *
+ * @param string $object_id The id of the custom object to query (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param string $cursor Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. (optional)
+ * @param int $limit Number of results to return. Minimum 1, Maximum 200, Default 20 (optional, default to 20)
+ * @param \Apideck\Client\Model\PassThroughQuery $pass_through Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads (optional)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function customObjectsAllAsyncWithHttpInfo($object_id, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $cursor = null, $limit = 20, $pass_through = null, $fields = null)
+ {
+ $returnType = '\Apideck\Client\Model\GetCustomObjectsResponse';
+ $request = $this->customObjectsAllRequest($object_id, $raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $cursor, $limit, $pass_through, $fields);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'customObjectsAll'
+ *
+ * @param string $object_id The id of the custom object to query (required)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param string $cursor Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. (optional)
+ * @param int $limit Number of results to return. Minimum 1, Maximum 200, Default 20 (optional, default to 20)
+ * @param \Apideck\Client\Model\PassThroughQuery $pass_through Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads (optional)
+ * @param string $fields The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function customObjectsAllRequest($object_id, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $cursor = null, $limit = 20, $pass_through = null, $fields = null)
+ {
+ // verify the required parameter 'object_id' is set
+ if ($object_id === null || (is_array($object_id) && count($object_id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $object_id when calling customObjectsAll'
+ );
+ }
+ if ($limit !== null && $limit > 200) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling CrmApi.customObjectsAll, must be smaller than or equal to 200.');
+ }
+ if ($limit !== null && $limit < 1) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling CrmApi.customObjectsAll, must be bigger than or equal to 1.');
+ }
+
+
+ $resourcePath = '/crm/custom-objects/{object_id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+
+ if ('raw' === 'raw') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw ? 'true' : 'false';
+ }
+ }
+
+
+ if ($raw !== null && 'sort' === 'raw') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'filter' === 'raw') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'pass_through' === 'raw') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && !('raw' === 'raw' || 'raw' === 'sort' || 'raw' === 'filter' || 'raw' === 'pass_through')) {
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw;
+ }
+ }
+ // query params
+
+ if ('raw' === 'cursor') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($cursor)) {
+ foreach($cursor as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['cursor'] = $cursor ? 'true' : 'false';
+ }
+ }
+
+
+ if ($cursor !== null && 'sort' === 'cursor') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($cursor !== null && 'filter' === 'cursor') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($cursor !== null && 'pass_through' === 'cursor') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($cursor !== null && !('cursor' === 'raw' || 'cursor' === 'sort' || 'cursor' === 'filter' || 'cursor' === 'pass_through')) {
+ if('form' === 'form' && is_array($cursor)) {
+ foreach($cursor as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['cursor'] = $cursor;
+ }
+ }
+ // query params
+
+ if ('raw' === 'limit') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($limit)) {
+ foreach($limit as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['limit'] = $limit ? 'true' : 'false';
+ }
+ }
+
+
+ if ($limit !== null && 'sort' === 'limit') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($limit !== null && 'filter' === 'limit') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($limit !== null && 'pass_through' === 'limit') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($limit !== null && !('limit' === 'raw' || 'limit' === 'sort' || 'limit' === 'filter' || 'limit' === 'pass_through')) {
+ if('form' === 'form' && is_array($limit)) {
+ foreach($limit as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['limit'] = $limit;
+ }
+ }
+ // query params
+
+ if ('raw' === 'pass_through') {
+ // Support for raw as true/false parameter
+ 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 && 'sort' === 'pass_through') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($pass_through !== null && 'filter' === 'pass_through') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($pass_through !== null && 'pass_through' === 'pass_through') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($pass_through !== null && !('pass_through' === 'raw' || 'pass_through' === 'sort' || 'pass_through' === 'filter' || 'pass_through' === 'pass_through')) {
+ if('form' === 'deepObject' && is_array($pass_through)) {
+ foreach($pass_through as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['pass_through'] = $pass_through;
+ }
+ }
+ // query params
+
+ if ('raw' === 'fields') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($fields)) {
+ foreach($fields as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['fields'] = $fields ? 'true' : 'false';
+ }
+ }
+
+
+ if ($fields !== null && 'sort' === 'fields') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($fields !== null && 'filter' === 'fields') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($fields !== null && 'pass_through' === 'fields') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($fields !== null && !('fields' === 'raw' || 'fields' === 'sort' || 'fields' === 'filter' || 'fields' === 'pass_through')) {
+ 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_app_id !== null) {
+ $headerParams['x-apideck-app-id'] = ObjectSerializer::toHeaderValue($x_apideck_app_id);
+ }
+ // header params
+ if ($x_apideck_service_id !== null) {
+ $headerParams['x-apideck-service-id'] = ObjectSerializer::toHeaderValue($x_apideck_service_id);
+ }
+
+ // path params
+ if ($object_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'object_id' . '}',
+ ObjectSerializer::toPathValue($object_id),
+ $resourcePath
+ );
+ }
+
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ []
+ );
+ }
+
+ // for model (json/xml)
+ if (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('Authorization');
+ if ($apiKey !== null) {
+ $headers['Authorization'] = $apiKey;
+ }
+
+ $defaultHeaders = $this->config->getDefaultHeaders();
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation customObjectsDelete
+ *
+ * Delete custom object
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $object_id The id of the custom object to query (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \Apideck\Client\Model\DeleteCustomObjectResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse
+ */
+ public function customObjectsDelete($id, $object_id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ list($response) = $this->customObjectsDeleteWithHttpInfo($id, $object_id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+ return $response;
+ }
+
+ /**
+ * Operation customObjectsDeleteWithHttpInfo
+ *
+ * Delete custom object
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $object_id The id of the custom object to query (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \Apideck\Client\Model\DeleteCustomObjectResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function customObjectsDeleteWithHttpInfo($id, $object_id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ $request = $this->customObjectsDeleteRequest($id, $object_id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ switch($statusCode) {
+ case 200:
+ if ('\Apideck\Client\Model\DeleteCustomObjectResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\DeleteCustomObjectResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 400:
+ if ('\Apideck\Client\Model\BadRequestResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\BadRequestResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 401:
+ if ('\Apideck\Client\Model\UnauthorizedResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnauthorizedResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 402:
+ if ('\Apideck\Client\Model\PaymentRequiredResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\PaymentRequiredResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\Apideck\Client\Model\NotFoundResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\NotFoundResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 422:
+ if ('\Apideck\Client\Model\UnprocessableResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnprocessableResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ default:
+ if ('\Apideck\Client\Model\UnexpectedErrorResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnexpectedErrorResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ $returnType = '\Apideck\Client\Model\DeleteCustomObjectResponse';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\DeleteCustomObjectResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\BadRequestResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 401:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnauthorizedResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 402:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\PaymentRequiredResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\NotFoundResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 422:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnprocessableResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ default:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnexpectedErrorResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation customObjectsDeleteAsync
+ *
+ * Delete custom object
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $object_id The id of the custom object to query (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function customObjectsDeleteAsync($id, $object_id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ return $this->customObjectsDeleteAsyncWithHttpInfo($id, $object_id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation customObjectsDeleteAsyncWithHttpInfo
+ *
+ * Delete custom object
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $object_id The id of the custom object to query (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function customObjectsDeleteAsyncWithHttpInfo($id, $object_id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ $returnType = '\Apideck\Client\Model\DeleteCustomObjectResponse';
+ $request = $this->customObjectsDeleteRequest($id, $object_id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'customObjectsDelete'
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $object_id The id of the custom object to query (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function customObjectsDeleteRequest($id, $object_id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling customObjectsDelete'
+ );
+ }
+ // verify the required parameter 'object_id' is set
+ if ($object_id === null || (is_array($object_id) && count($object_id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $object_id when calling customObjectsDelete'
+ );
+ }
+
+ $resourcePath = '/crm/custom-objects/{object_id}/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+
+ if ('raw' === 'raw') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw ? 'true' : 'false';
+ }
+ }
+
+
+ if ($raw !== null && 'sort' === 'raw') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'filter' === 'raw') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'pass_through' === 'raw') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && !('raw' === 'raw' || 'raw' === 'sort' || 'raw' === 'filter' || 'raw' === 'pass_through')) {
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw;
+ }
+ }
+
+ // 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);
+ }
+ // header params
+ if ($x_apideck_service_id !== null) {
+ $headerParams['x-apideck-service-id'] = ObjectSerializer::toHeaderValue($x_apideck_service_id);
+ }
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+ // path params
+ if ($object_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'object_id' . '}',
+ ObjectSerializer::toPathValue($object_id),
+ $resourcePath
+ );
+ }
+
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ []
+ );
+ }
+
+ // for model (json/xml)
+ if (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('Authorization');
+ if ($apiKey !== null) {
+ $headers['Authorization'] = $apiKey;
+ }
+
+ $defaultHeaders = $this->config->getDefaultHeaders();
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'DELETE',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation customObjectsOne
+ *
+ * Get custom object
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $object_id The id of the custom object to query (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \Apideck\Client\Model\GetCustomObjectResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse
+ */
+ public function customObjectsOne($id, $object_id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ list($response) = $this->customObjectsOneWithHttpInfo($id, $object_id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+ return $response;
+ }
+
+ /**
+ * Operation customObjectsOneWithHttpInfo
+ *
+ * Get custom object
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $object_id The id of the custom object to query (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \Apideck\Client\Model\GetCustomObjectResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function customObjectsOneWithHttpInfo($id, $object_id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ $request = $this->customObjectsOneRequest($id, $object_id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ switch($statusCode) {
+ case 200:
+ if ('\Apideck\Client\Model\GetCustomObjectResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\GetCustomObjectResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 400:
+ if ('\Apideck\Client\Model\BadRequestResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\BadRequestResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 401:
+ if ('\Apideck\Client\Model\UnauthorizedResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnauthorizedResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 402:
+ if ('\Apideck\Client\Model\PaymentRequiredResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\PaymentRequiredResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\Apideck\Client\Model\NotFoundResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\NotFoundResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 422:
+ if ('\Apideck\Client\Model\UnprocessableResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnprocessableResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ default:
+ if ('\Apideck\Client\Model\UnexpectedErrorResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnexpectedErrorResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ $returnType = '\Apideck\Client\Model\GetCustomObjectResponse';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\GetCustomObjectResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\BadRequestResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 401:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnauthorizedResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 402:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\PaymentRequiredResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\NotFoundResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 422:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnprocessableResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ default:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnexpectedErrorResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation customObjectsOneAsync
+ *
+ * Get custom object
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $object_id The id of the custom object to query (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function customObjectsOneAsync($id, $object_id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ return $this->customObjectsOneAsyncWithHttpInfo($id, $object_id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation customObjectsOneAsyncWithHttpInfo
+ *
+ * Get custom object
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $object_id The id of the custom object to query (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function customObjectsOneAsyncWithHttpInfo($id, $object_id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ $returnType = '\Apideck\Client\Model\GetCustomObjectResponse';
+ $request = $this->customObjectsOneRequest($id, $object_id, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'customObjectsOne'
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $object_id The id of the custom object to query (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function customObjectsOneRequest($id, $object_id, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling customObjectsOne'
+ );
+ }
+ // verify the required parameter 'object_id' is set
+ if ($object_id === null || (is_array($object_id) && count($object_id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $object_id when calling customObjectsOne'
+ );
+ }
+
+ $resourcePath = '/crm/custom-objects/{object_id}/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+
+ if ('raw' === 'raw') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw ? 'true' : 'false';
+ }
+ }
+
+
+ if ($raw !== null && 'sort' === 'raw') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'filter' === 'raw') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'pass_through' === 'raw') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && !('raw' === 'raw' || 'raw' === 'sort' || 'raw' === 'filter' || 'raw' === 'pass_through')) {
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw;
+ }
+ }
+
+ // 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);
+ }
+ // header params
+ if ($x_apideck_service_id !== null) {
+ $headerParams['x-apideck-service-id'] = ObjectSerializer::toHeaderValue($x_apideck_service_id);
+ }
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+ // path params
+ if ($object_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'object_id' . '}',
+ ObjectSerializer::toPathValue($object_id),
+ $resourcePath
+ );
+ }
+
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ []
+ );
+ }
+
+ // for model (json/xml)
+ if (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('Authorization');
+ if ($apiKey !== null) {
+ $headers['Authorization'] = $apiKey;
+ }
+
+ $defaultHeaders = $this->config->getDefaultHeaders();
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation customObjectsUpdate
+ *
+ * Update custom object
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $object_id The id of the custom object to query (required)
+ * @param \Apideck\Client\Model\CustomObject $custom_object custom_object (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \Apideck\Client\Model\UpdateCustomObjectResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse
+ */
+ public function customObjectsUpdate($id, $object_id, $custom_object, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ list($response) = $this->customObjectsUpdateWithHttpInfo($id, $object_id, $custom_object, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+ return $response;
+ }
+
+ /**
+ * Operation customObjectsUpdateWithHttpInfo
+ *
+ * Update custom object
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $object_id The id of the custom object to query (required)
+ * @param \Apideck\Client\Model\CustomObject $custom_object (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \Apideck\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \Apideck\Client\Model\UpdateCustomObjectResponse|\Apideck\Client\Model\BadRequestResponse|\Apideck\Client\Model\UnauthorizedResponse|\Apideck\Client\Model\PaymentRequiredResponse|\Apideck\Client\Model\NotFoundResponse|\Apideck\Client\Model\UnprocessableResponse|\Apideck\Client\Model\UnexpectedErrorResponse, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function customObjectsUpdateWithHttpInfo($id, $object_id, $custom_object, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ $request = $this->customObjectsUpdateRequest($id, $object_id, $custom_object, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ switch($statusCode) {
+ case 200:
+ if ('\Apideck\Client\Model\UpdateCustomObjectResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UpdateCustomObjectResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 400:
+ if ('\Apideck\Client\Model\BadRequestResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\BadRequestResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 401:
+ if ('\Apideck\Client\Model\UnauthorizedResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnauthorizedResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 402:
+ if ('\Apideck\Client\Model\PaymentRequiredResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\PaymentRequiredResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\Apideck\Client\Model\NotFoundResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\NotFoundResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 422:
+ if ('\Apideck\Client\Model\UnprocessableResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnprocessableResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ default:
+ if ('\Apideck\Client\Model\UnexpectedErrorResponse' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\Apideck\Client\Model\UnexpectedErrorResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ $returnType = '\Apideck\Client\Model\UpdateCustomObjectResponse';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UpdateCustomObjectResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\BadRequestResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 401:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnauthorizedResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 402:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\PaymentRequiredResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\NotFoundResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 422:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnprocessableResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ default:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\Apideck\Client\Model\UnexpectedErrorResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation customObjectsUpdateAsync
+ *
+ * Update custom object
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $object_id The id of the custom object to query (required)
+ * @param \Apideck\Client\Model\CustomObject $custom_object (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function customObjectsUpdateAsync($id, $object_id, $custom_object, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ return $this->customObjectsUpdateAsyncWithHttpInfo($id, $object_id, $custom_object, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation customObjectsUpdateAsyncWithHttpInfo
+ *
+ * Update custom object
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $object_id The id of the custom object to query (required)
+ * @param \Apideck\Client\Model\CustomObject $custom_object (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function customObjectsUpdateAsyncWithHttpInfo($id, $object_id, $custom_object, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ $returnType = '\Apideck\Client\Model\UpdateCustomObjectResponse';
+ $request = $this->customObjectsUpdateRequest($id, $object_id, $custom_object, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id, $raw);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'customObjectsUpdate'
+ *
+ * @param string $id ID of the record you are acting upon. (required)
+ * @param string $object_id The id of the custom object to query (required)
+ * @param \Apideck\Client\Model\CustomObject $custom_object (required)
+ * @param string $x_apideck_consumer_id ID of the consumer which you want to get or push data from (optional)
+ * @param string $x_apideck_app_id The ID of your Unify application (optional)
+ * @param string $x_apideck_service_id Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
+ * @param bool $raw Include raw response. Mostly used for debugging purposes (optional, default to false)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function customObjectsUpdateRequest($id, $object_id, $custom_object, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null, $raw = false)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling customObjectsUpdate'
+ );
+ }
+ // verify the required parameter 'object_id' is set
+ if ($object_id === null || (is_array($object_id) && count($object_id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $object_id when calling customObjectsUpdate'
+ );
+ }
+ // verify the required parameter 'custom_object' is set
+ if ($custom_object === null || (is_array($custom_object) && count($custom_object) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $custom_object when calling customObjectsUpdate'
+ );
+ }
+
+ $resourcePath = '/crm/custom-objects/{object_id}/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+
+ if ('raw' === 'raw') {
+ // Support for raw as true/false parameter
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw ? 'true' : 'false';
+ }
+ }
+
+
+ if ($raw !== null && 'sort' === 'raw') {
+ // Support for sort options
+ $sort_data = $sort->jsonSerialize();
+ foreach($sort_data as $key => $value) {
+ $queryParams['sort['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'filter' === 'raw') {
+ // Support for filter options
+ $filter_data = $filter->jsonSerialize();
+ foreach($filter_data as $key => $value) {
+ $queryParams['filter['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && 'pass_through' === 'raw') {
+ // Support for pass_through options
+ $pass_through_data = $pass_through->jsonSerialize();
+ foreach($pass_through_data as $key => $value) {
+ $queryParams['pass_through['.$key.']'] = $value;
+ }
+ }
+ if ($raw !== null && !('raw' === 'raw' || 'raw' === 'sort' || 'raw' === 'filter' || 'raw' === 'pass_through')) {
+ if('form' === 'form' && is_array($raw)) {
+ foreach($raw as $key => $value) {
+ $queryParams[$key] = $value;
+ }
+ }
+ else {
+ $queryParams['raw'] = $raw;
+ }
+ }
+
+ // 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);
+ }
+ // header params
+ if ($x_apideck_service_id !== null) {
+ $headerParams['x-apideck-service-id'] = ObjectSerializer::toHeaderValue($x_apideck_service_id);
+ }
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+ // path params
+ if ($object_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'object_id' . '}',
+ ObjectSerializer::toPathValue($object_id),
+ $resourcePath
+ );
+ }
+
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($custom_object)) {
+ if ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($custom_object));
+ } else {
+ $httpBody = $custom_object;
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('Authorization');
+ if ($apiKey !== null) {
+ $headers['Authorization'] = $apiKey;
+ }
+
+ $defaultHeaders = $this->config->getDefaultHeaders();
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'PATCH',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
/**
* Operation leadsAdd
*
diff --git a/src/gen/lib/Api/EcommerceApi.php b/src/gen/lib/Api/EcommerceApi.php
index c2ae759c3..e0921e41f 100644
--- a/src/gen/lib/Api/EcommerceApi.php
+++ b/src/gen/lib/Api/EcommerceApi.php
@@ -14,7 +14,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Api/FileStorageApi.php b/src/gen/lib/Api/FileStorageApi.php
index 7df6db550..a3f2dcc2e 100644
--- a/src/gen/lib/Api/FileStorageApi.php
+++ b/src/gen/lib/Api/FileStorageApi.php
@@ -14,7 +14,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Api/HrisApi.php b/src/gen/lib/Api/HrisApi.php
index 1008a8869..b55cdc412 100644
--- a/src/gen/lib/Api/HrisApi.php
+++ b/src/gen/lib/Api/HrisApi.php
@@ -14,7 +14,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Api/IssueTrackingApi.php b/src/gen/lib/Api/IssueTrackingApi.php
index 60235c49c..eeb49f682 100644
--- a/src/gen/lib/Api/IssueTrackingApi.php
+++ b/src/gen/lib/Api/IssueTrackingApi.php
@@ -14,7 +14,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Api/LeadApi.php b/src/gen/lib/Api/LeadApi.php
index d9cca3dde..feb341e58 100644
--- a/src/gen/lib/Api/LeadApi.php
+++ b/src/gen/lib/Api/LeadApi.php
@@ -14,7 +14,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Api/PosApi.php b/src/gen/lib/Api/PosApi.php
index abd021110..bb4f1106b 100644
--- a/src/gen/lib/Api/PosApi.php
+++ b/src/gen/lib/Api/PosApi.php
@@ -14,7 +14,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Api/SmsApi.php b/src/gen/lib/Api/SmsApi.php
index edbaead53..ccf90c545 100644
--- a/src/gen/lib/Api/SmsApi.php
+++ b/src/gen/lib/Api/SmsApi.php
@@ -14,7 +14,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Api/VaultApi.php b/src/gen/lib/Api/VaultApi.php
index b8ef8657c..63a87c9b5 100644
--- a/src/gen/lib/Api/VaultApi.php
+++ b/src/gen/lib/Api/VaultApi.php
@@ -14,7 +14,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Api/WebhookApi.php b/src/gen/lib/Api/WebhookApi.php
index 7c15d692c..5546d6db8 100644
--- a/src/gen/lib/Api/WebhookApi.php
+++ b/src/gen/lib/Api/WebhookApi.php
@@ -14,7 +14,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/ApiException.php b/src/gen/lib/ApiException.php
index 043ad4dca..20d4f5a88 100644
--- a/src/gen/lib/ApiException.php
+++ b/src/gen/lib/ApiException.php
@@ -14,7 +14,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Configuration.php b/src/gen/lib/Configuration.php
index 161d595a9..7c87eb97b 100644
--- a/src/gen/lib/Configuration.php
+++ b/src/gen/lib/Configuration.php
@@ -14,7 +14,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -98,7 +98,7 @@ class Configuration
*
* @var string
*/
- protected $userAgent = 'Apideck-php-sdk/3.10.0 Unify-spec/10.14.1';
+ protected $userAgent = 'Apideck-php-sdk/3.11.0 Unify-spec/10.17.2';
/**
* Debug switch (default set to false)
@@ -448,8 +448,8 @@ public static function toDebugReport()
$report = 'PHP SDK (Apideck\Client) Debug Report:' . PHP_EOL;
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
- $report .= ' The version of the OpenAPI document: 10.14.1' . PHP_EOL;
- $report .= ' SDK Package Version: 3.10.0' . PHP_EOL;
+ $report .= ' The version of the OpenAPI document: 10.17.2' . PHP_EOL;
+ $report .= ' SDK Package Version: 3.11.0' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
return $report;
diff --git a/src/gen/lib/HeaderSelector.php b/src/gen/lib/HeaderSelector.php
index 6098e21e9..a80164bb4 100644
--- a/src/gen/lib/HeaderSelector.php
+++ b/src/gen/lib/HeaderSelector.php
@@ -14,7 +14,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/AccountingDepartment.php b/src/gen/lib/Model/AccountingDepartment.php
index f07064d9a..541b106aa 100644
--- a/src/gen/lib/Model/AccountingDepartment.php
+++ b/src/gen/lib/Model/AccountingDepartment.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -65,7 +65,8 @@ class AccountingDepartment implements ModelInterface, ArrayAccess, \JsonSerializ
'name' => 'string',
'status' => 'string',
'subsidiaries' => '\Apideck\Client\Model\SubsidiaryReference[]',
- 'custom_mappings' => 'object',
+ 'code' => 'string',
+ 'custom_mappings' => 'array',
'row_version' => 'string',
'updated_by' => 'string',
'created_by' => 'string',
@@ -87,6 +88,7 @@ class AccountingDepartment implements ModelInterface, ArrayAccess, \JsonSerializ
'name' => null,
'status' => null,
'subsidiaries' => null,
+ 'code' => null,
'custom_mappings' => null,
'row_version' => null,
'updated_by' => null,
@@ -128,6 +130,7 @@ public static function openAPIFormats()
'name' => 'name',
'status' => 'status',
'subsidiaries' => 'subsidiaries',
+ 'code' => 'code',
'custom_mappings' => 'custom_mappings',
'row_version' => 'row_version',
'updated_by' => 'updated_by',
@@ -148,6 +151,7 @@ public static function openAPIFormats()
'name' => 'setName',
'status' => 'setStatus',
'subsidiaries' => 'setSubsidiaries',
+ 'code' => 'setCode',
'custom_mappings' => 'setCustomMappings',
'row_version' => 'setRowVersion',
'updated_by' => 'setUpdatedBy',
@@ -168,6 +172,7 @@ public static function openAPIFormats()
'name' => 'getName',
'status' => 'getStatus',
'subsidiaries' => 'getSubsidiaries',
+ 'code' => 'getCode',
'custom_mappings' => 'getCustomMappings',
'row_version' => 'getRowVersion',
'updated_by' => 'getUpdatedBy',
@@ -254,6 +259,7 @@ public function __construct(array $data = null)
$this->container['name'] = $data['name'] ?? null;
$this->container['status'] = $data['status'] ?? null;
$this->container['subsidiaries'] = $data['subsidiaries'] ?? null;
+ $this->container['code'] = $data['code'] ?? null;
$this->container['custom_mappings'] = $data['custom_mappings'] ?? null;
$this->container['row_version'] = $data['row_version'] ?? null;
$this->container['updated_by'] = $data['updated_by'] ?? null;
@@ -426,10 +432,34 @@ public function setSubsidiaries($subsidiaries)
return $this;
}
+ /**
+ * Gets code
+ *
+ * @return string|null
+ */
+ public function getCode()
+ {
+ return $this->container['code'];
+ }
+
+ /**
+ * Sets code
+ *
+ * @param string|null $code The code of the department.
+ *
+ * @return self
+ */
+ public function setCode($code)
+ {
+ $this->container['code'] = $code;
+
+ return $this;
+ }
+
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -439,7 +469,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/AccountingDepartmentsFilter.php b/src/gen/lib/Model/AccountingDepartmentsFilter.php
index a3a09fa50..a7bc1676c 100644
--- a/src/gen/lib/Model/AccountingDepartmentsFilter.php
+++ b/src/gen/lib/Model/AccountingDepartmentsFilter.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/AccountingEventType.php b/src/gen/lib/Model/AccountingEventType.php
index 95aefc7aa..c7180b397 100644
--- a/src/gen/lib/Model/AccountingEventType.php
+++ b/src/gen/lib/Model/AccountingEventType.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/AccountingLocation.php b/src/gen/lib/Model/AccountingLocation.php
index c3c82e4af..03c0f2f0d 100644
--- a/src/gen/lib/Model/AccountingLocation.php
+++ b/src/gen/lib/Model/AccountingLocation.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -67,7 +67,7 @@ class AccountingLocation implements ModelInterface, ArrayAccess, \JsonSerializab
'status' => 'string',
'addresses' => '\Apideck\Client\Model\Address[]',
'subsidiaries' => '\Apideck\Client\Model\SubsidiaryReference[]',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'row_version' => 'string',
'updated_by' => 'string',
'created_by' => 'string',
@@ -489,7 +489,7 @@ public function setSubsidiaries($subsidiaries)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -499,7 +499,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/AccountingLocationsFilter.php b/src/gen/lib/Model/AccountingLocationsFilter.php
index 3b6d88a7a..87e714bbb 100644
--- a/src/gen/lib/Model/AccountingLocationsFilter.php
+++ b/src/gen/lib/Model/AccountingLocationsFilter.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ActivitiesFilter.php b/src/gen/lib/Model/ActivitiesFilter.php
index d68fa1daf..4456610fb 100644
--- a/src/gen/lib/Model/ActivitiesFilter.php
+++ b/src/gen/lib/Model/ActivitiesFilter.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ActivitiesSort.php b/src/gen/lib/Model/ActivitiesSort.php
index 4c0044fa9..d7b637aa5 100644
--- a/src/gen/lib/Model/ActivitiesSort.php
+++ b/src/gen/lib/Model/ActivitiesSort.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Activity.php b/src/gen/lib/Model/Activity.php
index bf77e5bca..d6568e111 100644
--- a/src/gen/lib/Model/Activity.php
+++ b/src/gen/lib/Model/Activity.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -106,7 +106,7 @@ class Activity implements ModelInterface, ArrayAccess, \JsonSerializable
'video_conference_id' => 'string',
'custom_fields' => '\Apideck\Client\Model\CustomField[]',
'attendees' => '\Apideck\Client\Model\ActivityAttendee[]',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'updated_by' => 'string',
'created_by' => 'string',
'updated_at' => 'string',
@@ -1713,7 +1713,7 @@ public function setAttendees($attendees)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -1723,7 +1723,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/ActivityAttendee.php b/src/gen/lib/Model/ActivityAttendee.php
index ed0dd386a..10cb08a3f 100644
--- a/src/gen/lib/Model/ActivityAttendee.php
+++ b/src/gen/lib/Model/ActivityAttendee.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Address.php b/src/gen/lib/Model/Address.php
index 7d064ac06..613db118b 100644
--- a/src/gen/lib/Model/Address.php
+++ b/src/gen/lib/Model/Address.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/AgedCreditors.php b/src/gen/lib/Model/AgedCreditors.php
index b675ca544..cc8cfa53c 100644
--- a/src/gen/lib/Model/AgedCreditors.php
+++ b/src/gen/lib/Model/AgedCreditors.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/AgedDebtors.php b/src/gen/lib/Model/AgedDebtors.php
index a877a3871..36d235cea 100644
--- a/src/gen/lib/Model/AgedDebtors.php
+++ b/src/gen/lib/Model/AgedDebtors.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/AgedReportFilter.php b/src/gen/lib/Model/AgedReportFilter.php
index 476eb7387..d2bac2c84 100644
--- a/src/gen/lib/Model/AgedReportFilter.php
+++ b/src/gen/lib/Model/AgedReportFilter.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Allocation.php b/src/gen/lib/Model/Allocation.php
index 375b8263d..2770f5e18 100644
--- a/src/gen/lib/Model/Allocation.php
+++ b/src/gen/lib/Model/Allocation.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Api.php b/src/gen/lib/Model/Api.php
index 6e0512457..d2fd81e44 100644
--- a/src/gen/lib/Model/Api.php
+++ b/src/gen/lib/Model/Api.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ApiResource.php b/src/gen/lib/Model/ApiResource.php
index 54d3da4ae..62a48e9bd 100644
--- a/src/gen/lib/Model/ApiResource.php
+++ b/src/gen/lib/Model/ApiResource.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ApiResourceCoverage.php b/src/gen/lib/Model/ApiResourceCoverage.php
index dee364744..e1cde97f0 100644
--- a/src/gen/lib/Model/ApiResourceCoverage.php
+++ b/src/gen/lib/Model/ApiResourceCoverage.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ApiResourceCoverageCoverage.php b/src/gen/lib/Model/ApiResourceCoverageCoverage.php
index 6acad28cb..157a9df3f 100644
--- a/src/gen/lib/Model/ApiResourceCoverageCoverage.php
+++ b/src/gen/lib/Model/ApiResourceCoverageCoverage.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ApiResourceLinkedResources.php b/src/gen/lib/Model/ApiResourceLinkedResources.php
index d444b77ce..1474a7328 100644
--- a/src/gen/lib/Model/ApiResourceLinkedResources.php
+++ b/src/gen/lib/Model/ApiResourceLinkedResources.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ApiResources.php b/src/gen/lib/Model/ApiResources.php
index 3ac1ec420..bb2097067 100644
--- a/src/gen/lib/Model/ApiResources.php
+++ b/src/gen/lib/Model/ApiResources.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ApiStatus.php b/src/gen/lib/Model/ApiStatus.php
index 830072699..26f3c489d 100644
--- a/src/gen/lib/Model/ApiStatus.php
+++ b/src/gen/lib/Model/ApiStatus.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ApisFilter.php b/src/gen/lib/Model/ApisFilter.php
index e3fb74343..4be609e3f 100644
--- a/src/gen/lib/Model/ApisFilter.php
+++ b/src/gen/lib/Model/ApisFilter.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Applicant.php b/src/gen/lib/Model/Applicant.php
index 40492c3db..508371368 100644
--- a/src/gen/lib/Model/Applicant.php
+++ b/src/gen/lib/Model/Applicant.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -96,7 +96,7 @@ class Applicant implements ModelInterface, ArrayAccess, \JsonSerializable
'cv_url' => 'string',
'record_url' => 'string',
'rejected_at' => '\DateTime',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'deleted' => 'bool',
'deleted_by' => 'string',
'deleted_at' => '\DateTime',
@@ -1337,7 +1337,7 @@ public function setRejectedAt($rejected_at)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -1347,7 +1347,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/ApplicantSocialLinks.php b/src/gen/lib/Model/ApplicantSocialLinks.php
index 9fc36333f..774c938de 100644
--- a/src/gen/lib/Model/ApplicantSocialLinks.php
+++ b/src/gen/lib/Model/ApplicantSocialLinks.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ApplicantWebsites.php b/src/gen/lib/Model/ApplicantWebsites.php
index e80bb00e9..fa5baa0d7 100644
--- a/src/gen/lib/Model/ApplicantWebsites.php
+++ b/src/gen/lib/Model/ApplicantWebsites.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ApplicantsFilter.php b/src/gen/lib/Model/ApplicantsFilter.php
index b0416ceb5..532a60862 100644
--- a/src/gen/lib/Model/ApplicantsFilter.php
+++ b/src/gen/lib/Model/ApplicantsFilter.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Application.php b/src/gen/lib/Model/Application.php
index 032b9b6af..399568669 100644
--- a/src/gen/lib/Model/Application.php
+++ b/src/gen/lib/Model/Application.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -65,7 +65,7 @@ class Application implements ModelInterface, ArrayAccess, \JsonSerializable
'id' => 'string',
'status' => 'string',
'stage' => '\Apideck\Client\Model\ApplicationStage',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'updated_by' => 'string',
'created_by' => 'string',
'updated_at' => '\DateTime',
@@ -435,7 +435,7 @@ public function setStage($stage)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -445,7 +445,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/ApplicationStage.php b/src/gen/lib/Model/ApplicationStage.php
index dfb3ecb49..ecb042b78 100644
--- a/src/gen/lib/Model/ApplicationStage.php
+++ b/src/gen/lib/Model/ApplicationStage.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Assignee.php b/src/gen/lib/Model/Assignee.php
index 985d5be9d..666a0459b 100644
--- a/src/gen/lib/Model/Assignee.php
+++ b/src/gen/lib/Model/Assignee.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/AtsActivity.php b/src/gen/lib/Model/AtsActivity.php
index e6a4e5bbf..6b30356ab 100644
--- a/src/gen/lib/Model/AtsActivity.php
+++ b/src/gen/lib/Model/AtsActivity.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -61,7 +61,7 @@ class AtsActivity implements ModelInterface, ArrayAccess, \JsonSerializable
*/
protected static $openAPITypes = [
'id' => 'string',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'updated_by' => 'string',
'created_by' => 'string',
'updated_at' => '\DateTime',
@@ -263,7 +263,7 @@ public function setId($id)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -273,7 +273,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/AtsEventType.php b/src/gen/lib/Model/AtsEventType.php
index b1a9e6e08..6dc3fb94f 100644
--- a/src/gen/lib/Model/AtsEventType.php
+++ b/src/gen/lib/Model/AtsEventType.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Attachment.php b/src/gen/lib/Model/Attachment.php
index 72bde2275..36d0d9335 100644
--- a/src/gen/lib/Model/Attachment.php
+++ b/src/gen/lib/Model/Attachment.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/AttachmentReference.php b/src/gen/lib/Model/AttachmentReference.php
index ecd093e60..7705da4dc 100644
--- a/src/gen/lib/Model/AttachmentReference.php
+++ b/src/gen/lib/Model/AttachmentReference.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/AttachmentReferenceType.php b/src/gen/lib/Model/AttachmentReferenceType.php
index f065b2524..8b481a751 100644
--- a/src/gen/lib/Model/AttachmentReferenceType.php
+++ b/src/gen/lib/Model/AttachmentReferenceType.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/AuthType.php b/src/gen/lib/Model/AuthType.php
index ab8a0071f..86476b446 100644
--- a/src/gen/lib/Model/AuthType.php
+++ b/src/gen/lib/Model/AuthType.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/BadRequestResponse.php b/src/gen/lib/Model/BadRequestResponse.php
index 19fb7ddac..4256d4357 100644
--- a/src/gen/lib/Model/BadRequestResponse.php
+++ b/src/gen/lib/Model/BadRequestResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/BalanceByPeriod.php b/src/gen/lib/Model/BalanceByPeriod.php
index 358017007..44ea74a8a 100644
--- a/src/gen/lib/Model/BalanceByPeriod.php
+++ b/src/gen/lib/Model/BalanceByPeriod.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/BalanceByTransaction.php b/src/gen/lib/Model/BalanceByTransaction.php
index 1d3b87542..0cd9dc38f 100644
--- a/src/gen/lib/Model/BalanceByTransaction.php
+++ b/src/gen/lib/Model/BalanceByTransaction.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/BalanceSheet.php b/src/gen/lib/Model/BalanceSheet.php
index 6ba3e0c1d..c8f75c3c4 100644
--- a/src/gen/lib/Model/BalanceSheet.php
+++ b/src/gen/lib/Model/BalanceSheet.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/BalanceSheetAccount.php b/src/gen/lib/Model/BalanceSheetAccount.php
index d7466d63b..599007dbe 100644
--- a/src/gen/lib/Model/BalanceSheetAccount.php
+++ b/src/gen/lib/Model/BalanceSheetAccount.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/BalanceSheetAccountRecord.php b/src/gen/lib/Model/BalanceSheetAccountRecord.php
index d4bf48f2a..ed766117a 100644
--- a/src/gen/lib/Model/BalanceSheetAccountRecord.php
+++ b/src/gen/lib/Model/BalanceSheetAccountRecord.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/BalanceSheetAssetsAccount.php b/src/gen/lib/Model/BalanceSheetAssetsAccount.php
index c629bf6ac..c579cf8bb 100644
--- a/src/gen/lib/Model/BalanceSheetAssetsAccount.php
+++ b/src/gen/lib/Model/BalanceSheetAssetsAccount.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/BalanceSheetEquityAccount.php b/src/gen/lib/Model/BalanceSheetEquityAccount.php
index d43acf3b0..780b76a6b 100644
--- a/src/gen/lib/Model/BalanceSheetEquityAccount.php
+++ b/src/gen/lib/Model/BalanceSheetEquityAccount.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/BalanceSheetFilter.php b/src/gen/lib/Model/BalanceSheetFilter.php
index 6bb72c4c1..2bfa0c192 100644
--- a/src/gen/lib/Model/BalanceSheetFilter.php
+++ b/src/gen/lib/Model/BalanceSheetFilter.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/BalanceSheetLiabilitiesAccount.php b/src/gen/lib/Model/BalanceSheetLiabilitiesAccount.php
index 96a56c3e8..dabf2f85c 100644
--- a/src/gen/lib/Model/BalanceSheetLiabilitiesAccount.php
+++ b/src/gen/lib/Model/BalanceSheetLiabilitiesAccount.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/BalanceSheetReports.php b/src/gen/lib/Model/BalanceSheetReports.php
index 7ebf4b734..24a32387b 100644
--- a/src/gen/lib/Model/BalanceSheetReports.php
+++ b/src/gen/lib/Model/BalanceSheetReports.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -69,7 +69,7 @@ class BalanceSheetReports implements ModelInterface, ArrayAccess, \JsonSerializa
'start_date' => 'string',
'currency' => '\Apideck\Client\Model\Currency',
'net_assets' => 'float',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'updated_by' => 'string',
'created_by' => 'string',
'updated_at' => '\DateTime',
@@ -539,7 +539,7 @@ public function setNetAssets($net_assets)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -549,7 +549,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/BalanceSheetUncategorizedItemsAccount.php b/src/gen/lib/Model/BalanceSheetUncategorizedItemsAccount.php
index 550a4e13a..569e923fb 100644
--- a/src/gen/lib/Model/BalanceSheetUncategorizedItemsAccount.php
+++ b/src/gen/lib/Model/BalanceSheetUncategorizedItemsAccount.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/BankAccount.php b/src/gen/lib/Model/BankAccount.php
index 5363365d3..e2837cd7a 100644
--- a/src/gen/lib/Model/BankAccount.php
+++ b/src/gen/lib/Model/BankAccount.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/BankFeedAccount.php b/src/gen/lib/Model/BankFeedAccount.php
new file mode 100644
index 000000000..e00aea6bb
--- /dev/null
+++ b/src/gen/lib/Model/BankFeedAccount.php
@@ -0,0 +1,827 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class BankFeedAccount implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'BankFeedAccount';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'id' => 'string',
+ 'bank_account_type' => 'string',
+ 'source_account_id' => 'string',
+ 'target_account_id' => 'string',
+ 'target_account_name' => 'string',
+ 'target_account_number' => 'string',
+ 'currency' => '\Apideck\Client\Model\Currency',
+ 'feed_status' => 'string',
+ 'country' => 'string',
+ 'custom_fields' => '\Apideck\Client\Model\CustomField[]',
+ 'custom_mappings' => 'array',
+ 'created_at' => '\DateTime',
+ 'updated_at' => '\DateTime',
+ 'updated_by' => 'string',
+ 'created_by' => 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'id' => null,
+ 'bank_account_type' => null,
+ 'source_account_id' => null,
+ 'target_account_id' => null,
+ 'target_account_name' => null,
+ 'target_account_number' => null,
+ 'currency' => null,
+ 'feed_status' => null,
+ 'country' => null,
+ 'custom_fields' => null,
+ 'custom_mappings' => null,
+ 'created_at' => 'date-time',
+ 'updated_at' => 'date-time',
+ 'updated_by' => null,
+ 'created_by' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id',
+ 'bank_account_type' => 'bank_account_type',
+ 'source_account_id' => 'source_account_id',
+ 'target_account_id' => 'target_account_id',
+ 'target_account_name' => 'target_account_name',
+ 'target_account_number' => 'target_account_number',
+ 'currency' => 'currency',
+ 'feed_status' => 'feed_status',
+ 'country' => 'country',
+ 'custom_fields' => 'custom_fields',
+ 'custom_mappings' => 'custom_mappings',
+ 'created_at' => 'created_at',
+ 'updated_at' => 'updated_at',
+ 'updated_by' => 'updated_by',
+ 'created_by' => 'created_by'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId',
+ 'bank_account_type' => 'setBankAccountType',
+ 'source_account_id' => 'setSourceAccountId',
+ 'target_account_id' => 'setTargetAccountId',
+ 'target_account_name' => 'setTargetAccountName',
+ 'target_account_number' => 'setTargetAccountNumber',
+ 'currency' => 'setCurrency',
+ 'feed_status' => 'setFeedStatus',
+ 'country' => 'setCountry',
+ 'custom_fields' => 'setCustomFields',
+ 'custom_mappings' => 'setCustomMappings',
+ 'created_at' => 'setCreatedAt',
+ 'updated_at' => 'setUpdatedAt',
+ 'updated_by' => 'setUpdatedBy',
+ 'created_by' => 'setCreatedBy'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId',
+ 'bank_account_type' => 'getBankAccountType',
+ 'source_account_id' => 'getSourceAccountId',
+ 'target_account_id' => 'getTargetAccountId',
+ 'target_account_name' => 'getTargetAccountName',
+ 'target_account_number' => 'getTargetAccountNumber',
+ 'currency' => 'getCurrency',
+ 'feed_status' => 'getFeedStatus',
+ 'country' => 'getCountry',
+ 'custom_fields' => 'getCustomFields',
+ 'custom_mappings' => 'getCustomMappings',
+ 'created_at' => 'getCreatedAt',
+ 'updated_at' => 'getUpdatedAt',
+ 'updated_by' => 'getUpdatedBy',
+ 'created_by' => 'getCreatedBy'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+ const BANK_ACCOUNT_TYPE_BANK = 'bank';
+ const BANK_ACCOUNT_TYPE_CREDIT_CARD = 'credit_card';
+ const FEED_STATUS_PENDING = 'pending';
+ const FEED_STATUS_REJECTED = 'rejected';
+
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getBankAccountTypeAllowableValues()
+ {
+ return [
+ self::BANK_ACCOUNT_TYPE_BANK,
+ self::BANK_ACCOUNT_TYPE_CREDIT_CARD,
+ ];
+ }
+
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getFeedStatusAllowableValues()
+ {
+ return [
+ self::FEED_STATUS_PENDING,
+ self::FEED_STATUS_REJECTED,
+ ];
+ }
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = $data['id'] ?? null;
+ $this->container['bank_account_type'] = $data['bank_account_type'] ?? null;
+ $this->container['source_account_id'] = $data['source_account_id'] ?? null;
+ $this->container['target_account_id'] = $data['target_account_id'] ?? null;
+ $this->container['target_account_name'] = $data['target_account_name'] ?? null;
+ $this->container['target_account_number'] = $data['target_account_number'] ?? null;
+ $this->container['currency'] = $data['currency'] ?? null;
+ $this->container['feed_status'] = $data['feed_status'] ?? null;
+ $this->container['country'] = $data['country'] ?? null;
+ $this->container['custom_fields'] = $data['custom_fields'] ?? null;
+ $this->container['custom_mappings'] = $data['custom_mappings'] ?? null;
+ $this->container['created_at'] = $data['created_at'] ?? null;
+ $this->container['updated_at'] = $data['updated_at'] ?? null;
+ $this->container['updated_by'] = $data['updated_by'] ?? null;
+ $this->container['created_by'] = $data['created_by'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['id'] === null) {
+ $invalidProperties[] = "'id' can't be null";
+ }
+ $allowedValues = $this->getBankAccountTypeAllowableValues();
+ if (!is_null($this->container['bank_account_type']) && !in_array($this->container['bank_account_type'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value '%s' for 'bank_account_type', must be one of '%s'",
+ $this->container['bank_account_type'],
+ implode("', '", $allowedValues)
+ );
+ }
+
+ $allowedValues = $this->getFeedStatusAllowableValues();
+ if (!is_null($this->container['feed_status']) && !in_array($this->container['feed_status'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value '%s' for 'feed_status', must be one of '%s'",
+ $this->container['feed_status'],
+ implode("', '", $allowedValues)
+ );
+ }
+
+ if (!is_null($this->container['country']) && (mb_strlen($this->container['country']) > 2)) {
+ $invalidProperties[] = "invalid value for 'country', the character length must be smaller than or equal to 2.";
+ }
+
+ if (!is_null($this->container['country']) && (mb_strlen($this->container['country']) < 2)) {
+ $invalidProperties[] = "invalid value for 'country', the character length must be bigger than or equal to 2.";
+ }
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return string
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param string $id A unique identifier for an object.
+ *
+ * @return self
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets bank_account_type
+ *
+ * @return string|null
+ */
+ public function getBankAccountType()
+ {
+ return $this->container['bank_account_type'];
+ }
+
+ /**
+ * Sets bank_account_type
+ *
+ * @param string|null $bank_account_type Type of the bank account.
+ *
+ * @return self
+ */
+ public function setBankAccountType($bank_account_type)
+ {
+ $allowedValues = $this->getBankAccountTypeAllowableValues();
+ if (!is_null($bank_account_type) && !in_array($bank_account_type, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value '%s' for 'bank_account_type', must be one of '%s'",
+ $bank_account_type,
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['bank_account_type'] = $bank_account_type;
+
+ return $this;
+ }
+
+ /**
+ * Gets source_account_id
+ *
+ * @return string|null
+ */
+ public function getSourceAccountId()
+ {
+ return $this->container['source_account_id'];
+ }
+
+ /**
+ * Sets source_account_id
+ *
+ * @param string|null $source_account_id The source account's unique identifier.
+ *
+ * @return self
+ */
+ public function setSourceAccountId($source_account_id)
+ {
+ $this->container['source_account_id'] = $source_account_id;
+
+ return $this;
+ }
+
+ /**
+ * Gets target_account_id
+ *
+ * @return string|null
+ */
+ public function getTargetAccountId()
+ {
+ return $this->container['target_account_id'];
+ }
+
+ /**
+ * Sets target_account_id
+ *
+ * @param string|null $target_account_id The target account's unique identifier in the accounting connector.
+ *
+ * @return self
+ */
+ public function setTargetAccountId($target_account_id)
+ {
+ $this->container['target_account_id'] = $target_account_id;
+
+ return $this;
+ }
+
+ /**
+ * Gets target_account_name
+ *
+ * @return string|null
+ */
+ public function getTargetAccountName()
+ {
+ return $this->container['target_account_name'];
+ }
+
+ /**
+ * Sets target_account_name
+ *
+ * @param string|null $target_account_name Name associated with the target account.
+ *
+ * @return self
+ */
+ public function setTargetAccountName($target_account_name)
+ {
+ $this->container['target_account_name'] = $target_account_name;
+
+ return $this;
+ }
+
+ /**
+ * Gets target_account_number
+ *
+ * @return string|null
+ */
+ public function getTargetAccountNumber()
+ {
+ return $this->container['target_account_number'];
+ }
+
+ /**
+ * Sets target_account_number
+ *
+ * @param string|null $target_account_number Account number of the destination bank account.
+ *
+ * @return self
+ */
+ public function setTargetAccountNumber($target_account_number)
+ {
+ $this->container['target_account_number'] = $target_account_number;
+
+ return $this;
+ }
+
+ /**
+ * Gets currency
+ *
+ * @return \Apideck\Client\Model\Currency|null
+ */
+ public function getCurrency()
+ {
+ return $this->container['currency'];
+ }
+
+ /**
+ * Sets currency
+ *
+ * @param \Apideck\Client\Model\Currency|null $currency currency
+ *
+ * @return self
+ */
+ public function setCurrency($currency)
+ {
+ $this->container['currency'] = $currency;
+
+ return $this;
+ }
+
+ /**
+ * Gets feed_status
+ *
+ * @return string|null
+ */
+ public function getFeedStatus()
+ {
+ return $this->container['feed_status'];
+ }
+
+ /**
+ * Sets feed_status
+ *
+ * @param string|null $feed_status Current status of the bank feed.
+ *
+ * @return self
+ */
+ public function setFeedStatus($feed_status)
+ {
+ $allowedValues = $this->getFeedStatusAllowableValues();
+ if (!is_null($feed_status) && !in_array($feed_status, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value '%s' for 'feed_status', must be one of '%s'",
+ $feed_status,
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['feed_status'] = $feed_status;
+
+ return $this;
+ }
+
+ /**
+ * Gets country
+ *
+ * @return string|null
+ */
+ public function getCountry()
+ {
+ return $this->container['country'];
+ }
+
+ /**
+ * Sets country
+ *
+ * @param string|null $country Country code according to ISO 3166-1 alpha-2.
+ *
+ * @return self
+ */
+ public function setCountry($country)
+ {
+ if (!is_null($country) && (mb_strlen($country) > 2)) {
+ throw new \InvalidArgumentException('invalid length for $country when calling BankFeedAccount., must be smaller than or equal to 2.');
+ }
+ if (!is_null($country) && (mb_strlen($country) < 2)) {
+ throw new \InvalidArgumentException('invalid length for $country when calling BankFeedAccount., must be bigger than or equal to 2.');
+ }
+
+ $this->container['country'] = $country;
+
+ return $this;
+ }
+
+ /**
+ * Gets custom_fields
+ *
+ * @return \Apideck\Client\Model\CustomField[]|null
+ */
+ public function getCustomFields()
+ {
+ return $this->container['custom_fields'];
+ }
+
+ /**
+ * Sets custom_fields
+ *
+ * @param \Apideck\Client\Model\CustomField[]|null $custom_fields custom_fields
+ *
+ * @return self
+ */
+ public function setCustomFields($custom_fields)
+ {
+ $this->container['custom_fields'] = $custom_fields;
+
+ return $this;
+ }
+
+ /**
+ * Gets custom_mappings
+ *
+ * @return array|null
+ */
+ public function getCustomMappings()
+ {
+ return $this->container['custom_mappings'];
+ }
+
+ /**
+ * Sets custom_mappings
+ *
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ *
+ * @return self
+ */
+ public function setCustomMappings($custom_mappings)
+ {
+ $this->container['custom_mappings'] = $custom_mappings;
+
+ return $this;
+ }
+
+ /**
+ * Gets created_at
+ *
+ * @return \DateTime|null
+ */
+ public function getCreatedAt()
+ {
+ return $this->container['created_at'];
+ }
+
+ /**
+ * Sets created_at
+ *
+ * @param \DateTime|null $created_at The date and time when the object was created.
+ *
+ * @return self
+ */
+ public function setCreatedAt($created_at)
+ {
+ $this->container['created_at'] = $created_at;
+
+ return $this;
+ }
+
+ /**
+ * Gets updated_at
+ *
+ * @return \DateTime|null
+ */
+ public function getUpdatedAt()
+ {
+ return $this->container['updated_at'];
+ }
+
+ /**
+ * Sets updated_at
+ *
+ * @param \DateTime|null $updated_at The date and time when the object was last updated.
+ *
+ * @return self
+ */
+ public function setUpdatedAt($updated_at)
+ {
+ $this->container['updated_at'] = $updated_at;
+
+ return $this;
+ }
+
+ /**
+ * Gets updated_by
+ *
+ * @return string|null
+ */
+ public function getUpdatedBy()
+ {
+ return $this->container['updated_by'];
+ }
+
+ /**
+ * Sets updated_by
+ *
+ * @param string|null $updated_by The user who last updated the object.
+ *
+ * @return self
+ */
+ public function setUpdatedBy($updated_by)
+ {
+ $this->container['updated_by'] = $updated_by;
+
+ return $this;
+ }
+
+ /**
+ * Gets created_by
+ *
+ * @return string|null
+ */
+ public function getCreatedBy()
+ {
+ return $this->container['created_by'];
+ }
+
+ /**
+ * Sets created_by
+ *
+ * @param string|null $created_by The user who created the object.
+ *
+ * @return self
+ */
+ public function setCreatedBy($created_by)
+ {
+ $this->container['created_by'] = $created_by;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/BankFeedStatement.php b/src/gen/lib/Model/BankFeedStatement.php
new file mode 100644
index 000000000..f0d857be7
--- /dev/null
+++ b/src/gen/lib/Model/BankFeedStatement.php
@@ -0,0 +1,750 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class BankFeedStatement implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'BankFeedStatement';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'id' => 'string',
+ 'bank_feed_account_id' => 'string',
+ 'status' => 'string',
+ 'start_date' => '\DateTime',
+ 'end_date' => '\DateTime',
+ 'start_balance' => 'float',
+ 'start_balance_credit_or_debit' => '\Apideck\Client\Model\CreditOrDebit',
+ 'end_balance' => 'float',
+ 'end_balance_credit_or_debit' => '\Apideck\Client\Model\CreditOrDebit',
+ 'transactions' => '\Apideck\Client\Model\BankFeedStatementTransactions[]',
+ 'created_at' => '\DateTime',
+ 'created_by' => 'string',
+ 'updated_at' => '\DateTime',
+ 'updated_by' => 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'id' => null,
+ 'bank_feed_account_id' => null,
+ 'status' => null,
+ 'start_date' => 'date-time',
+ 'end_date' => 'date-time',
+ 'start_balance' => null,
+ 'start_balance_credit_or_debit' => null,
+ 'end_balance' => null,
+ 'end_balance_credit_or_debit' => null,
+ 'transactions' => null,
+ 'created_at' => 'date-time',
+ 'created_by' => null,
+ 'updated_at' => 'date-time',
+ 'updated_by' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id',
+ 'bank_feed_account_id' => 'bank_feed_account_id',
+ 'status' => 'status',
+ 'start_date' => 'start_date',
+ 'end_date' => 'end_date',
+ 'start_balance' => 'start_balance',
+ 'start_balance_credit_or_debit' => 'start_balance_credit_or_debit',
+ 'end_balance' => 'end_balance',
+ 'end_balance_credit_or_debit' => 'end_balance_credit_or_debit',
+ 'transactions' => 'transactions',
+ 'created_at' => 'created_at',
+ 'created_by' => 'created_by',
+ 'updated_at' => 'updated_at',
+ 'updated_by' => 'updated_by'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId',
+ 'bank_feed_account_id' => 'setBankFeedAccountId',
+ 'status' => 'setStatus',
+ 'start_date' => 'setStartDate',
+ 'end_date' => 'setEndDate',
+ 'start_balance' => 'setStartBalance',
+ 'start_balance_credit_or_debit' => 'setStartBalanceCreditOrDebit',
+ 'end_balance' => 'setEndBalance',
+ 'end_balance_credit_or_debit' => 'setEndBalanceCreditOrDebit',
+ 'transactions' => 'setTransactions',
+ 'created_at' => 'setCreatedAt',
+ 'created_by' => 'setCreatedBy',
+ 'updated_at' => 'setUpdatedAt',
+ 'updated_by' => 'setUpdatedBy'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId',
+ 'bank_feed_account_id' => 'getBankFeedAccountId',
+ 'status' => 'getStatus',
+ 'start_date' => 'getStartDate',
+ 'end_date' => 'getEndDate',
+ 'start_balance' => 'getStartBalance',
+ 'start_balance_credit_or_debit' => 'getStartBalanceCreditOrDebit',
+ 'end_balance' => 'getEndBalance',
+ 'end_balance_credit_or_debit' => 'getEndBalanceCreditOrDebit',
+ 'transactions' => 'getTransactions',
+ 'created_at' => 'getCreatedAt',
+ 'created_by' => 'getCreatedBy',
+ 'updated_at' => 'getUpdatedAt',
+ 'updated_by' => 'getUpdatedBy'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+ const STATUS_PENDING = 'pending';
+ const STATUS_REJECTED = 'rejected';
+ const STATUS_SUCCESS = 'success';
+
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getStatusAllowableValues()
+ {
+ return [
+ self::STATUS_PENDING,
+ self::STATUS_REJECTED,
+ self::STATUS_SUCCESS,
+ ];
+ }
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = $data['id'] ?? null;
+ $this->container['bank_feed_account_id'] = $data['bank_feed_account_id'] ?? null;
+ $this->container['status'] = $data['status'] ?? null;
+ $this->container['start_date'] = $data['start_date'] ?? null;
+ $this->container['end_date'] = $data['end_date'] ?? null;
+ $this->container['start_balance'] = $data['start_balance'] ?? null;
+ $this->container['start_balance_credit_or_debit'] = $data['start_balance_credit_or_debit'] ?? null;
+ $this->container['end_balance'] = $data['end_balance'] ?? null;
+ $this->container['end_balance_credit_or_debit'] = $data['end_balance_credit_or_debit'] ?? null;
+ $this->container['transactions'] = $data['transactions'] ?? null;
+ $this->container['created_at'] = $data['created_at'] ?? null;
+ $this->container['created_by'] = $data['created_by'] ?? null;
+ $this->container['updated_at'] = $data['updated_at'] ?? null;
+ $this->container['updated_by'] = $data['updated_by'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['id'] === null) {
+ $invalidProperties[] = "'id' can't be null";
+ }
+ $allowedValues = $this->getStatusAllowableValues();
+ if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value '%s' for 'status', must be one of '%s'",
+ $this->container['status'],
+ implode("', '", $allowedValues)
+ );
+ }
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return string
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param string $id A unique identifier for an object.
+ *
+ * @return self
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets bank_feed_account_id
+ *
+ * @return string|null
+ */
+ public function getBankFeedAccountId()
+ {
+ return $this->container['bank_feed_account_id'];
+ }
+
+ /**
+ * Sets bank_feed_account_id
+ *
+ * @param string|null $bank_feed_account_id The ID of the bank feed account this statement belongs to.
+ *
+ * @return self
+ */
+ public function setBankFeedAccountId($bank_feed_account_id)
+ {
+ $this->container['bank_feed_account_id'] = $bank_feed_account_id;
+
+ return $this;
+ }
+
+ /**
+ * Gets status
+ *
+ * @return string|null
+ */
+ public function getStatus()
+ {
+ return $this->container['status'];
+ }
+
+ /**
+ * Sets status
+ *
+ * @param string|null $status The current status of the bank feed statement.
+ *
+ * @return self
+ */
+ public function setStatus($status)
+ {
+ $allowedValues = $this->getStatusAllowableValues();
+ if (!is_null($status) && !in_array($status, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value '%s' for 'status', must be one of '%s'",
+ $status,
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['status'] = $status;
+
+ return $this;
+ }
+
+ /**
+ * Gets start_date
+ *
+ * @return \DateTime|null
+ */
+ public function getStartDate()
+ {
+ return $this->container['start_date'];
+ }
+
+ /**
+ * Sets start_date
+ *
+ * @param \DateTime|null $start_date Start date of the bank feed statement.
+ *
+ * @return self
+ */
+ public function setStartDate($start_date)
+ {
+ $this->container['start_date'] = $start_date;
+
+ return $this;
+ }
+
+ /**
+ * Gets end_date
+ *
+ * @return \DateTime|null
+ */
+ public function getEndDate()
+ {
+ return $this->container['end_date'];
+ }
+
+ /**
+ * Sets end_date
+ *
+ * @param \DateTime|null $end_date End date of the bank feed statement.
+ *
+ * @return self
+ */
+ public function setEndDate($end_date)
+ {
+ $this->container['end_date'] = $end_date;
+
+ return $this;
+ }
+
+ /**
+ * Gets start_balance
+ *
+ * @return float|null
+ */
+ public function getStartBalance()
+ {
+ return $this->container['start_balance'];
+ }
+
+ /**
+ * Sets start_balance
+ *
+ * @param float|null $start_balance Balance amount at the start of the period.
+ *
+ * @return self
+ */
+ public function setStartBalance($start_balance)
+ {
+ $this->container['start_balance'] = $start_balance;
+
+ return $this;
+ }
+
+ /**
+ * Gets start_balance_credit_or_debit
+ *
+ * @return \Apideck\Client\Model\CreditOrDebit|null
+ */
+ public function getStartBalanceCreditOrDebit()
+ {
+ return $this->container['start_balance_credit_or_debit'];
+ }
+
+ /**
+ * Sets start_balance_credit_or_debit
+ *
+ * @param \Apideck\Client\Model\CreditOrDebit|null $start_balance_credit_or_debit start_balance_credit_or_debit
+ *
+ * @return self
+ */
+ public function setStartBalanceCreditOrDebit($start_balance_credit_or_debit)
+ {
+ $this->container['start_balance_credit_or_debit'] = $start_balance_credit_or_debit;
+
+ return $this;
+ }
+
+ /**
+ * Gets end_balance
+ *
+ * @return float|null
+ */
+ public function getEndBalance()
+ {
+ return $this->container['end_balance'];
+ }
+
+ /**
+ * Sets end_balance
+ *
+ * @param float|null $end_balance Balance amount at the end of the period.
+ *
+ * @return self
+ */
+ public function setEndBalance($end_balance)
+ {
+ $this->container['end_balance'] = $end_balance;
+
+ return $this;
+ }
+
+ /**
+ * Gets end_balance_credit_or_debit
+ *
+ * @return \Apideck\Client\Model\CreditOrDebit|null
+ */
+ public function getEndBalanceCreditOrDebit()
+ {
+ return $this->container['end_balance_credit_or_debit'];
+ }
+
+ /**
+ * Sets end_balance_credit_or_debit
+ *
+ * @param \Apideck\Client\Model\CreditOrDebit|null $end_balance_credit_or_debit end_balance_credit_or_debit
+ *
+ * @return self
+ */
+ public function setEndBalanceCreditOrDebit($end_balance_credit_or_debit)
+ {
+ $this->container['end_balance_credit_or_debit'] = $end_balance_credit_or_debit;
+
+ return $this;
+ }
+
+ /**
+ * Gets transactions
+ *
+ * @return \Apideck\Client\Model\BankFeedStatementTransactions[]|null
+ */
+ public function getTransactions()
+ {
+ return $this->container['transactions'];
+ }
+
+ /**
+ * Sets transactions
+ *
+ * @param \Apideck\Client\Model\BankFeedStatementTransactions[]|null $transactions List of transactions in the bank feed statement.
+ *
+ * @return self
+ */
+ public function setTransactions($transactions)
+ {
+ $this->container['transactions'] = $transactions;
+
+ return $this;
+ }
+
+ /**
+ * Gets created_at
+ *
+ * @return \DateTime|null
+ */
+ public function getCreatedAt()
+ {
+ return $this->container['created_at'];
+ }
+
+ /**
+ * Sets created_at
+ *
+ * @param \DateTime|null $created_at The date and time when the object was created.
+ *
+ * @return self
+ */
+ public function setCreatedAt($created_at)
+ {
+ $this->container['created_at'] = $created_at;
+
+ return $this;
+ }
+
+ /**
+ * Gets created_by
+ *
+ * @return string|null
+ */
+ public function getCreatedBy()
+ {
+ return $this->container['created_by'];
+ }
+
+ /**
+ * Sets created_by
+ *
+ * @param string|null $created_by The user who created the object.
+ *
+ * @return self
+ */
+ public function setCreatedBy($created_by)
+ {
+ $this->container['created_by'] = $created_by;
+
+ return $this;
+ }
+
+ /**
+ * Gets updated_at
+ *
+ * @return \DateTime|null
+ */
+ public function getUpdatedAt()
+ {
+ return $this->container['updated_at'];
+ }
+
+ /**
+ * Sets updated_at
+ *
+ * @param \DateTime|null $updated_at The date and time when the object was last updated.
+ *
+ * @return self
+ */
+ public function setUpdatedAt($updated_at)
+ {
+ $this->container['updated_at'] = $updated_at;
+
+ return $this;
+ }
+
+ /**
+ * Gets updated_by
+ *
+ * @return string|null
+ */
+ public function getUpdatedBy()
+ {
+ return $this->container['updated_by'];
+ }
+
+ /**
+ * Sets updated_by
+ *
+ * @param string|null $updated_by The user who last updated the object.
+ *
+ * @return self
+ */
+ public function setUpdatedBy($updated_by)
+ {
+ $this->container['updated_by'] = $updated_by;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/BankFeedStatementTransactions.php b/src/gen/lib/Model/BankFeedStatementTransactions.php
new file mode 100644
index 000000000..087ed4397
--- /dev/null
+++ b/src/gen/lib/Model/BankFeedStatementTransactions.php
@@ -0,0 +1,585 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class BankFeedStatementTransactions implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'BankFeedStatement_transactions';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'posted_date' => '\DateTime',
+ 'amount' => 'float',
+ 'credit_or_debit' => '\Apideck\Client\Model\CreditOrDebit',
+ 'source_transaction_id' => 'string',
+ 'description' => 'string',
+ 'counterparty' => 'string',
+ 'reference' => 'string',
+ 'transaction_type' => 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'posted_date' => 'date-time',
+ 'amount' => null,
+ 'credit_or_debit' => null,
+ 'source_transaction_id' => null,
+ 'description' => null,
+ 'counterparty' => null,
+ 'reference' => null,
+ 'transaction_type' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'posted_date' => 'posted_date',
+ 'amount' => 'amount',
+ 'credit_or_debit' => 'credit_or_debit',
+ 'source_transaction_id' => 'source_transaction_id',
+ 'description' => 'description',
+ 'counterparty' => 'counterparty',
+ 'reference' => 'reference',
+ 'transaction_type' => 'transaction_type'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'posted_date' => 'setPostedDate',
+ 'amount' => 'setAmount',
+ 'credit_or_debit' => 'setCreditOrDebit',
+ 'source_transaction_id' => 'setSourceTransactionId',
+ 'description' => 'setDescription',
+ 'counterparty' => 'setCounterparty',
+ 'reference' => 'setReference',
+ 'transaction_type' => 'setTransactionType'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'posted_date' => 'getPostedDate',
+ 'amount' => 'getAmount',
+ 'credit_or_debit' => 'getCreditOrDebit',
+ 'source_transaction_id' => 'getSourceTransactionId',
+ 'description' => 'getDescription',
+ 'counterparty' => 'getCounterparty',
+ 'reference' => 'getReference',
+ 'transaction_type' => 'getTransactionType'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+ const TRANSACTION_TYPE_CREDIT = 'credit';
+ const TRANSACTION_TYPE_DEBIT = 'debit';
+ const TRANSACTION_TYPE_DEPOSIT = 'deposit';
+ const TRANSACTION_TYPE_TRANSFER = 'transfer';
+ const TRANSACTION_TYPE_PAYMENT = 'payment';
+ const TRANSACTION_TYPE_OTHER = 'other';
+
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getTransactionTypeAllowableValues()
+ {
+ return [
+ self::TRANSACTION_TYPE_CREDIT,
+ self::TRANSACTION_TYPE_DEBIT,
+ self::TRANSACTION_TYPE_DEPOSIT,
+ self::TRANSACTION_TYPE_TRANSFER,
+ self::TRANSACTION_TYPE_PAYMENT,
+ self::TRANSACTION_TYPE_OTHER,
+ ];
+ }
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['posted_date'] = $data['posted_date'] ?? null;
+ $this->container['amount'] = $data['amount'] ?? null;
+ $this->container['credit_or_debit'] = $data['credit_or_debit'] ?? null;
+ $this->container['source_transaction_id'] = $data['source_transaction_id'] ?? null;
+ $this->container['description'] = $data['description'] ?? null;
+ $this->container['counterparty'] = $data['counterparty'] ?? null;
+ $this->container['reference'] = $data['reference'] ?? null;
+ $this->container['transaction_type'] = $data['transaction_type'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['posted_date'] === null) {
+ $invalidProperties[] = "'posted_date' can't be null";
+ }
+ if ($this->container['amount'] === null) {
+ $invalidProperties[] = "'amount' can't be null";
+ }
+ if ($this->container['credit_or_debit'] === null) {
+ $invalidProperties[] = "'credit_or_debit' can't be null";
+ }
+ if ($this->container['source_transaction_id'] === null) {
+ $invalidProperties[] = "'source_transaction_id' can't be null";
+ }
+ $allowedValues = $this->getTransactionTypeAllowableValues();
+ if (!is_null($this->container['transaction_type']) && !in_array($this->container['transaction_type'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value '%s' for 'transaction_type', must be one of '%s'",
+ $this->container['transaction_type'],
+ implode("', '", $allowedValues)
+ );
+ }
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets posted_date
+ *
+ * @return \DateTime
+ */
+ public function getPostedDate()
+ {
+ return $this->container['posted_date'];
+ }
+
+ /**
+ * Sets posted_date
+ *
+ * @param \DateTime $posted_date The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD
+ *
+ * @return self
+ */
+ public function setPostedDate($posted_date)
+ {
+ $this->container['posted_date'] = $posted_date;
+
+ return $this;
+ }
+
+ /**
+ * Gets amount
+ *
+ * @return float
+ */
+ public function getAmount()
+ {
+ return $this->container['amount'];
+ }
+
+ /**
+ * Sets amount
+ *
+ * @param float $amount The amount of the transaction.
+ *
+ * @return self
+ */
+ public function setAmount($amount)
+ {
+ $this->container['amount'] = $amount;
+
+ return $this;
+ }
+
+ /**
+ * Gets credit_or_debit
+ *
+ * @return \Apideck\Client\Model\CreditOrDebit
+ */
+ public function getCreditOrDebit()
+ {
+ return $this->container['credit_or_debit'];
+ }
+
+ /**
+ * Sets credit_or_debit
+ *
+ * @param \Apideck\Client\Model\CreditOrDebit $credit_or_debit credit_or_debit
+ *
+ * @return self
+ */
+ public function setCreditOrDebit($credit_or_debit)
+ {
+ $this->container['credit_or_debit'] = $credit_or_debit;
+
+ return $this;
+ }
+
+ /**
+ * Gets source_transaction_id
+ *
+ * @return string
+ */
+ public function getSourceTransactionId()
+ {
+ return $this->container['source_transaction_id'];
+ }
+
+ /**
+ * Sets source_transaction_id
+ *
+ * @param string $source_transaction_id The ID of the source transaction.
+ *
+ * @return self
+ */
+ public function setSourceTransactionId($source_transaction_id)
+ {
+ $this->container['source_transaction_id'] = $source_transaction_id;
+
+ return $this;
+ }
+
+ /**
+ * Gets description
+ *
+ * @return string|null
+ */
+ public function getDescription()
+ {
+ return $this->container['description'];
+ }
+
+ /**
+ * Sets description
+ *
+ * @param string|null $description A description of the transaction.
+ *
+ * @return self
+ */
+ public function setDescription($description)
+ {
+ $this->container['description'] = $description;
+
+ return $this;
+ }
+
+ /**
+ * Gets counterparty
+ *
+ * @return string|null
+ */
+ public function getCounterparty()
+ {
+ return $this->container['counterparty'];
+ }
+
+ /**
+ * Sets counterparty
+ *
+ * @param string|null $counterparty The counterparty of the transaction.
+ *
+ * @return self
+ */
+ public function setCounterparty($counterparty)
+ {
+ $this->container['counterparty'] = $counterparty;
+
+ return $this;
+ }
+
+ /**
+ * Gets reference
+ *
+ * @return string|null
+ */
+ public function getReference()
+ {
+ return $this->container['reference'];
+ }
+
+ /**
+ * Sets reference
+ *
+ * @param string|null $reference The reference of the transaction.
+ *
+ * @return self
+ */
+ public function setReference($reference)
+ {
+ $this->container['reference'] = $reference;
+
+ return $this;
+ }
+
+ /**
+ * Gets transaction_type
+ *
+ * @return string|null
+ */
+ public function getTransactionType()
+ {
+ return $this->container['transaction_type'];
+ }
+
+ /**
+ * Sets transaction_type
+ *
+ * @param string|null $transaction_type Type of transaction.
+ *
+ * @return self
+ */
+ public function setTransactionType($transaction_type)
+ {
+ $allowedValues = $this->getTransactionTypeAllowableValues();
+ if (!is_null($transaction_type) && !in_array($transaction_type, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value '%s' for 'transaction_type', must be one of '%s'",
+ $transaction_type,
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['transaction_type'] = $transaction_type;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/Benefit.php b/src/gen/lib/Model/Benefit.php
index db6e64b02..6a93a0295 100644
--- a/src/gen/lib/Model/Benefit.php
+++ b/src/gen/lib/Model/Benefit.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Bill.php b/src/gen/lib/Model/Bill.php
index 5c85df34e..33e4fa0f3 100644
--- a/src/gen/lib/Model/Bill.php
+++ b/src/gen/lib/Model/Bill.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -98,7 +98,7 @@ class Bill implements ModelInterface, ArrayAccess, \JsonSerializable
'created_at' => '\DateTime',
'row_version' => 'string',
'custom_fields' => '\Apideck\Client\Model\CustomField[]',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'pass_through' => 'object[]',
'accounting_period' => 'string'
];
@@ -1407,7 +1407,7 @@ public function setCustomFields($custom_fields)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -1417,7 +1417,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/BillLineItem.php b/src/gen/lib/Model/BillLineItem.php
index 3cfcde2ff..fada1d4ed 100644
--- a/src/gen/lib/Model/BillLineItem.php
+++ b/src/gen/lib/Model/BillLineItem.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/BillPayment.php b/src/gen/lib/Model/BillPayment.php
index e34f36d96..5504926f8 100644
--- a/src/gen/lib/Model/BillPayment.php
+++ b/src/gen/lib/Model/BillPayment.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -83,7 +83,7 @@ class BillPayment implements ModelInterface, ArrayAccess, \JsonSerializable
'custom_fields' => '\Apideck\Client\Model\CustomField[]',
'row_version' => 'string',
'display_id' => 'string',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'updated_by' => 'string',
'created_by' => 'string',
'created_at' => '\DateTime',
@@ -976,7 +976,7 @@ public function setDisplayId($display_id)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -986,7 +986,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/BillPaymentAllocations.php b/src/gen/lib/Model/BillPaymentAllocations.php
index 486a316db..50e89c2ff 100644
--- a/src/gen/lib/Model/BillPaymentAllocations.php
+++ b/src/gen/lib/Model/BillPaymentAllocations.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/BillsFilter.php b/src/gen/lib/Model/BillsFilter.php
index 4369db8de..100dd20dc 100644
--- a/src/gen/lib/Model/BillsFilter.php
+++ b/src/gen/lib/Model/BillsFilter.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/BillsSort.php b/src/gen/lib/Model/BillsSort.php
index 563cb1061..b3af0e320 100644
--- a/src/gen/lib/Model/BillsSort.php
+++ b/src/gen/lib/Model/BillsSort.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Branch.php b/src/gen/lib/Model/Branch.php
index aa32c0a79..f3d3db538 100644
--- a/src/gen/lib/Model/Branch.php
+++ b/src/gen/lib/Model/Branch.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CashDetails.php b/src/gen/lib/Model/CashDetails.php
index e9d21496e..98ef3f6f9 100644
--- a/src/gen/lib/Model/CashDetails.php
+++ b/src/gen/lib/Model/CashDetails.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Collection.php b/src/gen/lib/Model/Collection.php
index 9c12d07b4..a409567df 100644
--- a/src/gen/lib/Model/Collection.php
+++ b/src/gen/lib/Model/Collection.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -65,7 +65,7 @@ class Collection implements ModelInterface, ArrayAccess, \JsonSerializable
'type' => 'string',
'name' => 'string',
'description' => 'string',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'updated_at' => '\DateTime',
'created_at' => '\DateTime'
];
@@ -374,7 +374,7 @@ public function setDescription($description)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -384,7 +384,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/CollectionTag.php b/src/gen/lib/Model/CollectionTag.php
index ce6b80075..420a16db0 100644
--- a/src/gen/lib/Model/CollectionTag.php
+++ b/src/gen/lib/Model/CollectionTag.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -62,7 +62,7 @@ class CollectionTag implements ModelInterface, ArrayAccess, \JsonSerializable
protected static $openAPITypes = [
'id' => 'string',
'name' => 'string',
- 'custom_mappings' => 'object'
+ 'custom_mappings' => 'array'
];
/**
@@ -272,7 +272,7 @@ public function setName($name)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -282,7 +282,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/CollectionTicketComment.php b/src/gen/lib/Model/CollectionTicketComment.php
index e21df19ae..b8d4b2b9d 100644
--- a/src/gen/lib/Model/CollectionTicketComment.php
+++ b/src/gen/lib/Model/CollectionTicketComment.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -62,7 +62,7 @@ class CollectionTicketComment implements ModelInterface, ArrayAccess, \JsonSeria
protected static $openAPITypes = [
'id' => 'string',
'body' => 'string',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'created_by' => 'string',
'updated_at' => '\DateTime',
'created_at' => '\DateTime',
@@ -293,7 +293,7 @@ public function setBody($body)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -303,7 +303,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/CollectionUser.php b/src/gen/lib/Model/CollectionUser.php
index e30be8a03..9ab914540 100644
--- a/src/gen/lib/Model/CollectionUser.php
+++ b/src/gen/lib/Model/CollectionUser.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -66,7 +66,7 @@ class CollectionUser implements ModelInterface, ArrayAccess, \JsonSerializable
'last_name' => 'string',
'email' => 'string',
'photo_url' => 'string',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'updated_at' => '\DateTime',
'created_at' => '\DateTime'
];
@@ -401,7 +401,7 @@ public function setPhotoUrl($photo_url)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -411,7 +411,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/CollectionsSort.php b/src/gen/lib/Model/CollectionsSort.php
index f1bc96a38..b4138bd61 100644
--- a/src/gen/lib/Model/CollectionsSort.php
+++ b/src/gen/lib/Model/CollectionsSort.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CommentsSort.php b/src/gen/lib/Model/CommentsSort.php
index 089ba9c7e..9d5a90ec2 100644
--- a/src/gen/lib/Model/CommentsSort.php
+++ b/src/gen/lib/Model/CommentsSort.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CompaniesFilter.php b/src/gen/lib/Model/CompaniesFilter.php
index 6919f3f96..9aa0084f7 100644
--- a/src/gen/lib/Model/CompaniesFilter.php
+++ b/src/gen/lib/Model/CompaniesFilter.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CompaniesSort.php b/src/gen/lib/Model/CompaniesSort.php
index a7579a37b..f07ee19cc 100644
--- a/src/gen/lib/Model/CompaniesSort.php
+++ b/src/gen/lib/Model/CompaniesSort.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Company.php b/src/gen/lib/Model/Company.php
index 2147e190f..68f1e8cda 100644
--- a/src/gen/lib/Model/Company.php
+++ b/src/gen/lib/Model/Company.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -96,7 +96,7 @@ class Company implements ModelInterface, ArrayAccess, \JsonSerializable
'deleted' => 'bool',
'salutation' => 'string',
'birthday' => '\DateTime',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'updated_by' => 'string',
'created_by' => 'string',
'updated_at' => '\DateTime',
@@ -1322,7 +1322,7 @@ public function setBirthday($birthday)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -1332,7 +1332,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/CompanyInfo.php b/src/gen/lib/Model/CompanyInfo.php
index 977d16afd..5788ba0ed 100644
--- a/src/gen/lib/Model/CompanyInfo.php
+++ b/src/gen/lib/Model/CompanyInfo.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -76,7 +76,7 @@ class CompanyInfo implements ModelInterface, ArrayAccess, \JsonSerializable
'addresses' => '\Apideck\Client\Model\Address[]',
'phone_numbers' => '\Apideck\Client\Model\PhoneNumber[]',
'emails' => '\Apideck\Client\Model\Email[]',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'row_version' => 'string',
'updated_by' => 'string',
'created_by' => 'string',
@@ -807,7 +807,7 @@ public function setEmails($emails)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -817,7 +817,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/CompanyRowType.php b/src/gen/lib/Model/CompanyRowType.php
index 0cab73214..a9d11a0f1 100644
--- a/src/gen/lib/Model/CompanyRowType.php
+++ b/src/gen/lib/Model/CompanyRowType.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Compensation.php b/src/gen/lib/Model/Compensation.php
index 2ead44595..87ec4edc2 100644
--- a/src/gen/lib/Model/Compensation.php
+++ b/src/gen/lib/Model/Compensation.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Connection.php b/src/gen/lib/Model/Connection.php
index f2d24fe5d..0ba409698 100644
--- a/src/gen/lib/Model/Connection.php
+++ b/src/gen/lib/Model/Connection.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ConnectionConfiguration.php b/src/gen/lib/Model/ConnectionConfiguration.php
index 9b52a986f..97e069409 100644
--- a/src/gen/lib/Model/ConnectionConfiguration.php
+++ b/src/gen/lib/Model/ConnectionConfiguration.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ConnectionDefaults.php b/src/gen/lib/Model/ConnectionDefaults.php
index 2fd675964..8488849bb 100644
--- a/src/gen/lib/Model/ConnectionDefaults.php
+++ b/src/gen/lib/Model/ConnectionDefaults.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ConnectionImportData.php b/src/gen/lib/Model/ConnectionImportData.php
index ec3043a78..206cacf75 100644
--- a/src/gen/lib/Model/ConnectionImportData.php
+++ b/src/gen/lib/Model/ConnectionImportData.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ConnectionImportDataCredentials.php b/src/gen/lib/Model/ConnectionImportDataCredentials.php
index 810ed0ae9..dd4a880fe 100644
--- a/src/gen/lib/Model/ConnectionImportDataCredentials.php
+++ b/src/gen/lib/Model/ConnectionImportDataCredentials.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ConnectionMetadata.php b/src/gen/lib/Model/ConnectionMetadata.php
index 3276b04e6..383b5b224 100644
--- a/src/gen/lib/Model/ConnectionMetadata.php
+++ b/src/gen/lib/Model/ConnectionMetadata.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ConnectionState.php b/src/gen/lib/Model/ConnectionState.php
index 989be79fb..da75f9a50 100644
--- a/src/gen/lib/Model/ConnectionState.php
+++ b/src/gen/lib/Model/ConnectionState.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ConnectionWebhook.php b/src/gen/lib/Model/ConnectionWebhook.php
index ca75ca963..bc7b0e71b 100644
--- a/src/gen/lib/Model/ConnectionWebhook.php
+++ b/src/gen/lib/Model/ConnectionWebhook.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Connector.php b/src/gen/lib/Model/Connector.php
index 0983e01e6..5fd41dc70 100644
--- a/src/gen/lib/Model/Connector.php
+++ b/src/gen/lib/Model/Connector.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ConnectorDoc.php b/src/gen/lib/Model/ConnectorDoc.php
index a23de81c2..b9429a7bf 100644
--- a/src/gen/lib/Model/ConnectorDoc.php
+++ b/src/gen/lib/Model/ConnectorDoc.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ConnectorEvent.php b/src/gen/lib/Model/ConnectorEvent.php
index dbd70d380..0290b4e36 100644
--- a/src/gen/lib/Model/ConnectorEvent.php
+++ b/src/gen/lib/Model/ConnectorEvent.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ConnectorOauthScopes.php b/src/gen/lib/Model/ConnectorOauthScopes.php
index 93b2b08d3..46d1104d0 100644
--- a/src/gen/lib/Model/ConnectorOauthScopes.php
+++ b/src/gen/lib/Model/ConnectorOauthScopes.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ConnectorOauthScopes1.php b/src/gen/lib/Model/ConnectorOauthScopes1.php
index 8a74385ff..b7e96ffae 100644
--- a/src/gen/lib/Model/ConnectorOauthScopes1.php
+++ b/src/gen/lib/Model/ConnectorOauthScopes1.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ConnectorResource.php b/src/gen/lib/Model/ConnectorResource.php
index 6732ed3f7..7fc01dfec 100644
--- a/src/gen/lib/Model/ConnectorResource.php
+++ b/src/gen/lib/Model/ConnectorResource.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ConnectorSetting.php b/src/gen/lib/Model/ConnectorSetting.php
index 5b423cad9..dc52acd96 100644
--- a/src/gen/lib/Model/ConnectorSetting.php
+++ b/src/gen/lib/Model/ConnectorSetting.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ConnectorStatus.php b/src/gen/lib/Model/ConnectorStatus.php
index 95f9f1040..6e7171a2d 100644
--- a/src/gen/lib/Model/ConnectorStatus.php
+++ b/src/gen/lib/Model/ConnectorStatus.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ConnectorTlsSupport.php b/src/gen/lib/Model/ConnectorTlsSupport.php
index 6d80312fc..facecbc7d 100644
--- a/src/gen/lib/Model/ConnectorTlsSupport.php
+++ b/src/gen/lib/Model/ConnectorTlsSupport.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ConnectorUnifiedApis.php b/src/gen/lib/Model/ConnectorUnifiedApis.php
index 82dabf181..48f932ac3 100644
--- a/src/gen/lib/Model/ConnectorUnifiedApis.php
+++ b/src/gen/lib/Model/ConnectorUnifiedApis.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ConnectorsFilter.php b/src/gen/lib/Model/ConnectorsFilter.php
index 91606423b..fd1e08f56 100644
--- a/src/gen/lib/Model/ConnectorsFilter.php
+++ b/src/gen/lib/Model/ConnectorsFilter.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Consumer.php b/src/gen/lib/Model/Consumer.php
index 61750d732..725a8002f 100644
--- a/src/gen/lib/Model/Consumer.php
+++ b/src/gen/lib/Model/Consumer.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ConsumerConnection.php b/src/gen/lib/Model/ConsumerConnection.php
index 29db9bff9..9a376a0e9 100644
--- a/src/gen/lib/Model/ConsumerConnection.php
+++ b/src/gen/lib/Model/ConsumerConnection.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ConsumerMetadata.php b/src/gen/lib/Model/ConsumerMetadata.php
index fddb3c43e..2de2d6205 100644
--- a/src/gen/lib/Model/ConsumerMetadata.php
+++ b/src/gen/lib/Model/ConsumerMetadata.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ConsumerRequestCountsInDateRangeResponse.php b/src/gen/lib/Model/ConsumerRequestCountsInDateRangeResponse.php
index 755324d10..dae123702 100644
--- a/src/gen/lib/Model/ConsumerRequestCountsInDateRangeResponse.php
+++ b/src/gen/lib/Model/ConsumerRequestCountsInDateRangeResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ConsumerRequestCountsInDateRangeResponseData.php b/src/gen/lib/Model/ConsumerRequestCountsInDateRangeResponseData.php
index 58c609180..d325f15a1 100644
--- a/src/gen/lib/Model/ConsumerRequestCountsInDateRangeResponseData.php
+++ b/src/gen/lib/Model/ConsumerRequestCountsInDateRangeResponseData.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Contact.php b/src/gen/lib/Model/Contact.php
index 43e86f8ef..94f9a1416 100644
--- a/src/gen/lib/Model/Contact.php
+++ b/src/gen/lib/Model/Contact.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -96,7 +96,7 @@ class Contact implements ModelInterface, ArrayAccess, \JsonSerializable
'first_call_at' => '\DateTime',
'first_email_at' => '\DateTime',
'last_activity_at' => '\DateTime',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'updated_at' => '\DateTime',
'created_at' => '\DateTime',
'opportunity_ids' => 'string[]',
@@ -1392,7 +1392,7 @@ public function setLastActivityAt($last_activity_at)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -1402,7 +1402,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/ContactsFilter.php b/src/gen/lib/Model/ContactsFilter.php
index f04bc412b..30324332a 100644
--- a/src/gen/lib/Model/ContactsFilter.php
+++ b/src/gen/lib/Model/ContactsFilter.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ContactsSort.php b/src/gen/lib/Model/ContactsSort.php
index 6fcba03a5..8fce581c7 100644
--- a/src/gen/lib/Model/ContactsSort.php
+++ b/src/gen/lib/Model/ContactsSort.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CopyFolderRequest.php b/src/gen/lib/Model/CopyFolderRequest.php
index 3e8abf943..c1d73870a 100644
--- a/src/gen/lib/Model/CopyFolderRequest.php
+++ b/src/gen/lib/Model/CopyFolderRequest.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CostOfGoodsSold.php b/src/gen/lib/Model/CostOfGoodsSold.php
index 5f603f260..18291906c 100644
--- a/src/gen/lib/Model/CostOfGoodsSold.php
+++ b/src/gen/lib/Model/CostOfGoodsSold.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateAccountingDepartmentResponse.php b/src/gen/lib/Model/CreateAccountingDepartmentResponse.php
index ff85283e1..46fa6a6d9 100644
--- a/src/gen/lib/Model/CreateAccountingDepartmentResponse.php
+++ b/src/gen/lib/Model/CreateAccountingDepartmentResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateAccountingLocationResponse.php b/src/gen/lib/Model/CreateAccountingLocationResponse.php
index 60324cc55..239c136be 100644
--- a/src/gen/lib/Model/CreateAccountingLocationResponse.php
+++ b/src/gen/lib/Model/CreateAccountingLocationResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateActivityResponse.php b/src/gen/lib/Model/CreateActivityResponse.php
index c8c2eb453..89f8bf0fb 100644
--- a/src/gen/lib/Model/CreateActivityResponse.php
+++ b/src/gen/lib/Model/CreateActivityResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateApplicantResponse.php b/src/gen/lib/Model/CreateApplicantResponse.php
index a217d4136..9cfce023b 100644
--- a/src/gen/lib/Model/CreateApplicantResponse.php
+++ b/src/gen/lib/Model/CreateApplicantResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateApplicationResponse.php b/src/gen/lib/Model/CreateApplicationResponse.php
index edf43e345..57d030806 100644
--- a/src/gen/lib/Model/CreateApplicationResponse.php
+++ b/src/gen/lib/Model/CreateApplicationResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateAttachmentRequest.php b/src/gen/lib/Model/CreateAttachmentRequest.php
index cd9717081..3d3151fd6 100644
--- a/src/gen/lib/Model/CreateAttachmentRequest.php
+++ b/src/gen/lib/Model/CreateAttachmentRequest.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateAttachmentResponse.php b/src/gen/lib/Model/CreateAttachmentResponse.php
index 007ebe09b..972b7ca51 100644
--- a/src/gen/lib/Model/CreateAttachmentResponse.php
+++ b/src/gen/lib/Model/CreateAttachmentResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateBankFeedAccountResponse.php b/src/gen/lib/Model/CreateBankFeedAccountResponse.php
new file mode 100644
index 000000000..558680ef1
--- /dev/null
+++ b/src/gen/lib/Model/CreateBankFeedAccountResponse.php
@@ -0,0 +1,519 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class CreateBankFeedAccountResponse implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'CreateBankFeedAccountResponse';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'status_code' => 'int',
+ 'status' => 'string',
+ 'service' => 'string',
+ 'resource' => 'string',
+ 'operation' => 'string',
+ 'data' => '\Apideck\Client\Model\UnifiedId',
+ '_raw' => 'array'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'status_code' => null,
+ 'status' => null,
+ 'service' => null,
+ 'resource' => null,
+ 'operation' => null,
+ 'data' => null,
+ '_raw' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'status_code' => 'status_code',
+ 'status' => 'status',
+ 'service' => 'service',
+ 'resource' => 'resource',
+ 'operation' => 'operation',
+ 'data' => 'data',
+ '_raw' => '_raw'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'status_code' => 'setStatusCode',
+ 'status' => 'setStatus',
+ 'service' => 'setService',
+ 'resource' => 'setResource',
+ 'operation' => 'setOperation',
+ 'data' => 'setData',
+ '_raw' => 'setRaw'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'status_code' => 'getStatusCode',
+ 'status' => 'getStatus',
+ 'service' => 'getService',
+ 'resource' => 'getResource',
+ 'operation' => 'getOperation',
+ 'data' => 'getData',
+ '_raw' => 'getRaw'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['status_code'] = $data['status_code'] ?? null;
+ $this->container['status'] = $data['status'] ?? null;
+ $this->container['service'] = $data['service'] ?? null;
+ $this->container['resource'] = $data['resource'] ?? null;
+ $this->container['operation'] = $data['operation'] ?? null;
+ $this->container['data'] = $data['data'] ?? null;
+ $this->container['_raw'] = $data['_raw'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['status_code'] === null) {
+ $invalidProperties[] = "'status_code' can't be null";
+ }
+ if ($this->container['status'] === null) {
+ $invalidProperties[] = "'status' can't be null";
+ }
+ if ($this->container['service'] === null) {
+ $invalidProperties[] = "'service' can't be null";
+ }
+ if ($this->container['resource'] === null) {
+ $invalidProperties[] = "'resource' can't be null";
+ }
+ if ($this->container['operation'] === null) {
+ $invalidProperties[] = "'operation' can't be null";
+ }
+ if ($this->container['data'] === null) {
+ $invalidProperties[] = "'data' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets status_code
+ *
+ * @return int
+ */
+ public function getStatusCode()
+ {
+ return $this->container['status_code'];
+ }
+
+ /**
+ * Sets status_code
+ *
+ * @param int $status_code HTTP Response Status Code
+ *
+ * @return self
+ */
+ public function setStatusCode($status_code)
+ {
+ $this->container['status_code'] = $status_code;
+
+ return $this;
+ }
+
+ /**
+ * Gets status
+ *
+ * @return string
+ */
+ public function getStatus()
+ {
+ return $this->container['status'];
+ }
+
+ /**
+ * Sets status
+ *
+ * @param string $status HTTP Response Status
+ *
+ * @return self
+ */
+ public function setStatus($status)
+ {
+ $this->container['status'] = $status;
+
+ return $this;
+ }
+
+ /**
+ * Gets service
+ *
+ * @return string
+ */
+ public function getService()
+ {
+ return $this->container['service'];
+ }
+
+ /**
+ * Sets service
+ *
+ * @param string $service Apideck ID of service provider
+ *
+ * @return self
+ */
+ public function setService($service)
+ {
+ $this->container['service'] = $service;
+
+ return $this;
+ }
+
+ /**
+ * Gets resource
+ *
+ * @return string
+ */
+ public function getResource()
+ {
+ return $this->container['resource'];
+ }
+
+ /**
+ * Sets resource
+ *
+ * @param string $resource Unified API resource name
+ *
+ * @return self
+ */
+ public function setResource($resource)
+ {
+ $this->container['resource'] = $resource;
+
+ return $this;
+ }
+
+ /**
+ * Gets operation
+ *
+ * @return string
+ */
+ public function getOperation()
+ {
+ return $this->container['operation'];
+ }
+
+ /**
+ * Sets operation
+ *
+ * @param string $operation Operation performed
+ *
+ * @return self
+ */
+ public function setOperation($operation)
+ {
+ $this->container['operation'] = $operation;
+
+ return $this;
+ }
+
+ /**
+ * Gets data
+ *
+ * @return \Apideck\Client\Model\UnifiedId
+ */
+ public function getData()
+ {
+ return $this->container['data'];
+ }
+
+ /**
+ * Sets data
+ *
+ * @param \Apideck\Client\Model\UnifiedId $data data
+ *
+ * @return self
+ */
+ public function setData($data)
+ {
+ $this->container['data'] = $data;
+
+ return $this;
+ }
+
+ /**
+ * Gets _raw
+ *
+ * @return array|null
+ */
+ public function getRaw()
+ {
+ return $this->container['_raw'];
+ }
+
+ /**
+ * Sets _raw
+ *
+ * @param array|null $_raw Raw response from the integration when raw=true query param is provided
+ *
+ * @return self
+ */
+ public function setRaw($_raw)
+ {
+ $this->container['_raw'] = $_raw;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/CreateBankFeedStatementResponse.php b/src/gen/lib/Model/CreateBankFeedStatementResponse.php
new file mode 100644
index 000000000..d140a8923
--- /dev/null
+++ b/src/gen/lib/Model/CreateBankFeedStatementResponse.php
@@ -0,0 +1,519 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class CreateBankFeedStatementResponse implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'CreateBankFeedStatementResponse';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'status_code' => 'int',
+ 'status' => 'string',
+ 'service' => 'string',
+ 'resource' => 'string',
+ 'operation' => 'string',
+ 'data' => '\Apideck\Client\Model\UnifiedId',
+ '_raw' => 'array'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'status_code' => null,
+ 'status' => null,
+ 'service' => null,
+ 'resource' => null,
+ 'operation' => null,
+ 'data' => null,
+ '_raw' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'status_code' => 'status_code',
+ 'status' => 'status',
+ 'service' => 'service',
+ 'resource' => 'resource',
+ 'operation' => 'operation',
+ 'data' => 'data',
+ '_raw' => '_raw'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'status_code' => 'setStatusCode',
+ 'status' => 'setStatus',
+ 'service' => 'setService',
+ 'resource' => 'setResource',
+ 'operation' => 'setOperation',
+ 'data' => 'setData',
+ '_raw' => 'setRaw'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'status_code' => 'getStatusCode',
+ 'status' => 'getStatus',
+ 'service' => 'getService',
+ 'resource' => 'getResource',
+ 'operation' => 'getOperation',
+ 'data' => 'getData',
+ '_raw' => 'getRaw'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['status_code'] = $data['status_code'] ?? null;
+ $this->container['status'] = $data['status'] ?? null;
+ $this->container['service'] = $data['service'] ?? null;
+ $this->container['resource'] = $data['resource'] ?? null;
+ $this->container['operation'] = $data['operation'] ?? null;
+ $this->container['data'] = $data['data'] ?? null;
+ $this->container['_raw'] = $data['_raw'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['status_code'] === null) {
+ $invalidProperties[] = "'status_code' can't be null";
+ }
+ if ($this->container['status'] === null) {
+ $invalidProperties[] = "'status' can't be null";
+ }
+ if ($this->container['service'] === null) {
+ $invalidProperties[] = "'service' can't be null";
+ }
+ if ($this->container['resource'] === null) {
+ $invalidProperties[] = "'resource' can't be null";
+ }
+ if ($this->container['operation'] === null) {
+ $invalidProperties[] = "'operation' can't be null";
+ }
+ if ($this->container['data'] === null) {
+ $invalidProperties[] = "'data' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets status_code
+ *
+ * @return int
+ */
+ public function getStatusCode()
+ {
+ return $this->container['status_code'];
+ }
+
+ /**
+ * Sets status_code
+ *
+ * @param int $status_code HTTP Response Status Code
+ *
+ * @return self
+ */
+ public function setStatusCode($status_code)
+ {
+ $this->container['status_code'] = $status_code;
+
+ return $this;
+ }
+
+ /**
+ * Gets status
+ *
+ * @return string
+ */
+ public function getStatus()
+ {
+ return $this->container['status'];
+ }
+
+ /**
+ * Sets status
+ *
+ * @param string $status HTTP Response Status
+ *
+ * @return self
+ */
+ public function setStatus($status)
+ {
+ $this->container['status'] = $status;
+
+ return $this;
+ }
+
+ /**
+ * Gets service
+ *
+ * @return string
+ */
+ public function getService()
+ {
+ return $this->container['service'];
+ }
+
+ /**
+ * Sets service
+ *
+ * @param string $service Apideck ID of service provider
+ *
+ * @return self
+ */
+ public function setService($service)
+ {
+ $this->container['service'] = $service;
+
+ return $this;
+ }
+
+ /**
+ * Gets resource
+ *
+ * @return string
+ */
+ public function getResource()
+ {
+ return $this->container['resource'];
+ }
+
+ /**
+ * Sets resource
+ *
+ * @param string $resource Unified API resource name
+ *
+ * @return self
+ */
+ public function setResource($resource)
+ {
+ $this->container['resource'] = $resource;
+
+ return $this;
+ }
+
+ /**
+ * Gets operation
+ *
+ * @return string
+ */
+ public function getOperation()
+ {
+ return $this->container['operation'];
+ }
+
+ /**
+ * Sets operation
+ *
+ * @param string $operation Operation performed
+ *
+ * @return self
+ */
+ public function setOperation($operation)
+ {
+ $this->container['operation'] = $operation;
+
+ return $this;
+ }
+
+ /**
+ * Gets data
+ *
+ * @return \Apideck\Client\Model\UnifiedId
+ */
+ public function getData()
+ {
+ return $this->container['data'];
+ }
+
+ /**
+ * Sets data
+ *
+ * @param \Apideck\Client\Model\UnifiedId $data data
+ *
+ * @return self
+ */
+ public function setData($data)
+ {
+ $this->container['data'] = $data;
+
+ return $this;
+ }
+
+ /**
+ * Gets _raw
+ *
+ * @return array|null
+ */
+ public function getRaw()
+ {
+ return $this->container['_raw'];
+ }
+
+ /**
+ * Sets _raw
+ *
+ * @param array|null $_raw Raw response from the integration when raw=true query param is provided
+ *
+ * @return self
+ */
+ public function setRaw($_raw)
+ {
+ $this->container['_raw'] = $_raw;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/CreateBillPaymentResponse.php b/src/gen/lib/Model/CreateBillPaymentResponse.php
index a5d0054b8..2e77e60ed 100644
--- a/src/gen/lib/Model/CreateBillPaymentResponse.php
+++ b/src/gen/lib/Model/CreateBillPaymentResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateBillResponse.php b/src/gen/lib/Model/CreateBillResponse.php
index 4d56c0a77..ad95eb294 100644
--- a/src/gen/lib/Model/CreateBillResponse.php
+++ b/src/gen/lib/Model/CreateBillResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateCallbackState.php b/src/gen/lib/Model/CreateCallbackState.php
index e943ef437..68693ee42 100644
--- a/src/gen/lib/Model/CreateCallbackState.php
+++ b/src/gen/lib/Model/CreateCallbackState.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateCallbackStateResponse.php b/src/gen/lib/Model/CreateCallbackStateResponse.php
index f7b4102d1..722160892 100644
--- a/src/gen/lib/Model/CreateCallbackStateResponse.php
+++ b/src/gen/lib/Model/CreateCallbackStateResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateCallbackStateResponseData.php b/src/gen/lib/Model/CreateCallbackStateResponseData.php
index 2f835604f..1da4eea9d 100644
--- a/src/gen/lib/Model/CreateCallbackStateResponseData.php
+++ b/src/gen/lib/Model/CreateCallbackStateResponseData.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateCommentResponse.php b/src/gen/lib/Model/CreateCommentResponse.php
index caaf1ea72..c7294d6f2 100644
--- a/src/gen/lib/Model/CreateCommentResponse.php
+++ b/src/gen/lib/Model/CreateCommentResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateCompanyResponse.php b/src/gen/lib/Model/CreateCompanyResponse.php
index 3a2a32c25..c9b5ba5a4 100644
--- a/src/gen/lib/Model/CreateCompanyResponse.php
+++ b/src/gen/lib/Model/CreateCompanyResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateConnectionResponse.php b/src/gen/lib/Model/CreateConnectionResponse.php
index 69f32ed78..c0f84e68f 100644
--- a/src/gen/lib/Model/CreateConnectionResponse.php
+++ b/src/gen/lib/Model/CreateConnectionResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateConsumerResponse.php b/src/gen/lib/Model/CreateConsumerResponse.php
index 6965a2217..335003439 100644
--- a/src/gen/lib/Model/CreateConsumerResponse.php
+++ b/src/gen/lib/Model/CreateConsumerResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateContactResponse.php b/src/gen/lib/Model/CreateContactResponse.php
index ab4905a16..85beda638 100644
--- a/src/gen/lib/Model/CreateContactResponse.php
+++ b/src/gen/lib/Model/CreateContactResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateCreditNoteResponse.php b/src/gen/lib/Model/CreateCreditNoteResponse.php
index 80f62150f..0eba78642 100644
--- a/src/gen/lib/Model/CreateCreditNoteResponse.php
+++ b/src/gen/lib/Model/CreateCreditNoteResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateCustomMappingRequest.php b/src/gen/lib/Model/CreateCustomMappingRequest.php
index 3331d0c30..95a0ce523 100644
--- a/src/gen/lib/Model/CreateCustomMappingRequest.php
+++ b/src/gen/lib/Model/CreateCustomMappingRequest.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateCustomMappingResponse.php b/src/gen/lib/Model/CreateCustomMappingResponse.php
index cb905101d..acc12e9cf 100644
--- a/src/gen/lib/Model/CreateCustomMappingResponse.php
+++ b/src/gen/lib/Model/CreateCustomMappingResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateCustomObjectResponse.php b/src/gen/lib/Model/CreateCustomObjectResponse.php
new file mode 100644
index 000000000..a4525b83a
--- /dev/null
+++ b/src/gen/lib/Model/CreateCustomObjectResponse.php
@@ -0,0 +1,519 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class CreateCustomObjectResponse implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'CreateCustomObjectResponse';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'status_code' => 'int',
+ 'status' => 'string',
+ 'service' => 'string',
+ 'resource' => 'string',
+ 'operation' => 'string',
+ 'data' => '\Apideck\Client\Model\UnifiedId',
+ '_raw' => 'array'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'status_code' => null,
+ 'status' => null,
+ 'service' => null,
+ 'resource' => null,
+ 'operation' => null,
+ 'data' => null,
+ '_raw' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'status_code' => 'status_code',
+ 'status' => 'status',
+ 'service' => 'service',
+ 'resource' => 'resource',
+ 'operation' => 'operation',
+ 'data' => 'data',
+ '_raw' => '_raw'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'status_code' => 'setStatusCode',
+ 'status' => 'setStatus',
+ 'service' => 'setService',
+ 'resource' => 'setResource',
+ 'operation' => 'setOperation',
+ 'data' => 'setData',
+ '_raw' => 'setRaw'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'status_code' => 'getStatusCode',
+ 'status' => 'getStatus',
+ 'service' => 'getService',
+ 'resource' => 'getResource',
+ 'operation' => 'getOperation',
+ 'data' => 'getData',
+ '_raw' => 'getRaw'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['status_code'] = $data['status_code'] ?? null;
+ $this->container['status'] = $data['status'] ?? null;
+ $this->container['service'] = $data['service'] ?? null;
+ $this->container['resource'] = $data['resource'] ?? null;
+ $this->container['operation'] = $data['operation'] ?? null;
+ $this->container['data'] = $data['data'] ?? null;
+ $this->container['_raw'] = $data['_raw'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['status_code'] === null) {
+ $invalidProperties[] = "'status_code' can't be null";
+ }
+ if ($this->container['status'] === null) {
+ $invalidProperties[] = "'status' can't be null";
+ }
+ if ($this->container['service'] === null) {
+ $invalidProperties[] = "'service' can't be null";
+ }
+ if ($this->container['resource'] === null) {
+ $invalidProperties[] = "'resource' can't be null";
+ }
+ if ($this->container['operation'] === null) {
+ $invalidProperties[] = "'operation' can't be null";
+ }
+ if ($this->container['data'] === null) {
+ $invalidProperties[] = "'data' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets status_code
+ *
+ * @return int
+ */
+ public function getStatusCode()
+ {
+ return $this->container['status_code'];
+ }
+
+ /**
+ * Sets status_code
+ *
+ * @param int $status_code HTTP Response Status Code
+ *
+ * @return self
+ */
+ public function setStatusCode($status_code)
+ {
+ $this->container['status_code'] = $status_code;
+
+ return $this;
+ }
+
+ /**
+ * Gets status
+ *
+ * @return string
+ */
+ public function getStatus()
+ {
+ return $this->container['status'];
+ }
+
+ /**
+ * Sets status
+ *
+ * @param string $status HTTP Response Status
+ *
+ * @return self
+ */
+ public function setStatus($status)
+ {
+ $this->container['status'] = $status;
+
+ return $this;
+ }
+
+ /**
+ * Gets service
+ *
+ * @return string
+ */
+ public function getService()
+ {
+ return $this->container['service'];
+ }
+
+ /**
+ * Sets service
+ *
+ * @param string $service Apideck ID of service provider
+ *
+ * @return self
+ */
+ public function setService($service)
+ {
+ $this->container['service'] = $service;
+
+ return $this;
+ }
+
+ /**
+ * Gets resource
+ *
+ * @return string
+ */
+ public function getResource()
+ {
+ return $this->container['resource'];
+ }
+
+ /**
+ * Sets resource
+ *
+ * @param string $resource Unified API resource name
+ *
+ * @return self
+ */
+ public function setResource($resource)
+ {
+ $this->container['resource'] = $resource;
+
+ return $this;
+ }
+
+ /**
+ * Gets operation
+ *
+ * @return string
+ */
+ public function getOperation()
+ {
+ return $this->container['operation'];
+ }
+
+ /**
+ * Sets operation
+ *
+ * @param string $operation Operation performed
+ *
+ * @return self
+ */
+ public function setOperation($operation)
+ {
+ $this->container['operation'] = $operation;
+
+ return $this;
+ }
+
+ /**
+ * Gets data
+ *
+ * @return \Apideck\Client\Model\UnifiedId
+ */
+ public function getData()
+ {
+ return $this->container['data'];
+ }
+
+ /**
+ * Sets data
+ *
+ * @param \Apideck\Client\Model\UnifiedId $data data
+ *
+ * @return self
+ */
+ public function setData($data)
+ {
+ $this->container['data'] = $data;
+
+ return $this;
+ }
+
+ /**
+ * Gets _raw
+ *
+ * @return array|null
+ */
+ public function getRaw()
+ {
+ return $this->container['_raw'];
+ }
+
+ /**
+ * Sets _raw
+ *
+ * @param array|null $_raw Raw response from the integration when raw=true query param is provided
+ *
+ * @return self
+ */
+ public function setRaw($_raw)
+ {
+ $this->container['_raw'] = $_raw;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/CreateCustomObjectSchemaResponse.php b/src/gen/lib/Model/CreateCustomObjectSchemaResponse.php
new file mode 100644
index 000000000..84fae9bec
--- /dev/null
+++ b/src/gen/lib/Model/CreateCustomObjectSchemaResponse.php
@@ -0,0 +1,519 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class CreateCustomObjectSchemaResponse implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'CreateCustomObjectSchemaResponse';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'status_code' => 'int',
+ 'status' => 'string',
+ 'service' => 'string',
+ 'resource' => 'string',
+ 'operation' => 'string',
+ 'data' => '\Apideck\Client\Model\CustomObjectSchema',
+ '_raw' => 'array'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'status_code' => null,
+ 'status' => null,
+ 'service' => null,
+ 'resource' => null,
+ 'operation' => null,
+ 'data' => null,
+ '_raw' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'status_code' => 'status_code',
+ 'status' => 'status',
+ 'service' => 'service',
+ 'resource' => 'resource',
+ 'operation' => 'operation',
+ 'data' => 'data',
+ '_raw' => '_raw'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'status_code' => 'setStatusCode',
+ 'status' => 'setStatus',
+ 'service' => 'setService',
+ 'resource' => 'setResource',
+ 'operation' => 'setOperation',
+ 'data' => 'setData',
+ '_raw' => 'setRaw'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'status_code' => 'getStatusCode',
+ 'status' => 'getStatus',
+ 'service' => 'getService',
+ 'resource' => 'getResource',
+ 'operation' => 'getOperation',
+ 'data' => 'getData',
+ '_raw' => 'getRaw'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['status_code'] = $data['status_code'] ?? null;
+ $this->container['status'] = $data['status'] ?? null;
+ $this->container['service'] = $data['service'] ?? null;
+ $this->container['resource'] = $data['resource'] ?? null;
+ $this->container['operation'] = $data['operation'] ?? null;
+ $this->container['data'] = $data['data'] ?? null;
+ $this->container['_raw'] = $data['_raw'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['status_code'] === null) {
+ $invalidProperties[] = "'status_code' can't be null";
+ }
+ if ($this->container['status'] === null) {
+ $invalidProperties[] = "'status' can't be null";
+ }
+ if ($this->container['service'] === null) {
+ $invalidProperties[] = "'service' can't be null";
+ }
+ if ($this->container['resource'] === null) {
+ $invalidProperties[] = "'resource' can't be null";
+ }
+ if ($this->container['operation'] === null) {
+ $invalidProperties[] = "'operation' can't be null";
+ }
+ if ($this->container['data'] === null) {
+ $invalidProperties[] = "'data' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets status_code
+ *
+ * @return int
+ */
+ public function getStatusCode()
+ {
+ return $this->container['status_code'];
+ }
+
+ /**
+ * Sets status_code
+ *
+ * @param int $status_code HTTP Response Status Code
+ *
+ * @return self
+ */
+ public function setStatusCode($status_code)
+ {
+ $this->container['status_code'] = $status_code;
+
+ return $this;
+ }
+
+ /**
+ * Gets status
+ *
+ * @return string
+ */
+ public function getStatus()
+ {
+ return $this->container['status'];
+ }
+
+ /**
+ * Sets status
+ *
+ * @param string $status HTTP Response Status
+ *
+ * @return self
+ */
+ public function setStatus($status)
+ {
+ $this->container['status'] = $status;
+
+ return $this;
+ }
+
+ /**
+ * Gets service
+ *
+ * @return string
+ */
+ public function getService()
+ {
+ return $this->container['service'];
+ }
+
+ /**
+ * Sets service
+ *
+ * @param string $service Apideck ID of service provider
+ *
+ * @return self
+ */
+ public function setService($service)
+ {
+ $this->container['service'] = $service;
+
+ return $this;
+ }
+
+ /**
+ * Gets resource
+ *
+ * @return string
+ */
+ public function getResource()
+ {
+ return $this->container['resource'];
+ }
+
+ /**
+ * Sets resource
+ *
+ * @param string $resource Unified API resource name
+ *
+ * @return self
+ */
+ public function setResource($resource)
+ {
+ $this->container['resource'] = $resource;
+
+ return $this;
+ }
+
+ /**
+ * Gets operation
+ *
+ * @return string
+ */
+ public function getOperation()
+ {
+ return $this->container['operation'];
+ }
+
+ /**
+ * Sets operation
+ *
+ * @param string $operation Operation performed
+ *
+ * @return self
+ */
+ public function setOperation($operation)
+ {
+ $this->container['operation'] = $operation;
+
+ return $this;
+ }
+
+ /**
+ * Gets data
+ *
+ * @return \Apideck\Client\Model\CustomObjectSchema
+ */
+ public function getData()
+ {
+ return $this->container['data'];
+ }
+
+ /**
+ * Sets data
+ *
+ * @param \Apideck\Client\Model\CustomObjectSchema $data data
+ *
+ * @return self
+ */
+ public function setData($data)
+ {
+ $this->container['data'] = $data;
+
+ return $this;
+ }
+
+ /**
+ * Gets _raw
+ *
+ * @return array|null
+ */
+ public function getRaw()
+ {
+ return $this->container['_raw'];
+ }
+
+ /**
+ * Sets _raw
+ *
+ * @param array|null $_raw Raw response from the integration when raw=true query param is provided
+ *
+ * @return self
+ */
+ public function setRaw($_raw)
+ {
+ $this->container['_raw'] = $_raw;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/CreateCustomerResponse.php b/src/gen/lib/Model/CreateCustomerResponse.php
index bce236cf3..848ad23b8 100644
--- a/src/gen/lib/Model/CreateCustomerResponse.php
+++ b/src/gen/lib/Model/CreateCustomerResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateDepartmentResponse.php b/src/gen/lib/Model/CreateDepartmentResponse.php
index 23442617f..b56e7761c 100644
--- a/src/gen/lib/Model/CreateDepartmentResponse.php
+++ b/src/gen/lib/Model/CreateDepartmentResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateDriveGroupResponse.php b/src/gen/lib/Model/CreateDriveGroupResponse.php
index 0cabe3f07..11889e671 100644
--- a/src/gen/lib/Model/CreateDriveGroupResponse.php
+++ b/src/gen/lib/Model/CreateDriveGroupResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateDriveResponse.php b/src/gen/lib/Model/CreateDriveResponse.php
index d4961164e..6290ebcca 100644
--- a/src/gen/lib/Model/CreateDriveResponse.php
+++ b/src/gen/lib/Model/CreateDriveResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateEcommerceCustomerResponse.php b/src/gen/lib/Model/CreateEcommerceCustomerResponse.php
index adbf7c73e..1905fcc2e 100644
--- a/src/gen/lib/Model/CreateEcommerceCustomerResponse.php
+++ b/src/gen/lib/Model/CreateEcommerceCustomerResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateEcommerceOrderResponse.php b/src/gen/lib/Model/CreateEcommerceOrderResponse.php
index 17b8a5b67..b89162d68 100644
--- a/src/gen/lib/Model/CreateEcommerceOrderResponse.php
+++ b/src/gen/lib/Model/CreateEcommerceOrderResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateEmployeeResponse.php b/src/gen/lib/Model/CreateEmployeeResponse.php
index b03a67e6a..31d5fcf74 100644
--- a/src/gen/lib/Model/CreateEmployeeResponse.php
+++ b/src/gen/lib/Model/CreateEmployeeResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateExpenseResponse.php b/src/gen/lib/Model/CreateExpenseResponse.php
index aea45744f..1c7a39e4d 100644
--- a/src/gen/lib/Model/CreateExpenseResponse.php
+++ b/src/gen/lib/Model/CreateExpenseResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateFileRequest.php b/src/gen/lib/Model/CreateFileRequest.php
index 51927bfbf..0b47d258c 100644
--- a/src/gen/lib/Model/CreateFileRequest.php
+++ b/src/gen/lib/Model/CreateFileRequest.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateFileResponse.php b/src/gen/lib/Model/CreateFileResponse.php
index 01b5393bb..58ee0ae5f 100644
--- a/src/gen/lib/Model/CreateFileResponse.php
+++ b/src/gen/lib/Model/CreateFileResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateFolderRequest.php b/src/gen/lib/Model/CreateFolderRequest.php
index cc881aa9e..0f6986e8c 100644
--- a/src/gen/lib/Model/CreateFolderRequest.php
+++ b/src/gen/lib/Model/CreateFolderRequest.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateFolderResponse.php b/src/gen/lib/Model/CreateFolderResponse.php
index e42c532a6..c738abaa2 100644
--- a/src/gen/lib/Model/CreateFolderResponse.php
+++ b/src/gen/lib/Model/CreateFolderResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateHrisCompanyResponse.php b/src/gen/lib/Model/CreateHrisCompanyResponse.php
index 963095277..c1bef1c72 100644
--- a/src/gen/lib/Model/CreateHrisCompanyResponse.php
+++ b/src/gen/lib/Model/CreateHrisCompanyResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateInvoiceItemResponse.php b/src/gen/lib/Model/CreateInvoiceItemResponse.php
index a18ebce68..e008f7d8a 100644
--- a/src/gen/lib/Model/CreateInvoiceItemResponse.php
+++ b/src/gen/lib/Model/CreateInvoiceItemResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateInvoiceResponse.php b/src/gen/lib/Model/CreateInvoiceResponse.php
index 349f3c1f6..f87143d99 100644
--- a/src/gen/lib/Model/CreateInvoiceResponse.php
+++ b/src/gen/lib/Model/CreateInvoiceResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateItemResponse.php b/src/gen/lib/Model/CreateItemResponse.php
index 10a610892..7ac839225 100644
--- a/src/gen/lib/Model/CreateItemResponse.php
+++ b/src/gen/lib/Model/CreateItemResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateJobResponse.php b/src/gen/lib/Model/CreateJobResponse.php
index a1b77de4c..0a56d5d98 100644
--- a/src/gen/lib/Model/CreateJobResponse.php
+++ b/src/gen/lib/Model/CreateJobResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateJournalEntryResponse.php b/src/gen/lib/Model/CreateJournalEntryResponse.php
index cb475fd7f..3aaa91c70 100644
--- a/src/gen/lib/Model/CreateJournalEntryResponse.php
+++ b/src/gen/lib/Model/CreateJournalEntryResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateLeadResponse.php b/src/gen/lib/Model/CreateLeadResponse.php
index 9b82b09d7..4859839cd 100644
--- a/src/gen/lib/Model/CreateLeadResponse.php
+++ b/src/gen/lib/Model/CreateLeadResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateLedgerAccountResponse.php b/src/gen/lib/Model/CreateLedgerAccountResponse.php
index 9cf5efae9..71a698b05 100644
--- a/src/gen/lib/Model/CreateLedgerAccountResponse.php
+++ b/src/gen/lib/Model/CreateLedgerAccountResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateLocationResponse.php b/src/gen/lib/Model/CreateLocationResponse.php
index 6ca2a7a22..2f714fac6 100644
--- a/src/gen/lib/Model/CreateLocationResponse.php
+++ b/src/gen/lib/Model/CreateLocationResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateMerchantResponse.php b/src/gen/lib/Model/CreateMerchantResponse.php
index 9ff0e493f..66821e25c 100644
--- a/src/gen/lib/Model/CreateMerchantResponse.php
+++ b/src/gen/lib/Model/CreateMerchantResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateMessageResponse.php b/src/gen/lib/Model/CreateMessageResponse.php
index 76056c448..479fd82e0 100644
--- a/src/gen/lib/Model/CreateMessageResponse.php
+++ b/src/gen/lib/Model/CreateMessageResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateModifierGroupResponse.php b/src/gen/lib/Model/CreateModifierGroupResponse.php
index 5781d18f1..507ec6ac1 100644
--- a/src/gen/lib/Model/CreateModifierGroupResponse.php
+++ b/src/gen/lib/Model/CreateModifierGroupResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateModifierResponse.php b/src/gen/lib/Model/CreateModifierResponse.php
index 5685430ab..df9b4d5e7 100644
--- a/src/gen/lib/Model/CreateModifierResponse.php
+++ b/src/gen/lib/Model/CreateModifierResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateNoteResponse.php b/src/gen/lib/Model/CreateNoteResponse.php
index 4f1425cda..da9c0c93e 100644
--- a/src/gen/lib/Model/CreateNoteResponse.php
+++ b/src/gen/lib/Model/CreateNoteResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateOpportunityResponse.php b/src/gen/lib/Model/CreateOpportunityResponse.php
index 123540264..9dea4ea31 100644
--- a/src/gen/lib/Model/CreateOpportunityResponse.php
+++ b/src/gen/lib/Model/CreateOpportunityResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateOrderResponse.php b/src/gen/lib/Model/CreateOrderResponse.php
index 43c310ea5..59e185ed1 100644
--- a/src/gen/lib/Model/CreateOrderResponse.php
+++ b/src/gen/lib/Model/CreateOrderResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateOrderTypeResponse.php b/src/gen/lib/Model/CreateOrderTypeResponse.php
index 1f86cf678..314b86a0e 100644
--- a/src/gen/lib/Model/CreateOrderTypeResponse.php
+++ b/src/gen/lib/Model/CreateOrderTypeResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreatePaymentResponse.php b/src/gen/lib/Model/CreatePaymentResponse.php
index b7f8b7c32..f52dd22da 100644
--- a/src/gen/lib/Model/CreatePaymentResponse.php
+++ b/src/gen/lib/Model/CreatePaymentResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreatePipelineResponse.php b/src/gen/lib/Model/CreatePipelineResponse.php
index 82bdcf575..bbd6bba98 100644
--- a/src/gen/lib/Model/CreatePipelineResponse.php
+++ b/src/gen/lib/Model/CreatePipelineResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreatePosPaymentResponse.php b/src/gen/lib/Model/CreatePosPaymentResponse.php
index ba0c36fbc..7e05df868 100644
--- a/src/gen/lib/Model/CreatePosPaymentResponse.php
+++ b/src/gen/lib/Model/CreatePosPaymentResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateProductResponse.php b/src/gen/lib/Model/CreateProductResponse.php
index d0a66bfe7..d789eae4d 100644
--- a/src/gen/lib/Model/CreateProductResponse.php
+++ b/src/gen/lib/Model/CreateProductResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreatePurchaseOrderResponse.php b/src/gen/lib/Model/CreatePurchaseOrderResponse.php
index 0c3ea0406..b240132c9 100644
--- a/src/gen/lib/Model/CreatePurchaseOrderResponse.php
+++ b/src/gen/lib/Model/CreatePurchaseOrderResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateSessionResponse.php b/src/gen/lib/Model/CreateSessionResponse.php
index 2b25d5e9d..65441f36d 100644
--- a/src/gen/lib/Model/CreateSessionResponse.php
+++ b/src/gen/lib/Model/CreateSessionResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateSessionResponseData.php b/src/gen/lib/Model/CreateSessionResponseData.php
index 9a918bade..552f27e6d 100644
--- a/src/gen/lib/Model/CreateSessionResponseData.php
+++ b/src/gen/lib/Model/CreateSessionResponseData.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateSharedLinkResponse.php b/src/gen/lib/Model/CreateSharedLinkResponse.php
index 4d5e93f9c..53cc1a1ad 100644
--- a/src/gen/lib/Model/CreateSharedLinkResponse.php
+++ b/src/gen/lib/Model/CreateSharedLinkResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateSubsidiaryResponse.php b/src/gen/lib/Model/CreateSubsidiaryResponse.php
index ab680a86d..914105ddc 100644
--- a/src/gen/lib/Model/CreateSubsidiaryResponse.php
+++ b/src/gen/lib/Model/CreateSubsidiaryResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateSupplierResponse.php b/src/gen/lib/Model/CreateSupplierResponse.php
index 2991385eb..d50522fe4 100644
--- a/src/gen/lib/Model/CreateSupplierResponse.php
+++ b/src/gen/lib/Model/CreateSupplierResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateTaxRateResponse.php b/src/gen/lib/Model/CreateTaxRateResponse.php
index c9baf126c..04699d99c 100644
--- a/src/gen/lib/Model/CreateTaxRateResponse.php
+++ b/src/gen/lib/Model/CreateTaxRateResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateTenderResponse.php b/src/gen/lib/Model/CreateTenderResponse.php
index 4900eb816..035f75264 100644
--- a/src/gen/lib/Model/CreateTenderResponse.php
+++ b/src/gen/lib/Model/CreateTenderResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateTicketResponse.php b/src/gen/lib/Model/CreateTicketResponse.php
index 6476a9940..0e9e970df 100644
--- a/src/gen/lib/Model/CreateTicketResponse.php
+++ b/src/gen/lib/Model/CreateTicketResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateTimeOffRequestResponse.php b/src/gen/lib/Model/CreateTimeOffRequestResponse.php
index 860cea6c7..d8f4d7f83 100644
--- a/src/gen/lib/Model/CreateTimeOffRequestResponse.php
+++ b/src/gen/lib/Model/CreateTimeOffRequestResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateTrackingCategoryResponse.php b/src/gen/lib/Model/CreateTrackingCategoryResponse.php
index 3e685a4ce..b14cb394a 100644
--- a/src/gen/lib/Model/CreateTrackingCategoryResponse.php
+++ b/src/gen/lib/Model/CreateTrackingCategoryResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateUploadSessionRequest.php b/src/gen/lib/Model/CreateUploadSessionRequest.php
index 558b1acc7..b323321b3 100644
--- a/src/gen/lib/Model/CreateUploadSessionRequest.php
+++ b/src/gen/lib/Model/CreateUploadSessionRequest.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateUploadSessionResponse.php b/src/gen/lib/Model/CreateUploadSessionResponse.php
index dfce36487..817758916 100644
--- a/src/gen/lib/Model/CreateUploadSessionResponse.php
+++ b/src/gen/lib/Model/CreateUploadSessionResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateUserResponse.php b/src/gen/lib/Model/CreateUserResponse.php
index 7401051ff..617e77623 100644
--- a/src/gen/lib/Model/CreateUserResponse.php
+++ b/src/gen/lib/Model/CreateUserResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateWebhookRequest.php b/src/gen/lib/Model/CreateWebhookRequest.php
index e489622a7..d2cc49ead 100644
--- a/src/gen/lib/Model/CreateWebhookRequest.php
+++ b/src/gen/lib/Model/CreateWebhookRequest.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreateWebhookResponse.php b/src/gen/lib/Model/CreateWebhookResponse.php
index 7d4f9f224..1485397e8 100644
--- a/src/gen/lib/Model/CreateWebhookResponse.php
+++ b/src/gen/lib/Model/CreateWebhookResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreditNote.php b/src/gen/lib/Model/CreditNote.php
index 4accaf251..5acc4215b 100644
--- a/src/gen/lib/Model/CreditNote.php
+++ b/src/gen/lib/Model/CreditNote.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -86,7 +86,7 @@ class CreditNote implements ModelInterface, ArrayAccess, \JsonSerializable
'billing_address' => '\Apideck\Client\Model\Address',
'shipping_address' => '\Apideck\Client\Model\Address',
'tracking_categories' => '\Apideck\Client\Model\LinkedTrackingCategory[]',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'custom_fields' => '\Apideck\Client\Model\CustomField[]',
'row_version' => 'string',
'updated_by' => 'string',
@@ -1111,7 +1111,7 @@ public function setTrackingCategories($tracking_categories)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -1121,7 +1121,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/CreditNotesFilter.php b/src/gen/lib/Model/CreditNotesFilter.php
index 35c977dd5..4264aed50 100644
--- a/src/gen/lib/Model/CreditNotesFilter.php
+++ b/src/gen/lib/Model/CreditNotesFilter.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreditNotesSort.php b/src/gen/lib/Model/CreditNotesSort.php
index bcbd2eea1..0625a2327 100644
--- a/src/gen/lib/Model/CreditNotesSort.php
+++ b/src/gen/lib/Model/CreditNotesSort.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CreditOrDebit.php b/src/gen/lib/Model/CreditOrDebit.php
new file mode 100644
index 000000000..410a4a6af
--- /dev/null
+++ b/src/gen/lib/Model/CreditOrDebit.php
@@ -0,0 +1,64 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class CustomObject implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'CustomObject';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'id' => 'string',
+ 'owner_id' => 'string',
+ 'name' => 'string',
+ 'fields' => '\Apideck\Client\Model\CustomObjectFields[]',
+ 'updated_by' => 'string',
+ 'created_by' => 'string',
+ 'updated_at' => 'string',
+ 'created_at' => 'string',
+ 'pass_through' => 'object[]'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'id' => null,
+ 'owner_id' => null,
+ 'name' => null,
+ 'fields' => null,
+ 'updated_by' => null,
+ 'created_by' => null,
+ 'updated_at' => null,
+ 'created_at' => null,
+ 'pass_through' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id',
+ 'owner_id' => 'owner_id',
+ 'name' => 'name',
+ 'fields' => 'fields',
+ 'updated_by' => 'updated_by',
+ 'created_by' => 'created_by',
+ 'updated_at' => 'updated_at',
+ 'created_at' => 'created_at',
+ 'pass_through' => 'pass_through'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId',
+ 'owner_id' => 'setOwnerId',
+ 'name' => 'setName',
+ 'fields' => 'setFields',
+ 'updated_by' => 'setUpdatedBy',
+ 'created_by' => 'setCreatedBy',
+ 'updated_at' => 'setUpdatedAt',
+ 'created_at' => 'setCreatedAt',
+ 'pass_through' => 'setPassThrough'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId',
+ 'owner_id' => 'getOwnerId',
+ 'name' => 'getName',
+ 'fields' => 'getFields',
+ 'updated_by' => 'getUpdatedBy',
+ 'created_by' => 'getCreatedBy',
+ 'updated_at' => 'getUpdatedAt',
+ 'created_at' => 'getCreatedAt',
+ 'pass_through' => 'getPassThrough'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = $data['id'] ?? null;
+ $this->container['owner_id'] = $data['owner_id'] ?? null;
+ $this->container['name'] = $data['name'] ?? null;
+ $this->container['fields'] = $data['fields'] ?? null;
+ $this->container['updated_by'] = $data['updated_by'] ?? null;
+ $this->container['created_by'] = $data['created_by'] ?? null;
+ $this->container['updated_at'] = $data['updated_at'] ?? null;
+ $this->container['created_at'] = $data['created_at'] ?? null;
+ $this->container['pass_through'] = $data['pass_through'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return string|null
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param string|null $id The unique identifier of the custom object
+ *
+ * @return self
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets owner_id
+ *
+ * @return string|null
+ */
+ public function getOwnerId()
+ {
+ return $this->container['owner_id'];
+ }
+
+ /**
+ * Sets owner_id
+ *
+ * @param string|null $owner_id The unique identifier of the owner of the custom object
+ *
+ * @return self
+ */
+ public function setOwnerId($owner_id)
+ {
+ $this->container['owner_id'] = $owner_id;
+
+ return $this;
+ }
+
+ /**
+ * Gets name
+ *
+ * @return string|null
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string|null $name The name of the custom object
+ *
+ * @return self
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets fields
+ *
+ * @return \Apideck\Client\Model\CustomObjectFields[]|null
+ */
+ public function getFields()
+ {
+ return $this->container['fields'];
+ }
+
+ /**
+ * Sets fields
+ *
+ * @param \Apideck\Client\Model\CustomObjectFields[]|null $fields fields
+ *
+ * @return self
+ */
+ public function setFields($fields)
+ {
+ $this->container['fields'] = $fields;
+
+ return $this;
+ }
+
+ /**
+ * Gets updated_by
+ *
+ * @return string|null
+ */
+ public function getUpdatedBy()
+ {
+ return $this->container['updated_by'];
+ }
+
+ /**
+ * Sets updated_by
+ *
+ * @param string|null $updated_by The unique identifier of the user who last updated the custom object
+ *
+ * @return self
+ */
+ public function setUpdatedBy($updated_by)
+ {
+ $this->container['updated_by'] = $updated_by;
+
+ return $this;
+ }
+
+ /**
+ * Gets created_by
+ *
+ * @return string|null
+ */
+ public function getCreatedBy()
+ {
+ return $this->container['created_by'];
+ }
+
+ /**
+ * Sets created_by
+ *
+ * @param string|null $created_by The unique identifier of the user who created the custom object
+ *
+ * @return self
+ */
+ public function setCreatedBy($created_by)
+ {
+ $this->container['created_by'] = $created_by;
+
+ return $this;
+ }
+
+ /**
+ * Gets updated_at
+ *
+ * @return string|null
+ */
+ public function getUpdatedAt()
+ {
+ return $this->container['updated_at'];
+ }
+
+ /**
+ * Sets updated_at
+ *
+ * @param string|null $updated_at The timestamp when the custom object was last updated
+ *
+ * @return self
+ */
+ public function setUpdatedAt($updated_at)
+ {
+ $this->container['updated_at'] = $updated_at;
+
+ return $this;
+ }
+
+ /**
+ * Gets created_at
+ *
+ * @return string|null
+ */
+ public function getCreatedAt()
+ {
+ return $this->container['created_at'];
+ }
+
+ /**
+ * Sets created_at
+ *
+ * @param string|null $created_at The timestamp when the custom object was created
+ *
+ * @return self
+ */
+ public function setCreatedAt($created_at)
+ {
+ $this->container['created_at'] = $created_at;
+
+ return $this;
+ }
+
+ /**
+ * Gets pass_through
+ *
+ * @return object[]|null
+ */
+ public function getPassThrough()
+ {
+ return $this->container['pass_through'];
+ }
+
+ /**
+ * Sets pass_through
+ *
+ * @param object[]|null $pass_through The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
+ *
+ * @return self
+ */
+ public function setPassThrough($pass_through)
+ {
+ $this->container['pass_through'] = $pass_through;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/CustomObjectFields.php b/src/gen/lib/Model/CustomObjectFields.php
new file mode 100644
index 000000000..b66b346a0
--- /dev/null
+++ b/src/gen/lib/Model/CustomObjectFields.php
@@ -0,0 +1,351 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class CustomObjectFields implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'CustomObject_fields';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'name' => 'string',
+ 'value' => 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'name' => null,
+ 'value' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'name' => 'name',
+ 'value' => 'value'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'name' => 'setName',
+ 'value' => 'setValue'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'name' => 'getName',
+ 'value' => 'getValue'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['name'] = $data['name'] ?? null;
+ $this->container['value'] = $data['value'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets name
+ *
+ * @return string|null
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string|null $name name
+ *
+ * @return self
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets value
+ *
+ * @return string|null
+ */
+ public function getValue()
+ {
+ return $this->container['value'];
+ }
+
+ /**
+ * Sets value
+ *
+ * @param string|null $value value
+ *
+ * @return self
+ */
+ public function setValue($value)
+ {
+ $this->container['value'] = $value;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/CustomObjectSchema.php b/src/gen/lib/Model/CustomObjectSchema.php
new file mode 100644
index 000000000..018f42ed2
--- /dev/null
+++ b/src/gen/lib/Model/CustomObjectSchema.php
@@ -0,0 +1,621 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class CustomObjectSchema implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'CustomObjectSchema';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'id' => 'string',
+ 'name' => 'string',
+ 'description' => 'string',
+ 'fields' => '\Apideck\Client\Model\CustomObjectSchemaFields[]',
+ 'visible' => 'bool',
+ 'active' => 'bool',
+ 'created_by' => 'string',
+ 'updated_by' => 'string',
+ 'updated_at' => 'string',
+ 'created_at' => 'string',
+ 'pass_through' => 'object[]'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'id' => null,
+ 'name' => null,
+ 'description' => null,
+ 'fields' => null,
+ 'visible' => null,
+ 'active' => null,
+ 'created_by' => null,
+ 'updated_by' => null,
+ 'updated_at' => null,
+ 'created_at' => null,
+ 'pass_through' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id',
+ 'name' => 'name',
+ 'description' => 'description',
+ 'fields' => 'fields',
+ 'visible' => 'visible',
+ 'active' => 'active',
+ 'created_by' => 'created_by',
+ 'updated_by' => 'updated_by',
+ 'updated_at' => 'updated_at',
+ 'created_at' => 'created_at',
+ 'pass_through' => 'pass_through'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId',
+ 'name' => 'setName',
+ 'description' => 'setDescription',
+ 'fields' => 'setFields',
+ 'visible' => 'setVisible',
+ 'active' => 'setActive',
+ 'created_by' => 'setCreatedBy',
+ 'updated_by' => 'setUpdatedBy',
+ 'updated_at' => 'setUpdatedAt',
+ 'created_at' => 'setCreatedAt',
+ 'pass_through' => 'setPassThrough'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId',
+ 'name' => 'getName',
+ 'description' => 'getDescription',
+ 'fields' => 'getFields',
+ 'visible' => 'getVisible',
+ 'active' => 'getActive',
+ 'created_by' => 'getCreatedBy',
+ 'updated_by' => 'getUpdatedBy',
+ 'updated_at' => 'getUpdatedAt',
+ 'created_at' => 'getCreatedAt',
+ 'pass_through' => 'getPassThrough'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = $data['id'] ?? null;
+ $this->container['name'] = $data['name'] ?? null;
+ $this->container['description'] = $data['description'] ?? null;
+ $this->container['fields'] = $data['fields'] ?? null;
+ $this->container['visible'] = $data['visible'] ?? null;
+ $this->container['active'] = $data['active'] ?? null;
+ $this->container['created_by'] = $data['created_by'] ?? null;
+ $this->container['updated_by'] = $data['updated_by'] ?? null;
+ $this->container['updated_at'] = $data['updated_at'] ?? null;
+ $this->container['created_at'] = $data['created_at'] ?? null;
+ $this->container['pass_through'] = $data['pass_through'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return string|null
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param string|null $id The unique identifier of the custom object schema
+ *
+ * @return self
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets name
+ *
+ * @return string|null
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string|null $name The name of the custom object schema
+ *
+ * @return self
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets description
+ *
+ * @return string|null
+ */
+ public function getDescription()
+ {
+ return $this->container['description'];
+ }
+
+ /**
+ * Sets description
+ *
+ * @param string|null $description The description of the custom object schema
+ *
+ * @return self
+ */
+ public function setDescription($description)
+ {
+ $this->container['description'] = $description;
+
+ return $this;
+ }
+
+ /**
+ * Gets fields
+ *
+ * @return \Apideck\Client\Model\CustomObjectSchemaFields[]|null
+ */
+ public function getFields()
+ {
+ return $this->container['fields'];
+ }
+
+ /**
+ * Sets fields
+ *
+ * @param \Apideck\Client\Model\CustomObjectSchemaFields[]|null $fields The fields defined in the schema
+ *
+ * @return self
+ */
+ public function setFields($fields)
+ {
+ $this->container['fields'] = $fields;
+
+ return $this;
+ }
+
+ /**
+ * Gets visible
+ *
+ * @return bool|null
+ */
+ public function getVisible()
+ {
+ return $this->container['visible'];
+ }
+
+ /**
+ * Sets visible
+ *
+ * @param bool|null $visible Whether the custom object schema is visible in the UI
+ *
+ * @return self
+ */
+ public function setVisible($visible)
+ {
+ $this->container['visible'] = $visible;
+
+ return $this;
+ }
+
+ /**
+ * Gets active
+ *
+ * @return bool|null
+ */
+ public function getActive()
+ {
+ return $this->container['active'];
+ }
+
+ /**
+ * Sets active
+ *
+ * @param bool|null $active Whether the custom object schema is active
+ *
+ * @return self
+ */
+ public function setActive($active)
+ {
+ $this->container['active'] = $active;
+
+ return $this;
+ }
+
+ /**
+ * Gets created_by
+ *
+ * @return string|null
+ */
+ public function getCreatedBy()
+ {
+ return $this->container['created_by'];
+ }
+
+ /**
+ * Sets created_by
+ *
+ * @param string|null $created_by The ID of the user who created the custom object schema
+ *
+ * @return self
+ */
+ public function setCreatedBy($created_by)
+ {
+ $this->container['created_by'] = $created_by;
+
+ return $this;
+ }
+
+ /**
+ * Gets updated_by
+ *
+ * @return string|null
+ */
+ public function getUpdatedBy()
+ {
+ return $this->container['updated_by'];
+ }
+
+ /**
+ * Sets updated_by
+ *
+ * @param string|null $updated_by The ID of the user who last updated the custom object schema
+ *
+ * @return self
+ */
+ public function setUpdatedBy($updated_by)
+ {
+ $this->container['updated_by'] = $updated_by;
+
+ return $this;
+ }
+
+ /**
+ * Gets updated_at
+ *
+ * @return string|null
+ */
+ public function getUpdatedAt()
+ {
+ return $this->container['updated_at'];
+ }
+
+ /**
+ * Sets updated_at
+ *
+ * @param string|null $updated_at The timestamp when the custom object schema was last updated
+ *
+ * @return self
+ */
+ public function setUpdatedAt($updated_at)
+ {
+ $this->container['updated_at'] = $updated_at;
+
+ return $this;
+ }
+
+ /**
+ * Gets created_at
+ *
+ * @return string|null
+ */
+ public function getCreatedAt()
+ {
+ return $this->container['created_at'];
+ }
+
+ /**
+ * Sets created_at
+ *
+ * @param string|null $created_at The timestamp when the custom object schema was created
+ *
+ * @return self
+ */
+ public function setCreatedAt($created_at)
+ {
+ $this->container['created_at'] = $created_at;
+
+ return $this;
+ }
+
+ /**
+ * Gets pass_through
+ *
+ * @return object[]|null
+ */
+ public function getPassThrough()
+ {
+ return $this->container['pass_through'];
+ }
+
+ /**
+ * Sets pass_through
+ *
+ * @param object[]|null $pass_through The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
+ *
+ * @return self
+ */
+ public function setPassThrough($pass_through)
+ {
+ $this->container['pass_through'] = $pass_through;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/CustomObjectSchemaFields.php b/src/gen/lib/Model/CustomObjectSchemaFields.php
new file mode 100644
index 000000000..83782db6d
--- /dev/null
+++ b/src/gen/lib/Model/CustomObjectSchemaFields.php
@@ -0,0 +1,555 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class CustomObjectSchemaFields implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'CustomObjectSchema_fields';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'id' => 'string',
+ 'name' => 'string',
+ 'description' => 'string',
+ 'type' => 'string',
+ 'required' => 'bool',
+ 'options' => '\Apideck\Client\Model\CustomObjectSchemaOptions[]',
+ 'default_value' => 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'id' => null,
+ 'name' => null,
+ 'description' => null,
+ 'type' => null,
+ 'required' => null,
+ 'options' => null,
+ 'default_value' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id',
+ 'name' => 'name',
+ 'description' => 'description',
+ 'type' => 'type',
+ 'required' => 'required',
+ 'options' => 'options',
+ 'default_value' => 'default_value'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId',
+ 'name' => 'setName',
+ 'description' => 'setDescription',
+ 'type' => 'setType',
+ 'required' => 'setRequired',
+ 'options' => 'setOptions',
+ 'default_value' => 'setDefaultValue'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId',
+ 'name' => 'getName',
+ 'description' => 'getDescription',
+ 'type' => 'getType',
+ 'required' => 'getRequired',
+ 'options' => 'getOptions',
+ 'default_value' => 'getDefaultValue'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+ const TYPE_STRING = 'string';
+ const TYPE_NUMBER = 'number';
+ const TYPE_INTEGER = 'integer';
+ const TYPE_BOOLEAN = 'boolean';
+ const TYPE_DATE = 'date';
+ const TYPE_DATETIME = 'datetime';
+ const TYPE_CURRENCY = 'currency';
+ const TYPE_EMAIL = 'email';
+ const TYPE_PHONE = 'phone';
+ const TYPE_REFERENCE = 'reference';
+ const TYPE_SELECT = 'select';
+ const TYPE_MULTISELECT = 'multiselect';
+
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getTypeAllowableValues()
+ {
+ return [
+ self::TYPE_STRING,
+ self::TYPE_NUMBER,
+ self::TYPE_INTEGER,
+ self::TYPE_BOOLEAN,
+ self::TYPE_DATE,
+ self::TYPE_DATETIME,
+ self::TYPE_CURRENCY,
+ self::TYPE_EMAIL,
+ self::TYPE_PHONE,
+ self::TYPE_REFERENCE,
+ self::TYPE_SELECT,
+ self::TYPE_MULTISELECT,
+ ];
+ }
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = $data['id'] ?? null;
+ $this->container['name'] = $data['name'] ?? null;
+ $this->container['description'] = $data['description'] ?? null;
+ $this->container['type'] = $data['type'] ?? null;
+ $this->container['required'] = $data['required'] ?? null;
+ $this->container['options'] = $data['options'] ?? null;
+ $this->container['default_value'] = $data['default_value'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ $allowedValues = $this->getTypeAllowableValues();
+ if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value '%s' for 'type', must be one of '%s'",
+ $this->container['type'],
+ implode("', '", $allowedValues)
+ );
+ }
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return string|null
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param string|null $id id
+ *
+ * @return self
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets name
+ *
+ * @return string|null
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string|null $name name
+ *
+ * @return self
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets description
+ *
+ * @return string|null
+ */
+ public function getDescription()
+ {
+ return $this->container['description'];
+ }
+
+ /**
+ * Sets description
+ *
+ * @param string|null $description description
+ *
+ * @return self
+ */
+ public function setDescription($description)
+ {
+ $this->container['description'] = $description;
+
+ return $this;
+ }
+
+ /**
+ * Gets type
+ *
+ * @return string|null
+ */
+ public function getType()
+ {
+ return $this->container['type'];
+ }
+
+ /**
+ * Sets type
+ *
+ * @param string|null $type type
+ *
+ * @return self
+ */
+ public function setType($type)
+ {
+ $allowedValues = $this->getTypeAllowableValues();
+ if (!is_null($type) && !in_array($type, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value '%s' for 'type', must be one of '%s'",
+ $type,
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['type'] = $type;
+
+ return $this;
+ }
+
+ /**
+ * Gets required
+ *
+ * @return bool|null
+ */
+ public function getRequired()
+ {
+ return $this->container['required'];
+ }
+
+ /**
+ * Sets required
+ *
+ * @param bool|null $required required
+ *
+ * @return self
+ */
+ public function setRequired($required)
+ {
+ $this->container['required'] = $required;
+
+ return $this;
+ }
+
+ /**
+ * Gets options
+ *
+ * @return \Apideck\Client\Model\CustomObjectSchemaOptions[]|null
+ */
+ public function getOptions()
+ {
+ return $this->container['options'];
+ }
+
+ /**
+ * Sets options
+ *
+ * @param \Apideck\Client\Model\CustomObjectSchemaOptions[]|null $options Options for select and multiselect types
+ *
+ * @return self
+ */
+ public function setOptions($options)
+ {
+ $this->container['options'] = $options;
+
+ return $this;
+ }
+
+ /**
+ * Gets default_value
+ *
+ * @return string|null
+ */
+ public function getDefaultValue()
+ {
+ return $this->container['default_value'];
+ }
+
+ /**
+ * Sets default_value
+ *
+ * @param string|null $default_value Default value for the field
+ *
+ * @return self
+ */
+ public function setDefaultValue($default_value)
+ {
+ $this->container['default_value'] = $default_value;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/CustomObjectSchemaOptions.php b/src/gen/lib/Model/CustomObjectSchemaOptions.php
new file mode 100644
index 000000000..771d093b6
--- /dev/null
+++ b/src/gen/lib/Model/CustomObjectSchemaOptions.php
@@ -0,0 +1,351 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class CustomObjectSchemaOptions implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'CustomObjectSchema_options';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'value' => 'string',
+ 'label' => 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'value' => null,
+ 'label' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'value' => 'value',
+ 'label' => 'label'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'value' => 'setValue',
+ 'label' => 'setLabel'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'value' => 'getValue',
+ 'label' => 'getLabel'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['value'] = $data['value'] ?? null;
+ $this->container['label'] = $data['label'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets value
+ *
+ * @return string|null
+ */
+ public function getValue()
+ {
+ return $this->container['value'];
+ }
+
+ /**
+ * Sets value
+ *
+ * @param string|null $value value
+ *
+ * @return self
+ */
+ public function setValue($value)
+ {
+ $this->container['value'] = $value;
+
+ return $this;
+ }
+
+ /**
+ * Gets label
+ *
+ * @return string|null
+ */
+ public function getLabel()
+ {
+ return $this->container['label'];
+ }
+
+ /**
+ * Sets label
+ *
+ * @param string|null $label label
+ *
+ * @return self
+ */
+ public function setLabel($label)
+ {
+ $this->container['label'] = $label;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/CustomObjectSchemasSort.php b/src/gen/lib/Model/CustomObjectSchemasSort.php
new file mode 100644
index 000000000..fb25be464
--- /dev/null
+++ b/src/gen/lib/Model/CustomObjectSchemasSort.php
@@ -0,0 +1,387 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class CustomObjectSchemasSort implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'CustomObjectSchemasSort';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'by' => 'string',
+ 'direction' => '\Apideck\Client\Model\SortDirection'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'by' => null,
+ 'direction' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'by' => 'by',
+ 'direction' => 'direction'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'by' => 'setBy',
+ 'direction' => 'setDirection'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'by' => 'getBy',
+ 'direction' => 'getDirection'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+ const BY_CREATED_AT = 'created_at';
+ const BY_UPDATED_AT = 'updated_at';
+ const BY_NAME = 'name';
+
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getByAllowableValues()
+ {
+ return [
+ self::BY_CREATED_AT,
+ self::BY_UPDATED_AT,
+ self::BY_NAME,
+ ];
+ }
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['by'] = $data['by'] ?? null;
+ $this->container['direction'] = $data['direction'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ $allowedValues = $this->getByAllowableValues();
+ if (!is_null($this->container['by']) && !in_array($this->container['by'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value '%s' for 'by', must be one of '%s'",
+ $this->container['by'],
+ implode("', '", $allowedValues)
+ );
+ }
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets by
+ *
+ * @return string|null
+ */
+ public function getBy()
+ {
+ return $this->container['by'];
+ }
+
+ /**
+ * Sets by
+ *
+ * @param string|null $by The field on which to sort the Custom Object Schemas
+ *
+ * @return self
+ */
+ public function setBy($by)
+ {
+ $allowedValues = $this->getByAllowableValues();
+ if (!is_null($by) && !in_array($by, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value '%s' for 'by', must be one of '%s'",
+ $by,
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['by'] = $by;
+
+ return $this;
+ }
+
+ /**
+ * Gets direction
+ *
+ * @return \Apideck\Client\Model\SortDirection|null
+ */
+ public function getDirection()
+ {
+ return $this->container['direction'];
+ }
+
+ /**
+ * Sets direction
+ *
+ * @param \Apideck\Client\Model\SortDirection|null $direction direction
+ *
+ * @return self
+ */
+ public function setDirection($direction)
+ {
+ $this->container['direction'] = $direction;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/CustomObjectsSort.php b/src/gen/lib/Model/CustomObjectsSort.php
new file mode 100644
index 000000000..7a0ae368f
--- /dev/null
+++ b/src/gen/lib/Model/CustomObjectsSort.php
@@ -0,0 +1,387 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class CustomObjectsSort implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'CustomObjectsSort';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'by' => 'string',
+ 'direction' => '\Apideck\Client\Model\SortDirection'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'by' => null,
+ 'direction' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'by' => 'by',
+ 'direction' => 'direction'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'by' => 'setBy',
+ 'direction' => 'setDirection'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'by' => 'getBy',
+ 'direction' => 'getDirection'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+ const BY_CREATED_AT = 'created_at';
+ const BY_UPDATED_AT = 'updated_at';
+ const BY_NAME = 'name';
+
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getByAllowableValues()
+ {
+ return [
+ self::BY_CREATED_AT,
+ self::BY_UPDATED_AT,
+ self::BY_NAME,
+ ];
+ }
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['by'] = $data['by'] ?? null;
+ $this->container['direction'] = $data['direction'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ $allowedValues = $this->getByAllowableValues();
+ if (!is_null($this->container['by']) && !in_array($this->container['by'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value '%s' for 'by', must be one of '%s'",
+ $this->container['by'],
+ implode("', '", $allowedValues)
+ );
+ }
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets by
+ *
+ * @return string|null
+ */
+ public function getBy()
+ {
+ return $this->container['by'];
+ }
+
+ /**
+ * Sets by
+ *
+ * @param string|null $by The field on which to sort the Custom Objects
+ *
+ * @return self
+ */
+ public function setBy($by)
+ {
+ $allowedValues = $this->getByAllowableValues();
+ if (!is_null($by) && !in_array($by, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value '%s' for 'by', must be one of '%s'",
+ $by,
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['by'] = $by;
+
+ return $this;
+ }
+
+ /**
+ * Gets direction
+ *
+ * @return \Apideck\Client\Model\SortDirection|null
+ */
+ public function getDirection()
+ {
+ return $this->container['direction'];
+ }
+
+ /**
+ * Sets direction
+ *
+ * @param \Apideck\Client\Model\SortDirection|null $direction direction
+ *
+ * @return self
+ */
+ public function setDirection($direction)
+ {
+ $this->container['direction'] = $direction;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/Customer.php b/src/gen/lib/Model/Customer.php
index 09b7431ed..e576709b8 100644
--- a/src/gen/lib/Model/Customer.php
+++ b/src/gen/lib/Model/Customer.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -88,7 +88,7 @@ class Customer implements ModelInterface, ArrayAccess, \JsonSerializable
'payment_method' => 'string',
'channel' => 'string',
'custom_fields' => '\Apideck\Client\Model\CustomField[]',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'updated_by' => 'string',
'created_by' => 'string',
'updated_at' => '\DateTime',
@@ -1128,7 +1128,7 @@ public function setCustomFields($custom_fields)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -1138,7 +1138,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/CustomersFilter.php b/src/gen/lib/Model/CustomersFilter.php
index 5ffc3c9b7..3ac4402fc 100644
--- a/src/gen/lib/Model/CustomersFilter.php
+++ b/src/gen/lib/Model/CustomersFilter.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/CustomersSort.php b/src/gen/lib/Model/CustomersSort.php
index a41e5a4a4..ab3fb8ced 100644
--- a/src/gen/lib/Model/CustomersSort.php
+++ b/src/gen/lib/Model/CustomersSort.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Deduction.php b/src/gen/lib/Model/Deduction.php
index 0137f8da0..c249b29aa 100644
--- a/src/gen/lib/Model/Deduction.php
+++ b/src/gen/lib/Model/Deduction.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteAccountingDepartmentResponse.php b/src/gen/lib/Model/DeleteAccountingDepartmentResponse.php
index c3b68353c..30c7efd82 100644
--- a/src/gen/lib/Model/DeleteAccountingDepartmentResponse.php
+++ b/src/gen/lib/Model/DeleteAccountingDepartmentResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteAccountingLocationResponse.php b/src/gen/lib/Model/DeleteAccountingLocationResponse.php
index 3110065e1..933fa9771 100644
--- a/src/gen/lib/Model/DeleteAccountingLocationResponse.php
+++ b/src/gen/lib/Model/DeleteAccountingLocationResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteActivityResponse.php b/src/gen/lib/Model/DeleteActivityResponse.php
index f6c3f0339..d60f0fac8 100644
--- a/src/gen/lib/Model/DeleteActivityResponse.php
+++ b/src/gen/lib/Model/DeleteActivityResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteApplicantResponse.php b/src/gen/lib/Model/DeleteApplicantResponse.php
index 7c14de523..2a4fa2169 100644
--- a/src/gen/lib/Model/DeleteApplicantResponse.php
+++ b/src/gen/lib/Model/DeleteApplicantResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteApplicationResponse.php b/src/gen/lib/Model/DeleteApplicationResponse.php
index 2a71db188..0de9bd1c6 100644
--- a/src/gen/lib/Model/DeleteApplicationResponse.php
+++ b/src/gen/lib/Model/DeleteApplicationResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteAttachmentResponse.php b/src/gen/lib/Model/DeleteAttachmentResponse.php
index a3846d557..99fc4edac 100644
--- a/src/gen/lib/Model/DeleteAttachmentResponse.php
+++ b/src/gen/lib/Model/DeleteAttachmentResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteBankFeedAccountResponse.php b/src/gen/lib/Model/DeleteBankFeedAccountResponse.php
new file mode 100644
index 000000000..22b43293c
--- /dev/null
+++ b/src/gen/lib/Model/DeleteBankFeedAccountResponse.php
@@ -0,0 +1,519 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class DeleteBankFeedAccountResponse implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'DeleteBankFeedAccountResponse';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'status_code' => 'int',
+ 'status' => 'string',
+ 'service' => 'string',
+ 'resource' => 'string',
+ 'operation' => 'string',
+ 'data' => '\Apideck\Client\Model\UnifiedId',
+ '_raw' => 'array'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'status_code' => null,
+ 'status' => null,
+ 'service' => null,
+ 'resource' => null,
+ 'operation' => null,
+ 'data' => null,
+ '_raw' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'status_code' => 'status_code',
+ 'status' => 'status',
+ 'service' => 'service',
+ 'resource' => 'resource',
+ 'operation' => 'operation',
+ 'data' => 'data',
+ '_raw' => '_raw'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'status_code' => 'setStatusCode',
+ 'status' => 'setStatus',
+ 'service' => 'setService',
+ 'resource' => 'setResource',
+ 'operation' => 'setOperation',
+ 'data' => 'setData',
+ '_raw' => 'setRaw'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'status_code' => 'getStatusCode',
+ 'status' => 'getStatus',
+ 'service' => 'getService',
+ 'resource' => 'getResource',
+ 'operation' => 'getOperation',
+ 'data' => 'getData',
+ '_raw' => 'getRaw'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['status_code'] = $data['status_code'] ?? null;
+ $this->container['status'] = $data['status'] ?? null;
+ $this->container['service'] = $data['service'] ?? null;
+ $this->container['resource'] = $data['resource'] ?? null;
+ $this->container['operation'] = $data['operation'] ?? null;
+ $this->container['data'] = $data['data'] ?? null;
+ $this->container['_raw'] = $data['_raw'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['status_code'] === null) {
+ $invalidProperties[] = "'status_code' can't be null";
+ }
+ if ($this->container['status'] === null) {
+ $invalidProperties[] = "'status' can't be null";
+ }
+ if ($this->container['service'] === null) {
+ $invalidProperties[] = "'service' can't be null";
+ }
+ if ($this->container['resource'] === null) {
+ $invalidProperties[] = "'resource' can't be null";
+ }
+ if ($this->container['operation'] === null) {
+ $invalidProperties[] = "'operation' can't be null";
+ }
+ if ($this->container['data'] === null) {
+ $invalidProperties[] = "'data' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets status_code
+ *
+ * @return int
+ */
+ public function getStatusCode()
+ {
+ return $this->container['status_code'];
+ }
+
+ /**
+ * Sets status_code
+ *
+ * @param int $status_code HTTP Response Status Code
+ *
+ * @return self
+ */
+ public function setStatusCode($status_code)
+ {
+ $this->container['status_code'] = $status_code;
+
+ return $this;
+ }
+
+ /**
+ * Gets status
+ *
+ * @return string
+ */
+ public function getStatus()
+ {
+ return $this->container['status'];
+ }
+
+ /**
+ * Sets status
+ *
+ * @param string $status HTTP Response Status
+ *
+ * @return self
+ */
+ public function setStatus($status)
+ {
+ $this->container['status'] = $status;
+
+ return $this;
+ }
+
+ /**
+ * Gets service
+ *
+ * @return string
+ */
+ public function getService()
+ {
+ return $this->container['service'];
+ }
+
+ /**
+ * Sets service
+ *
+ * @param string $service Apideck ID of service provider
+ *
+ * @return self
+ */
+ public function setService($service)
+ {
+ $this->container['service'] = $service;
+
+ return $this;
+ }
+
+ /**
+ * Gets resource
+ *
+ * @return string
+ */
+ public function getResource()
+ {
+ return $this->container['resource'];
+ }
+
+ /**
+ * Sets resource
+ *
+ * @param string $resource Unified API resource name
+ *
+ * @return self
+ */
+ public function setResource($resource)
+ {
+ $this->container['resource'] = $resource;
+
+ return $this;
+ }
+
+ /**
+ * Gets operation
+ *
+ * @return string
+ */
+ public function getOperation()
+ {
+ return $this->container['operation'];
+ }
+
+ /**
+ * Sets operation
+ *
+ * @param string $operation Operation performed
+ *
+ * @return self
+ */
+ public function setOperation($operation)
+ {
+ $this->container['operation'] = $operation;
+
+ return $this;
+ }
+
+ /**
+ * Gets data
+ *
+ * @return \Apideck\Client\Model\UnifiedId
+ */
+ public function getData()
+ {
+ return $this->container['data'];
+ }
+
+ /**
+ * Sets data
+ *
+ * @param \Apideck\Client\Model\UnifiedId $data data
+ *
+ * @return self
+ */
+ public function setData($data)
+ {
+ $this->container['data'] = $data;
+
+ return $this;
+ }
+
+ /**
+ * Gets _raw
+ *
+ * @return array|null
+ */
+ public function getRaw()
+ {
+ return $this->container['_raw'];
+ }
+
+ /**
+ * Sets _raw
+ *
+ * @param array|null $_raw Raw response from the integration when raw=true query param is provided
+ *
+ * @return self
+ */
+ public function setRaw($_raw)
+ {
+ $this->container['_raw'] = $_raw;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/DeleteBankFeedStatementResponse.php b/src/gen/lib/Model/DeleteBankFeedStatementResponse.php
new file mode 100644
index 000000000..2259e17a3
--- /dev/null
+++ b/src/gen/lib/Model/DeleteBankFeedStatementResponse.php
@@ -0,0 +1,519 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class DeleteBankFeedStatementResponse implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'DeleteBankFeedStatementResponse';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'status_code' => 'int',
+ 'status' => 'string',
+ 'service' => 'string',
+ 'resource' => 'string',
+ 'operation' => 'string',
+ 'data' => '\Apideck\Client\Model\UnifiedId',
+ '_raw' => 'array'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'status_code' => null,
+ 'status' => null,
+ 'service' => null,
+ 'resource' => null,
+ 'operation' => null,
+ 'data' => null,
+ '_raw' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'status_code' => 'status_code',
+ 'status' => 'status',
+ 'service' => 'service',
+ 'resource' => 'resource',
+ 'operation' => 'operation',
+ 'data' => 'data',
+ '_raw' => '_raw'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'status_code' => 'setStatusCode',
+ 'status' => 'setStatus',
+ 'service' => 'setService',
+ 'resource' => 'setResource',
+ 'operation' => 'setOperation',
+ 'data' => 'setData',
+ '_raw' => 'setRaw'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'status_code' => 'getStatusCode',
+ 'status' => 'getStatus',
+ 'service' => 'getService',
+ 'resource' => 'getResource',
+ 'operation' => 'getOperation',
+ 'data' => 'getData',
+ '_raw' => 'getRaw'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['status_code'] = $data['status_code'] ?? null;
+ $this->container['status'] = $data['status'] ?? null;
+ $this->container['service'] = $data['service'] ?? null;
+ $this->container['resource'] = $data['resource'] ?? null;
+ $this->container['operation'] = $data['operation'] ?? null;
+ $this->container['data'] = $data['data'] ?? null;
+ $this->container['_raw'] = $data['_raw'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['status_code'] === null) {
+ $invalidProperties[] = "'status_code' can't be null";
+ }
+ if ($this->container['status'] === null) {
+ $invalidProperties[] = "'status' can't be null";
+ }
+ if ($this->container['service'] === null) {
+ $invalidProperties[] = "'service' can't be null";
+ }
+ if ($this->container['resource'] === null) {
+ $invalidProperties[] = "'resource' can't be null";
+ }
+ if ($this->container['operation'] === null) {
+ $invalidProperties[] = "'operation' can't be null";
+ }
+ if ($this->container['data'] === null) {
+ $invalidProperties[] = "'data' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets status_code
+ *
+ * @return int
+ */
+ public function getStatusCode()
+ {
+ return $this->container['status_code'];
+ }
+
+ /**
+ * Sets status_code
+ *
+ * @param int $status_code HTTP Response Status Code
+ *
+ * @return self
+ */
+ public function setStatusCode($status_code)
+ {
+ $this->container['status_code'] = $status_code;
+
+ return $this;
+ }
+
+ /**
+ * Gets status
+ *
+ * @return string
+ */
+ public function getStatus()
+ {
+ return $this->container['status'];
+ }
+
+ /**
+ * Sets status
+ *
+ * @param string $status HTTP Response Status
+ *
+ * @return self
+ */
+ public function setStatus($status)
+ {
+ $this->container['status'] = $status;
+
+ return $this;
+ }
+
+ /**
+ * Gets service
+ *
+ * @return string
+ */
+ public function getService()
+ {
+ return $this->container['service'];
+ }
+
+ /**
+ * Sets service
+ *
+ * @param string $service Apideck ID of service provider
+ *
+ * @return self
+ */
+ public function setService($service)
+ {
+ $this->container['service'] = $service;
+
+ return $this;
+ }
+
+ /**
+ * Gets resource
+ *
+ * @return string
+ */
+ public function getResource()
+ {
+ return $this->container['resource'];
+ }
+
+ /**
+ * Sets resource
+ *
+ * @param string $resource Unified API resource name
+ *
+ * @return self
+ */
+ public function setResource($resource)
+ {
+ $this->container['resource'] = $resource;
+
+ return $this;
+ }
+
+ /**
+ * Gets operation
+ *
+ * @return string
+ */
+ public function getOperation()
+ {
+ return $this->container['operation'];
+ }
+
+ /**
+ * Sets operation
+ *
+ * @param string $operation Operation performed
+ *
+ * @return self
+ */
+ public function setOperation($operation)
+ {
+ $this->container['operation'] = $operation;
+
+ return $this;
+ }
+
+ /**
+ * Gets data
+ *
+ * @return \Apideck\Client\Model\UnifiedId
+ */
+ public function getData()
+ {
+ return $this->container['data'];
+ }
+
+ /**
+ * Sets data
+ *
+ * @param \Apideck\Client\Model\UnifiedId $data data
+ *
+ * @return self
+ */
+ public function setData($data)
+ {
+ $this->container['data'] = $data;
+
+ return $this;
+ }
+
+ /**
+ * Gets _raw
+ *
+ * @return array|null
+ */
+ public function getRaw()
+ {
+ return $this->container['_raw'];
+ }
+
+ /**
+ * Sets _raw
+ *
+ * @param array|null $_raw Raw response from the integration when raw=true query param is provided
+ *
+ * @return self
+ */
+ public function setRaw($_raw)
+ {
+ $this->container['_raw'] = $_raw;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/DeleteBillPaymentResponse.php b/src/gen/lib/Model/DeleteBillPaymentResponse.php
index 92daa2e79..bfa465913 100644
--- a/src/gen/lib/Model/DeleteBillPaymentResponse.php
+++ b/src/gen/lib/Model/DeleteBillPaymentResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteBillResponse.php b/src/gen/lib/Model/DeleteBillResponse.php
index 00ad2481c..d1a5da006 100644
--- a/src/gen/lib/Model/DeleteBillResponse.php
+++ b/src/gen/lib/Model/DeleteBillResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteCommentResponse.php b/src/gen/lib/Model/DeleteCommentResponse.php
index 5d73a74f5..d2119549e 100644
--- a/src/gen/lib/Model/DeleteCommentResponse.php
+++ b/src/gen/lib/Model/DeleteCommentResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteCompanyResponse.php b/src/gen/lib/Model/DeleteCompanyResponse.php
index 531297e2d..b30575ea8 100644
--- a/src/gen/lib/Model/DeleteCompanyResponse.php
+++ b/src/gen/lib/Model/DeleteCompanyResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteConsumerResponse.php b/src/gen/lib/Model/DeleteConsumerResponse.php
index 5deaa034b..f1d400acc 100644
--- a/src/gen/lib/Model/DeleteConsumerResponse.php
+++ b/src/gen/lib/Model/DeleteConsumerResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteContactResponse.php b/src/gen/lib/Model/DeleteContactResponse.php
index c52a744bf..9b6392954 100644
--- a/src/gen/lib/Model/DeleteContactResponse.php
+++ b/src/gen/lib/Model/DeleteContactResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteCreditNoteResponse.php b/src/gen/lib/Model/DeleteCreditNoteResponse.php
index 5dc253819..8af800430 100644
--- a/src/gen/lib/Model/DeleteCreditNoteResponse.php
+++ b/src/gen/lib/Model/DeleteCreditNoteResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteCustomObjectResponse.php b/src/gen/lib/Model/DeleteCustomObjectResponse.php
new file mode 100644
index 000000000..ffec6ff96
--- /dev/null
+++ b/src/gen/lib/Model/DeleteCustomObjectResponse.php
@@ -0,0 +1,519 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class DeleteCustomObjectResponse implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'DeleteCustomObjectResponse';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'status_code' => 'int',
+ 'status' => 'string',
+ 'service' => 'string',
+ 'resource' => 'string',
+ 'operation' => 'string',
+ 'data' => '\Apideck\Client\Model\UnifiedId',
+ '_raw' => 'array'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'status_code' => null,
+ 'status' => null,
+ 'service' => null,
+ 'resource' => null,
+ 'operation' => null,
+ 'data' => null,
+ '_raw' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'status_code' => 'status_code',
+ 'status' => 'status',
+ 'service' => 'service',
+ 'resource' => 'resource',
+ 'operation' => 'operation',
+ 'data' => 'data',
+ '_raw' => '_raw'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'status_code' => 'setStatusCode',
+ 'status' => 'setStatus',
+ 'service' => 'setService',
+ 'resource' => 'setResource',
+ 'operation' => 'setOperation',
+ 'data' => 'setData',
+ '_raw' => 'setRaw'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'status_code' => 'getStatusCode',
+ 'status' => 'getStatus',
+ 'service' => 'getService',
+ 'resource' => 'getResource',
+ 'operation' => 'getOperation',
+ 'data' => 'getData',
+ '_raw' => 'getRaw'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['status_code'] = $data['status_code'] ?? null;
+ $this->container['status'] = $data['status'] ?? null;
+ $this->container['service'] = $data['service'] ?? null;
+ $this->container['resource'] = $data['resource'] ?? null;
+ $this->container['operation'] = $data['operation'] ?? null;
+ $this->container['data'] = $data['data'] ?? null;
+ $this->container['_raw'] = $data['_raw'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['status_code'] === null) {
+ $invalidProperties[] = "'status_code' can't be null";
+ }
+ if ($this->container['status'] === null) {
+ $invalidProperties[] = "'status' can't be null";
+ }
+ if ($this->container['service'] === null) {
+ $invalidProperties[] = "'service' can't be null";
+ }
+ if ($this->container['resource'] === null) {
+ $invalidProperties[] = "'resource' can't be null";
+ }
+ if ($this->container['operation'] === null) {
+ $invalidProperties[] = "'operation' can't be null";
+ }
+ if ($this->container['data'] === null) {
+ $invalidProperties[] = "'data' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets status_code
+ *
+ * @return int
+ */
+ public function getStatusCode()
+ {
+ return $this->container['status_code'];
+ }
+
+ /**
+ * Sets status_code
+ *
+ * @param int $status_code HTTP Response Status Code
+ *
+ * @return self
+ */
+ public function setStatusCode($status_code)
+ {
+ $this->container['status_code'] = $status_code;
+
+ return $this;
+ }
+
+ /**
+ * Gets status
+ *
+ * @return string
+ */
+ public function getStatus()
+ {
+ return $this->container['status'];
+ }
+
+ /**
+ * Sets status
+ *
+ * @param string $status HTTP Response Status
+ *
+ * @return self
+ */
+ public function setStatus($status)
+ {
+ $this->container['status'] = $status;
+
+ return $this;
+ }
+
+ /**
+ * Gets service
+ *
+ * @return string
+ */
+ public function getService()
+ {
+ return $this->container['service'];
+ }
+
+ /**
+ * Sets service
+ *
+ * @param string $service Apideck ID of service provider
+ *
+ * @return self
+ */
+ public function setService($service)
+ {
+ $this->container['service'] = $service;
+
+ return $this;
+ }
+
+ /**
+ * Gets resource
+ *
+ * @return string
+ */
+ public function getResource()
+ {
+ return $this->container['resource'];
+ }
+
+ /**
+ * Sets resource
+ *
+ * @param string $resource Unified API resource name
+ *
+ * @return self
+ */
+ public function setResource($resource)
+ {
+ $this->container['resource'] = $resource;
+
+ return $this;
+ }
+
+ /**
+ * Gets operation
+ *
+ * @return string
+ */
+ public function getOperation()
+ {
+ return $this->container['operation'];
+ }
+
+ /**
+ * Sets operation
+ *
+ * @param string $operation Operation performed
+ *
+ * @return self
+ */
+ public function setOperation($operation)
+ {
+ $this->container['operation'] = $operation;
+
+ return $this;
+ }
+
+ /**
+ * Gets data
+ *
+ * @return \Apideck\Client\Model\UnifiedId
+ */
+ public function getData()
+ {
+ return $this->container['data'];
+ }
+
+ /**
+ * Sets data
+ *
+ * @param \Apideck\Client\Model\UnifiedId $data data
+ *
+ * @return self
+ */
+ public function setData($data)
+ {
+ $this->container['data'] = $data;
+
+ return $this;
+ }
+
+ /**
+ * Gets _raw
+ *
+ * @return array|null
+ */
+ public function getRaw()
+ {
+ return $this->container['_raw'];
+ }
+
+ /**
+ * Sets _raw
+ *
+ * @param array|null $_raw Raw response from the integration when raw=true query param is provided
+ *
+ * @return self
+ */
+ public function setRaw($_raw)
+ {
+ $this->container['_raw'] = $_raw;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/DeleteCustomObjectSchemaResponse.php b/src/gen/lib/Model/DeleteCustomObjectSchemaResponse.php
new file mode 100644
index 000000000..ba242bed1
--- /dev/null
+++ b/src/gen/lib/Model/DeleteCustomObjectSchemaResponse.php
@@ -0,0 +1,519 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class DeleteCustomObjectSchemaResponse implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'DeleteCustomObjectSchemaResponse';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'status_code' => 'int',
+ 'status' => 'string',
+ 'service' => 'string',
+ 'resource' => 'string',
+ 'operation' => 'string',
+ 'data' => '\Apideck\Client\Model\UnifiedId',
+ '_raw' => 'array'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'status_code' => null,
+ 'status' => null,
+ 'service' => null,
+ 'resource' => null,
+ 'operation' => null,
+ 'data' => null,
+ '_raw' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'status_code' => 'status_code',
+ 'status' => 'status',
+ 'service' => 'service',
+ 'resource' => 'resource',
+ 'operation' => 'operation',
+ 'data' => 'data',
+ '_raw' => '_raw'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'status_code' => 'setStatusCode',
+ 'status' => 'setStatus',
+ 'service' => 'setService',
+ 'resource' => 'setResource',
+ 'operation' => 'setOperation',
+ 'data' => 'setData',
+ '_raw' => 'setRaw'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'status_code' => 'getStatusCode',
+ 'status' => 'getStatus',
+ 'service' => 'getService',
+ 'resource' => 'getResource',
+ 'operation' => 'getOperation',
+ 'data' => 'getData',
+ '_raw' => 'getRaw'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['status_code'] = $data['status_code'] ?? null;
+ $this->container['status'] = $data['status'] ?? null;
+ $this->container['service'] = $data['service'] ?? null;
+ $this->container['resource'] = $data['resource'] ?? null;
+ $this->container['operation'] = $data['operation'] ?? null;
+ $this->container['data'] = $data['data'] ?? null;
+ $this->container['_raw'] = $data['_raw'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['status_code'] === null) {
+ $invalidProperties[] = "'status_code' can't be null";
+ }
+ if ($this->container['status'] === null) {
+ $invalidProperties[] = "'status' can't be null";
+ }
+ if ($this->container['service'] === null) {
+ $invalidProperties[] = "'service' can't be null";
+ }
+ if ($this->container['resource'] === null) {
+ $invalidProperties[] = "'resource' can't be null";
+ }
+ if ($this->container['operation'] === null) {
+ $invalidProperties[] = "'operation' can't be null";
+ }
+ if ($this->container['data'] === null) {
+ $invalidProperties[] = "'data' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets status_code
+ *
+ * @return int
+ */
+ public function getStatusCode()
+ {
+ return $this->container['status_code'];
+ }
+
+ /**
+ * Sets status_code
+ *
+ * @param int $status_code HTTP Response Status Code
+ *
+ * @return self
+ */
+ public function setStatusCode($status_code)
+ {
+ $this->container['status_code'] = $status_code;
+
+ return $this;
+ }
+
+ /**
+ * Gets status
+ *
+ * @return string
+ */
+ public function getStatus()
+ {
+ return $this->container['status'];
+ }
+
+ /**
+ * Sets status
+ *
+ * @param string $status HTTP Response Status
+ *
+ * @return self
+ */
+ public function setStatus($status)
+ {
+ $this->container['status'] = $status;
+
+ return $this;
+ }
+
+ /**
+ * Gets service
+ *
+ * @return string
+ */
+ public function getService()
+ {
+ return $this->container['service'];
+ }
+
+ /**
+ * Sets service
+ *
+ * @param string $service Apideck ID of service provider
+ *
+ * @return self
+ */
+ public function setService($service)
+ {
+ $this->container['service'] = $service;
+
+ return $this;
+ }
+
+ /**
+ * Gets resource
+ *
+ * @return string
+ */
+ public function getResource()
+ {
+ return $this->container['resource'];
+ }
+
+ /**
+ * Sets resource
+ *
+ * @param string $resource Unified API resource name
+ *
+ * @return self
+ */
+ public function setResource($resource)
+ {
+ $this->container['resource'] = $resource;
+
+ return $this;
+ }
+
+ /**
+ * Gets operation
+ *
+ * @return string
+ */
+ public function getOperation()
+ {
+ return $this->container['operation'];
+ }
+
+ /**
+ * Sets operation
+ *
+ * @param string $operation Operation performed
+ *
+ * @return self
+ */
+ public function setOperation($operation)
+ {
+ $this->container['operation'] = $operation;
+
+ return $this;
+ }
+
+ /**
+ * Gets data
+ *
+ * @return \Apideck\Client\Model\UnifiedId
+ */
+ public function getData()
+ {
+ return $this->container['data'];
+ }
+
+ /**
+ * Sets data
+ *
+ * @param \Apideck\Client\Model\UnifiedId $data data
+ *
+ * @return self
+ */
+ public function setData($data)
+ {
+ $this->container['data'] = $data;
+
+ return $this;
+ }
+
+ /**
+ * Gets _raw
+ *
+ * @return array|null
+ */
+ public function getRaw()
+ {
+ return $this->container['_raw'];
+ }
+
+ /**
+ * Sets _raw
+ *
+ * @param array|null $_raw Raw response from the integration when raw=true query param is provided
+ *
+ * @return self
+ */
+ public function setRaw($_raw)
+ {
+ $this->container['_raw'] = $_raw;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/DeleteCustomerResponse.php b/src/gen/lib/Model/DeleteCustomerResponse.php
index eb73c13b0..b879627ca 100644
--- a/src/gen/lib/Model/DeleteCustomerResponse.php
+++ b/src/gen/lib/Model/DeleteCustomerResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteDepartmentResponse.php b/src/gen/lib/Model/DeleteDepartmentResponse.php
index e769708f7..690bd64c9 100644
--- a/src/gen/lib/Model/DeleteDepartmentResponse.php
+++ b/src/gen/lib/Model/DeleteDepartmentResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteDriveGroupResponse.php b/src/gen/lib/Model/DeleteDriveGroupResponse.php
index 30a5f8a1b..15c196d44 100644
--- a/src/gen/lib/Model/DeleteDriveGroupResponse.php
+++ b/src/gen/lib/Model/DeleteDriveGroupResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteDriveResponse.php b/src/gen/lib/Model/DeleteDriveResponse.php
index 376dbde3e..a67e3b0b3 100644
--- a/src/gen/lib/Model/DeleteDriveResponse.php
+++ b/src/gen/lib/Model/DeleteDriveResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteEcommerceCustomerResponse.php b/src/gen/lib/Model/DeleteEcommerceCustomerResponse.php
index 884681ed0..a6227ca3d 100644
--- a/src/gen/lib/Model/DeleteEcommerceCustomerResponse.php
+++ b/src/gen/lib/Model/DeleteEcommerceCustomerResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteEcommerceOrderResponse.php b/src/gen/lib/Model/DeleteEcommerceOrderResponse.php
index f0d47f779..93e809398 100644
--- a/src/gen/lib/Model/DeleteEcommerceOrderResponse.php
+++ b/src/gen/lib/Model/DeleteEcommerceOrderResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteEmployeeResponse.php b/src/gen/lib/Model/DeleteEmployeeResponse.php
index f185ce6c6..1067ac6ca 100644
--- a/src/gen/lib/Model/DeleteEmployeeResponse.php
+++ b/src/gen/lib/Model/DeleteEmployeeResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteExpenseResponse.php b/src/gen/lib/Model/DeleteExpenseResponse.php
index 7d0a379e9..6932f7f9f 100644
--- a/src/gen/lib/Model/DeleteExpenseResponse.php
+++ b/src/gen/lib/Model/DeleteExpenseResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteFileResponse.php b/src/gen/lib/Model/DeleteFileResponse.php
index fd08f90bb..4ae9e7a23 100644
--- a/src/gen/lib/Model/DeleteFileResponse.php
+++ b/src/gen/lib/Model/DeleteFileResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteFolderResponse.php b/src/gen/lib/Model/DeleteFolderResponse.php
index 7de317f6b..556645995 100644
--- a/src/gen/lib/Model/DeleteFolderResponse.php
+++ b/src/gen/lib/Model/DeleteFolderResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteHrisCompanyResponse.php b/src/gen/lib/Model/DeleteHrisCompanyResponse.php
index 0fc9551a5..1493021d4 100644
--- a/src/gen/lib/Model/DeleteHrisCompanyResponse.php
+++ b/src/gen/lib/Model/DeleteHrisCompanyResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteInvoiceResponse.php b/src/gen/lib/Model/DeleteInvoiceResponse.php
index 03ebf2941..5be61ceb5 100644
--- a/src/gen/lib/Model/DeleteInvoiceResponse.php
+++ b/src/gen/lib/Model/DeleteInvoiceResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteItemResponse.php b/src/gen/lib/Model/DeleteItemResponse.php
index 2ad3c7fe3..d6a85f718 100644
--- a/src/gen/lib/Model/DeleteItemResponse.php
+++ b/src/gen/lib/Model/DeleteItemResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteJobResponse.php b/src/gen/lib/Model/DeleteJobResponse.php
index 665ae7c20..9af62ee69 100644
--- a/src/gen/lib/Model/DeleteJobResponse.php
+++ b/src/gen/lib/Model/DeleteJobResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteJournalEntryResponse.php b/src/gen/lib/Model/DeleteJournalEntryResponse.php
index d625f8d30..21d481687 100644
--- a/src/gen/lib/Model/DeleteJournalEntryResponse.php
+++ b/src/gen/lib/Model/DeleteJournalEntryResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteLeadResponse.php b/src/gen/lib/Model/DeleteLeadResponse.php
index b24b3d4e4..a72e93b12 100644
--- a/src/gen/lib/Model/DeleteLeadResponse.php
+++ b/src/gen/lib/Model/DeleteLeadResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteLedgerAccountResponse.php b/src/gen/lib/Model/DeleteLedgerAccountResponse.php
index 8d5f1fbe4..fced0bffa 100644
--- a/src/gen/lib/Model/DeleteLedgerAccountResponse.php
+++ b/src/gen/lib/Model/DeleteLedgerAccountResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteLocationResponse.php b/src/gen/lib/Model/DeleteLocationResponse.php
index 85e1ba38c..10685013d 100644
--- a/src/gen/lib/Model/DeleteLocationResponse.php
+++ b/src/gen/lib/Model/DeleteLocationResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteMerchantResponse.php b/src/gen/lib/Model/DeleteMerchantResponse.php
index 463b75054..4cd7315db 100644
--- a/src/gen/lib/Model/DeleteMerchantResponse.php
+++ b/src/gen/lib/Model/DeleteMerchantResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteMessageResponse.php b/src/gen/lib/Model/DeleteMessageResponse.php
index a55f7e59b..b9064920c 100644
--- a/src/gen/lib/Model/DeleteMessageResponse.php
+++ b/src/gen/lib/Model/DeleteMessageResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteModifierGroupResponse.php b/src/gen/lib/Model/DeleteModifierGroupResponse.php
index d15933c15..a913c328a 100644
--- a/src/gen/lib/Model/DeleteModifierGroupResponse.php
+++ b/src/gen/lib/Model/DeleteModifierGroupResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteModifierResponse.php b/src/gen/lib/Model/DeleteModifierResponse.php
index 842bda17e..43bc0915d 100644
--- a/src/gen/lib/Model/DeleteModifierResponse.php
+++ b/src/gen/lib/Model/DeleteModifierResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteNoteResponse.php b/src/gen/lib/Model/DeleteNoteResponse.php
index a727be8bb..e16cc8c52 100644
--- a/src/gen/lib/Model/DeleteNoteResponse.php
+++ b/src/gen/lib/Model/DeleteNoteResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteOpportunityResponse.php b/src/gen/lib/Model/DeleteOpportunityResponse.php
index 7415cb495..14708fffc 100644
--- a/src/gen/lib/Model/DeleteOpportunityResponse.php
+++ b/src/gen/lib/Model/DeleteOpportunityResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteOrderResponse.php b/src/gen/lib/Model/DeleteOrderResponse.php
index 86fee6d1d..732ac4574 100644
--- a/src/gen/lib/Model/DeleteOrderResponse.php
+++ b/src/gen/lib/Model/DeleteOrderResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteOrderTypeResponse.php b/src/gen/lib/Model/DeleteOrderTypeResponse.php
index e98d68a72..f2d41531d 100644
--- a/src/gen/lib/Model/DeleteOrderTypeResponse.php
+++ b/src/gen/lib/Model/DeleteOrderTypeResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeletePaymentResponse.php b/src/gen/lib/Model/DeletePaymentResponse.php
index c4ea2a3f4..8462133a8 100644
--- a/src/gen/lib/Model/DeletePaymentResponse.php
+++ b/src/gen/lib/Model/DeletePaymentResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeletePipelineResponse.php b/src/gen/lib/Model/DeletePipelineResponse.php
index 41a54d4ba..de9c8e5d4 100644
--- a/src/gen/lib/Model/DeletePipelineResponse.php
+++ b/src/gen/lib/Model/DeletePipelineResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeletePosPaymentResponse.php b/src/gen/lib/Model/DeletePosPaymentResponse.php
index 188181b4b..75446c531 100644
--- a/src/gen/lib/Model/DeletePosPaymentResponse.php
+++ b/src/gen/lib/Model/DeletePosPaymentResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteProductResponse.php b/src/gen/lib/Model/DeleteProductResponse.php
index 4f8c54b40..219bf8abf 100644
--- a/src/gen/lib/Model/DeleteProductResponse.php
+++ b/src/gen/lib/Model/DeleteProductResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeletePurchaseOrderResponse.php b/src/gen/lib/Model/DeletePurchaseOrderResponse.php
index 70bf14ca2..76d0d8620 100644
--- a/src/gen/lib/Model/DeletePurchaseOrderResponse.php
+++ b/src/gen/lib/Model/DeletePurchaseOrderResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteSharedLinkResponse.php b/src/gen/lib/Model/DeleteSharedLinkResponse.php
index 541f059bd..faa77a036 100644
--- a/src/gen/lib/Model/DeleteSharedLinkResponse.php
+++ b/src/gen/lib/Model/DeleteSharedLinkResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteSubsidiaryResponse.php b/src/gen/lib/Model/DeleteSubsidiaryResponse.php
index a4551ef9a..df0a53a55 100644
--- a/src/gen/lib/Model/DeleteSubsidiaryResponse.php
+++ b/src/gen/lib/Model/DeleteSubsidiaryResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteSupplierResponse.php b/src/gen/lib/Model/DeleteSupplierResponse.php
index 0ccf5ac1c..f206e9f8c 100644
--- a/src/gen/lib/Model/DeleteSupplierResponse.php
+++ b/src/gen/lib/Model/DeleteSupplierResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteTaxRateResponse.php b/src/gen/lib/Model/DeleteTaxRateResponse.php
index da1246e0b..62ffdd252 100644
--- a/src/gen/lib/Model/DeleteTaxRateResponse.php
+++ b/src/gen/lib/Model/DeleteTaxRateResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteTenderResponse.php b/src/gen/lib/Model/DeleteTenderResponse.php
index d89db0f51..19ea523ef 100644
--- a/src/gen/lib/Model/DeleteTenderResponse.php
+++ b/src/gen/lib/Model/DeleteTenderResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteTicketResponse.php b/src/gen/lib/Model/DeleteTicketResponse.php
index 806c9fe32..8b3a08872 100644
--- a/src/gen/lib/Model/DeleteTicketResponse.php
+++ b/src/gen/lib/Model/DeleteTicketResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteTimeOffRequestResponse.php b/src/gen/lib/Model/DeleteTimeOffRequestResponse.php
index 5b3af0bb9..9af8f96c4 100644
--- a/src/gen/lib/Model/DeleteTimeOffRequestResponse.php
+++ b/src/gen/lib/Model/DeleteTimeOffRequestResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteTrackingCategoryResponse.php b/src/gen/lib/Model/DeleteTrackingCategoryResponse.php
index 0a4ec1b25..7ed17fef7 100644
--- a/src/gen/lib/Model/DeleteTrackingCategoryResponse.php
+++ b/src/gen/lib/Model/DeleteTrackingCategoryResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteUploadSessionResponse.php b/src/gen/lib/Model/DeleteUploadSessionResponse.php
index 7852c0bc2..d97fde4e5 100644
--- a/src/gen/lib/Model/DeleteUploadSessionResponse.php
+++ b/src/gen/lib/Model/DeleteUploadSessionResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteUserResponse.php b/src/gen/lib/Model/DeleteUserResponse.php
index 3cfe64cda..a8bef54e9 100644
--- a/src/gen/lib/Model/DeleteUserResponse.php
+++ b/src/gen/lib/Model/DeleteUserResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeleteWebhookResponse.php b/src/gen/lib/Model/DeleteWebhookResponse.php
index ad2e20874..0d6c1ee3d 100644
--- a/src/gen/lib/Model/DeleteWebhookResponse.php
+++ b/src/gen/lib/Model/DeleteWebhookResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Department.php b/src/gen/lib/Model/Department.php
index 1028ac902..e1b42291c 100644
--- a/src/gen/lib/Model/Department.php
+++ b/src/gen/lib/Model/Department.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -65,7 +65,7 @@ class Department implements ModelInterface, ArrayAccess, \JsonSerializable
'name' => 'string',
'code' => 'string',
'description' => 'string',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'updated_by' => 'string',
'created_by' => 'string',
'updated_at' => '\DateTime',
@@ -389,7 +389,7 @@ public function setDescription($description)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -399,7 +399,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/DeprecatedLinkedSupplier.php b/src/gen/lib/Model/DeprecatedLinkedSupplier.php
index c9fd6ed37..f8a57c2e3 100644
--- a/src/gen/lib/Model/DeprecatedLinkedSupplier.php
+++ b/src/gen/lib/Model/DeprecatedLinkedSupplier.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DeprecatedLinkedTrackingCategory.php b/src/gen/lib/Model/DeprecatedLinkedTrackingCategory.php
index a1fcb60e9..3ffe328f5 100644
--- a/src/gen/lib/Model/DeprecatedLinkedTrackingCategory.php
+++ b/src/gen/lib/Model/DeprecatedLinkedTrackingCategory.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Drive.php b/src/gen/lib/Model/Drive.php
index 9a19046e9..7b37bd25c 100644
--- a/src/gen/lib/Model/Drive.php
+++ b/src/gen/lib/Model/Drive.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -63,7 +63,7 @@ class Drive implements ModelInterface, ArrayAccess, \JsonSerializable
'id' => 'string',
'name' => 'string',
'description' => 'string',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'updated_by' => 'string',
'created_by' => 'string',
'updated_at' => '\DateTime',
@@ -335,7 +335,7 @@ public function setDescription($description)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -345,7 +345,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/DriveGroup.php b/src/gen/lib/Model/DriveGroup.php
index cf0d25c99..a18b46c3a 100644
--- a/src/gen/lib/Model/DriveGroup.php
+++ b/src/gen/lib/Model/DriveGroup.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -64,7 +64,7 @@ class DriveGroup implements ModelInterface, ArrayAccess, \JsonSerializable
'name' => 'string',
'display_name' => 'string',
'description' => 'string',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'updated_by' => 'string',
'created_by' => 'string',
'updated_at' => '\DateTime',
@@ -365,7 +365,7 @@ public function setDescription($description)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -375,7 +375,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/DriveGroupsFilter.php b/src/gen/lib/Model/DriveGroupsFilter.php
index 939eb4095..b96f448fb 100644
--- a/src/gen/lib/Model/DriveGroupsFilter.php
+++ b/src/gen/lib/Model/DriveGroupsFilter.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/DrivesFilter.php b/src/gen/lib/Model/DrivesFilter.php
index 811b6111a..9909915c2 100644
--- a/src/gen/lib/Model/DrivesFilter.php
+++ b/src/gen/lib/Model/DrivesFilter.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EcommerceAddress.php b/src/gen/lib/Model/EcommerceAddress.php
index 45c1f6503..08d8d32a7 100644
--- a/src/gen/lib/Model/EcommerceAddress.php
+++ b/src/gen/lib/Model/EcommerceAddress.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EcommerceCustomer.php b/src/gen/lib/Model/EcommerceCustomer.php
index 523f74bc7..6e1a0719d 100644
--- a/src/gen/lib/Model/EcommerceCustomer.php
+++ b/src/gen/lib/Model/EcommerceCustomer.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -71,7 +71,7 @@ class EcommerceCustomer implements ModelInterface, ArrayAccess, \JsonSerializabl
'phone_numbers' => '\Apideck\Client\Model\PhoneNumber[]',
'addresses' => '\Apideck\Client\Model\EcommerceCustomerAddresses[]',
'orders' => '\Apideck\Client\Model\LinkedEcommerceOrder[]',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'created_at' => '\DateTime',
'updated_at' => '\DateTime'
];
@@ -588,7 +588,7 @@ public function setOrders($orders)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -598,7 +598,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/EcommerceCustomerAddresses.php b/src/gen/lib/Model/EcommerceCustomerAddresses.php
index b62d7c3ac..2592e0fb9 100644
--- a/src/gen/lib/Model/EcommerceCustomerAddresses.php
+++ b/src/gen/lib/Model/EcommerceCustomerAddresses.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EcommerceCustomersFilter.php b/src/gen/lib/Model/EcommerceCustomersFilter.php
index 0bef44803..59046e0a5 100644
--- a/src/gen/lib/Model/EcommerceCustomersFilter.php
+++ b/src/gen/lib/Model/EcommerceCustomersFilter.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EcommerceDiscount.php b/src/gen/lib/Model/EcommerceDiscount.php
index 643517d2d..4b5e650d2 100644
--- a/src/gen/lib/Model/EcommerceDiscount.php
+++ b/src/gen/lib/Model/EcommerceDiscount.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EcommerceEventType.php b/src/gen/lib/Model/EcommerceEventType.php
index 97bf9549c..380423a28 100644
--- a/src/gen/lib/Model/EcommerceEventType.php
+++ b/src/gen/lib/Model/EcommerceEventType.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EcommerceOrder.php b/src/gen/lib/Model/EcommerceOrder.php
index a5c6ba65e..d7af25529 100644
--- a/src/gen/lib/Model/EcommerceOrder.php
+++ b/src/gen/lib/Model/EcommerceOrder.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -81,7 +81,8 @@ class EcommerceOrder implements ModelInterface, ArrayAccess, \JsonSerializable
'tracking' => '\Apideck\Client\Model\TrackingItem[]',
'line_items' => '\Apideck\Client\Model\EcommerceOrderLineItem[]',
'note' => 'string',
- 'custom_mappings' => 'object',
+ 'refunds' => '\Apideck\Client\Model\EcommerceOrderRefund[]',
+ 'custom_mappings' => 'array',
'created_at' => '\DateTime',
'updated_at' => '\DateTime'
];
@@ -115,6 +116,7 @@ class EcommerceOrder implements ModelInterface, ArrayAccess, \JsonSerializable
'tracking' => null,
'line_items' => null,
'note' => null,
+ 'refunds' => null,
'custom_mappings' => null,
'created_at' => 'date-time',
'updated_at' => 'date-time'
@@ -168,6 +170,7 @@ public static function openAPIFormats()
'tracking' => 'tracking',
'line_items' => 'line_items',
'note' => 'note',
+ 'refunds' => 'refunds',
'custom_mappings' => 'custom_mappings',
'created_at' => 'created_at',
'updated_at' => 'updated_at'
@@ -200,6 +203,7 @@ public static function openAPIFormats()
'tracking' => 'setTracking',
'line_items' => 'setLineItems',
'note' => 'setNote',
+ 'refunds' => 'setRefunds',
'custom_mappings' => 'setCustomMappings',
'created_at' => 'setCreatedAt',
'updated_at' => 'setUpdatedAt'
@@ -232,6 +236,7 @@ public static function openAPIFormats()
'tracking' => 'getTracking',
'line_items' => 'getLineItems',
'note' => 'getNote',
+ 'refunds' => 'getRefunds',
'custom_mappings' => 'getCustomMappings',
'created_at' => 'getCreatedAt',
'updated_at' => 'getUpdatedAt'
@@ -365,6 +370,7 @@ public function __construct(array $data = null)
$this->container['tracking'] = $data['tracking'] ?? null;
$this->container['line_items'] = $data['line_items'] ?? null;
$this->container['note'] = $data['note'] ?? null;
+ $this->container['refunds'] = $data['refunds'] ?? null;
$this->container['custom_mappings'] = $data['custom_mappings'] ?? null;
$this->container['created_at'] = $data['created_at'] ?? null;
$this->container['updated_at'] = $data['updated_at'] ?? null;
@@ -939,10 +945,34 @@ public function setNote($note)
return $this;
}
+ /**
+ * Gets refunds
+ *
+ * @return \Apideck\Client\Model\EcommerceOrderRefund[]|null
+ */
+ public function getRefunds()
+ {
+ return $this->container['refunds'];
+ }
+
+ /**
+ * Sets refunds
+ *
+ * @param \Apideck\Client\Model\EcommerceOrderRefund[]|null $refunds refunds
+ *
+ * @return self
+ */
+ public function setRefunds($refunds)
+ {
+ $this->container['refunds'] = $refunds;
+
+ return $this;
+ }
+
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -952,7 +982,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/EcommerceOrderLineItem.php b/src/gen/lib/Model/EcommerceOrderLineItem.php
index d33067483..3db01df24 100644
--- a/src/gen/lib/Model/EcommerceOrderLineItem.php
+++ b/src/gen/lib/Model/EcommerceOrderLineItem.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -63,7 +63,6 @@ class EcommerceOrderLineItem implements ModelInterface, ArrayAccess, \JsonSerial
protected static $openAPITypes = [
'name' => 'string',
'quantity' => 'string',
- 'total_amount' => 'string',
'id' => 'string',
'product_id' => 'string',
'variant_id' => 'string',
@@ -77,6 +76,7 @@ class EcommerceOrderLineItem implements ModelInterface, ArrayAccess, \JsonSerial
'refunded_amount' => 'string',
'refunded_quantity' => 'string',
'sub_total' => 'string',
+ 'total_amount' => 'string',
'discounts' => '\Apideck\Client\Model\EcommerceDiscount[]'
];
@@ -90,7 +90,6 @@ class EcommerceOrderLineItem implements ModelInterface, ArrayAccess, \JsonSerial
protected static $openAPIFormats = [
'name' => null,
'quantity' => null,
- 'total_amount' => null,
'id' => null,
'product_id' => null,
'variant_id' => null,
@@ -104,6 +103,7 @@ class EcommerceOrderLineItem implements ModelInterface, ArrayAccess, \JsonSerial
'refunded_amount' => null,
'refunded_quantity' => null,
'sub_total' => null,
+ 'total_amount' => null,
'discounts' => null
];
@@ -136,7 +136,6 @@ public static function openAPIFormats()
protected static $attributeMap = [
'name' => 'name',
'quantity' => 'quantity',
- 'total_amount' => 'total_amount',
'id' => 'id',
'product_id' => 'product_id',
'variant_id' => 'variant_id',
@@ -150,6 +149,7 @@ public static function openAPIFormats()
'refunded_amount' => 'refunded_amount',
'refunded_quantity' => 'refunded_quantity',
'sub_total' => 'sub_total',
+ 'total_amount' => 'total_amount',
'discounts' => 'discounts'
];
@@ -161,7 +161,6 @@ public static function openAPIFormats()
protected static $setters = [
'name' => 'setName',
'quantity' => 'setQuantity',
- 'total_amount' => 'setTotalAmount',
'id' => 'setId',
'product_id' => 'setProductId',
'variant_id' => 'setVariantId',
@@ -175,6 +174,7 @@ public static function openAPIFormats()
'refunded_amount' => 'setRefundedAmount',
'refunded_quantity' => 'setRefundedQuantity',
'sub_total' => 'setSubTotal',
+ 'total_amount' => 'setTotalAmount',
'discounts' => 'setDiscounts'
];
@@ -186,7 +186,6 @@ public static function openAPIFormats()
protected static $getters = [
'name' => 'getName',
'quantity' => 'getQuantity',
- 'total_amount' => 'getTotalAmount',
'id' => 'getId',
'product_id' => 'getProductId',
'variant_id' => 'getVariantId',
@@ -200,6 +199,7 @@ public static function openAPIFormats()
'refunded_amount' => 'getRefundedAmount',
'refunded_quantity' => 'getRefundedQuantity',
'sub_total' => 'getSubTotal',
+ 'total_amount' => 'getTotalAmount',
'discounts' => 'getDiscounts'
];
@@ -262,7 +262,6 @@ public function __construct(array $data = null)
{
$this->container['name'] = $data['name'] ?? null;
$this->container['quantity'] = $data['quantity'] ?? null;
- $this->container['total_amount'] = $data['total_amount'] ?? null;
$this->container['id'] = $data['id'] ?? null;
$this->container['product_id'] = $data['product_id'] ?? null;
$this->container['variant_id'] = $data['variant_id'] ?? null;
@@ -276,6 +275,7 @@ public function __construct(array $data = null)
$this->container['refunded_amount'] = $data['refunded_amount'] ?? null;
$this->container['refunded_quantity'] = $data['refunded_quantity'] ?? null;
$this->container['sub_total'] = $data['sub_total'] ?? null;
+ $this->container['total_amount'] = $data['total_amount'] ?? null;
$this->container['discounts'] = $data['discounts'] ?? null;
}
@@ -294,9 +294,6 @@ public function listInvalidProperties()
if ($this->container['quantity'] === null) {
$invalidProperties[] = "'quantity' can't be null";
}
- if ($this->container['total_amount'] === null) {
- $invalidProperties[] = "'total_amount' can't be null";
- }
return $invalidProperties;
}
@@ -360,30 +357,6 @@ public function setQuantity($quantity)
return $this;
}
- /**
- * Gets total_amount
- *
- * @return string
- */
- public function getTotalAmount()
- {
- return $this->container['total_amount'];
- }
-
- /**
- * Sets total_amount
- *
- * @param string $total_amount The total amount for the product(s) or variant associated with the line item, including taxes and discounts.
- *
- * @return self
- */
- public function setTotalAmount($total_amount)
- {
- $this->container['total_amount'] = $total_amount;
-
- return $this;
- }
-
/**
* Gets id
*
@@ -696,6 +669,30 @@ public function setSubTotal($sub_total)
return $this;
}
+ /**
+ * Gets total_amount
+ *
+ * @return string|null
+ */
+ public function getTotalAmount()
+ {
+ return $this->container['total_amount'];
+ }
+
+ /**
+ * Sets total_amount
+ *
+ * @param string|null $total_amount The total amount for the product(s) or variant associated with the line item, including taxes and discounts.
+ *
+ * @return self
+ */
+ public function setTotalAmount($total_amount)
+ {
+ $this->container['total_amount'] = $total_amount;
+
+ return $this;
+ }
+
/**
* Gets discounts
*
diff --git a/src/gen/lib/Model/EcommerceOrderRefund.php b/src/gen/lib/Model/EcommerceOrderRefund.php
new file mode 100644
index 000000000..afea6d11d
--- /dev/null
+++ b/src/gen/lib/Model/EcommerceOrderRefund.php
@@ -0,0 +1,442 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class EcommerceOrderRefund implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'EcommerceOrderRefund';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'id' => 'string',
+ 'amount' => 'string',
+ 'currency' => '\Apideck\Client\Model\Currency',
+ 'reason' => 'string',
+ 'created_at' => '\DateTime'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'id' => null,
+ 'amount' => null,
+ 'currency' => null,
+ 'reason' => null,
+ 'created_at' => 'date-time'
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id',
+ 'amount' => 'amount',
+ 'currency' => 'currency',
+ 'reason' => 'reason',
+ 'created_at' => 'created_at'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId',
+ 'amount' => 'setAmount',
+ 'currency' => 'setCurrency',
+ 'reason' => 'setReason',
+ 'created_at' => 'setCreatedAt'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId',
+ 'amount' => 'getAmount',
+ 'currency' => 'getCurrency',
+ 'reason' => 'getReason',
+ 'created_at' => 'getCreatedAt'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = $data['id'] ?? null;
+ $this->container['amount'] = $data['amount'] ?? null;
+ $this->container['currency'] = $data['currency'] ?? null;
+ $this->container['reason'] = $data['reason'] ?? null;
+ $this->container['created_at'] = $data['created_at'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return string|null
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param string|null $id A unique identifier for an object.
+ *
+ * @return self
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets amount
+ *
+ * @return string|null
+ */
+ public function getAmount()
+ {
+ return $this->container['amount'];
+ }
+
+ /**
+ * Sets amount
+ *
+ * @param string|null $amount The amount of the refund.
+ *
+ * @return self
+ */
+ public function setAmount($amount)
+ {
+ $this->container['amount'] = $amount;
+
+ return $this;
+ }
+
+ /**
+ * Gets currency
+ *
+ * @return \Apideck\Client\Model\Currency|null
+ */
+ public function getCurrency()
+ {
+ return $this->container['currency'];
+ }
+
+ /**
+ * Sets currency
+ *
+ * @param \Apideck\Client\Model\Currency|null $currency currency
+ *
+ * @return self
+ */
+ public function setCurrency($currency)
+ {
+ $this->container['currency'] = $currency;
+
+ return $this;
+ }
+
+ /**
+ * Gets reason
+ *
+ * @return string|null
+ */
+ public function getReason()
+ {
+ return $this->container['reason'];
+ }
+
+ /**
+ * Sets reason
+ *
+ * @param string|null $reason The reason for the refund.
+ *
+ * @return self
+ */
+ public function setReason($reason)
+ {
+ $this->container['reason'] = $reason;
+
+ return $this;
+ }
+
+ /**
+ * Gets created_at
+ *
+ * @return \DateTime|null
+ */
+ public function getCreatedAt()
+ {
+ return $this->container['created_at'];
+ }
+
+ /**
+ * Sets created_at
+ *
+ * @param \DateTime|null $created_at The date and time when the object was created.
+ *
+ * @return self
+ */
+ public function setCreatedAt($created_at)
+ {
+ $this->container['created_at'] = $created_at;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/EcommerceOrderStatus.php b/src/gen/lib/Model/EcommerceOrderStatus.php
index 6f0ce67c2..0d5d89cc7 100644
--- a/src/gen/lib/Model/EcommerceOrderStatus.php
+++ b/src/gen/lib/Model/EcommerceOrderStatus.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EcommerceOrdersFilter.php b/src/gen/lib/Model/EcommerceOrdersFilter.php
index 0673f3027..20b59a2e6 100644
--- a/src/gen/lib/Model/EcommerceOrdersFilter.php
+++ b/src/gen/lib/Model/EcommerceOrdersFilter.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EcommerceProduct.php b/src/gen/lib/Model/EcommerceProduct.php
index e292708f2..5e54f7edb 100644
--- a/src/gen/lib/Model/EcommerceProduct.php
+++ b/src/gen/lib/Model/EcommerceProduct.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -74,7 +74,7 @@ class EcommerceProduct implements ModelInterface, ArrayAccess, \JsonSerializable
'variants' => '\Apideck\Client\Model\EcommerceProductVariants[]',
'tags' => 'string[]',
'categories' => '\Apideck\Client\Model\EcommerceProductCategories[]',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'created_at' => '\DateTime',
'updated_at' => '\DateTime'
];
@@ -678,7 +678,7 @@ public function setCategories($categories)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -688,7 +688,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/EcommerceProductCategories.php b/src/gen/lib/Model/EcommerceProductCategories.php
index 581f47471..a1ca8bc0b 100644
--- a/src/gen/lib/Model/EcommerceProductCategories.php
+++ b/src/gen/lib/Model/EcommerceProductCategories.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EcommerceProductImages.php b/src/gen/lib/Model/EcommerceProductImages.php
index 97f74c0a0..fac2045ff 100644
--- a/src/gen/lib/Model/EcommerceProductImages.php
+++ b/src/gen/lib/Model/EcommerceProductImages.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EcommerceProductImages1.php b/src/gen/lib/Model/EcommerceProductImages1.php
index 602ddda8a..218cb1dda 100644
--- a/src/gen/lib/Model/EcommerceProductImages1.php
+++ b/src/gen/lib/Model/EcommerceProductImages1.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EcommerceProductOptions.php b/src/gen/lib/Model/EcommerceProductOptions.php
index 979241dd3..9efdb18b8 100644
--- a/src/gen/lib/Model/EcommerceProductOptions.php
+++ b/src/gen/lib/Model/EcommerceProductOptions.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EcommerceProductOptions1.php b/src/gen/lib/Model/EcommerceProductOptions1.php
index effd1e11c..bb199eb04 100644
--- a/src/gen/lib/Model/EcommerceProductOptions1.php
+++ b/src/gen/lib/Model/EcommerceProductOptions1.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EcommerceProductVariants.php b/src/gen/lib/Model/EcommerceProductVariants.php
index bb4303df6..04238d656 100644
--- a/src/gen/lib/Model/EcommerceProductVariants.php
+++ b/src/gen/lib/Model/EcommerceProductVariants.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EcommerceStore.php b/src/gen/lib/Model/EcommerceStore.php
index 4c45c2559..f03540b13 100644
--- a/src/gen/lib/Model/EcommerceStore.php
+++ b/src/gen/lib/Model/EcommerceStore.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -64,7 +64,7 @@ class EcommerceStore implements ModelInterface, ArrayAccess, \JsonSerializable
'name' => 'string',
'store_url' => 'string',
'admin_url' => 'string',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'created_at' => '\DateTime',
'updated_at' => '\DateTime'
];
@@ -362,7 +362,7 @@ public function setAdminUrl($admin_url)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -372,7 +372,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/Email.php b/src/gen/lib/Model/Email.php
index 5116f1fbd..52d005eca 100644
--- a/src/gen/lib/Model/Email.php
+++ b/src/gen/lib/Model/Email.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Employee.php b/src/gen/lib/Model/Employee.php
index 5fa629d41..1ab053a59 100644
--- a/src/gen/lib/Model/Employee.php
+++ b/src/gen/lib/Model/Employee.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -119,7 +119,7 @@ class Employee implements ModelInterface, ArrayAccess, \JsonSerializable
'food_allergies' => 'string[]',
'probation_period' => '\Apideck\Client\Model\ProbationPeriod',
'tags' => 'string[]',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'row_version' => 'string',
'deleted' => 'bool',
'updated_by' => 'string',
@@ -2076,7 +2076,7 @@ public function setTags($tags)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -2086,7 +2086,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/EmployeeCompensation.php b/src/gen/lib/Model/EmployeeCompensation.php
index d5bc57450..b87395bd3 100644
--- a/src/gen/lib/Model/EmployeeCompensation.php
+++ b/src/gen/lib/Model/EmployeeCompensation.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EmployeeEmploymentRole.php b/src/gen/lib/Model/EmployeeEmploymentRole.php
index ef01abe58..40f563c71 100644
--- a/src/gen/lib/Model/EmployeeEmploymentRole.php
+++ b/src/gen/lib/Model/EmployeeEmploymentRole.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EmployeeJob.php b/src/gen/lib/Model/EmployeeJob.php
index 8e11d6d86..2cf771f86 100644
--- a/src/gen/lib/Model/EmployeeJob.php
+++ b/src/gen/lib/Model/EmployeeJob.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EmployeeList.php b/src/gen/lib/Model/EmployeeList.php
index 7248ecd55..0b1d4303a 100644
--- a/src/gen/lib/Model/EmployeeList.php
+++ b/src/gen/lib/Model/EmployeeList.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EmployeeManager.php b/src/gen/lib/Model/EmployeeManager.php
index 57038e1ba..449ecc7d4 100644
--- a/src/gen/lib/Model/EmployeeManager.php
+++ b/src/gen/lib/Model/EmployeeManager.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EmployeePayroll.php b/src/gen/lib/Model/EmployeePayroll.php
index 8e07fa333..f3ddb0592 100644
--- a/src/gen/lib/Model/EmployeePayroll.php
+++ b/src/gen/lib/Model/EmployeePayroll.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EmployeeSchedules.php b/src/gen/lib/Model/EmployeeSchedules.php
index ecb07a006..db615a482 100644
--- a/src/gen/lib/Model/EmployeeSchedules.php
+++ b/src/gen/lib/Model/EmployeeSchedules.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EmployeesFilter.php b/src/gen/lib/Model/EmployeesFilter.php
index da3839659..de79b49a6 100644
--- a/src/gen/lib/Model/EmployeesFilter.php
+++ b/src/gen/lib/Model/EmployeesFilter.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -69,7 +69,8 @@ class EmployeesFilter implements ModelInterface, ArrayAccess, \JsonSerializable
'employment_status' => 'string',
'employee_number' => 'string',
'department_id' => 'string',
- 'city' => 'string'
+ 'city' => 'string',
+ 'country' => 'string'
];
/**
@@ -89,7 +90,8 @@ class EmployeesFilter implements ModelInterface, ArrayAccess, \JsonSerializable
'employment_status' => null,
'employee_number' => null,
'department_id' => null,
- 'city' => null
+ 'city' => null,
+ 'country' => null
];
/**
@@ -128,7 +130,8 @@ public static function openAPIFormats()
'employment_status' => 'employment_status',
'employee_number' => 'employee_number',
'department_id' => 'department_id',
- 'city' => 'city'
+ 'city' => 'city',
+ 'country' => 'country'
];
/**
@@ -146,7 +149,8 @@ public static function openAPIFormats()
'employment_status' => 'setEmploymentStatus',
'employee_number' => 'setEmployeeNumber',
'department_id' => 'setDepartmentId',
- 'city' => 'setCity'
+ 'city' => 'setCity',
+ 'country' => 'setCountry'
];
/**
@@ -164,7 +168,8 @@ public static function openAPIFormats()
'employment_status' => 'getEmploymentStatus',
'employee_number' => 'getEmployeeNumber',
'department_id' => 'getDepartmentId',
- 'city' => 'getCity'
+ 'city' => 'getCity',
+ 'country' => 'getCountry'
];
/**
@@ -253,6 +258,7 @@ public function __construct(array $data = null)
$this->container['employee_number'] = $data['employee_number'] ?? null;
$this->container['department_id'] = $data['department_id'] ?? null;
$this->container['city'] = $data['city'] ?? null;
+ $this->container['country'] = $data['country'] ?? null;
}
/**
@@ -537,6 +543,30 @@ public function setCity($city)
return $this;
}
+
+ /**
+ * Gets country
+ *
+ * @return string|null
+ */
+ public function getCountry()
+ {
+ return $this->container['country'];
+ }
+
+ /**
+ * Sets country
+ *
+ * @param string|null $country Country to filter on
+ *
+ * @return self
+ */
+ public function setCountry($country)
+ {
+ $this->container['country'] = $country;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
diff --git a/src/gen/lib/Model/EmployeesOneFilter.php b/src/gen/lib/Model/EmployeesOneFilter.php
index e3776c353..abe47a5dc 100644
--- a/src/gen/lib/Model/EmployeesOneFilter.php
+++ b/src/gen/lib/Model/EmployeesOneFilter.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EmployeesSort.php b/src/gen/lib/Model/EmployeesSort.php
index 67ff488c1..f90f0e3ad 100644
--- a/src/gen/lib/Model/EmployeesSort.php
+++ b/src/gen/lib/Model/EmployeesSort.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/EmploymentStatus.php b/src/gen/lib/Model/EmploymentStatus.php
index a8ea034b0..a80bbdb50 100644
--- a/src/gen/lib/Model/EmploymentStatus.php
+++ b/src/gen/lib/Model/EmploymentStatus.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Error.php b/src/gen/lib/Model/Error.php
index 659deb73b..76e35505e 100644
--- a/src/gen/lib/Model/Error.php
+++ b/src/gen/lib/Model/Error.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/ExecuteWebhookResponse.php b/src/gen/lib/Model/ExecuteWebhookResponse.php
index bcceb920f..63cbea21f 100644
--- a/src/gen/lib/Model/ExecuteWebhookResponse.php
+++ b/src/gen/lib/Model/ExecuteWebhookResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Expense.php b/src/gen/lib/Model/Expense.php
index 931aa7c99..41b157f9e 100644
--- a/src/gen/lib/Model/Expense.php
+++ b/src/gen/lib/Model/Expense.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -77,10 +77,12 @@ class Expense implements ModelInterface, ArrayAccess, \JsonSerializable
'tax_rate' => '\Apideck\Client\Model\LinkedTaxRate',
'total_amount' => 'float',
'custom_fields' => '\Apideck\Client\Model\CustomField[]',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'updated_at' => '\DateTime',
'created_at' => '\DateTime',
'row_version' => 'string',
+ 'updated_by' => 'string',
+ 'created_by' => 'string',
'pass_through' => 'object[]'
];
@@ -113,6 +115,8 @@ class Expense implements ModelInterface, ArrayAccess, \JsonSerializable
'updated_at' => 'date-time',
'created_at' => 'date-time',
'row_version' => null,
+ 'updated_by' => null,
+ 'created_by' => null,
'pass_through' => null
];
@@ -164,6 +168,8 @@ public static function openAPIFormats()
'updated_at' => 'updated_at',
'created_at' => 'created_at',
'row_version' => 'row_version',
+ 'updated_by' => 'updated_by',
+ 'created_by' => 'created_by',
'pass_through' => 'pass_through'
];
@@ -194,6 +200,8 @@ public static function openAPIFormats()
'updated_at' => 'setUpdatedAt',
'created_at' => 'setCreatedAt',
'row_version' => 'setRowVersion',
+ 'updated_by' => 'setUpdatedBy',
+ 'created_by' => 'setCreatedBy',
'pass_through' => 'setPassThrough'
];
@@ -224,6 +232,8 @@ public static function openAPIFormats()
'updated_at' => 'getUpdatedAt',
'created_at' => 'getCreatedAt',
'row_version' => 'getRowVersion',
+ 'updated_by' => 'getUpdatedBy',
+ 'created_by' => 'getCreatedBy',
'pass_through' => 'getPassThrough'
];
@@ -337,6 +347,8 @@ public function __construct(array $data = null)
$this->container['updated_at'] = $data['updated_at'] ?? null;
$this->container['created_at'] = $data['created_at'] ?? null;
$this->container['row_version'] = $data['row_version'] ?? null;
+ $this->container['updated_by'] = $data['updated_by'] ?? null;
+ $this->container['created_by'] = $data['created_by'] ?? null;
$this->container['pass_through'] = $data['pass_through'] ?? null;
}
@@ -831,7 +843,7 @@ public function setCustomFields($custom_fields)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -841,7 +853,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
@@ -924,6 +936,54 @@ public function setRowVersion($row_version)
return $this;
}
+ /**
+ * Gets updated_by
+ *
+ * @return string|null
+ */
+ public function getUpdatedBy()
+ {
+ return $this->container['updated_by'];
+ }
+
+ /**
+ * Sets updated_by
+ *
+ * @param string|null $updated_by The user who last updated the object.
+ *
+ * @return self
+ */
+ public function setUpdatedBy($updated_by)
+ {
+ $this->container['updated_by'] = $updated_by;
+
+ return $this;
+ }
+
+ /**
+ * Gets created_by
+ *
+ * @return string|null
+ */
+ public function getCreatedBy()
+ {
+ return $this->container['created_by'];
+ }
+
+ /**
+ * Sets created_by
+ *
+ * @param string|null $created_by The user who created the object.
+ *
+ * @return self
+ */
+ public function setCreatedBy($created_by)
+ {
+ $this->container['created_by'] = $created_by;
+
+ return $this;
+ }
+
/**
* Gets pass_through
*
diff --git a/src/gen/lib/Model/ExpenseLineItem.php b/src/gen/lib/Model/ExpenseLineItem.php
index 872782895..4a287c05c 100644
--- a/src/gen/lib/Model/ExpenseLineItem.php
+++ b/src/gen/lib/Model/ExpenseLineItem.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -70,7 +70,8 @@ class ExpenseLineItem implements ModelInterface, ArrayAccess, \JsonSerializable
'subsidiary_id' => 'string',
'tax_rate' => '\Apideck\Client\Model\LinkedTaxRate',
'description' => 'string',
- 'billable' => 'bool'
+ 'billable' => 'bool',
+ 'line_number' => 'int'
];
/**
@@ -91,7 +92,8 @@ class ExpenseLineItem implements ModelInterface, ArrayAccess, \JsonSerializable
'subsidiary_id' => null,
'tax_rate' => null,
'description' => null,
- 'billable' => null
+ 'billable' => null,
+ 'line_number' => null
];
/**
@@ -131,7 +133,8 @@ public static function openAPIFormats()
'subsidiary_id' => 'subsidiary_id',
'tax_rate' => 'tax_rate',
'description' => 'description',
- 'billable' => 'billable'
+ 'billable' => 'billable',
+ 'line_number' => 'line_number'
];
/**
@@ -150,7 +153,8 @@ public static function openAPIFormats()
'subsidiary_id' => 'setSubsidiaryId',
'tax_rate' => 'setTaxRate',
'description' => 'setDescription',
- 'billable' => 'setBillable'
+ 'billable' => 'setBillable',
+ 'line_number' => 'setLineNumber'
];
/**
@@ -169,7 +173,8 @@ public static function openAPIFormats()
'subsidiary_id' => 'getSubsidiaryId',
'tax_rate' => 'getTaxRate',
'description' => 'getDescription',
- 'billable' => 'getBillable'
+ 'billable' => 'getBillable',
+ 'line_number' => 'getLineNumber'
];
/**
@@ -240,6 +245,7 @@ public function __construct(array $data = null)
$this->container['tax_rate'] = $data['tax_rate'] ?? null;
$this->container['description'] = $data['description'] ?? null;
$this->container['billable'] = $data['billable'] ?? null;
+ $this->container['line_number'] = $data['line_number'] ?? null;
}
/**
@@ -532,6 +538,30 @@ public function setBillable($billable)
return $this;
}
+
+ /**
+ * Gets line_number
+ *
+ * @return int|null
+ */
+ public function getLineNumber()
+ {
+ return $this->container['line_number'];
+ }
+
+ /**
+ * Sets line_number
+ *
+ * @param int|null $line_number Line number of the resource
+ *
+ * @return self
+ */
+ public function setLineNumber($line_number)
+ {
+ $this->container['line_number'] = $line_number;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
diff --git a/src/gen/lib/Model/Expenses.php b/src/gen/lib/Model/Expenses.php
index 72d2dbf5e..595558e38 100644
--- a/src/gen/lib/Model/Expenses.php
+++ b/src/gen/lib/Model/Expenses.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/FileStorageEventType.php b/src/gen/lib/Model/FileStorageEventType.php
index e052c7012..fb7a2fdf8 100644
--- a/src/gen/lib/Model/FileStorageEventType.php
+++ b/src/gen/lib/Model/FileStorageEventType.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/FileType.php b/src/gen/lib/Model/FileType.php
index aab870065..ca9d8bfd6 100644
--- a/src/gen/lib/Model/FileType.php
+++ b/src/gen/lib/Model/FileType.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/FilesFilter.php b/src/gen/lib/Model/FilesFilter.php
index 9f158d7fa..068b21976 100644
--- a/src/gen/lib/Model/FilesFilter.php
+++ b/src/gen/lib/Model/FilesFilter.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/FilesSearch.php b/src/gen/lib/Model/FilesSearch.php
index ac7faab07..fb7ce65f4 100644
--- a/src/gen/lib/Model/FilesSearch.php
+++ b/src/gen/lib/Model/FilesSearch.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/FilesSort.php b/src/gen/lib/Model/FilesSort.php
index de0fb4b04..4e2414284 100644
--- a/src/gen/lib/Model/FilesSort.php
+++ b/src/gen/lib/Model/FilesSort.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Folder.php b/src/gen/lib/Model/Folder.php
index 61f60d134..15c265091 100644
--- a/src/gen/lib/Model/Folder.php
+++ b/src/gen/lib/Model/Folder.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -68,7 +68,7 @@ class Folder implements ModelInterface, ArrayAccess, \JsonSerializable
'size' => 'int',
'owner' => '\Apideck\Client\Model\Owner',
'parent_folders_complete' => 'bool',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'updated_by' => 'string',
'created_by' => 'string',
'updated_at' => '\DateTime',
@@ -479,7 +479,7 @@ public function setParentFoldersComplete($parent_folders_complete)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -489,7 +489,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/FormField.php b/src/gen/lib/Model/FormField.php
index c5c28fb69..fd6fc4ac1 100644
--- a/src/gen/lib/Model/FormField.php
+++ b/src/gen/lib/Model/FormField.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/FormFieldOption.php b/src/gen/lib/Model/FormFieldOption.php
index 52c1d0f3a..0eabe5eef 100644
--- a/src/gen/lib/Model/FormFieldOption.php
+++ b/src/gen/lib/Model/FormFieldOption.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/FormFieldOptionGroup.php b/src/gen/lib/Model/FormFieldOptionGroup.php
index 84c5bca68..26a92391a 100644
--- a/src/gen/lib/Model/FormFieldOptionGroup.php
+++ b/src/gen/lib/Model/FormFieldOptionGroup.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/Gender.php b/src/gen/lib/Model/Gender.php
index 2ba51041d..9cb39e4bf 100644
--- a/src/gen/lib/Model/Gender.php
+++ b/src/gen/lib/Model/Gender.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetAccountingDepartmentResponse.php b/src/gen/lib/Model/GetAccountingDepartmentResponse.php
index 0e84b25c8..7fceef105 100644
--- a/src/gen/lib/Model/GetAccountingDepartmentResponse.php
+++ b/src/gen/lib/Model/GetAccountingDepartmentResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetAccountingDepartmentsResponse.php b/src/gen/lib/Model/GetAccountingDepartmentsResponse.php
index 9cef380a1..2101be350 100644
--- a/src/gen/lib/Model/GetAccountingDepartmentsResponse.php
+++ b/src/gen/lib/Model/GetAccountingDepartmentsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetAccountingLocationResponse.php b/src/gen/lib/Model/GetAccountingLocationResponse.php
index e68a85f39..2757f4a87 100644
--- a/src/gen/lib/Model/GetAccountingLocationResponse.php
+++ b/src/gen/lib/Model/GetAccountingLocationResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetAccountingLocationsResponse.php b/src/gen/lib/Model/GetAccountingLocationsResponse.php
index c7aed3b44..4c97fffd5 100644
--- a/src/gen/lib/Model/GetAccountingLocationsResponse.php
+++ b/src/gen/lib/Model/GetAccountingLocationsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetActivitiesResponse.php b/src/gen/lib/Model/GetActivitiesResponse.php
index 49e7619d0..87ed569b5 100644
--- a/src/gen/lib/Model/GetActivitiesResponse.php
+++ b/src/gen/lib/Model/GetActivitiesResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetActivityResponse.php b/src/gen/lib/Model/GetActivityResponse.php
index 802f5ced2..3926b116e 100644
--- a/src/gen/lib/Model/GetActivityResponse.php
+++ b/src/gen/lib/Model/GetActivityResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetAgedCreditorsResponse.php b/src/gen/lib/Model/GetAgedCreditorsResponse.php
index 38efbece2..d011ba7c5 100644
--- a/src/gen/lib/Model/GetAgedCreditorsResponse.php
+++ b/src/gen/lib/Model/GetAgedCreditorsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetAgedDebtorsResponse.php b/src/gen/lib/Model/GetAgedDebtorsResponse.php
index 5902a90de..79cd6b21c 100644
--- a/src/gen/lib/Model/GetAgedDebtorsResponse.php
+++ b/src/gen/lib/Model/GetAgedDebtorsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetApiResourceCoverageResponse.php b/src/gen/lib/Model/GetApiResourceCoverageResponse.php
index be0334a6c..86f0a110b 100644
--- a/src/gen/lib/Model/GetApiResourceCoverageResponse.php
+++ b/src/gen/lib/Model/GetApiResourceCoverageResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetApiResourceResponse.php b/src/gen/lib/Model/GetApiResourceResponse.php
index b8321a919..a392b9625 100644
--- a/src/gen/lib/Model/GetApiResourceResponse.php
+++ b/src/gen/lib/Model/GetApiResourceResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetApiResponse.php b/src/gen/lib/Model/GetApiResponse.php
index b42eb25da..212d2313b 100644
--- a/src/gen/lib/Model/GetApiResponse.php
+++ b/src/gen/lib/Model/GetApiResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetApisResponse.php b/src/gen/lib/Model/GetApisResponse.php
index 8311c7e0e..b8dd1db47 100644
--- a/src/gen/lib/Model/GetApisResponse.php
+++ b/src/gen/lib/Model/GetApisResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetApplicantResponse.php b/src/gen/lib/Model/GetApplicantResponse.php
index 32080f512..15bd9a209 100644
--- a/src/gen/lib/Model/GetApplicantResponse.php
+++ b/src/gen/lib/Model/GetApplicantResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetApplicantsResponse.php b/src/gen/lib/Model/GetApplicantsResponse.php
index 3cd9b9464..8dcb920ba 100644
--- a/src/gen/lib/Model/GetApplicantsResponse.php
+++ b/src/gen/lib/Model/GetApplicantsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetApplicationResponse.php b/src/gen/lib/Model/GetApplicationResponse.php
index ca674cf3a..4cfa35f33 100644
--- a/src/gen/lib/Model/GetApplicationResponse.php
+++ b/src/gen/lib/Model/GetApplicationResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetApplicationsResponse.php b/src/gen/lib/Model/GetApplicationsResponse.php
index 66b848d9d..1e84cc682 100644
--- a/src/gen/lib/Model/GetApplicationsResponse.php
+++ b/src/gen/lib/Model/GetApplicationsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetAttachmentResponse.php b/src/gen/lib/Model/GetAttachmentResponse.php
index 85e9c3bb2..31e0a29be 100644
--- a/src/gen/lib/Model/GetAttachmentResponse.php
+++ b/src/gen/lib/Model/GetAttachmentResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetAttachmentsResponse.php b/src/gen/lib/Model/GetAttachmentsResponse.php
index a90ea7f0f..08a348042 100644
--- a/src/gen/lib/Model/GetAttachmentsResponse.php
+++ b/src/gen/lib/Model/GetAttachmentsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetBalanceSheetResponse.php b/src/gen/lib/Model/GetBalanceSheetResponse.php
index aa0e71b24..1d1694fa3 100644
--- a/src/gen/lib/Model/GetBalanceSheetResponse.php
+++ b/src/gen/lib/Model/GetBalanceSheetResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetBankFeedAccountResponse.php b/src/gen/lib/Model/GetBankFeedAccountResponse.php
new file mode 100644
index 000000000..4c3cb2095
--- /dev/null
+++ b/src/gen/lib/Model/GetBankFeedAccountResponse.php
@@ -0,0 +1,519 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class GetBankFeedAccountResponse implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'GetBankFeedAccountResponse';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'status_code' => 'int',
+ 'status' => 'string',
+ 'service' => 'string',
+ 'resource' => 'string',
+ 'operation' => 'string',
+ 'data' => '\Apideck\Client\Model\BankFeedAccount',
+ '_raw' => 'array'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'status_code' => null,
+ 'status' => null,
+ 'service' => null,
+ 'resource' => null,
+ 'operation' => null,
+ 'data' => null,
+ '_raw' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'status_code' => 'status_code',
+ 'status' => 'status',
+ 'service' => 'service',
+ 'resource' => 'resource',
+ 'operation' => 'operation',
+ 'data' => 'data',
+ '_raw' => '_raw'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'status_code' => 'setStatusCode',
+ 'status' => 'setStatus',
+ 'service' => 'setService',
+ 'resource' => 'setResource',
+ 'operation' => 'setOperation',
+ 'data' => 'setData',
+ '_raw' => 'setRaw'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'status_code' => 'getStatusCode',
+ 'status' => 'getStatus',
+ 'service' => 'getService',
+ 'resource' => 'getResource',
+ 'operation' => 'getOperation',
+ 'data' => 'getData',
+ '_raw' => 'getRaw'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['status_code'] = $data['status_code'] ?? null;
+ $this->container['status'] = $data['status'] ?? null;
+ $this->container['service'] = $data['service'] ?? null;
+ $this->container['resource'] = $data['resource'] ?? null;
+ $this->container['operation'] = $data['operation'] ?? null;
+ $this->container['data'] = $data['data'] ?? null;
+ $this->container['_raw'] = $data['_raw'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['status_code'] === null) {
+ $invalidProperties[] = "'status_code' can't be null";
+ }
+ if ($this->container['status'] === null) {
+ $invalidProperties[] = "'status' can't be null";
+ }
+ if ($this->container['service'] === null) {
+ $invalidProperties[] = "'service' can't be null";
+ }
+ if ($this->container['resource'] === null) {
+ $invalidProperties[] = "'resource' can't be null";
+ }
+ if ($this->container['operation'] === null) {
+ $invalidProperties[] = "'operation' can't be null";
+ }
+ if ($this->container['data'] === null) {
+ $invalidProperties[] = "'data' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets status_code
+ *
+ * @return int
+ */
+ public function getStatusCode()
+ {
+ return $this->container['status_code'];
+ }
+
+ /**
+ * Sets status_code
+ *
+ * @param int $status_code HTTP Response Status Code
+ *
+ * @return self
+ */
+ public function setStatusCode($status_code)
+ {
+ $this->container['status_code'] = $status_code;
+
+ return $this;
+ }
+
+ /**
+ * Gets status
+ *
+ * @return string
+ */
+ public function getStatus()
+ {
+ return $this->container['status'];
+ }
+
+ /**
+ * Sets status
+ *
+ * @param string $status HTTP Response Status
+ *
+ * @return self
+ */
+ public function setStatus($status)
+ {
+ $this->container['status'] = $status;
+
+ return $this;
+ }
+
+ /**
+ * Gets service
+ *
+ * @return string
+ */
+ public function getService()
+ {
+ return $this->container['service'];
+ }
+
+ /**
+ * Sets service
+ *
+ * @param string $service Apideck ID of service provider
+ *
+ * @return self
+ */
+ public function setService($service)
+ {
+ $this->container['service'] = $service;
+
+ return $this;
+ }
+
+ /**
+ * Gets resource
+ *
+ * @return string
+ */
+ public function getResource()
+ {
+ return $this->container['resource'];
+ }
+
+ /**
+ * Sets resource
+ *
+ * @param string $resource Unified API resource name
+ *
+ * @return self
+ */
+ public function setResource($resource)
+ {
+ $this->container['resource'] = $resource;
+
+ return $this;
+ }
+
+ /**
+ * Gets operation
+ *
+ * @return string
+ */
+ public function getOperation()
+ {
+ return $this->container['operation'];
+ }
+
+ /**
+ * Sets operation
+ *
+ * @param string $operation Operation performed
+ *
+ * @return self
+ */
+ public function setOperation($operation)
+ {
+ $this->container['operation'] = $operation;
+
+ return $this;
+ }
+
+ /**
+ * Gets data
+ *
+ * @return \Apideck\Client\Model\BankFeedAccount
+ */
+ public function getData()
+ {
+ return $this->container['data'];
+ }
+
+ /**
+ * Sets data
+ *
+ * @param \Apideck\Client\Model\BankFeedAccount $data data
+ *
+ * @return self
+ */
+ public function setData($data)
+ {
+ $this->container['data'] = $data;
+
+ return $this;
+ }
+
+ /**
+ * Gets _raw
+ *
+ * @return array|null
+ */
+ public function getRaw()
+ {
+ return $this->container['_raw'];
+ }
+
+ /**
+ * Sets _raw
+ *
+ * @param array|null $_raw Raw response from the integration when raw=true query param is provided
+ *
+ * @return self
+ */
+ public function setRaw($_raw)
+ {
+ $this->container['_raw'] = $_raw;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/GetBankFeedAccountsResponse.php b/src/gen/lib/Model/GetBankFeedAccountsResponse.php
new file mode 100644
index 000000000..f3f6c5fa1
--- /dev/null
+++ b/src/gen/lib/Model/GetBankFeedAccountsResponse.php
@@ -0,0 +1,579 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class GetBankFeedAccountsResponse implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'GetBankFeedAccountsResponse';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'status_code' => 'int',
+ 'status' => 'string',
+ 'service' => 'string',
+ 'resource' => 'string',
+ 'operation' => 'string',
+ 'data' => '\Apideck\Client\Model\BankFeedAccount[]',
+ 'meta' => '\Apideck\Client\Model\Meta',
+ 'links' => '\Apideck\Client\Model\Links',
+ '_raw' => 'array'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'status_code' => null,
+ 'status' => null,
+ 'service' => null,
+ 'resource' => null,
+ 'operation' => null,
+ 'data' => null,
+ 'meta' => null,
+ 'links' => null,
+ '_raw' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'status_code' => 'status_code',
+ 'status' => 'status',
+ 'service' => 'service',
+ 'resource' => 'resource',
+ 'operation' => 'operation',
+ 'data' => 'data',
+ 'meta' => 'meta',
+ 'links' => 'links',
+ '_raw' => '_raw'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'status_code' => 'setStatusCode',
+ 'status' => 'setStatus',
+ 'service' => 'setService',
+ 'resource' => 'setResource',
+ 'operation' => 'setOperation',
+ 'data' => 'setData',
+ 'meta' => 'setMeta',
+ 'links' => 'setLinks',
+ '_raw' => 'setRaw'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'status_code' => 'getStatusCode',
+ 'status' => 'getStatus',
+ 'service' => 'getService',
+ 'resource' => 'getResource',
+ 'operation' => 'getOperation',
+ 'data' => 'getData',
+ 'meta' => 'getMeta',
+ 'links' => 'getLinks',
+ '_raw' => 'getRaw'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['status_code'] = $data['status_code'] ?? null;
+ $this->container['status'] = $data['status'] ?? null;
+ $this->container['service'] = $data['service'] ?? null;
+ $this->container['resource'] = $data['resource'] ?? null;
+ $this->container['operation'] = $data['operation'] ?? null;
+ $this->container['data'] = $data['data'] ?? null;
+ $this->container['meta'] = $data['meta'] ?? null;
+ $this->container['links'] = $data['links'] ?? null;
+ $this->container['_raw'] = $data['_raw'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['status_code'] === null) {
+ $invalidProperties[] = "'status_code' can't be null";
+ }
+ if ($this->container['status'] === null) {
+ $invalidProperties[] = "'status' can't be null";
+ }
+ if ($this->container['service'] === null) {
+ $invalidProperties[] = "'service' can't be null";
+ }
+ if ($this->container['resource'] === null) {
+ $invalidProperties[] = "'resource' can't be null";
+ }
+ if ($this->container['operation'] === null) {
+ $invalidProperties[] = "'operation' can't be null";
+ }
+ if ($this->container['data'] === null) {
+ $invalidProperties[] = "'data' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets status_code
+ *
+ * @return int
+ */
+ public function getStatusCode()
+ {
+ return $this->container['status_code'];
+ }
+
+ /**
+ * Sets status_code
+ *
+ * @param int $status_code HTTP Response Status Code
+ *
+ * @return self
+ */
+ public function setStatusCode($status_code)
+ {
+ $this->container['status_code'] = $status_code;
+
+ return $this;
+ }
+
+ /**
+ * Gets status
+ *
+ * @return string
+ */
+ public function getStatus()
+ {
+ return $this->container['status'];
+ }
+
+ /**
+ * Sets status
+ *
+ * @param string $status HTTP Response Status
+ *
+ * @return self
+ */
+ public function setStatus($status)
+ {
+ $this->container['status'] = $status;
+
+ return $this;
+ }
+
+ /**
+ * Gets service
+ *
+ * @return string
+ */
+ public function getService()
+ {
+ return $this->container['service'];
+ }
+
+ /**
+ * Sets service
+ *
+ * @param string $service Apideck ID of service provider
+ *
+ * @return self
+ */
+ public function setService($service)
+ {
+ $this->container['service'] = $service;
+
+ return $this;
+ }
+
+ /**
+ * Gets resource
+ *
+ * @return string
+ */
+ public function getResource()
+ {
+ return $this->container['resource'];
+ }
+
+ /**
+ * Sets resource
+ *
+ * @param string $resource Unified API resource name
+ *
+ * @return self
+ */
+ public function setResource($resource)
+ {
+ $this->container['resource'] = $resource;
+
+ return $this;
+ }
+
+ /**
+ * Gets operation
+ *
+ * @return string
+ */
+ public function getOperation()
+ {
+ return $this->container['operation'];
+ }
+
+ /**
+ * Sets operation
+ *
+ * @param string $operation Operation performed
+ *
+ * @return self
+ */
+ public function setOperation($operation)
+ {
+ $this->container['operation'] = $operation;
+
+ return $this;
+ }
+
+ /**
+ * Gets data
+ *
+ * @return \Apideck\Client\Model\BankFeedAccount[]
+ */
+ public function getData()
+ {
+ return $this->container['data'];
+ }
+
+ /**
+ * Sets data
+ *
+ * @param \Apideck\Client\Model\BankFeedAccount[] $data data
+ *
+ * @return self
+ */
+ public function setData($data)
+ {
+ $this->container['data'] = $data;
+
+ return $this;
+ }
+
+ /**
+ * Gets meta
+ *
+ * @return \Apideck\Client\Model\Meta|null
+ */
+ public function getMeta()
+ {
+ return $this->container['meta'];
+ }
+
+ /**
+ * Sets meta
+ *
+ * @param \Apideck\Client\Model\Meta|null $meta meta
+ *
+ * @return self
+ */
+ public function setMeta($meta)
+ {
+ $this->container['meta'] = $meta;
+
+ return $this;
+ }
+
+ /**
+ * Gets links
+ *
+ * @return \Apideck\Client\Model\Links|null
+ */
+ public function getLinks()
+ {
+ return $this->container['links'];
+ }
+
+ /**
+ * Sets links
+ *
+ * @param \Apideck\Client\Model\Links|null $links links
+ *
+ * @return self
+ */
+ public function setLinks($links)
+ {
+ $this->container['links'] = $links;
+
+ return $this;
+ }
+
+ /**
+ * Gets _raw
+ *
+ * @return array|null
+ */
+ public function getRaw()
+ {
+ return $this->container['_raw'];
+ }
+
+ /**
+ * Sets _raw
+ *
+ * @param array|null $_raw Raw response from the integration when raw=true query param is provided
+ *
+ * @return self
+ */
+ public function setRaw($_raw)
+ {
+ $this->container['_raw'] = $_raw;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/GetBankFeedStatementResponse.php b/src/gen/lib/Model/GetBankFeedStatementResponse.php
new file mode 100644
index 000000000..e49d4a9e9
--- /dev/null
+++ b/src/gen/lib/Model/GetBankFeedStatementResponse.php
@@ -0,0 +1,519 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class GetBankFeedStatementResponse implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'GetBankFeedStatementResponse';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'status_code' => 'int',
+ 'status' => 'string',
+ 'service' => 'string',
+ 'resource' => 'string',
+ 'operation' => 'string',
+ 'data' => '\Apideck\Client\Model\BankFeedStatement',
+ '_raw' => 'array'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'status_code' => null,
+ 'status' => null,
+ 'service' => null,
+ 'resource' => null,
+ 'operation' => null,
+ 'data' => null,
+ '_raw' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'status_code' => 'status_code',
+ 'status' => 'status',
+ 'service' => 'service',
+ 'resource' => 'resource',
+ 'operation' => 'operation',
+ 'data' => 'data',
+ '_raw' => '_raw'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'status_code' => 'setStatusCode',
+ 'status' => 'setStatus',
+ 'service' => 'setService',
+ 'resource' => 'setResource',
+ 'operation' => 'setOperation',
+ 'data' => 'setData',
+ '_raw' => 'setRaw'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'status_code' => 'getStatusCode',
+ 'status' => 'getStatus',
+ 'service' => 'getService',
+ 'resource' => 'getResource',
+ 'operation' => 'getOperation',
+ 'data' => 'getData',
+ '_raw' => 'getRaw'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['status_code'] = $data['status_code'] ?? null;
+ $this->container['status'] = $data['status'] ?? null;
+ $this->container['service'] = $data['service'] ?? null;
+ $this->container['resource'] = $data['resource'] ?? null;
+ $this->container['operation'] = $data['operation'] ?? null;
+ $this->container['data'] = $data['data'] ?? null;
+ $this->container['_raw'] = $data['_raw'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['status_code'] === null) {
+ $invalidProperties[] = "'status_code' can't be null";
+ }
+ if ($this->container['status'] === null) {
+ $invalidProperties[] = "'status' can't be null";
+ }
+ if ($this->container['service'] === null) {
+ $invalidProperties[] = "'service' can't be null";
+ }
+ if ($this->container['resource'] === null) {
+ $invalidProperties[] = "'resource' can't be null";
+ }
+ if ($this->container['operation'] === null) {
+ $invalidProperties[] = "'operation' can't be null";
+ }
+ if ($this->container['data'] === null) {
+ $invalidProperties[] = "'data' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets status_code
+ *
+ * @return int
+ */
+ public function getStatusCode()
+ {
+ return $this->container['status_code'];
+ }
+
+ /**
+ * Sets status_code
+ *
+ * @param int $status_code HTTP Response Status Code
+ *
+ * @return self
+ */
+ public function setStatusCode($status_code)
+ {
+ $this->container['status_code'] = $status_code;
+
+ return $this;
+ }
+
+ /**
+ * Gets status
+ *
+ * @return string
+ */
+ public function getStatus()
+ {
+ return $this->container['status'];
+ }
+
+ /**
+ * Sets status
+ *
+ * @param string $status HTTP Response Status
+ *
+ * @return self
+ */
+ public function setStatus($status)
+ {
+ $this->container['status'] = $status;
+
+ return $this;
+ }
+
+ /**
+ * Gets service
+ *
+ * @return string
+ */
+ public function getService()
+ {
+ return $this->container['service'];
+ }
+
+ /**
+ * Sets service
+ *
+ * @param string $service Apideck ID of service provider
+ *
+ * @return self
+ */
+ public function setService($service)
+ {
+ $this->container['service'] = $service;
+
+ return $this;
+ }
+
+ /**
+ * Gets resource
+ *
+ * @return string
+ */
+ public function getResource()
+ {
+ return $this->container['resource'];
+ }
+
+ /**
+ * Sets resource
+ *
+ * @param string $resource Unified API resource name
+ *
+ * @return self
+ */
+ public function setResource($resource)
+ {
+ $this->container['resource'] = $resource;
+
+ return $this;
+ }
+
+ /**
+ * Gets operation
+ *
+ * @return string
+ */
+ public function getOperation()
+ {
+ return $this->container['operation'];
+ }
+
+ /**
+ * Sets operation
+ *
+ * @param string $operation Operation performed
+ *
+ * @return self
+ */
+ public function setOperation($operation)
+ {
+ $this->container['operation'] = $operation;
+
+ return $this;
+ }
+
+ /**
+ * Gets data
+ *
+ * @return \Apideck\Client\Model\BankFeedStatement
+ */
+ public function getData()
+ {
+ return $this->container['data'];
+ }
+
+ /**
+ * Sets data
+ *
+ * @param \Apideck\Client\Model\BankFeedStatement $data data
+ *
+ * @return self
+ */
+ public function setData($data)
+ {
+ $this->container['data'] = $data;
+
+ return $this;
+ }
+
+ /**
+ * Gets _raw
+ *
+ * @return array|null
+ */
+ public function getRaw()
+ {
+ return $this->container['_raw'];
+ }
+
+ /**
+ * Sets _raw
+ *
+ * @param array|null $_raw Raw response from the integration when raw=true query param is provided
+ *
+ * @return self
+ */
+ public function setRaw($_raw)
+ {
+ $this->container['_raw'] = $_raw;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/GetBankFeedStatementsResponse.php b/src/gen/lib/Model/GetBankFeedStatementsResponse.php
new file mode 100644
index 000000000..f5d616e3a
--- /dev/null
+++ b/src/gen/lib/Model/GetBankFeedStatementsResponse.php
@@ -0,0 +1,579 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class GetBankFeedStatementsResponse implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'GetBankFeedStatementsResponse';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'status_code' => 'int',
+ 'status' => 'string',
+ 'service' => 'string',
+ 'resource' => 'string',
+ 'operation' => 'string',
+ 'data' => '\Apideck\Client\Model\BankFeedStatement[]',
+ 'meta' => '\Apideck\Client\Model\Meta',
+ 'links' => '\Apideck\Client\Model\Links',
+ '_raw' => 'array'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'status_code' => null,
+ 'status' => null,
+ 'service' => null,
+ 'resource' => null,
+ 'operation' => null,
+ 'data' => null,
+ 'meta' => null,
+ 'links' => null,
+ '_raw' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'status_code' => 'status_code',
+ 'status' => 'status',
+ 'service' => 'service',
+ 'resource' => 'resource',
+ 'operation' => 'operation',
+ 'data' => 'data',
+ 'meta' => 'meta',
+ 'links' => 'links',
+ '_raw' => '_raw'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'status_code' => 'setStatusCode',
+ 'status' => 'setStatus',
+ 'service' => 'setService',
+ 'resource' => 'setResource',
+ 'operation' => 'setOperation',
+ 'data' => 'setData',
+ 'meta' => 'setMeta',
+ 'links' => 'setLinks',
+ '_raw' => 'setRaw'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'status_code' => 'getStatusCode',
+ 'status' => 'getStatus',
+ 'service' => 'getService',
+ 'resource' => 'getResource',
+ 'operation' => 'getOperation',
+ 'data' => 'getData',
+ 'meta' => 'getMeta',
+ 'links' => 'getLinks',
+ '_raw' => 'getRaw'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['status_code'] = $data['status_code'] ?? null;
+ $this->container['status'] = $data['status'] ?? null;
+ $this->container['service'] = $data['service'] ?? null;
+ $this->container['resource'] = $data['resource'] ?? null;
+ $this->container['operation'] = $data['operation'] ?? null;
+ $this->container['data'] = $data['data'] ?? null;
+ $this->container['meta'] = $data['meta'] ?? null;
+ $this->container['links'] = $data['links'] ?? null;
+ $this->container['_raw'] = $data['_raw'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['status_code'] === null) {
+ $invalidProperties[] = "'status_code' can't be null";
+ }
+ if ($this->container['status'] === null) {
+ $invalidProperties[] = "'status' can't be null";
+ }
+ if ($this->container['service'] === null) {
+ $invalidProperties[] = "'service' can't be null";
+ }
+ if ($this->container['resource'] === null) {
+ $invalidProperties[] = "'resource' can't be null";
+ }
+ if ($this->container['operation'] === null) {
+ $invalidProperties[] = "'operation' can't be null";
+ }
+ if ($this->container['data'] === null) {
+ $invalidProperties[] = "'data' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets status_code
+ *
+ * @return int
+ */
+ public function getStatusCode()
+ {
+ return $this->container['status_code'];
+ }
+
+ /**
+ * Sets status_code
+ *
+ * @param int $status_code HTTP Response Status Code
+ *
+ * @return self
+ */
+ public function setStatusCode($status_code)
+ {
+ $this->container['status_code'] = $status_code;
+
+ return $this;
+ }
+
+ /**
+ * Gets status
+ *
+ * @return string
+ */
+ public function getStatus()
+ {
+ return $this->container['status'];
+ }
+
+ /**
+ * Sets status
+ *
+ * @param string $status HTTP Response Status
+ *
+ * @return self
+ */
+ public function setStatus($status)
+ {
+ $this->container['status'] = $status;
+
+ return $this;
+ }
+
+ /**
+ * Gets service
+ *
+ * @return string
+ */
+ public function getService()
+ {
+ return $this->container['service'];
+ }
+
+ /**
+ * Sets service
+ *
+ * @param string $service Apideck ID of service provider
+ *
+ * @return self
+ */
+ public function setService($service)
+ {
+ $this->container['service'] = $service;
+
+ return $this;
+ }
+
+ /**
+ * Gets resource
+ *
+ * @return string
+ */
+ public function getResource()
+ {
+ return $this->container['resource'];
+ }
+
+ /**
+ * Sets resource
+ *
+ * @param string $resource Unified API resource name
+ *
+ * @return self
+ */
+ public function setResource($resource)
+ {
+ $this->container['resource'] = $resource;
+
+ return $this;
+ }
+
+ /**
+ * Gets operation
+ *
+ * @return string
+ */
+ public function getOperation()
+ {
+ return $this->container['operation'];
+ }
+
+ /**
+ * Sets operation
+ *
+ * @param string $operation Operation performed
+ *
+ * @return self
+ */
+ public function setOperation($operation)
+ {
+ $this->container['operation'] = $operation;
+
+ return $this;
+ }
+
+ /**
+ * Gets data
+ *
+ * @return \Apideck\Client\Model\BankFeedStatement[]
+ */
+ public function getData()
+ {
+ return $this->container['data'];
+ }
+
+ /**
+ * Sets data
+ *
+ * @param \Apideck\Client\Model\BankFeedStatement[] $data data
+ *
+ * @return self
+ */
+ public function setData($data)
+ {
+ $this->container['data'] = $data;
+
+ return $this;
+ }
+
+ /**
+ * Gets meta
+ *
+ * @return \Apideck\Client\Model\Meta|null
+ */
+ public function getMeta()
+ {
+ return $this->container['meta'];
+ }
+
+ /**
+ * Sets meta
+ *
+ * @param \Apideck\Client\Model\Meta|null $meta meta
+ *
+ * @return self
+ */
+ public function setMeta($meta)
+ {
+ $this->container['meta'] = $meta;
+
+ return $this;
+ }
+
+ /**
+ * Gets links
+ *
+ * @return \Apideck\Client\Model\Links|null
+ */
+ public function getLinks()
+ {
+ return $this->container['links'];
+ }
+
+ /**
+ * Sets links
+ *
+ * @param \Apideck\Client\Model\Links|null $links links
+ *
+ * @return self
+ */
+ public function setLinks($links)
+ {
+ $this->container['links'] = $links;
+
+ return $this;
+ }
+
+ /**
+ * Gets _raw
+ *
+ * @return array|null
+ */
+ public function getRaw()
+ {
+ return $this->container['_raw'];
+ }
+
+ /**
+ * Sets _raw
+ *
+ * @param array|null $_raw Raw response from the integration when raw=true query param is provided
+ *
+ * @return self
+ */
+ public function setRaw($_raw)
+ {
+ $this->container['_raw'] = $_raw;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/GetBillPaymentResponse.php b/src/gen/lib/Model/GetBillPaymentResponse.php
index c2f29805a..de12d1eec 100644
--- a/src/gen/lib/Model/GetBillPaymentResponse.php
+++ b/src/gen/lib/Model/GetBillPaymentResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetBillPaymentsResponse.php b/src/gen/lib/Model/GetBillPaymentsResponse.php
index 3556f9cb6..fb8f71c35 100644
--- a/src/gen/lib/Model/GetBillPaymentsResponse.php
+++ b/src/gen/lib/Model/GetBillPaymentsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetBillResponse.php b/src/gen/lib/Model/GetBillResponse.php
index 54937ce16..ced4a6a10 100644
--- a/src/gen/lib/Model/GetBillResponse.php
+++ b/src/gen/lib/Model/GetBillResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetBillsResponse.php b/src/gen/lib/Model/GetBillsResponse.php
index 8c00edabd..42447a7d9 100644
--- a/src/gen/lib/Model/GetBillsResponse.php
+++ b/src/gen/lib/Model/GetBillsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetCollectionResponse.php b/src/gen/lib/Model/GetCollectionResponse.php
index 7473cf027..6f0023a74 100644
--- a/src/gen/lib/Model/GetCollectionResponse.php
+++ b/src/gen/lib/Model/GetCollectionResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetCollectionTagsResponse.php b/src/gen/lib/Model/GetCollectionTagsResponse.php
index 2676a6c44..d615bc621 100644
--- a/src/gen/lib/Model/GetCollectionTagsResponse.php
+++ b/src/gen/lib/Model/GetCollectionTagsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetCollectionUserResponse.php b/src/gen/lib/Model/GetCollectionUserResponse.php
index 4a3d550ab..ac9b3d454 100644
--- a/src/gen/lib/Model/GetCollectionUserResponse.php
+++ b/src/gen/lib/Model/GetCollectionUserResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetCollectionUsersResponse.php b/src/gen/lib/Model/GetCollectionUsersResponse.php
index ae0bd6ec2..25b2dba83 100644
--- a/src/gen/lib/Model/GetCollectionUsersResponse.php
+++ b/src/gen/lib/Model/GetCollectionUsersResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetCollectionsResponse.php b/src/gen/lib/Model/GetCollectionsResponse.php
index 93dc16fd4..dec5aea0d 100644
--- a/src/gen/lib/Model/GetCollectionsResponse.php
+++ b/src/gen/lib/Model/GetCollectionsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetCommentResponse.php b/src/gen/lib/Model/GetCommentResponse.php
index e596548eb..c9f7df7f7 100644
--- a/src/gen/lib/Model/GetCommentResponse.php
+++ b/src/gen/lib/Model/GetCommentResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetCommentsResponse.php b/src/gen/lib/Model/GetCommentsResponse.php
index c193537a7..7d610a2a8 100644
--- a/src/gen/lib/Model/GetCommentsResponse.php
+++ b/src/gen/lib/Model/GetCommentsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetCompaniesResponse.php b/src/gen/lib/Model/GetCompaniesResponse.php
index e9640d33d..9de9406b9 100644
--- a/src/gen/lib/Model/GetCompaniesResponse.php
+++ b/src/gen/lib/Model/GetCompaniesResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetCompanyInfoResponse.php b/src/gen/lib/Model/GetCompanyInfoResponse.php
index 021ae3899..bf9d5d178 100644
--- a/src/gen/lib/Model/GetCompanyInfoResponse.php
+++ b/src/gen/lib/Model/GetCompanyInfoResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetCompanyResponse.php b/src/gen/lib/Model/GetCompanyResponse.php
index a08fd3c79..5a62ba14d 100644
--- a/src/gen/lib/Model/GetCompanyResponse.php
+++ b/src/gen/lib/Model/GetCompanyResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetConnectionResponse.php b/src/gen/lib/Model/GetConnectionResponse.php
index e61b6f5f9..b7e8c08b5 100644
--- a/src/gen/lib/Model/GetConnectionResponse.php
+++ b/src/gen/lib/Model/GetConnectionResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetConnectionsResponse.php b/src/gen/lib/Model/GetConnectionsResponse.php
index 51a774f0d..ef6a95d33 100644
--- a/src/gen/lib/Model/GetConnectionsResponse.php
+++ b/src/gen/lib/Model/GetConnectionsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetConnectorResourceExampleResponse.php b/src/gen/lib/Model/GetConnectorResourceExampleResponse.php
index ce43aa2cf..c06782ff7 100644
--- a/src/gen/lib/Model/GetConnectorResourceExampleResponse.php
+++ b/src/gen/lib/Model/GetConnectorResourceExampleResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetConnectorResourceExampleResponseData.php b/src/gen/lib/Model/GetConnectorResourceExampleResponseData.php
index 444e7abe2..ccf21269e 100644
--- a/src/gen/lib/Model/GetConnectorResourceExampleResponseData.php
+++ b/src/gen/lib/Model/GetConnectorResourceExampleResponseData.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetConnectorResourceResponse.php b/src/gen/lib/Model/GetConnectorResourceResponse.php
index ba4a56a71..d643b001e 100644
--- a/src/gen/lib/Model/GetConnectorResourceResponse.php
+++ b/src/gen/lib/Model/GetConnectorResourceResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetConnectorResourceSchemaResponse.php b/src/gen/lib/Model/GetConnectorResourceSchemaResponse.php
index 3fe4d760d..448e64d83 100644
--- a/src/gen/lib/Model/GetConnectorResourceSchemaResponse.php
+++ b/src/gen/lib/Model/GetConnectorResourceSchemaResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetConnectorResponse.php b/src/gen/lib/Model/GetConnectorResponse.php
index 07362ce88..857fa9807 100644
--- a/src/gen/lib/Model/GetConnectorResponse.php
+++ b/src/gen/lib/Model/GetConnectorResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetConnectorsResponse.php b/src/gen/lib/Model/GetConnectorsResponse.php
index a30a18d84..190c0e15b 100644
--- a/src/gen/lib/Model/GetConnectorsResponse.php
+++ b/src/gen/lib/Model/GetConnectorsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetConsumerResponse.php b/src/gen/lib/Model/GetConsumerResponse.php
index 8fd8488ff..1619c369a 100644
--- a/src/gen/lib/Model/GetConsumerResponse.php
+++ b/src/gen/lib/Model/GetConsumerResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetConsumersResponse.php b/src/gen/lib/Model/GetConsumersResponse.php
index 591ecebac..a9b26c05b 100644
--- a/src/gen/lib/Model/GetConsumersResponse.php
+++ b/src/gen/lib/Model/GetConsumersResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetConsumersResponseData.php b/src/gen/lib/Model/GetConsumersResponseData.php
index 5dc4fdb26..5e51f030c 100644
--- a/src/gen/lib/Model/GetConsumersResponseData.php
+++ b/src/gen/lib/Model/GetConsumersResponseData.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetContactResponse.php b/src/gen/lib/Model/GetContactResponse.php
index b202b3c08..f778ce4f4 100644
--- a/src/gen/lib/Model/GetContactResponse.php
+++ b/src/gen/lib/Model/GetContactResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetContactsResponse.php b/src/gen/lib/Model/GetContactsResponse.php
index 0f05e1d52..5b8067497 100644
--- a/src/gen/lib/Model/GetContactsResponse.php
+++ b/src/gen/lib/Model/GetContactsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetCreditNoteResponse.php b/src/gen/lib/Model/GetCreditNoteResponse.php
index 64bcb6db2..7d7fa1bd6 100644
--- a/src/gen/lib/Model/GetCreditNoteResponse.php
+++ b/src/gen/lib/Model/GetCreditNoteResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetCreditNotesResponse.php b/src/gen/lib/Model/GetCreditNotesResponse.php
index 3d3a4f994..5e66507d1 100644
--- a/src/gen/lib/Model/GetCreditNotesResponse.php
+++ b/src/gen/lib/Model/GetCreditNotesResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetCustomFieldsResponse.php b/src/gen/lib/Model/GetCustomFieldsResponse.php
index f653d3fee..af8f80f71 100644
--- a/src/gen/lib/Model/GetCustomFieldsResponse.php
+++ b/src/gen/lib/Model/GetCustomFieldsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetCustomMappingResponse.php b/src/gen/lib/Model/GetCustomMappingResponse.php
index 1cf5bbca8..962f418e3 100644
--- a/src/gen/lib/Model/GetCustomMappingResponse.php
+++ b/src/gen/lib/Model/GetCustomMappingResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetCustomMappingsResponse.php b/src/gen/lib/Model/GetCustomMappingsResponse.php
index fe587e694..547976ea4 100644
--- a/src/gen/lib/Model/GetCustomMappingsResponse.php
+++ b/src/gen/lib/Model/GetCustomMappingsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetCustomObjectResponse.php b/src/gen/lib/Model/GetCustomObjectResponse.php
new file mode 100644
index 000000000..9154aafc5
--- /dev/null
+++ b/src/gen/lib/Model/GetCustomObjectResponse.php
@@ -0,0 +1,519 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class GetCustomObjectResponse implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'GetCustomObjectResponse';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'status_code' => 'int',
+ 'status' => 'string',
+ 'service' => 'string',
+ 'resource' => 'string',
+ 'operation' => 'string',
+ 'data' => '\Apideck\Client\Model\CustomObject',
+ '_raw' => 'array'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'status_code' => null,
+ 'status' => null,
+ 'service' => null,
+ 'resource' => null,
+ 'operation' => null,
+ 'data' => null,
+ '_raw' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'status_code' => 'status_code',
+ 'status' => 'status',
+ 'service' => 'service',
+ 'resource' => 'resource',
+ 'operation' => 'operation',
+ 'data' => 'data',
+ '_raw' => '_raw'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'status_code' => 'setStatusCode',
+ 'status' => 'setStatus',
+ 'service' => 'setService',
+ 'resource' => 'setResource',
+ 'operation' => 'setOperation',
+ 'data' => 'setData',
+ '_raw' => 'setRaw'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'status_code' => 'getStatusCode',
+ 'status' => 'getStatus',
+ 'service' => 'getService',
+ 'resource' => 'getResource',
+ 'operation' => 'getOperation',
+ 'data' => 'getData',
+ '_raw' => 'getRaw'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['status_code'] = $data['status_code'] ?? null;
+ $this->container['status'] = $data['status'] ?? null;
+ $this->container['service'] = $data['service'] ?? null;
+ $this->container['resource'] = $data['resource'] ?? null;
+ $this->container['operation'] = $data['operation'] ?? null;
+ $this->container['data'] = $data['data'] ?? null;
+ $this->container['_raw'] = $data['_raw'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['status_code'] === null) {
+ $invalidProperties[] = "'status_code' can't be null";
+ }
+ if ($this->container['status'] === null) {
+ $invalidProperties[] = "'status' can't be null";
+ }
+ if ($this->container['service'] === null) {
+ $invalidProperties[] = "'service' can't be null";
+ }
+ if ($this->container['resource'] === null) {
+ $invalidProperties[] = "'resource' can't be null";
+ }
+ if ($this->container['operation'] === null) {
+ $invalidProperties[] = "'operation' can't be null";
+ }
+ if ($this->container['data'] === null) {
+ $invalidProperties[] = "'data' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets status_code
+ *
+ * @return int
+ */
+ public function getStatusCode()
+ {
+ return $this->container['status_code'];
+ }
+
+ /**
+ * Sets status_code
+ *
+ * @param int $status_code HTTP Response Status Code
+ *
+ * @return self
+ */
+ public function setStatusCode($status_code)
+ {
+ $this->container['status_code'] = $status_code;
+
+ return $this;
+ }
+
+ /**
+ * Gets status
+ *
+ * @return string
+ */
+ public function getStatus()
+ {
+ return $this->container['status'];
+ }
+
+ /**
+ * Sets status
+ *
+ * @param string $status HTTP Response Status
+ *
+ * @return self
+ */
+ public function setStatus($status)
+ {
+ $this->container['status'] = $status;
+
+ return $this;
+ }
+
+ /**
+ * Gets service
+ *
+ * @return string
+ */
+ public function getService()
+ {
+ return $this->container['service'];
+ }
+
+ /**
+ * Sets service
+ *
+ * @param string $service Apideck ID of service provider
+ *
+ * @return self
+ */
+ public function setService($service)
+ {
+ $this->container['service'] = $service;
+
+ return $this;
+ }
+
+ /**
+ * Gets resource
+ *
+ * @return string
+ */
+ public function getResource()
+ {
+ return $this->container['resource'];
+ }
+
+ /**
+ * Sets resource
+ *
+ * @param string $resource Unified API resource name
+ *
+ * @return self
+ */
+ public function setResource($resource)
+ {
+ $this->container['resource'] = $resource;
+
+ return $this;
+ }
+
+ /**
+ * Gets operation
+ *
+ * @return string
+ */
+ public function getOperation()
+ {
+ return $this->container['operation'];
+ }
+
+ /**
+ * Sets operation
+ *
+ * @param string $operation Operation performed
+ *
+ * @return self
+ */
+ public function setOperation($operation)
+ {
+ $this->container['operation'] = $operation;
+
+ return $this;
+ }
+
+ /**
+ * Gets data
+ *
+ * @return \Apideck\Client\Model\CustomObject
+ */
+ public function getData()
+ {
+ return $this->container['data'];
+ }
+
+ /**
+ * Sets data
+ *
+ * @param \Apideck\Client\Model\CustomObject $data data
+ *
+ * @return self
+ */
+ public function setData($data)
+ {
+ $this->container['data'] = $data;
+
+ return $this;
+ }
+
+ /**
+ * Gets _raw
+ *
+ * @return array|null
+ */
+ public function getRaw()
+ {
+ return $this->container['_raw'];
+ }
+
+ /**
+ * Sets _raw
+ *
+ * @param array|null $_raw Raw response from the integration when raw=true query param is provided
+ *
+ * @return self
+ */
+ public function setRaw($_raw)
+ {
+ $this->container['_raw'] = $_raw;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/GetCustomObjectSchemaResponse.php b/src/gen/lib/Model/GetCustomObjectSchemaResponse.php
new file mode 100644
index 000000000..7c2a386ae
--- /dev/null
+++ b/src/gen/lib/Model/GetCustomObjectSchemaResponse.php
@@ -0,0 +1,519 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class GetCustomObjectSchemaResponse implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'GetCustomObjectSchemaResponse';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'status_code' => 'int',
+ 'status' => 'string',
+ 'service' => 'string',
+ 'resource' => 'string',
+ 'operation' => 'string',
+ 'data' => '\Apideck\Client\Model\CustomObjectSchema',
+ '_raw' => 'array'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'status_code' => null,
+ 'status' => null,
+ 'service' => null,
+ 'resource' => null,
+ 'operation' => null,
+ 'data' => null,
+ '_raw' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'status_code' => 'status_code',
+ 'status' => 'status',
+ 'service' => 'service',
+ 'resource' => 'resource',
+ 'operation' => 'operation',
+ 'data' => 'data',
+ '_raw' => '_raw'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'status_code' => 'setStatusCode',
+ 'status' => 'setStatus',
+ 'service' => 'setService',
+ 'resource' => 'setResource',
+ 'operation' => 'setOperation',
+ 'data' => 'setData',
+ '_raw' => 'setRaw'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'status_code' => 'getStatusCode',
+ 'status' => 'getStatus',
+ 'service' => 'getService',
+ 'resource' => 'getResource',
+ 'operation' => 'getOperation',
+ 'data' => 'getData',
+ '_raw' => 'getRaw'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['status_code'] = $data['status_code'] ?? null;
+ $this->container['status'] = $data['status'] ?? null;
+ $this->container['service'] = $data['service'] ?? null;
+ $this->container['resource'] = $data['resource'] ?? null;
+ $this->container['operation'] = $data['operation'] ?? null;
+ $this->container['data'] = $data['data'] ?? null;
+ $this->container['_raw'] = $data['_raw'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['status_code'] === null) {
+ $invalidProperties[] = "'status_code' can't be null";
+ }
+ if ($this->container['status'] === null) {
+ $invalidProperties[] = "'status' can't be null";
+ }
+ if ($this->container['service'] === null) {
+ $invalidProperties[] = "'service' can't be null";
+ }
+ if ($this->container['resource'] === null) {
+ $invalidProperties[] = "'resource' can't be null";
+ }
+ if ($this->container['operation'] === null) {
+ $invalidProperties[] = "'operation' can't be null";
+ }
+ if ($this->container['data'] === null) {
+ $invalidProperties[] = "'data' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets status_code
+ *
+ * @return int
+ */
+ public function getStatusCode()
+ {
+ return $this->container['status_code'];
+ }
+
+ /**
+ * Sets status_code
+ *
+ * @param int $status_code HTTP Response Status Code
+ *
+ * @return self
+ */
+ public function setStatusCode($status_code)
+ {
+ $this->container['status_code'] = $status_code;
+
+ return $this;
+ }
+
+ /**
+ * Gets status
+ *
+ * @return string
+ */
+ public function getStatus()
+ {
+ return $this->container['status'];
+ }
+
+ /**
+ * Sets status
+ *
+ * @param string $status HTTP Response Status
+ *
+ * @return self
+ */
+ public function setStatus($status)
+ {
+ $this->container['status'] = $status;
+
+ return $this;
+ }
+
+ /**
+ * Gets service
+ *
+ * @return string
+ */
+ public function getService()
+ {
+ return $this->container['service'];
+ }
+
+ /**
+ * Sets service
+ *
+ * @param string $service Apideck ID of service provider
+ *
+ * @return self
+ */
+ public function setService($service)
+ {
+ $this->container['service'] = $service;
+
+ return $this;
+ }
+
+ /**
+ * Gets resource
+ *
+ * @return string
+ */
+ public function getResource()
+ {
+ return $this->container['resource'];
+ }
+
+ /**
+ * Sets resource
+ *
+ * @param string $resource Unified API resource name
+ *
+ * @return self
+ */
+ public function setResource($resource)
+ {
+ $this->container['resource'] = $resource;
+
+ return $this;
+ }
+
+ /**
+ * Gets operation
+ *
+ * @return string
+ */
+ public function getOperation()
+ {
+ return $this->container['operation'];
+ }
+
+ /**
+ * Sets operation
+ *
+ * @param string $operation Operation performed
+ *
+ * @return self
+ */
+ public function setOperation($operation)
+ {
+ $this->container['operation'] = $operation;
+
+ return $this;
+ }
+
+ /**
+ * Gets data
+ *
+ * @return \Apideck\Client\Model\CustomObjectSchema
+ */
+ public function getData()
+ {
+ return $this->container['data'];
+ }
+
+ /**
+ * Sets data
+ *
+ * @param \Apideck\Client\Model\CustomObjectSchema $data data
+ *
+ * @return self
+ */
+ public function setData($data)
+ {
+ $this->container['data'] = $data;
+
+ return $this;
+ }
+
+ /**
+ * Gets _raw
+ *
+ * @return array|null
+ */
+ public function getRaw()
+ {
+ return $this->container['_raw'];
+ }
+
+ /**
+ * Sets _raw
+ *
+ * @param array|null $_raw Raw response from the integration when raw=true query param is provided
+ *
+ * @return self
+ */
+ public function setRaw($_raw)
+ {
+ $this->container['_raw'] = $_raw;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/GetCustomObjectSchemasResponse.php b/src/gen/lib/Model/GetCustomObjectSchemasResponse.php
new file mode 100644
index 000000000..bcb4221a5
--- /dev/null
+++ b/src/gen/lib/Model/GetCustomObjectSchemasResponse.php
@@ -0,0 +1,579 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class GetCustomObjectSchemasResponse implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'GetCustomObjectSchemasResponse';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'status_code' => 'int',
+ 'status' => 'string',
+ 'service' => 'string',
+ 'resource' => 'string',
+ 'operation' => 'string',
+ 'data' => '\Apideck\Client\Model\CustomObjectSchema[]',
+ '_raw' => 'array',
+ 'meta' => '\Apideck\Client\Model\Meta',
+ 'links' => '\Apideck\Client\Model\Links'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'status_code' => null,
+ 'status' => null,
+ 'service' => null,
+ 'resource' => null,
+ 'operation' => null,
+ 'data' => null,
+ '_raw' => null,
+ 'meta' => null,
+ 'links' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'status_code' => 'status_code',
+ 'status' => 'status',
+ 'service' => 'service',
+ 'resource' => 'resource',
+ 'operation' => 'operation',
+ 'data' => 'data',
+ '_raw' => '_raw',
+ 'meta' => 'meta',
+ 'links' => 'links'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'status_code' => 'setStatusCode',
+ 'status' => 'setStatus',
+ 'service' => 'setService',
+ 'resource' => 'setResource',
+ 'operation' => 'setOperation',
+ 'data' => 'setData',
+ '_raw' => 'setRaw',
+ 'meta' => 'setMeta',
+ 'links' => 'setLinks'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'status_code' => 'getStatusCode',
+ 'status' => 'getStatus',
+ 'service' => 'getService',
+ 'resource' => 'getResource',
+ 'operation' => 'getOperation',
+ 'data' => 'getData',
+ '_raw' => 'getRaw',
+ 'meta' => 'getMeta',
+ 'links' => 'getLinks'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['status_code'] = $data['status_code'] ?? null;
+ $this->container['status'] = $data['status'] ?? null;
+ $this->container['service'] = $data['service'] ?? null;
+ $this->container['resource'] = $data['resource'] ?? null;
+ $this->container['operation'] = $data['operation'] ?? null;
+ $this->container['data'] = $data['data'] ?? null;
+ $this->container['_raw'] = $data['_raw'] ?? null;
+ $this->container['meta'] = $data['meta'] ?? null;
+ $this->container['links'] = $data['links'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['status_code'] === null) {
+ $invalidProperties[] = "'status_code' can't be null";
+ }
+ if ($this->container['status'] === null) {
+ $invalidProperties[] = "'status' can't be null";
+ }
+ if ($this->container['service'] === null) {
+ $invalidProperties[] = "'service' can't be null";
+ }
+ if ($this->container['resource'] === null) {
+ $invalidProperties[] = "'resource' can't be null";
+ }
+ if ($this->container['operation'] === null) {
+ $invalidProperties[] = "'operation' can't be null";
+ }
+ if ($this->container['data'] === null) {
+ $invalidProperties[] = "'data' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets status_code
+ *
+ * @return int
+ */
+ public function getStatusCode()
+ {
+ return $this->container['status_code'];
+ }
+
+ /**
+ * Sets status_code
+ *
+ * @param int $status_code HTTP Response Status Code
+ *
+ * @return self
+ */
+ public function setStatusCode($status_code)
+ {
+ $this->container['status_code'] = $status_code;
+
+ return $this;
+ }
+
+ /**
+ * Gets status
+ *
+ * @return string
+ */
+ public function getStatus()
+ {
+ return $this->container['status'];
+ }
+
+ /**
+ * Sets status
+ *
+ * @param string $status HTTP Response Status
+ *
+ * @return self
+ */
+ public function setStatus($status)
+ {
+ $this->container['status'] = $status;
+
+ return $this;
+ }
+
+ /**
+ * Gets service
+ *
+ * @return string
+ */
+ public function getService()
+ {
+ return $this->container['service'];
+ }
+
+ /**
+ * Sets service
+ *
+ * @param string $service Apideck ID of service provider
+ *
+ * @return self
+ */
+ public function setService($service)
+ {
+ $this->container['service'] = $service;
+
+ return $this;
+ }
+
+ /**
+ * Gets resource
+ *
+ * @return string
+ */
+ public function getResource()
+ {
+ return $this->container['resource'];
+ }
+
+ /**
+ * Sets resource
+ *
+ * @param string $resource Unified API resource name
+ *
+ * @return self
+ */
+ public function setResource($resource)
+ {
+ $this->container['resource'] = $resource;
+
+ return $this;
+ }
+
+ /**
+ * Gets operation
+ *
+ * @return string
+ */
+ public function getOperation()
+ {
+ return $this->container['operation'];
+ }
+
+ /**
+ * Sets operation
+ *
+ * @param string $operation Operation performed
+ *
+ * @return self
+ */
+ public function setOperation($operation)
+ {
+ $this->container['operation'] = $operation;
+
+ return $this;
+ }
+
+ /**
+ * Gets data
+ *
+ * @return \Apideck\Client\Model\CustomObjectSchema[]
+ */
+ public function getData()
+ {
+ return $this->container['data'];
+ }
+
+ /**
+ * Sets data
+ *
+ * @param \Apideck\Client\Model\CustomObjectSchema[] $data data
+ *
+ * @return self
+ */
+ public function setData($data)
+ {
+ $this->container['data'] = $data;
+
+ return $this;
+ }
+
+ /**
+ * Gets _raw
+ *
+ * @return array|null
+ */
+ public function getRaw()
+ {
+ return $this->container['_raw'];
+ }
+
+ /**
+ * Sets _raw
+ *
+ * @param array|null $_raw Raw response from the integration when raw=true query param is provided
+ *
+ * @return self
+ */
+ public function setRaw($_raw)
+ {
+ $this->container['_raw'] = $_raw;
+
+ return $this;
+ }
+
+ /**
+ * Gets meta
+ *
+ * @return \Apideck\Client\Model\Meta|null
+ */
+ public function getMeta()
+ {
+ return $this->container['meta'];
+ }
+
+ /**
+ * Sets meta
+ *
+ * @param \Apideck\Client\Model\Meta|null $meta meta
+ *
+ * @return self
+ */
+ public function setMeta($meta)
+ {
+ $this->container['meta'] = $meta;
+
+ return $this;
+ }
+
+ /**
+ * Gets links
+ *
+ * @return \Apideck\Client\Model\Links|null
+ */
+ public function getLinks()
+ {
+ return $this->container['links'];
+ }
+
+ /**
+ * Sets links
+ *
+ * @param \Apideck\Client\Model\Links|null $links links
+ *
+ * @return self
+ */
+ public function setLinks($links)
+ {
+ $this->container['links'] = $links;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/GetCustomObjectsResponse.php b/src/gen/lib/Model/GetCustomObjectsResponse.php
new file mode 100644
index 000000000..9fb3a4b82
--- /dev/null
+++ b/src/gen/lib/Model/GetCustomObjectsResponse.php
@@ -0,0 +1,579 @@
+
+ * @template TKey int|null
+ * @template TValue mixed|null
+ */
+class GetCustomObjectsResponse implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'GetCustomObjectsResponse';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'status_code' => 'int',
+ 'status' => 'string',
+ 'service' => 'string',
+ 'resource' => 'string',
+ 'operation' => 'string',
+ 'data' => '\Apideck\Client\Model\CustomObject[]',
+ '_raw' => 'array',
+ 'meta' => '\Apideck\Client\Model\Meta',
+ 'links' => '\Apideck\Client\Model\Links'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'status_code' => null,
+ 'status' => null,
+ 'service' => null,
+ 'resource' => null,
+ 'operation' => null,
+ 'data' => null,
+ '_raw' => null,
+ 'meta' => null,
+ 'links' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'status_code' => 'status_code',
+ 'status' => 'status',
+ 'service' => 'service',
+ 'resource' => 'resource',
+ 'operation' => 'operation',
+ 'data' => 'data',
+ '_raw' => '_raw',
+ 'meta' => 'meta',
+ 'links' => 'links'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'status_code' => 'setStatusCode',
+ 'status' => 'setStatus',
+ 'service' => 'setService',
+ 'resource' => 'setResource',
+ 'operation' => 'setOperation',
+ 'data' => 'setData',
+ '_raw' => 'setRaw',
+ 'meta' => 'setMeta',
+ 'links' => 'setLinks'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'status_code' => 'getStatusCode',
+ 'status' => 'getStatus',
+ 'service' => 'getService',
+ 'resource' => 'getResource',
+ 'operation' => 'getOperation',
+ 'data' => 'getData',
+ '_raw' => 'getRaw',
+ 'meta' => 'getMeta',
+ 'links' => 'getLinks'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['status_code'] = $data['status_code'] ?? null;
+ $this->container['status'] = $data['status'] ?? null;
+ $this->container['service'] = $data['service'] ?? null;
+ $this->container['resource'] = $data['resource'] ?? null;
+ $this->container['operation'] = $data['operation'] ?? null;
+ $this->container['data'] = $data['data'] ?? null;
+ $this->container['_raw'] = $data['_raw'] ?? null;
+ $this->container['meta'] = $data['meta'] ?? null;
+ $this->container['links'] = $data['links'] ?? null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['status_code'] === null) {
+ $invalidProperties[] = "'status_code' can't be null";
+ }
+ if ($this->container['status'] === null) {
+ $invalidProperties[] = "'status' can't be null";
+ }
+ if ($this->container['service'] === null) {
+ $invalidProperties[] = "'service' can't be null";
+ }
+ if ($this->container['resource'] === null) {
+ $invalidProperties[] = "'resource' can't be null";
+ }
+ if ($this->container['operation'] === null) {
+ $invalidProperties[] = "'operation' can't be null";
+ }
+ if ($this->container['data'] === null) {
+ $invalidProperties[] = "'data' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets status_code
+ *
+ * @return int
+ */
+ public function getStatusCode()
+ {
+ return $this->container['status_code'];
+ }
+
+ /**
+ * Sets status_code
+ *
+ * @param int $status_code HTTP Response Status Code
+ *
+ * @return self
+ */
+ public function setStatusCode($status_code)
+ {
+ $this->container['status_code'] = $status_code;
+
+ return $this;
+ }
+
+ /**
+ * Gets status
+ *
+ * @return string
+ */
+ public function getStatus()
+ {
+ return $this->container['status'];
+ }
+
+ /**
+ * Sets status
+ *
+ * @param string $status HTTP Response Status
+ *
+ * @return self
+ */
+ public function setStatus($status)
+ {
+ $this->container['status'] = $status;
+
+ return $this;
+ }
+
+ /**
+ * Gets service
+ *
+ * @return string
+ */
+ public function getService()
+ {
+ return $this->container['service'];
+ }
+
+ /**
+ * Sets service
+ *
+ * @param string $service Apideck ID of service provider
+ *
+ * @return self
+ */
+ public function setService($service)
+ {
+ $this->container['service'] = $service;
+
+ return $this;
+ }
+
+ /**
+ * Gets resource
+ *
+ * @return string
+ */
+ public function getResource()
+ {
+ return $this->container['resource'];
+ }
+
+ /**
+ * Sets resource
+ *
+ * @param string $resource Unified API resource name
+ *
+ * @return self
+ */
+ public function setResource($resource)
+ {
+ $this->container['resource'] = $resource;
+
+ return $this;
+ }
+
+ /**
+ * Gets operation
+ *
+ * @return string
+ */
+ public function getOperation()
+ {
+ return $this->container['operation'];
+ }
+
+ /**
+ * Sets operation
+ *
+ * @param string $operation Operation performed
+ *
+ * @return self
+ */
+ public function setOperation($operation)
+ {
+ $this->container['operation'] = $operation;
+
+ return $this;
+ }
+
+ /**
+ * Gets data
+ *
+ * @return \Apideck\Client\Model\CustomObject[]
+ */
+ public function getData()
+ {
+ return $this->container['data'];
+ }
+
+ /**
+ * Sets data
+ *
+ * @param \Apideck\Client\Model\CustomObject[] $data data
+ *
+ * @return self
+ */
+ public function setData($data)
+ {
+ $this->container['data'] = $data;
+
+ return $this;
+ }
+
+ /**
+ * Gets _raw
+ *
+ * @return array|null
+ */
+ public function getRaw()
+ {
+ return $this->container['_raw'];
+ }
+
+ /**
+ * Sets _raw
+ *
+ * @param array|null $_raw Raw response from the integration when raw=true query param is provided
+ *
+ * @return self
+ */
+ public function setRaw($_raw)
+ {
+ $this->container['_raw'] = $_raw;
+
+ return $this;
+ }
+
+ /**
+ * Gets meta
+ *
+ * @return \Apideck\Client\Model\Meta|null
+ */
+ public function getMeta()
+ {
+ return $this->container['meta'];
+ }
+
+ /**
+ * Sets meta
+ *
+ * @param \Apideck\Client\Model\Meta|null $meta meta
+ *
+ * @return self
+ */
+ public function setMeta($meta)
+ {
+ $this->container['meta'] = $meta;
+
+ return $this;
+ }
+
+ /**
+ * Gets links
+ *
+ * @return \Apideck\Client\Model\Links|null
+ */
+ public function getLinks()
+ {
+ return $this->container['links'];
+ }
+
+ /**
+ * Sets links
+ *
+ * @param \Apideck\Client\Model\Links|null $links links
+ *
+ * @return self
+ */
+ public function setLinks($links)
+ {
+ $this->container['links'] = $links;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/src/gen/lib/Model/GetCustomerResponse.php b/src/gen/lib/Model/GetCustomerResponse.php
index 97eecb9ad..f23662317 100644
--- a/src/gen/lib/Model/GetCustomerResponse.php
+++ b/src/gen/lib/Model/GetCustomerResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetCustomersResponse.php b/src/gen/lib/Model/GetCustomersResponse.php
index e66bef2dc..f8fd6bd29 100644
--- a/src/gen/lib/Model/GetCustomersResponse.php
+++ b/src/gen/lib/Model/GetCustomersResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetDepartmentResponse.php b/src/gen/lib/Model/GetDepartmentResponse.php
index 6f88dd2b5..d59b96511 100644
--- a/src/gen/lib/Model/GetDepartmentResponse.php
+++ b/src/gen/lib/Model/GetDepartmentResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetDepartmentsResponse.php b/src/gen/lib/Model/GetDepartmentsResponse.php
index d11f6e6cd..e38563517 100644
--- a/src/gen/lib/Model/GetDepartmentsResponse.php
+++ b/src/gen/lib/Model/GetDepartmentsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetDriveGroupResponse.php b/src/gen/lib/Model/GetDriveGroupResponse.php
index 6335cf141..042f66f20 100644
--- a/src/gen/lib/Model/GetDriveGroupResponse.php
+++ b/src/gen/lib/Model/GetDriveGroupResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetDriveGroupsResponse.php b/src/gen/lib/Model/GetDriveGroupsResponse.php
index 45079e82a..54ff3447d 100644
--- a/src/gen/lib/Model/GetDriveGroupsResponse.php
+++ b/src/gen/lib/Model/GetDriveGroupsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetDriveResponse.php b/src/gen/lib/Model/GetDriveResponse.php
index 7e70d8b26..8a7600334 100644
--- a/src/gen/lib/Model/GetDriveResponse.php
+++ b/src/gen/lib/Model/GetDriveResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetDrivesResponse.php b/src/gen/lib/Model/GetDrivesResponse.php
index fafb39041..fbebdcd35 100644
--- a/src/gen/lib/Model/GetDrivesResponse.php
+++ b/src/gen/lib/Model/GetDrivesResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetEcommerceCustomerResponse.php b/src/gen/lib/Model/GetEcommerceCustomerResponse.php
index 3e65fbd9d..199fb40a5 100644
--- a/src/gen/lib/Model/GetEcommerceCustomerResponse.php
+++ b/src/gen/lib/Model/GetEcommerceCustomerResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetEcommerceCustomersResponse.php b/src/gen/lib/Model/GetEcommerceCustomersResponse.php
index af1582f36..a9f8cad58 100644
--- a/src/gen/lib/Model/GetEcommerceCustomersResponse.php
+++ b/src/gen/lib/Model/GetEcommerceCustomersResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetEcommerceOrderResponse.php b/src/gen/lib/Model/GetEcommerceOrderResponse.php
index e96214a52..53fbc8da7 100644
--- a/src/gen/lib/Model/GetEcommerceOrderResponse.php
+++ b/src/gen/lib/Model/GetEcommerceOrderResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetEcommerceOrdersResponse.php b/src/gen/lib/Model/GetEcommerceOrdersResponse.php
index de574dccb..bb76b3028 100644
--- a/src/gen/lib/Model/GetEcommerceOrdersResponse.php
+++ b/src/gen/lib/Model/GetEcommerceOrdersResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetEmployeePayrollResponse.php b/src/gen/lib/Model/GetEmployeePayrollResponse.php
index b3c64367a..ad400fd2c 100644
--- a/src/gen/lib/Model/GetEmployeePayrollResponse.php
+++ b/src/gen/lib/Model/GetEmployeePayrollResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetEmployeePayrollsResponse.php b/src/gen/lib/Model/GetEmployeePayrollsResponse.php
index f792dc97e..5ad9edcc0 100644
--- a/src/gen/lib/Model/GetEmployeePayrollsResponse.php
+++ b/src/gen/lib/Model/GetEmployeePayrollsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetEmployeeResponse.php b/src/gen/lib/Model/GetEmployeeResponse.php
index 348021de1..936af5cf2 100644
--- a/src/gen/lib/Model/GetEmployeeResponse.php
+++ b/src/gen/lib/Model/GetEmployeeResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetEmployeeSchedulesResponse.php b/src/gen/lib/Model/GetEmployeeSchedulesResponse.php
index dbfd26401..6d50b27e0 100644
--- a/src/gen/lib/Model/GetEmployeeSchedulesResponse.php
+++ b/src/gen/lib/Model/GetEmployeeSchedulesResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetEmployeesResponse.php b/src/gen/lib/Model/GetEmployeesResponse.php
index 6c6131caa..ab3b59a60 100644
--- a/src/gen/lib/Model/GetEmployeesResponse.php
+++ b/src/gen/lib/Model/GetEmployeesResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetExpenseResponse.php b/src/gen/lib/Model/GetExpenseResponse.php
index e6ccd3b51..2969b603c 100644
--- a/src/gen/lib/Model/GetExpenseResponse.php
+++ b/src/gen/lib/Model/GetExpenseResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetExpensesResponse.php b/src/gen/lib/Model/GetExpensesResponse.php
index 8e87a4610..eede8b849 100644
--- a/src/gen/lib/Model/GetExpensesResponse.php
+++ b/src/gen/lib/Model/GetExpensesResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetFileResponse.php b/src/gen/lib/Model/GetFileResponse.php
index d67555fda..7962283ff 100644
--- a/src/gen/lib/Model/GetFileResponse.php
+++ b/src/gen/lib/Model/GetFileResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetFilesResponse.php b/src/gen/lib/Model/GetFilesResponse.php
index 37f41536a..b66d601f8 100644
--- a/src/gen/lib/Model/GetFilesResponse.php
+++ b/src/gen/lib/Model/GetFilesResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetFolderResponse.php b/src/gen/lib/Model/GetFolderResponse.php
index e355c0313..9a0369b38 100644
--- a/src/gen/lib/Model/GetFolderResponse.php
+++ b/src/gen/lib/Model/GetFolderResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetFoldersResponse.php b/src/gen/lib/Model/GetFoldersResponse.php
index bb368765e..33217a3cc 100644
--- a/src/gen/lib/Model/GetFoldersResponse.php
+++ b/src/gen/lib/Model/GetFoldersResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetHrisCompaniesResponse.php b/src/gen/lib/Model/GetHrisCompaniesResponse.php
index a9df284fa..1e2f42ef5 100644
--- a/src/gen/lib/Model/GetHrisCompaniesResponse.php
+++ b/src/gen/lib/Model/GetHrisCompaniesResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetHrisCompanyResponse.php b/src/gen/lib/Model/GetHrisCompanyResponse.php
index 5154b8d9d..bbcd530da 100644
--- a/src/gen/lib/Model/GetHrisCompanyResponse.php
+++ b/src/gen/lib/Model/GetHrisCompanyResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetHrisJobResponse.php b/src/gen/lib/Model/GetHrisJobResponse.php
index af243d254..92855ab38 100644
--- a/src/gen/lib/Model/GetHrisJobResponse.php
+++ b/src/gen/lib/Model/GetHrisJobResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetHrisJobsResponse.php b/src/gen/lib/Model/GetHrisJobsResponse.php
index f6927a899..aaff81150 100644
--- a/src/gen/lib/Model/GetHrisJobsResponse.php
+++ b/src/gen/lib/Model/GetHrisJobsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetInvoiceItemResponse.php b/src/gen/lib/Model/GetInvoiceItemResponse.php
index dd33d0b37..8e4cd5ec7 100644
--- a/src/gen/lib/Model/GetInvoiceItemResponse.php
+++ b/src/gen/lib/Model/GetInvoiceItemResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetInvoiceItemsResponse.php b/src/gen/lib/Model/GetInvoiceItemsResponse.php
index 643ec925b..3bc8fa0f3 100644
--- a/src/gen/lib/Model/GetInvoiceItemsResponse.php
+++ b/src/gen/lib/Model/GetInvoiceItemsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetInvoiceResponse.php b/src/gen/lib/Model/GetInvoiceResponse.php
index 900360080..6219062ad 100644
--- a/src/gen/lib/Model/GetInvoiceResponse.php
+++ b/src/gen/lib/Model/GetInvoiceResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetInvoicesResponse.php b/src/gen/lib/Model/GetInvoicesResponse.php
index 353e9d789..89c1b726b 100644
--- a/src/gen/lib/Model/GetInvoicesResponse.php
+++ b/src/gen/lib/Model/GetInvoicesResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetItemResponse.php b/src/gen/lib/Model/GetItemResponse.php
index af1a6a873..8021e050a 100644
--- a/src/gen/lib/Model/GetItemResponse.php
+++ b/src/gen/lib/Model/GetItemResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetItemsResponse.php b/src/gen/lib/Model/GetItemsResponse.php
index 192f5a342..62cc864d9 100644
--- a/src/gen/lib/Model/GetItemsResponse.php
+++ b/src/gen/lib/Model/GetItemsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetJobResponse.php b/src/gen/lib/Model/GetJobResponse.php
index 17b077155..57f250650 100644
--- a/src/gen/lib/Model/GetJobResponse.php
+++ b/src/gen/lib/Model/GetJobResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetJobsResponse.php b/src/gen/lib/Model/GetJobsResponse.php
index f1c75800a..f14eb3aae 100644
--- a/src/gen/lib/Model/GetJobsResponse.php
+++ b/src/gen/lib/Model/GetJobsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetJournalEntriesResponse.php b/src/gen/lib/Model/GetJournalEntriesResponse.php
index a6d6a9ddd..4af139d16 100644
--- a/src/gen/lib/Model/GetJournalEntriesResponse.php
+++ b/src/gen/lib/Model/GetJournalEntriesResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetJournalEntryResponse.php b/src/gen/lib/Model/GetJournalEntryResponse.php
index 2fc1df188..4cc1ceeae 100644
--- a/src/gen/lib/Model/GetJournalEntryResponse.php
+++ b/src/gen/lib/Model/GetJournalEntryResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetLeadResponse.php b/src/gen/lib/Model/GetLeadResponse.php
index 5e86d66fe..3b68d56e1 100644
--- a/src/gen/lib/Model/GetLeadResponse.php
+++ b/src/gen/lib/Model/GetLeadResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetLeadsResponse.php b/src/gen/lib/Model/GetLeadsResponse.php
index f6c6656b8..36f27e377 100644
--- a/src/gen/lib/Model/GetLeadsResponse.php
+++ b/src/gen/lib/Model/GetLeadsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetLedgerAccountResponse.php b/src/gen/lib/Model/GetLedgerAccountResponse.php
index 4955c2647..4f450819a 100644
--- a/src/gen/lib/Model/GetLedgerAccountResponse.php
+++ b/src/gen/lib/Model/GetLedgerAccountResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetLedgerAccountsResponse.php b/src/gen/lib/Model/GetLedgerAccountsResponse.php
index faafaaaa7..ead1b67e5 100644
--- a/src/gen/lib/Model/GetLedgerAccountsResponse.php
+++ b/src/gen/lib/Model/GetLedgerAccountsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetLocationResponse.php b/src/gen/lib/Model/GetLocationResponse.php
index 848ca2e09..0cf7d28d7 100644
--- a/src/gen/lib/Model/GetLocationResponse.php
+++ b/src/gen/lib/Model/GetLocationResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetLocationsResponse.php b/src/gen/lib/Model/GetLocationsResponse.php
index ada1ac941..a057ae932 100644
--- a/src/gen/lib/Model/GetLocationsResponse.php
+++ b/src/gen/lib/Model/GetLocationsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetLogsResponse.php b/src/gen/lib/Model/GetLogsResponse.php
index dbf445928..0a84e62e2 100644
--- a/src/gen/lib/Model/GetLogsResponse.php
+++ b/src/gen/lib/Model/GetLogsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetMerchantResponse.php b/src/gen/lib/Model/GetMerchantResponse.php
index 40eca2aa0..7659656b3 100644
--- a/src/gen/lib/Model/GetMerchantResponse.php
+++ b/src/gen/lib/Model/GetMerchantResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetMerchantsResponse.php b/src/gen/lib/Model/GetMerchantsResponse.php
index c3ecbe4db..9201edd0b 100644
--- a/src/gen/lib/Model/GetMerchantsResponse.php
+++ b/src/gen/lib/Model/GetMerchantsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetMessageResponse.php b/src/gen/lib/Model/GetMessageResponse.php
index dc2d30157..05219fe1c 100644
--- a/src/gen/lib/Model/GetMessageResponse.php
+++ b/src/gen/lib/Model/GetMessageResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetMessagesResponse.php b/src/gen/lib/Model/GetMessagesResponse.php
index d70bad50f..12fac398e 100644
--- a/src/gen/lib/Model/GetMessagesResponse.php
+++ b/src/gen/lib/Model/GetMessagesResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetModifierGroupResponse.php b/src/gen/lib/Model/GetModifierGroupResponse.php
index 15f43f7a1..4a00fa21d 100644
--- a/src/gen/lib/Model/GetModifierGroupResponse.php
+++ b/src/gen/lib/Model/GetModifierGroupResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetModifierGroupsResponse.php b/src/gen/lib/Model/GetModifierGroupsResponse.php
index 243d079f3..670739d86 100644
--- a/src/gen/lib/Model/GetModifierGroupsResponse.php
+++ b/src/gen/lib/Model/GetModifierGroupsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetModifierResponse.php b/src/gen/lib/Model/GetModifierResponse.php
index e56381d46..417360a1f 100644
--- a/src/gen/lib/Model/GetModifierResponse.php
+++ b/src/gen/lib/Model/GetModifierResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetModifiersResponse.php b/src/gen/lib/Model/GetModifiersResponse.php
index 703c5f6b9..315dbad3e 100644
--- a/src/gen/lib/Model/GetModifiersResponse.php
+++ b/src/gen/lib/Model/GetModifiersResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetNoteResponse.php b/src/gen/lib/Model/GetNoteResponse.php
index 6fd357fb1..3c497daf5 100644
--- a/src/gen/lib/Model/GetNoteResponse.php
+++ b/src/gen/lib/Model/GetNoteResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetNotesResponse.php b/src/gen/lib/Model/GetNotesResponse.php
index e41d67878..3ecefb0ad 100644
--- a/src/gen/lib/Model/GetNotesResponse.php
+++ b/src/gen/lib/Model/GetNotesResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetOpportunitiesResponse.php b/src/gen/lib/Model/GetOpportunitiesResponse.php
index 9798c79e4..73c221363 100644
--- a/src/gen/lib/Model/GetOpportunitiesResponse.php
+++ b/src/gen/lib/Model/GetOpportunitiesResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetOpportunityResponse.php b/src/gen/lib/Model/GetOpportunityResponse.php
index d103b27ef..9ed2ed6e7 100644
--- a/src/gen/lib/Model/GetOpportunityResponse.php
+++ b/src/gen/lib/Model/GetOpportunityResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetOrderResponse.php b/src/gen/lib/Model/GetOrderResponse.php
index 3086742b1..3ce4693ae 100644
--- a/src/gen/lib/Model/GetOrderResponse.php
+++ b/src/gen/lib/Model/GetOrderResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetOrderTypeResponse.php b/src/gen/lib/Model/GetOrderTypeResponse.php
index 47f2f9039..d675c9bb3 100644
--- a/src/gen/lib/Model/GetOrderTypeResponse.php
+++ b/src/gen/lib/Model/GetOrderTypeResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetOrderTypesResponse.php b/src/gen/lib/Model/GetOrderTypesResponse.php
index 56fda274e..db51632c9 100644
--- a/src/gen/lib/Model/GetOrderTypesResponse.php
+++ b/src/gen/lib/Model/GetOrderTypesResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetOrdersResponse.php b/src/gen/lib/Model/GetOrdersResponse.php
index 07b5c8384..6cc65aa7b 100644
--- a/src/gen/lib/Model/GetOrdersResponse.php
+++ b/src/gen/lib/Model/GetOrdersResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetPaymentResponse.php b/src/gen/lib/Model/GetPaymentResponse.php
index 442c30ae2..47280a1d0 100644
--- a/src/gen/lib/Model/GetPaymentResponse.php
+++ b/src/gen/lib/Model/GetPaymentResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetPaymentsResponse.php b/src/gen/lib/Model/GetPaymentsResponse.php
index 60d9b1b03..36679a86c 100644
--- a/src/gen/lib/Model/GetPaymentsResponse.php
+++ b/src/gen/lib/Model/GetPaymentsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetPayrollResponse.php b/src/gen/lib/Model/GetPayrollResponse.php
index 7b6e4a7d6..21d7fc124 100644
--- a/src/gen/lib/Model/GetPayrollResponse.php
+++ b/src/gen/lib/Model/GetPayrollResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetPayrollsResponse.php b/src/gen/lib/Model/GetPayrollsResponse.php
index 45f4008b9..d9c19afaa 100644
--- a/src/gen/lib/Model/GetPayrollsResponse.php
+++ b/src/gen/lib/Model/GetPayrollsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetPipelineResponse.php b/src/gen/lib/Model/GetPipelineResponse.php
index 1944b2ea1..03bd385c8 100644
--- a/src/gen/lib/Model/GetPipelineResponse.php
+++ b/src/gen/lib/Model/GetPipelineResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetPipelinesResponse.php b/src/gen/lib/Model/GetPipelinesResponse.php
index 5db60624c..003427977 100644
--- a/src/gen/lib/Model/GetPipelinesResponse.php
+++ b/src/gen/lib/Model/GetPipelinesResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetPosPaymentResponse.php b/src/gen/lib/Model/GetPosPaymentResponse.php
index 265995ff8..888a0b618 100644
--- a/src/gen/lib/Model/GetPosPaymentResponse.php
+++ b/src/gen/lib/Model/GetPosPaymentResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetPosPaymentsResponse.php b/src/gen/lib/Model/GetPosPaymentsResponse.php
index 916d0d801..11e18d15f 100644
--- a/src/gen/lib/Model/GetPosPaymentsResponse.php
+++ b/src/gen/lib/Model/GetPosPaymentsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetProductResponse.php b/src/gen/lib/Model/GetProductResponse.php
index c29095d9e..7b13b01bc 100644
--- a/src/gen/lib/Model/GetProductResponse.php
+++ b/src/gen/lib/Model/GetProductResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetProductsResponse.php b/src/gen/lib/Model/GetProductsResponse.php
index ead9f2876..753d2c189 100644
--- a/src/gen/lib/Model/GetProductsResponse.php
+++ b/src/gen/lib/Model/GetProductsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetProfitAndLossResponse.php b/src/gen/lib/Model/GetProfitAndLossResponse.php
index ba568d009..89bd0775a 100644
--- a/src/gen/lib/Model/GetProfitAndLossResponse.php
+++ b/src/gen/lib/Model/GetProfitAndLossResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetPurchaseOrderResponse.php b/src/gen/lib/Model/GetPurchaseOrderResponse.php
index 85b0dcb8b..0e13d6414 100644
--- a/src/gen/lib/Model/GetPurchaseOrderResponse.php
+++ b/src/gen/lib/Model/GetPurchaseOrderResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetPurchaseOrdersResponse.php b/src/gen/lib/Model/GetPurchaseOrdersResponse.php
index d65528a2f..0dc0abd1e 100644
--- a/src/gen/lib/Model/GetPurchaseOrdersResponse.php
+++ b/src/gen/lib/Model/GetPurchaseOrdersResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetResourceExampleResponse.php b/src/gen/lib/Model/GetResourceExampleResponse.php
index 3b0a1f3cd..54faf185b 100644
--- a/src/gen/lib/Model/GetResourceExampleResponse.php
+++ b/src/gen/lib/Model/GetResourceExampleResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetResourceSchemaResponse.php b/src/gen/lib/Model/GetResourceSchemaResponse.php
index 4a2cb24ea..3df05a4bb 100644
--- a/src/gen/lib/Model/GetResourceSchemaResponse.php
+++ b/src/gen/lib/Model/GetResourceSchemaResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetSharedLinkResponse.php b/src/gen/lib/Model/GetSharedLinkResponse.php
index 5602dea2e..a50b4d5c3 100644
--- a/src/gen/lib/Model/GetSharedLinkResponse.php
+++ b/src/gen/lib/Model/GetSharedLinkResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetSharedLinksResponse.php b/src/gen/lib/Model/GetSharedLinksResponse.php
index 82edefc82..9e159dc04 100644
--- a/src/gen/lib/Model/GetSharedLinksResponse.php
+++ b/src/gen/lib/Model/GetSharedLinksResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetStoreResponse.php b/src/gen/lib/Model/GetStoreResponse.php
index f291ec7ad..c7e251863 100644
--- a/src/gen/lib/Model/GetStoreResponse.php
+++ b/src/gen/lib/Model/GetStoreResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetStoresResponse.php b/src/gen/lib/Model/GetStoresResponse.php
index f2fb876e3..3e891f0dc 100644
--- a/src/gen/lib/Model/GetStoresResponse.php
+++ b/src/gen/lib/Model/GetStoresResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetSubsidiariesResponse.php b/src/gen/lib/Model/GetSubsidiariesResponse.php
index 9a3e8a2a9..5f6e121e6 100644
--- a/src/gen/lib/Model/GetSubsidiariesResponse.php
+++ b/src/gen/lib/Model/GetSubsidiariesResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetSubsidiaryResponse.php b/src/gen/lib/Model/GetSubsidiaryResponse.php
index 440a32a64..7a0f690f2 100644
--- a/src/gen/lib/Model/GetSubsidiaryResponse.php
+++ b/src/gen/lib/Model/GetSubsidiaryResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetSupplierResponse.php b/src/gen/lib/Model/GetSupplierResponse.php
index 5ffa788b6..de79adc2f 100644
--- a/src/gen/lib/Model/GetSupplierResponse.php
+++ b/src/gen/lib/Model/GetSupplierResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetSuppliersResponse.php b/src/gen/lib/Model/GetSuppliersResponse.php
index 72597717e..ecd937151 100644
--- a/src/gen/lib/Model/GetSuppliersResponse.php
+++ b/src/gen/lib/Model/GetSuppliersResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetTaxRateResponse.php b/src/gen/lib/Model/GetTaxRateResponse.php
index a80c2a81b..7993572d0 100644
--- a/src/gen/lib/Model/GetTaxRateResponse.php
+++ b/src/gen/lib/Model/GetTaxRateResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetTaxRatesResponse.php b/src/gen/lib/Model/GetTaxRatesResponse.php
index 4a4964525..e79a40a8d 100644
--- a/src/gen/lib/Model/GetTaxRatesResponse.php
+++ b/src/gen/lib/Model/GetTaxRatesResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetTenderResponse.php b/src/gen/lib/Model/GetTenderResponse.php
index 8eb460a75..0932e4fcd 100644
--- a/src/gen/lib/Model/GetTenderResponse.php
+++ b/src/gen/lib/Model/GetTenderResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetTendersResponse.php b/src/gen/lib/Model/GetTendersResponse.php
index 435f5b92d..d76e6585b 100644
--- a/src/gen/lib/Model/GetTendersResponse.php
+++ b/src/gen/lib/Model/GetTendersResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetTicketResponse.php b/src/gen/lib/Model/GetTicketResponse.php
index bba870d72..c331b19de 100644
--- a/src/gen/lib/Model/GetTicketResponse.php
+++ b/src/gen/lib/Model/GetTicketResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetTicketsResponse.php b/src/gen/lib/Model/GetTicketsResponse.php
index 73d6922f2..66ca4c824 100644
--- a/src/gen/lib/Model/GetTicketsResponse.php
+++ b/src/gen/lib/Model/GetTicketsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetTimeOffRequestResponse.php b/src/gen/lib/Model/GetTimeOffRequestResponse.php
index 519991830..c18d6c55d 100644
--- a/src/gen/lib/Model/GetTimeOffRequestResponse.php
+++ b/src/gen/lib/Model/GetTimeOffRequestResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetTimeOffRequestsResponse.php b/src/gen/lib/Model/GetTimeOffRequestsResponse.php
index 7c6e6348c..c30685e45 100644
--- a/src/gen/lib/Model/GetTimeOffRequestsResponse.php
+++ b/src/gen/lib/Model/GetTimeOffRequestsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetTrackingCategoriesResponse.php b/src/gen/lib/Model/GetTrackingCategoriesResponse.php
index 3c12abc46..f18da75df 100644
--- a/src/gen/lib/Model/GetTrackingCategoriesResponse.php
+++ b/src/gen/lib/Model/GetTrackingCategoriesResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetTrackingCategoryResponse.php b/src/gen/lib/Model/GetTrackingCategoryResponse.php
index cac736be6..218143cab 100644
--- a/src/gen/lib/Model/GetTrackingCategoryResponse.php
+++ b/src/gen/lib/Model/GetTrackingCategoryResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetUploadSessionResponse.php b/src/gen/lib/Model/GetUploadSessionResponse.php
index de778ee74..cd4659111 100644
--- a/src/gen/lib/Model/GetUploadSessionResponse.php
+++ b/src/gen/lib/Model/GetUploadSessionResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetUserResponse.php b/src/gen/lib/Model/GetUserResponse.php
index 901f0deb9..ea5dd94b8 100644
--- a/src/gen/lib/Model/GetUserResponse.php
+++ b/src/gen/lib/Model/GetUserResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetUsersResponse.php b/src/gen/lib/Model/GetUsersResponse.php
index efaa6a6a6..be92c1469 100644
--- a/src/gen/lib/Model/GetUsersResponse.php
+++ b/src/gen/lib/Model/GetUsersResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetWebhookEventLogsResponse.php b/src/gen/lib/Model/GetWebhookEventLogsResponse.php
index 52224b83c..883859372 100644
--- a/src/gen/lib/Model/GetWebhookEventLogsResponse.php
+++ b/src/gen/lib/Model/GetWebhookEventLogsResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetWebhookResponse.php b/src/gen/lib/Model/GetWebhookResponse.php
index 37a48fb29..959e139e9 100644
--- a/src/gen/lib/Model/GetWebhookResponse.php
+++ b/src/gen/lib/Model/GetWebhookResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/GetWebhooksResponse.php b/src/gen/lib/Model/GetWebhooksResponse.php
index 4a9fe80b7..c8e8787d9 100644
--- a/src/gen/lib/Model/GetWebhooksResponse.php
+++ b/src/gen/lib/Model/GetWebhooksResponse.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/HrisCompany.php b/src/gen/lib/Model/HrisCompany.php
index 709265f2a..3d974d9e1 100644
--- a/src/gen/lib/Model/HrisCompany.php
+++ b/src/gen/lib/Model/HrisCompany.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -72,7 +72,7 @@ class HrisCompany implements ModelInterface, ArrayAccess, \JsonSerializable
'emails' => '\Apideck\Client\Model\Email[]',
'websites' => '\Apideck\Client\Model\Website[]',
'debtor_id' => 'string',
- 'custom_mappings' => 'object',
+ 'custom_mappings' => 'array',
'deleted' => 'bool',
'updated_by' => 'string',
'created_by' => 'string',
@@ -682,7 +682,7 @@ public function setDebtorId($debtor_id)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -692,7 +692,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
*
* @return self
*/
diff --git a/src/gen/lib/Model/HrisEventType.php b/src/gen/lib/Model/HrisEventType.php
index 15bec231d..92c480557 100644
--- a/src/gen/lib/Model/HrisEventType.php
+++ b/src/gen/lib/Model/HrisEventType.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
diff --git a/src/gen/lib/Model/HrisJob.php b/src/gen/lib/Model/HrisJob.php
index f69b6bfa2..4b9a4d224 100644
--- a/src/gen/lib/Model/HrisJob.php
+++ b/src/gen/lib/Model/HrisJob.php
@@ -15,7 +15,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
- * The version of the OpenAPI document: 10.14.1
+ * The version of the OpenAPI document: 10.17.2
* Contact: support@apideck.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
@@ -69,7 +69,7 @@ class HrisJob implements ModelInterface, ArrayAccess, \JsonSerializable
'department' => 'string',
'is_primary' => 'bool',
'location' => '\Apideck\Client\Model\HrisJobLocation',
- 'custom_mappings' => 'object'
+ 'custom_mappings' => 'array'
];
/**
@@ -479,7 +479,7 @@ public function setLocation($location)
/**
* Gets custom_mappings
*
- * @return object|null
+ * @return array|null
*/
public function getCustomMappings()
{
@@ -489,7 +489,7 @@ public function getCustomMappings()
/**
* Sets custom_mappings
*
- * @param object|null $custom_mappings When custom mappings are configured on the resource, the result is included here.
+ * @param array