From f39e58dafd9d4f24ab702a6154350656c3c2e710 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Fri, 30 May 2025 05:35:24 +0000
Subject: [PATCH] Automated update by SDK Generator version:3.11.0
commit:fbb3a12
---
.github/workflows/release.yml | 2 +-
package.json | 2 +-
src/gen/.openapi-generator/FILES | 99 +
src/gen/docs/apis/AccountingApi.md | 680 +++
src/gen/docs/apis/CrmApi.md | 682 +++
src/gen/docs/models/AccountingDepartment.md | 4 +-
src/gen/docs/models/AccountingLocation.md | 2 +-
src/gen/docs/models/Activity.md | 2 +-
src/gen/docs/models/Applicant.md | 2 +-
src/gen/docs/models/Application.md | 2 +-
src/gen/docs/models/AtsActivity.md | 2 +-
src/gen/docs/models/BalanceSheetReports.md | 2 +-
src/gen/docs/models/BankFeedAccount.md | 71 +
src/gen/docs/models/BankFeedStatement.md | 60 +
.../models/BankFeedStatementTransactions.md | 54 +
src/gen/docs/models/Bill.md | 2 +-
src/gen/docs/models/BillPayment.md | 2 +-
src/gen/docs/models/Collection.md | 2 +-
src/gen/docs/models/CollectionTag.md | 2 +-
.../docs/models/CollectionTicketComment.md | 2 +-
src/gen/docs/models/CollectionUser.md | 2 +-
src/gen/docs/models/Company.md | 2 +-
src/gen/docs/models/CompanyInfo.md | 2 +-
src/gen/docs/models/Contact.md | 2 +-
.../models/CreateBankFeedAccountResponse.md | 33 +
.../models/CreateBankFeedStatementResponse.md | 33 +
.../docs/models/CreateCustomObjectResponse.md | 33 +
.../CreateCustomObjectSchemaResponse.md | 33 +
src/gen/docs/models/CreditNote.md | 2 +-
src/gen/docs/models/CreditOrDebit.md | 15 +
src/gen/docs/models/CustomObject.md | 37 +
src/gen/docs/models/CustomObjectFields.md | 19 +
src/gen/docs/models/CustomObjectSchema.md | 41 +
.../docs/models/CustomObjectSchemaFields.md | 64 +
.../docs/models/CustomObjectSchemaOptions.md | 19 +
.../docs/models/CustomObjectSchemasSort.md | 36 +
src/gen/docs/models/CustomObjectsSort.md | 36 +
src/gen/docs/models/Customer.md | 2 +-
.../models/DeleteBankFeedAccountResponse.md | 33 +
.../models/DeleteBankFeedStatementResponse.md | 33 +
.../docs/models/DeleteCustomObjectResponse.md | 33 +
.../DeleteCustomObjectSchemaResponse.md | 33 +
src/gen/docs/models/Department.md | 2 +-
src/gen/docs/models/Drive.md | 2 +-
src/gen/docs/models/DriveGroup.md | 2 +-
src/gen/docs/models/EcommerceCustomer.md | 2 +-
src/gen/docs/models/EcommerceOrder.md | 4 +-
src/gen/docs/models/EcommerceOrderLineItem.md | 2 +-
src/gen/docs/models/EcommerceOrderRefund.md | 31 +
src/gen/docs/models/EcommerceProduct.md | 2 +-
src/gen/docs/models/EcommerceStore.md | 2 +-
src/gen/docs/models/Employee.md | 2 +-
src/gen/docs/models/EmployeesFilter.md | 1 +
src/gen/docs/models/Expense.md | 6 +-
src/gen/docs/models/ExpenseLineItem.md | 2 +
src/gen/docs/models/Folder.md | 2 +-
.../docs/models/GetBankFeedAccountResponse.md | 33 +
.../models/GetBankFeedAccountsResponse.md | 37 +
.../models/GetBankFeedStatementResponse.md | 33 +
.../models/GetBankFeedStatementsResponse.md | 37 +
.../docs/models/GetCustomObjectResponse.md | 33 +
.../models/GetCustomObjectSchemaResponse.md | 33 +
.../models/GetCustomObjectSchemasResponse.md | 37 +
.../docs/models/GetCustomObjectsResponse.md | 37 +
src/gen/docs/models/HrisCompany.md | 2 +-
src/gen/docs/models/HrisJob.md | 2 +-
src/gen/docs/models/Invoice.md | 4 +-
src/gen/docs/models/InvoiceItem.md | 2 +-
src/gen/docs/models/InvoiceLineItem.md | 2 +
.../docs/models/InvoicePaymentAllocations.md | 20 +
src/gen/docs/models/Item.md | 2 +-
src/gen/docs/models/Job.md | 2 +-
src/gen/docs/models/JournalEntry.md | 25 +-
src/gen/docs/models/Lead.md | 4 +-
src/gen/docs/models/LedgerAccount.md | 2 +-
src/gen/docs/models/Location.md | 2 +-
src/gen/docs/models/Merchant.md | 2 +-
src/gen/docs/models/Message.md | 2 +-
src/gen/docs/models/Modifier.md | 2 +-
src/gen/docs/models/ModifierGroup.md | 2 +-
src/gen/docs/models/Note.md | 3 +-
src/gen/docs/models/Offer.md | 2 +-
src/gen/docs/models/Opportunity.md | 2 +-
src/gen/docs/models/Order.md | 2 +-
src/gen/docs/models/OtherExpenses.md | 4 +-
src/gen/docs/models/OtherIncome.md | 4 +-
src/gen/docs/models/Payment.md | 2 +-
src/gen/docs/models/PaymentsFilter.md | 1 +
src/gen/docs/models/Payroll.md | 2 +-
src/gen/docs/models/Person.md | 2 +-
src/gen/docs/models/PosPayment.md | 2 +-
src/gen/docs/models/ProfitAndLoss.md | 2 +-
src/gen/docs/models/PurchaseOrder.md | 4 +-
src/gen/docs/models/Subsidiary.md | 2 +-
src/gen/docs/models/Supplier.md | 2 +-
src/gen/docs/models/TaxRate.md | 2 +-
src/gen/docs/models/Tender.md | 2 +-
src/gen/docs/models/Ticket.md | 2 +-
src/gen/docs/models/TimeOffRequest.md | 2 +-
src/gen/docs/models/TrackingCategory.md | 2 +-
src/gen/docs/models/UnifiedFile.md | 2 +-
.../models/UpdateBankFeedAccountResponse.md | 33 +
.../models/UpdateBankFeedStatementResponse.md | 33 +
.../docs/models/UpdateCustomObjectResponse.md | 33 +
.../UpdateCustomObjectSchemaResponse.md | 33 +
src/gen/docs/models/User.md | 2 +-
src/gen/lib/Api/AccountingApi.php | 5258 ++++++++++++++++-
src/gen/lib/Api/AtsApi.php | 2 +-
src/gen/lib/Api/ConnectorApi.php | 2 +-
src/gen/lib/Api/CrmApi.php | 5200 +++++++++++++++-
src/gen/lib/Api/EcommerceApi.php | 2 +-
src/gen/lib/Api/FileStorageApi.php | 2 +-
src/gen/lib/Api/HrisApi.php | 2 +-
src/gen/lib/Api/IssueTrackingApi.php | 2 +-
src/gen/lib/Api/LeadApi.php | 2 +-
src/gen/lib/Api/PosApi.php | 2 +-
src/gen/lib/Api/SmsApi.php | 2 +-
src/gen/lib/Api/VaultApi.php | 2 +-
src/gen/lib/Api/WebhookApi.php | 2 +-
src/gen/lib/ApiException.php | 2 +-
src/gen/lib/Configuration.php | 8 +-
src/gen/lib/HeaderSelector.php | 2 +-
src/gen/lib/Model/AccountingDepartment.php | 38 +-
.../lib/Model/AccountingDepartmentsFilter.php | 2 +-
src/gen/lib/Model/AccountingEventType.php | 2 +-
src/gen/lib/Model/AccountingLocation.php | 8 +-
.../lib/Model/AccountingLocationsFilter.php | 2 +-
src/gen/lib/Model/ActivitiesFilter.php | 2 +-
src/gen/lib/Model/ActivitiesSort.php | 2 +-
src/gen/lib/Model/Activity.php | 8 +-
src/gen/lib/Model/ActivityAttendee.php | 2 +-
src/gen/lib/Model/Address.php | 2 +-
src/gen/lib/Model/AgedCreditors.php | 2 +-
src/gen/lib/Model/AgedDebtors.php | 2 +-
src/gen/lib/Model/AgedReportFilter.php | 2 +-
src/gen/lib/Model/Allocation.php | 2 +-
src/gen/lib/Model/Api.php | 2 +-
src/gen/lib/Model/ApiResource.php | 2 +-
src/gen/lib/Model/ApiResourceCoverage.php | 2 +-
.../lib/Model/ApiResourceCoverageCoverage.php | 2 +-
.../lib/Model/ApiResourceLinkedResources.php | 2 +-
src/gen/lib/Model/ApiResources.php | 2 +-
src/gen/lib/Model/ApiStatus.php | 2 +-
src/gen/lib/Model/ApisFilter.php | 2 +-
src/gen/lib/Model/Applicant.php | 8 +-
src/gen/lib/Model/ApplicantSocialLinks.php | 2 +-
src/gen/lib/Model/ApplicantWebsites.php | 2 +-
src/gen/lib/Model/ApplicantsFilter.php | 2 +-
src/gen/lib/Model/Application.php | 8 +-
src/gen/lib/Model/ApplicationStage.php | 2 +-
src/gen/lib/Model/Assignee.php | 2 +-
src/gen/lib/Model/AtsActivity.php | 8 +-
src/gen/lib/Model/AtsEventType.php | 2 +-
src/gen/lib/Model/Attachment.php | 2 +-
src/gen/lib/Model/AttachmentReference.php | 2 +-
src/gen/lib/Model/AttachmentReferenceType.php | 2 +-
src/gen/lib/Model/AuthType.php | 2 +-
src/gen/lib/Model/BadRequestResponse.php | 2 +-
src/gen/lib/Model/BalanceByPeriod.php | 2 +-
src/gen/lib/Model/BalanceByTransaction.php | 2 +-
src/gen/lib/Model/BalanceSheet.php | 2 +-
src/gen/lib/Model/BalanceSheetAccount.php | 2 +-
.../lib/Model/BalanceSheetAccountRecord.php | 2 +-
.../lib/Model/BalanceSheetAssetsAccount.php | 2 +-
.../lib/Model/BalanceSheetEquityAccount.php | 2 +-
src/gen/lib/Model/BalanceSheetFilter.php | 2 +-
.../Model/BalanceSheetLiabilitiesAccount.php | 2 +-
src/gen/lib/Model/BalanceSheetReports.php | 8 +-
.../BalanceSheetUncategorizedItemsAccount.php | 2 +-
src/gen/lib/Model/BankAccount.php | 2 +-
src/gen/lib/Model/BankFeedAccount.php | 827 +++
src/gen/lib/Model/BankFeedStatement.php | 750 +++
.../Model/BankFeedStatementTransactions.php | 585 ++
src/gen/lib/Model/Benefit.php | 2 +-
src/gen/lib/Model/Bill.php | 8 +-
src/gen/lib/Model/BillLineItem.php | 2 +-
src/gen/lib/Model/BillPayment.php | 8 +-
src/gen/lib/Model/BillPaymentAllocations.php | 2 +-
src/gen/lib/Model/BillsFilter.php | 2 +-
src/gen/lib/Model/BillsSort.php | 2 +-
src/gen/lib/Model/Branch.php | 2 +-
src/gen/lib/Model/CashDetails.php | 2 +-
src/gen/lib/Model/Collection.php | 8 +-
src/gen/lib/Model/CollectionTag.php | 8 +-
src/gen/lib/Model/CollectionTicketComment.php | 8 +-
src/gen/lib/Model/CollectionUser.php | 8 +-
src/gen/lib/Model/CollectionsSort.php | 2 +-
src/gen/lib/Model/CommentsSort.php | 2 +-
src/gen/lib/Model/CompaniesFilter.php | 2 +-
src/gen/lib/Model/CompaniesSort.php | 2 +-
src/gen/lib/Model/Company.php | 8 +-
src/gen/lib/Model/CompanyInfo.php | 8 +-
src/gen/lib/Model/CompanyRowType.php | 2 +-
src/gen/lib/Model/Compensation.php | 2 +-
src/gen/lib/Model/Connection.php | 2 +-
src/gen/lib/Model/ConnectionConfiguration.php | 2 +-
src/gen/lib/Model/ConnectionDefaults.php | 2 +-
src/gen/lib/Model/ConnectionImportData.php | 2 +-
.../Model/ConnectionImportDataCredentials.php | 2 +-
src/gen/lib/Model/ConnectionMetadata.php | 2 +-
src/gen/lib/Model/ConnectionState.php | 2 +-
src/gen/lib/Model/ConnectionWebhook.php | 2 +-
src/gen/lib/Model/Connector.php | 2 +-
src/gen/lib/Model/ConnectorDoc.php | 2 +-
src/gen/lib/Model/ConnectorEvent.php | 2 +-
src/gen/lib/Model/ConnectorOauthScopes.php | 2 +-
src/gen/lib/Model/ConnectorOauthScopes1.php | 2 +-
src/gen/lib/Model/ConnectorResource.php | 2 +-
src/gen/lib/Model/ConnectorSetting.php | 2 +-
src/gen/lib/Model/ConnectorStatus.php | 2 +-
src/gen/lib/Model/ConnectorTlsSupport.php | 2 +-
src/gen/lib/Model/ConnectorUnifiedApis.php | 2 +-
src/gen/lib/Model/ConnectorsFilter.php | 2 +-
src/gen/lib/Model/Consumer.php | 2 +-
src/gen/lib/Model/ConsumerConnection.php | 2 +-
src/gen/lib/Model/ConsumerMetadata.php | 2 +-
...nsumerRequestCountsInDateRangeResponse.php | 2 +-
...erRequestCountsInDateRangeResponseData.php | 2 +-
src/gen/lib/Model/Contact.php | 8 +-
src/gen/lib/Model/ContactsFilter.php | 2 +-
src/gen/lib/Model/ContactsSort.php | 2 +-
src/gen/lib/Model/CopyFolderRequest.php | 2 +-
src/gen/lib/Model/CostOfGoodsSold.php | 2 +-
.../CreateAccountingDepartmentResponse.php | 2 +-
.../CreateAccountingLocationResponse.php | 2 +-
src/gen/lib/Model/CreateActivityResponse.php | 2 +-
src/gen/lib/Model/CreateApplicantResponse.php | 2 +-
.../lib/Model/CreateApplicationResponse.php | 2 +-
src/gen/lib/Model/CreateAttachmentRequest.php | 2 +-
.../lib/Model/CreateAttachmentResponse.php | 2 +-
.../Model/CreateBankFeedAccountResponse.php | 519 ++
.../Model/CreateBankFeedStatementResponse.php | 519 ++
.../lib/Model/CreateBillPaymentResponse.php | 2 +-
src/gen/lib/Model/CreateBillResponse.php | 2 +-
src/gen/lib/Model/CreateCallbackState.php | 2 +-
.../lib/Model/CreateCallbackStateResponse.php | 2 +-
.../Model/CreateCallbackStateResponseData.php | 2 +-
src/gen/lib/Model/CreateCommentResponse.php | 2 +-
src/gen/lib/Model/CreateCompanyResponse.php | 2 +-
.../lib/Model/CreateConnectionResponse.php | 2 +-
src/gen/lib/Model/CreateConsumerResponse.php | 2 +-
src/gen/lib/Model/CreateContactResponse.php | 2 +-
.../lib/Model/CreateCreditNoteResponse.php | 2 +-
.../lib/Model/CreateCustomMappingRequest.php | 2 +-
.../lib/Model/CreateCustomMappingResponse.php | 2 +-
.../lib/Model/CreateCustomObjectResponse.php | 519 ++
.../CreateCustomObjectSchemaResponse.php | 519 ++
src/gen/lib/Model/CreateCustomerResponse.php | 2 +-
.../lib/Model/CreateDepartmentResponse.php | 2 +-
.../lib/Model/CreateDriveGroupResponse.php | 2 +-
src/gen/lib/Model/CreateDriveResponse.php | 2 +-
.../Model/CreateEcommerceCustomerResponse.php | 2 +-
.../Model/CreateEcommerceOrderResponse.php | 2 +-
src/gen/lib/Model/CreateEmployeeResponse.php | 2 +-
src/gen/lib/Model/CreateExpenseResponse.php | 2 +-
src/gen/lib/Model/CreateFileRequest.php | 2 +-
src/gen/lib/Model/CreateFileResponse.php | 2 +-
src/gen/lib/Model/CreateFolderRequest.php | 2 +-
src/gen/lib/Model/CreateFolderResponse.php | 2 +-
.../lib/Model/CreateHrisCompanyResponse.php | 2 +-
.../lib/Model/CreateInvoiceItemResponse.php | 2 +-
src/gen/lib/Model/CreateInvoiceResponse.php | 2 +-
src/gen/lib/Model/CreateItemResponse.php | 2 +-
src/gen/lib/Model/CreateJobResponse.php | 2 +-
.../lib/Model/CreateJournalEntryResponse.php | 2 +-
src/gen/lib/Model/CreateLeadResponse.php | 2 +-
.../lib/Model/CreateLedgerAccountResponse.php | 2 +-
src/gen/lib/Model/CreateLocationResponse.php | 2 +-
src/gen/lib/Model/CreateMerchantResponse.php | 2 +-
src/gen/lib/Model/CreateMessageResponse.php | 2 +-
.../lib/Model/CreateModifierGroupResponse.php | 2 +-
src/gen/lib/Model/CreateModifierResponse.php | 2 +-
src/gen/lib/Model/CreateNoteResponse.php | 2 +-
.../lib/Model/CreateOpportunityResponse.php | 2 +-
src/gen/lib/Model/CreateOrderResponse.php | 2 +-
src/gen/lib/Model/CreateOrderTypeResponse.php | 2 +-
src/gen/lib/Model/CreatePaymentResponse.php | 2 +-
src/gen/lib/Model/CreatePipelineResponse.php | 2 +-
.../lib/Model/CreatePosPaymentResponse.php | 2 +-
src/gen/lib/Model/CreateProductResponse.php | 2 +-
.../lib/Model/CreatePurchaseOrderResponse.php | 2 +-
src/gen/lib/Model/CreateSessionResponse.php | 2 +-
.../lib/Model/CreateSessionResponseData.php | 2 +-
.../lib/Model/CreateSharedLinkResponse.php | 2 +-
.../lib/Model/CreateSubsidiaryResponse.php | 2 +-
src/gen/lib/Model/CreateSupplierResponse.php | 2 +-
src/gen/lib/Model/CreateTaxRateResponse.php | 2 +-
src/gen/lib/Model/CreateTenderResponse.php | 2 +-
src/gen/lib/Model/CreateTicketResponse.php | 2 +-
.../Model/CreateTimeOffRequestResponse.php | 2 +-
.../Model/CreateTrackingCategoryResponse.php | 2 +-
.../lib/Model/CreateUploadSessionRequest.php | 2 +-
.../lib/Model/CreateUploadSessionResponse.php | 2 +-
src/gen/lib/Model/CreateUserResponse.php | 2 +-
src/gen/lib/Model/CreateWebhookRequest.php | 2 +-
src/gen/lib/Model/CreateWebhookResponse.php | 2 +-
src/gen/lib/Model/CreditNote.php | 8 +-
src/gen/lib/Model/CreditNotesFilter.php | 2 +-
src/gen/lib/Model/CreditNotesSort.php | 2 +-
src/gen/lib/Model/CreditOrDebit.php | 64 +
src/gen/lib/Model/CrmEventType.php | 2 +-
src/gen/lib/Model/Currency.php | 2 +-
src/gen/lib/Model/CustomField.php | 2 +-
src/gen/lib/Model/CustomFieldFinder.php | 2 +-
src/gen/lib/Model/CustomMapping.php | 2 +-
src/gen/lib/Model/CustomObject.php | 561 ++
src/gen/lib/Model/CustomObjectFields.php | 351 ++
src/gen/lib/Model/CustomObjectSchema.php | 621 ++
.../lib/Model/CustomObjectSchemaFields.php | 555 ++
.../lib/Model/CustomObjectSchemaOptions.php | 351 ++
src/gen/lib/Model/CustomObjectSchemasSort.php | 387 ++
src/gen/lib/Model/CustomObjectsSort.php | 387 ++
src/gen/lib/Model/Customer.php | 8 +-
src/gen/lib/Model/CustomersFilter.php | 2 +-
src/gen/lib/Model/CustomersSort.php | 2 +-
src/gen/lib/Model/Deduction.php | 2 +-
.../DeleteAccountingDepartmentResponse.php | 2 +-
.../DeleteAccountingLocationResponse.php | 2 +-
src/gen/lib/Model/DeleteActivityResponse.php | 2 +-
src/gen/lib/Model/DeleteApplicantResponse.php | 2 +-
.../lib/Model/DeleteApplicationResponse.php | 2 +-
.../lib/Model/DeleteAttachmentResponse.php | 2 +-
.../Model/DeleteBankFeedAccountResponse.php | 519 ++
.../Model/DeleteBankFeedStatementResponse.php | 519 ++
.../lib/Model/DeleteBillPaymentResponse.php | 2 +-
src/gen/lib/Model/DeleteBillResponse.php | 2 +-
src/gen/lib/Model/DeleteCommentResponse.php | 2 +-
src/gen/lib/Model/DeleteCompanyResponse.php | 2 +-
src/gen/lib/Model/DeleteConsumerResponse.php | 2 +-
src/gen/lib/Model/DeleteContactResponse.php | 2 +-
.../lib/Model/DeleteCreditNoteResponse.php | 2 +-
.../lib/Model/DeleteCustomObjectResponse.php | 519 ++
.../DeleteCustomObjectSchemaResponse.php | 519 ++
src/gen/lib/Model/DeleteCustomerResponse.php | 2 +-
.../lib/Model/DeleteDepartmentResponse.php | 2 +-
.../lib/Model/DeleteDriveGroupResponse.php | 2 +-
src/gen/lib/Model/DeleteDriveResponse.php | 2 +-
.../Model/DeleteEcommerceCustomerResponse.php | 2 +-
.../Model/DeleteEcommerceOrderResponse.php | 2 +-
src/gen/lib/Model/DeleteEmployeeResponse.php | 2 +-
src/gen/lib/Model/DeleteExpenseResponse.php | 2 +-
src/gen/lib/Model/DeleteFileResponse.php | 2 +-
src/gen/lib/Model/DeleteFolderResponse.php | 2 +-
.../lib/Model/DeleteHrisCompanyResponse.php | 2 +-
src/gen/lib/Model/DeleteInvoiceResponse.php | 2 +-
src/gen/lib/Model/DeleteItemResponse.php | 2 +-
src/gen/lib/Model/DeleteJobResponse.php | 2 +-
.../lib/Model/DeleteJournalEntryResponse.php | 2 +-
src/gen/lib/Model/DeleteLeadResponse.php | 2 +-
.../lib/Model/DeleteLedgerAccountResponse.php | 2 +-
src/gen/lib/Model/DeleteLocationResponse.php | 2 +-
src/gen/lib/Model/DeleteMerchantResponse.php | 2 +-
src/gen/lib/Model/DeleteMessageResponse.php | 2 +-
.../lib/Model/DeleteModifierGroupResponse.php | 2 +-
src/gen/lib/Model/DeleteModifierResponse.php | 2 +-
src/gen/lib/Model/DeleteNoteResponse.php | 2 +-
.../lib/Model/DeleteOpportunityResponse.php | 2 +-
src/gen/lib/Model/DeleteOrderResponse.php | 2 +-
src/gen/lib/Model/DeleteOrderTypeResponse.php | 2 +-
src/gen/lib/Model/DeletePaymentResponse.php | 2 +-
src/gen/lib/Model/DeletePipelineResponse.php | 2 +-
.../lib/Model/DeletePosPaymentResponse.php | 2 +-
src/gen/lib/Model/DeleteProductResponse.php | 2 +-
.../lib/Model/DeletePurchaseOrderResponse.php | 2 +-
.../lib/Model/DeleteSharedLinkResponse.php | 2 +-
.../lib/Model/DeleteSubsidiaryResponse.php | 2 +-
src/gen/lib/Model/DeleteSupplierResponse.php | 2 +-
src/gen/lib/Model/DeleteTaxRateResponse.php | 2 +-
src/gen/lib/Model/DeleteTenderResponse.php | 2 +-
src/gen/lib/Model/DeleteTicketResponse.php | 2 +-
.../Model/DeleteTimeOffRequestResponse.php | 2 +-
.../Model/DeleteTrackingCategoryResponse.php | 2 +-
.../lib/Model/DeleteUploadSessionResponse.php | 2 +-
src/gen/lib/Model/DeleteUserResponse.php | 2 +-
src/gen/lib/Model/DeleteWebhookResponse.php | 2 +-
src/gen/lib/Model/Department.php | 8 +-
.../lib/Model/DeprecatedLinkedSupplier.php | 2 +-
.../DeprecatedLinkedTrackingCategory.php | 2 +-
src/gen/lib/Model/Drive.php | 8 +-
src/gen/lib/Model/DriveGroup.php | 8 +-
src/gen/lib/Model/DriveGroupsFilter.php | 2 +-
src/gen/lib/Model/DrivesFilter.php | 2 +-
src/gen/lib/Model/EcommerceAddress.php | 2 +-
src/gen/lib/Model/EcommerceCustomer.php | 8 +-
.../lib/Model/EcommerceCustomerAddresses.php | 2 +-
.../lib/Model/EcommerceCustomersFilter.php | 2 +-
src/gen/lib/Model/EcommerceDiscount.php | 2 +-
src/gen/lib/Model/EcommerceEventType.php | 2 +-
src/gen/lib/Model/EcommerceOrder.php | 38 +-
src/gen/lib/Model/EcommerceOrderLineItem.php | 65 +-
src/gen/lib/Model/EcommerceOrderRefund.php | 442 ++
src/gen/lib/Model/EcommerceOrderStatus.php | 2 +-
src/gen/lib/Model/EcommerceOrdersFilter.php | 2 +-
src/gen/lib/Model/EcommerceProduct.php | 8 +-
.../lib/Model/EcommerceProductCategories.php | 2 +-
src/gen/lib/Model/EcommerceProductImages.php | 2 +-
src/gen/lib/Model/EcommerceProductImages1.php | 2 +-
src/gen/lib/Model/EcommerceProductOptions.php | 2 +-
.../lib/Model/EcommerceProductOptions1.php | 2 +-
.../lib/Model/EcommerceProductVariants.php | 2 +-
src/gen/lib/Model/EcommerceStore.php | 8 +-
src/gen/lib/Model/Email.php | 2 +-
src/gen/lib/Model/Employee.php | 8 +-
src/gen/lib/Model/EmployeeCompensation.php | 2 +-
src/gen/lib/Model/EmployeeEmploymentRole.php | 2 +-
src/gen/lib/Model/EmployeeJob.php | 2 +-
src/gen/lib/Model/EmployeeList.php | 2 +-
src/gen/lib/Model/EmployeeManager.php | 2 +-
src/gen/lib/Model/EmployeePayroll.php | 2 +-
src/gen/lib/Model/EmployeeSchedules.php | 2 +-
src/gen/lib/Model/EmployeesFilter.php | 42 +-
src/gen/lib/Model/EmployeesOneFilter.php | 2 +-
src/gen/lib/Model/EmployeesSort.php | 2 +-
src/gen/lib/Model/EmploymentStatus.php | 2 +-
src/gen/lib/Model/Error.php | 2 +-
src/gen/lib/Model/ExecuteWebhookResponse.php | 2 +-
src/gen/lib/Model/Expense.php | 68 +-
src/gen/lib/Model/ExpenseLineItem.php | 42 +-
src/gen/lib/Model/Expenses.php | 2 +-
src/gen/lib/Model/FileStorageEventType.php | 2 +-
src/gen/lib/Model/FileType.php | 2 +-
src/gen/lib/Model/FilesFilter.php | 2 +-
src/gen/lib/Model/FilesSearch.php | 2 +-
src/gen/lib/Model/FilesSort.php | 2 +-
src/gen/lib/Model/Folder.php | 8 +-
src/gen/lib/Model/FormField.php | 2 +-
src/gen/lib/Model/FormFieldOption.php | 2 +-
src/gen/lib/Model/FormFieldOptionGroup.php | 2 +-
src/gen/lib/Model/Gender.php | 2 +-
.../Model/GetAccountingDepartmentResponse.php | 2 +-
.../GetAccountingDepartmentsResponse.php | 2 +-
.../Model/GetAccountingLocationResponse.php | 2 +-
.../Model/GetAccountingLocationsResponse.php | 2 +-
src/gen/lib/Model/GetActivitiesResponse.php | 2 +-
src/gen/lib/Model/GetActivityResponse.php | 2 +-
.../lib/Model/GetAgedCreditorsResponse.php | 2 +-
src/gen/lib/Model/GetAgedDebtorsResponse.php | 2 +-
.../Model/GetApiResourceCoverageResponse.php | 2 +-
src/gen/lib/Model/GetApiResourceResponse.php | 2 +-
src/gen/lib/Model/GetApiResponse.php | 2 +-
src/gen/lib/Model/GetApisResponse.php | 2 +-
src/gen/lib/Model/GetApplicantResponse.php | 2 +-
src/gen/lib/Model/GetApplicantsResponse.php | 2 +-
src/gen/lib/Model/GetApplicationResponse.php | 2 +-
src/gen/lib/Model/GetApplicationsResponse.php | 2 +-
src/gen/lib/Model/GetAttachmentResponse.php | 2 +-
src/gen/lib/Model/GetAttachmentsResponse.php | 2 +-
src/gen/lib/Model/GetBalanceSheetResponse.php | 2 +-
.../lib/Model/GetBankFeedAccountResponse.php | 519 ++
.../lib/Model/GetBankFeedAccountsResponse.php | 579 ++
.../Model/GetBankFeedStatementResponse.php | 519 ++
.../Model/GetBankFeedStatementsResponse.php | 579 ++
src/gen/lib/Model/GetBillPaymentResponse.php | 2 +-
src/gen/lib/Model/GetBillPaymentsResponse.php | 2 +-
src/gen/lib/Model/GetBillResponse.php | 2 +-
src/gen/lib/Model/GetBillsResponse.php | 2 +-
src/gen/lib/Model/GetCollectionResponse.php | 2 +-
.../lib/Model/GetCollectionTagsResponse.php | 2 +-
.../lib/Model/GetCollectionUserResponse.php | 2 +-
.../lib/Model/GetCollectionUsersResponse.php | 2 +-
src/gen/lib/Model/GetCollectionsResponse.php | 2 +-
src/gen/lib/Model/GetCommentResponse.php | 2 +-
src/gen/lib/Model/GetCommentsResponse.php | 2 +-
src/gen/lib/Model/GetCompaniesResponse.php | 2 +-
src/gen/lib/Model/GetCompanyInfoResponse.php | 2 +-
src/gen/lib/Model/GetCompanyResponse.php | 2 +-
src/gen/lib/Model/GetConnectionResponse.php | 2 +-
src/gen/lib/Model/GetConnectionsResponse.php | 2 +-
.../GetConnectorResourceExampleResponse.php | 2 +-
...etConnectorResourceExampleResponseData.php | 2 +-
.../Model/GetConnectorResourceResponse.php | 2 +-
.../GetConnectorResourceSchemaResponse.php | 2 +-
src/gen/lib/Model/GetConnectorResponse.php | 2 +-
src/gen/lib/Model/GetConnectorsResponse.php | 2 +-
src/gen/lib/Model/GetConsumerResponse.php | 2 +-
src/gen/lib/Model/GetConsumersResponse.php | 2 +-
.../lib/Model/GetConsumersResponseData.php | 2 +-
src/gen/lib/Model/GetContactResponse.php | 2 +-
src/gen/lib/Model/GetContactsResponse.php | 2 +-
src/gen/lib/Model/GetCreditNoteResponse.php | 2 +-
src/gen/lib/Model/GetCreditNotesResponse.php | 2 +-
src/gen/lib/Model/GetCustomFieldsResponse.php | 2 +-
.../lib/Model/GetCustomMappingResponse.php | 2 +-
.../lib/Model/GetCustomMappingsResponse.php | 2 +-
src/gen/lib/Model/GetCustomObjectResponse.php | 519 ++
.../Model/GetCustomObjectSchemaResponse.php | 519 ++
.../Model/GetCustomObjectSchemasResponse.php | 579 ++
.../lib/Model/GetCustomObjectsResponse.php | 579 ++
src/gen/lib/Model/GetCustomerResponse.php | 2 +-
src/gen/lib/Model/GetCustomersResponse.php | 2 +-
src/gen/lib/Model/GetDepartmentResponse.php | 2 +-
src/gen/lib/Model/GetDepartmentsResponse.php | 2 +-
src/gen/lib/Model/GetDriveGroupResponse.php | 2 +-
src/gen/lib/Model/GetDriveGroupsResponse.php | 2 +-
src/gen/lib/Model/GetDriveResponse.php | 2 +-
src/gen/lib/Model/GetDrivesResponse.php | 2 +-
.../Model/GetEcommerceCustomerResponse.php | 2 +-
.../Model/GetEcommerceCustomersResponse.php | 2 +-
.../lib/Model/GetEcommerceOrderResponse.php | 2 +-
.../lib/Model/GetEcommerceOrdersResponse.php | 2 +-
.../lib/Model/GetEmployeePayrollResponse.php | 2 +-
.../lib/Model/GetEmployeePayrollsResponse.php | 2 +-
src/gen/lib/Model/GetEmployeeResponse.php | 2 +-
.../Model/GetEmployeeSchedulesResponse.php | 2 +-
src/gen/lib/Model/GetEmployeesResponse.php | 2 +-
src/gen/lib/Model/GetExpenseResponse.php | 2 +-
src/gen/lib/Model/GetExpensesResponse.php | 2 +-
src/gen/lib/Model/GetFileResponse.php | 2 +-
src/gen/lib/Model/GetFilesResponse.php | 2 +-
src/gen/lib/Model/GetFolderResponse.php | 2 +-
src/gen/lib/Model/GetFoldersResponse.php | 2 +-
.../lib/Model/GetHrisCompaniesResponse.php | 2 +-
src/gen/lib/Model/GetHrisCompanyResponse.php | 2 +-
src/gen/lib/Model/GetHrisJobResponse.php | 2 +-
src/gen/lib/Model/GetHrisJobsResponse.php | 2 +-
src/gen/lib/Model/GetInvoiceItemResponse.php | 2 +-
src/gen/lib/Model/GetInvoiceItemsResponse.php | 2 +-
src/gen/lib/Model/GetInvoiceResponse.php | 2 +-
src/gen/lib/Model/GetInvoicesResponse.php | 2 +-
src/gen/lib/Model/GetItemResponse.php | 2 +-
src/gen/lib/Model/GetItemsResponse.php | 2 +-
src/gen/lib/Model/GetJobResponse.php | 2 +-
src/gen/lib/Model/GetJobsResponse.php | 2 +-
.../lib/Model/GetJournalEntriesResponse.php | 2 +-
src/gen/lib/Model/GetJournalEntryResponse.php | 2 +-
src/gen/lib/Model/GetLeadResponse.php | 2 +-
src/gen/lib/Model/GetLeadsResponse.php | 2 +-
.../lib/Model/GetLedgerAccountResponse.php | 2 +-
.../lib/Model/GetLedgerAccountsResponse.php | 2 +-
src/gen/lib/Model/GetLocationResponse.php | 2 +-
src/gen/lib/Model/GetLocationsResponse.php | 2 +-
src/gen/lib/Model/GetLogsResponse.php | 2 +-
src/gen/lib/Model/GetMerchantResponse.php | 2 +-
src/gen/lib/Model/GetMerchantsResponse.php | 2 +-
src/gen/lib/Model/GetMessageResponse.php | 2 +-
src/gen/lib/Model/GetMessagesResponse.php | 2 +-
.../lib/Model/GetModifierGroupResponse.php | 2 +-
.../lib/Model/GetModifierGroupsResponse.php | 2 +-
src/gen/lib/Model/GetModifierResponse.php | 2 +-
src/gen/lib/Model/GetModifiersResponse.php | 2 +-
src/gen/lib/Model/GetNoteResponse.php | 2 +-
src/gen/lib/Model/GetNotesResponse.php | 2 +-
.../lib/Model/GetOpportunitiesResponse.php | 2 +-
src/gen/lib/Model/GetOpportunityResponse.php | 2 +-
src/gen/lib/Model/GetOrderResponse.php | 2 +-
src/gen/lib/Model/GetOrderTypeResponse.php | 2 +-
src/gen/lib/Model/GetOrderTypesResponse.php | 2 +-
src/gen/lib/Model/GetOrdersResponse.php | 2 +-
src/gen/lib/Model/GetPaymentResponse.php | 2 +-
src/gen/lib/Model/GetPaymentsResponse.php | 2 +-
src/gen/lib/Model/GetPayrollResponse.php | 2 +-
src/gen/lib/Model/GetPayrollsResponse.php | 2 +-
src/gen/lib/Model/GetPipelineResponse.php | 2 +-
src/gen/lib/Model/GetPipelinesResponse.php | 2 +-
src/gen/lib/Model/GetPosPaymentResponse.php | 2 +-
src/gen/lib/Model/GetPosPaymentsResponse.php | 2 +-
src/gen/lib/Model/GetProductResponse.php | 2 +-
src/gen/lib/Model/GetProductsResponse.php | 2 +-
.../lib/Model/GetProfitAndLossResponse.php | 2 +-
.../lib/Model/GetPurchaseOrderResponse.php | 2 +-
.../lib/Model/GetPurchaseOrdersResponse.php | 2 +-
.../lib/Model/GetResourceExampleResponse.php | 2 +-
.../lib/Model/GetResourceSchemaResponse.php | 2 +-
src/gen/lib/Model/GetSharedLinkResponse.php | 2 +-
src/gen/lib/Model/GetSharedLinksResponse.php | 2 +-
src/gen/lib/Model/GetStoreResponse.php | 2 +-
src/gen/lib/Model/GetStoresResponse.php | 2 +-
src/gen/lib/Model/GetSubsidiariesResponse.php | 2 +-
src/gen/lib/Model/GetSubsidiaryResponse.php | 2 +-
src/gen/lib/Model/GetSupplierResponse.php | 2 +-
src/gen/lib/Model/GetSuppliersResponse.php | 2 +-
src/gen/lib/Model/GetTaxRateResponse.php | 2 +-
src/gen/lib/Model/GetTaxRatesResponse.php | 2 +-
src/gen/lib/Model/GetTenderResponse.php | 2 +-
src/gen/lib/Model/GetTendersResponse.php | 2 +-
src/gen/lib/Model/GetTicketResponse.php | 2 +-
src/gen/lib/Model/GetTicketsResponse.php | 2 +-
.../lib/Model/GetTimeOffRequestResponse.php | 2 +-
.../lib/Model/GetTimeOffRequestsResponse.php | 2 +-
.../Model/GetTrackingCategoriesResponse.php | 2 +-
.../lib/Model/GetTrackingCategoryResponse.php | 2 +-
.../lib/Model/GetUploadSessionResponse.php | 2 +-
src/gen/lib/Model/GetUserResponse.php | 2 +-
src/gen/lib/Model/GetUsersResponse.php | 2 +-
.../lib/Model/GetWebhookEventLogsResponse.php | 2 +-
src/gen/lib/Model/GetWebhookResponse.php | 2 +-
src/gen/lib/Model/GetWebhooksResponse.php | 2 +-
src/gen/lib/Model/HrisCompany.php | 8 +-
src/gen/lib/Model/HrisEventType.php | 2 +-
src/gen/lib/Model/HrisJob.php | 8 +-
src/gen/lib/Model/HrisJobLocation.php | 2 +-
src/gen/lib/Model/HrisJobs.php | 2 +-
src/gen/lib/Model/Income.php | 2 +-
src/gen/lib/Model/IntegrationState.php | 2 +-
src/gen/lib/Model/Invoice.php | 38 +-
src/gen/lib/Model/InvoiceItem.php | 8 +-
src/gen/lib/Model/InvoiceItemFilter.php | 2 +-
src/gen/lib/Model/InvoiceItemSalesDetails.php | 2 +-
src/gen/lib/Model/InvoiceItemsFilter.php | 2 +-
src/gen/lib/Model/InvoiceItemsSort.php | 2 +-
src/gen/lib/Model/InvoiceLineItem.php | 4 +-
.../lib/Model/InvoicePaymentAllocations.php | 381 ++
src/gen/lib/Model/InvoiceResponse.php | 2 +-
src/gen/lib/Model/InvoicesFilter.php | 2 +-
src/gen/lib/Model/InvoicesSort.php | 2 +-
src/gen/lib/Model/IssueTrackingEventType.php | 2 +-
src/gen/lib/Model/IssuesFilter.php | 2 +-
src/gen/lib/Model/Item.php | 8 +-
src/gen/lib/Model/Job.php | 8 +-
src/gen/lib/Model/JobLinks.php | 2 +-
src/gen/lib/Model/JobSalary.php | 2 +-
src/gen/lib/Model/JobStatus.php | 2 +-
src/gen/lib/Model/JournalEntriesFilter.php | 2 +-
src/gen/lib/Model/JournalEntriesSort.php | 2 +-
src/gen/lib/Model/JournalEntry.php | 82 +-
src/gen/lib/Model/JournalEntryLineItem.php | 2 +-
src/gen/lib/Model/Lead.php | 53 +-
src/gen/lib/Model/LeadEventType.php | 2 +-
src/gen/lib/Model/LeadsFilter.php | 2 +-
src/gen/lib/Model/LeadsSort.php | 2 +-
src/gen/lib/Model/LedgerAccount.php | 8 +-
src/gen/lib/Model/LedgerAccountCategories.php | 2 +-
.../lib/Model/LedgerAccountParentAccount.php | 2 +-
src/gen/lib/Model/LedgerAccountsFilter.php | 2 +-
src/gen/lib/Model/LedgerAccountsSort.php | 2 +-
src/gen/lib/Model/LinkedConnectorResource.php | 2 +-
src/gen/lib/Model/LinkedCustomer.php | 2 +-
src/gen/lib/Model/LinkedEcommerceCustomer.php | 2 +-
src/gen/lib/Model/LinkedEcommerceOrder.php | 2 +-
src/gen/lib/Model/LinkedFolder.php | 2 +-
src/gen/lib/Model/LinkedInvoiceItem.php | 2 +-
src/gen/lib/Model/LinkedLedgerAccount.php | 2 +-
src/gen/lib/Model/LinkedParentCustomer.php | 2 +-
src/gen/lib/Model/LinkedSupplier.php | 2 +-
src/gen/lib/Model/LinkedTaxRate.php | 2 +-
src/gen/lib/Model/LinkedTrackingCategory.php | 2 +-
src/gen/lib/Model/Links.php | 2 +-
src/gen/lib/Model/Location.php | 8 +-
src/gen/lib/Model/Log.php | 2 +-
src/gen/lib/Model/LogOperation.php | 2 +-
src/gen/lib/Model/LogService.php | 2 +-
src/gen/lib/Model/LogsFilter.php | 2 +-
src/gen/lib/Model/Merchant.php | 8 +-
src/gen/lib/Model/Message.php | 8 +-
src/gen/lib/Model/Meta.php | 2 +-
src/gen/lib/Model/MetaCursors.php | 2 +-
src/gen/lib/Model/ModelInterface.php | 2 +-
src/gen/lib/Model/Modifier.php | 8 +-
src/gen/lib/Model/ModifierGroup.php | 8 +-
src/gen/lib/Model/ModifierGroupFilter.php | 2 +-
src/gen/lib/Model/NotFoundResponse.php | 2 +-
src/gen/lib/Model/NotImplementedResponse.php | 2 +-
src/gen/lib/Model/Note.php | 38 +-
src/gen/lib/Model/OAuthGrantType.php | 2 +-
src/gen/lib/Model/Offer.php | 8 +-
src/gen/lib/Model/OpportunitiesFilter.php | 2 +-
src/gen/lib/Model/OpportunitiesSort.php | 2 +-
src/gen/lib/Model/Opportunity.php | 8 +-
src/gen/lib/Model/Order.php | 8 +-
src/gen/lib/Model/OrderCustomers.php | 2 +-
src/gen/lib/Model/OrderDiscounts.php | 2 +-
src/gen/lib/Model/OrderFulfillments.php | 2 +-
src/gen/lib/Model/OrderLineItems.php | 2 +-
src/gen/lib/Model/OrderPayments.php | 2 +-
src/gen/lib/Model/OrderPickupDetails.php | 2 +-
...rderPickupDetailsCurbsidePickupDetails.php | 2 +-
.../lib/Model/OrderPickupDetailsRecipient.php | 2 +-
src/gen/lib/Model/OrderRefunds.php | 2 +-
src/gen/lib/Model/OrderTenders.php | 2 +-
src/gen/lib/Model/OrderType.php | 2 +-
src/gen/lib/Model/OrdersSort.php | 2 +-
src/gen/lib/Model/OtherExpenses.php | 75 +-
src/gen/lib/Model/OtherIncome.php | 75 +-
.../Model/OutstandingBalanceByCurrency.php | 2 +-
.../Model/OutstandingBalanceByCustomer.php | 2 +-
.../Model/OutstandingBalanceBySupplier.php | 2 +-
src/gen/lib/Model/Owner.php | 2 +-
src/gen/lib/Model/PaginationCoverage.php | 2 +-
src/gen/lib/Model/PassThroughQuery.php | 2 +-
src/gen/lib/Model/Payment.php | 8 +-
src/gen/lib/Model/PaymentCard.php | 2 +-
src/gen/lib/Model/PaymentFrequency.php | 2 +-
src/gen/lib/Model/PaymentRequiredResponse.php | 2 +-
src/gen/lib/Model/PaymentStatus.php | 2 +-
src/gen/lib/Model/PaymentType.php | 2 +-
src/gen/lib/Model/PaymentUnit.php | 2 +-
src/gen/lib/Model/PaymentsFilter.php | 42 +-
src/gen/lib/Model/PaymentsSort.php | 2 +-
src/gen/lib/Model/Payroll.php | 8 +-
src/gen/lib/Model/PayrollTotals.php | 2 +-
src/gen/lib/Model/PayrollsFilter.php | 2 +-
src/gen/lib/Model/Person.php | 8 +-
src/gen/lib/Model/PhoneNumber.php | 2 +-
src/gen/lib/Model/Pipeline.php | 2 +-
src/gen/lib/Model/PipelineStages.php | 2 +-
src/gen/lib/Model/PosBankAccount.php | 2 +-
.../lib/Model/PosBankAccountAchDetails.php | 2 +-
src/gen/lib/Model/PosPayment.php | 8 +-
src/gen/lib/Model/PosPaymentCardDetails.php | 2 +-
.../lib/Model/PosPaymentExternalDetails.php | 2 +-
src/gen/lib/Model/Price.php | 2 +-
src/gen/lib/Model/ProbationPeriod.php | 2 +-
src/gen/lib/Model/ProfitAndLoss.php | 8 +-
src/gen/lib/Model/ProfitAndLossFilter.php | 2 +-
src/gen/lib/Model/ProfitAndLossIndicator.php | 2 +-
src/gen/lib/Model/ProfitAndLossRecord.php | 2 +-
src/gen/lib/Model/ProfitAndLossSection.php | 2 +-
src/gen/lib/Model/ProfitAndLossType.php | 2 +-
src/gen/lib/Model/PurchaseOrder.php | 38 +-
src/gen/lib/Model/PurchaseOrdersFilter.php | 2 +-
src/gen/lib/Model/PurchaseOrdersSort.php | 2 +-
src/gen/lib/Model/RequestCountAllocation.php | 2 +-
src/gen/lib/Model/RequestRate.php | 2 +-
src/gen/lib/Model/ResolveWebhookResponse.php | 2 +-
src/gen/lib/Model/ResourceExample.php | 2 +-
src/gen/lib/Model/ResourceStatus.php | 2 +-
src/gen/lib/Model/Schedule.php | 2 +-
src/gen/lib/Model/ScheduleWorkPattern.php | 2 +-
.../lib/Model/ScheduleWorkPatternOddWeeks.php | 2 +-
src/gen/lib/Model/SchemaSupport.php | 2 +-
src/gen/lib/Model/ServiceCharge.php | 2 +-
src/gen/lib/Model/Session.php | 2 +-
src/gen/lib/Model/SessionSettings.php | 2 +-
src/gen/lib/Model/SessionTheme.php | 2 +-
src/gen/lib/Model/SharedLink.php | 2 +-
src/gen/lib/Model/SharedLinkTarget.php | 2 +-
src/gen/lib/Model/SimpleFormFieldOption.php | 2 +-
src/gen/lib/Model/SocialLink.php | 2 +-
src/gen/lib/Model/SortDirection.php | 2 +-
src/gen/lib/Model/Status.php | 2 +-
src/gen/lib/Model/Subsidiary.php | 8 +-
src/gen/lib/Model/SubsidiaryReference.php | 2 +-
src/gen/lib/Model/Supplier.php | 8 +-
src/gen/lib/Model/SuppliersFilter.php | 2 +-
src/gen/lib/Model/SuppliersSort.php | 2 +-
src/gen/lib/Model/SupportedProperty.php | 2 +-
src/gen/lib/Model/Tax.php | 2 +-
src/gen/lib/Model/TaxRate.php | 8 +-
src/gen/lib/Model/TaxRatesFilter.php | 2 +-
src/gen/lib/Model/Team.php | 2 +-
src/gen/lib/Model/Tender.php | 8 +-
src/gen/lib/Model/Ticket.php | 8 +-
src/gen/lib/Model/TicketsSort.php | 2 +-
src/gen/lib/Model/TimeOffRequest.php | 8 +-
src/gen/lib/Model/TimeOffRequestNotes.php | 2 +-
src/gen/lib/Model/TimeOffRequestsFilter.php | 2 +-
src/gen/lib/Model/TooManyRequestsResponse.php | 2 +-
.../Model/TooManyRequestsResponseDetail.php | 2 +-
src/gen/lib/Model/TrackingCategory.php | 8 +-
src/gen/lib/Model/TrackingItem.php | 2 +-
src/gen/lib/Model/UnauthorizedResponse.php | 2 +-
src/gen/lib/Model/UncategorizedAccounts.php | 2 +-
src/gen/lib/Model/UnexpectedErrorResponse.php | 2 +-
src/gen/lib/Model/UnifiedApiId.php | 2 +-
src/gen/lib/Model/UnifiedFile.php | 8 +-
src/gen/lib/Model/UnifiedFilePermissions.php | 2 +-
src/gen/lib/Model/UnifiedId.php | 2 +-
src/gen/lib/Model/UnprocessableResponse.php | 2 +-
.../UpdateAccountingDepartmentResponse.php | 2 +-
.../UpdateAccountingLocationResponse.php | 2 +-
src/gen/lib/Model/UpdateActivityResponse.php | 2 +-
src/gen/lib/Model/UpdateApplicantResponse.php | 2 +-
.../lib/Model/UpdateApplicationResponse.php | 2 +-
.../Model/UpdateBankFeedAccountResponse.php | 519 ++
.../Model/UpdateBankFeedStatementResponse.php | 519 ++
.../lib/Model/UpdateBillPaymentResponse.php | 2 +-
src/gen/lib/Model/UpdateBillResponse.php | 2 +-
src/gen/lib/Model/UpdateCommentResponse.php | 2 +-
src/gen/lib/Model/UpdateCompanyResponse.php | 2 +-
.../lib/Model/UpdateConnectionResponse.php | 2 +-
src/gen/lib/Model/UpdateConsumerRequest.php | 2 +-
src/gen/lib/Model/UpdateConsumerResponse.php | 2 +-
src/gen/lib/Model/UpdateContactResponse.php | 2 +-
.../lib/Model/UpdateCreditNoteResponse.php | 2 +-
.../lib/Model/UpdateCustomMappingRequest.php | 2 +-
.../lib/Model/UpdateCustomMappingResponse.php | 2 +-
.../lib/Model/UpdateCustomObjectResponse.php | 519 ++
.../UpdateCustomObjectSchemaResponse.php | 519 ++
src/gen/lib/Model/UpdateCustomerResponse.php | 2 +-
.../lib/Model/UpdateDepartmentResponse.php | 2 +-
.../lib/Model/UpdateDriveGroupResponse.php | 2 +-
src/gen/lib/Model/UpdateDriveResponse.php | 2 +-
.../Model/UpdateEcommerceCustomerResponse.php | 2 +-
.../Model/UpdateEcommerceOrderResponse.php | 2 +-
src/gen/lib/Model/UpdateEmployeeResponse.php | 2 +-
src/gen/lib/Model/UpdateExpenseResponse.php | 2 +-
src/gen/lib/Model/UpdateFileRequest.php | 2 +-
src/gen/lib/Model/UpdateFileResponse.php | 2 +-
src/gen/lib/Model/UpdateFolderRequest.php | 2 +-
src/gen/lib/Model/UpdateFolderResponse.php | 2 +-
.../lib/Model/UpdateHrisCompanyResponse.php | 2 +-
.../lib/Model/UpdateInvoiceItemsResponse.php | 2 +-
src/gen/lib/Model/UpdateInvoiceResponse.php | 2 +-
src/gen/lib/Model/UpdateItemResponse.php | 2 +-
src/gen/lib/Model/UpdateJobResponse.php | 2 +-
.../lib/Model/UpdateJournalEntryResponse.php | 2 +-
src/gen/lib/Model/UpdateLeadResponse.php | 2 +-
.../lib/Model/UpdateLedgerAccountResponse.php | 2 +-
src/gen/lib/Model/UpdateLocationResponse.php | 2 +-
src/gen/lib/Model/UpdateMerchantResponse.php | 2 +-
src/gen/lib/Model/UpdateMessageResponse.php | 2 +-
.../lib/Model/UpdateModifierGroupResponse.php | 2 +-
src/gen/lib/Model/UpdateModifierResponse.php | 2 +-
src/gen/lib/Model/UpdateNoteResponse.php | 2 +-
.../lib/Model/UpdateOpportunityResponse.php | 2 +-
src/gen/lib/Model/UpdateOrderResponse.php | 2 +-
src/gen/lib/Model/UpdateOrderTypeResponse.php | 2 +-
src/gen/lib/Model/UpdatePaymentResponse.php | 2 +-
src/gen/lib/Model/UpdatePipelineResponse.php | 2 +-
.../lib/Model/UpdatePosPaymentResponse.php | 2 +-
src/gen/lib/Model/UpdateProductResponse.php | 2 +-
.../lib/Model/UpdatePurchaseOrderResponse.php | 2 +-
.../lib/Model/UpdateSharedLinkResponse.php | 2 +-
.../lib/Model/UpdateSubsidiaryResponse.php | 2 +-
src/gen/lib/Model/UpdateSupplierResponse.php | 2 +-
src/gen/lib/Model/UpdateTaxRateResponse.php | 2 +-
src/gen/lib/Model/UpdateTenderResponse.php | 2 +-
src/gen/lib/Model/UpdateTicketResponse.php | 2 +-
.../Model/UpdateTimeOffRequestResponse.php | 2 +-
.../Model/UpdateTrackingCategoryResponse.php | 2 +-
.../lib/Model/UpdateUploadSessionResponse.php | 2 +-
src/gen/lib/Model/UpdateUserResponse.php | 2 +-
src/gen/lib/Model/UpdateWebhookRequest.php | 2 +-
src/gen/lib/Model/UpdateWebhookResponse.php | 2 +-
src/gen/lib/Model/UploadSession.php | 2 +-
src/gen/lib/Model/User.php | 8 +-
.../Model/ValidateConnectionStateResponse.php | 2 +-
.../ValidateConnectionStateResponseData.php | 2 +-
src/gen/lib/Model/VaultEventType.php | 2 +-
src/gen/lib/Model/VirtualWebhooks.php | 2 +-
.../lib/Model/VirtualWebhooksResources.php | 2 +-
src/gen/lib/Model/WalletDetails.php | 2 +-
src/gen/lib/Model/Webhook.php | 2 +-
src/gen/lib/Model/WebhookEvent.php | 2 +-
src/gen/lib/Model/WebhookEventLog.php | 2 +-
src/gen/lib/Model/WebhookEventLogAttempts.php | 2 +-
src/gen/lib/Model/WebhookEventLogService.php | 2 +-
src/gen/lib/Model/WebhookEventLogsFilter.php | 2 +-
.../Model/WebhookEventLogsFilterService.php | 2 +-
src/gen/lib/Model/WebhookEventType.php | 2 +-
src/gen/lib/Model/WebhookSubscription.php | 2 +-
src/gen/lib/Model/WebhookSupport.php | 2 +-
src/gen/lib/Model/Website.php | 2 +-
src/gen/lib/ObjectSerializer.php | 2 +-
src/gen/test/Api/AccountingApiTest.php | 122 +-
src/gen/test/Api/AtsApiTest.php | 2 +-
src/gen/test/Api/ConnectorApiTest.php | 2 +-
src/gen/test/Api/CrmApiTest.php | 122 +-
src/gen/test/Api/EcommerceApiTest.php | 2 +-
src/gen/test/Api/FileStorageApiTest.php | 2 +-
src/gen/test/Api/HrisApiTest.php | 2 +-
src/gen/test/Api/IssueTrackingApiTest.php | 2 +-
src/gen/test/Api/LeadApiTest.php | 2 +-
src/gen/test/Api/PosApiTest.php | 2 +-
src/gen/test/Api/SmsApiTest.php | 2 +-
src/gen/test/Api/VaultApiTest.php | 2 +-
src/gen/test/Api/WebhookApiTest.php | 2 +-
.../test/Model/AccountingDepartmentTest.php | 11 +-
.../Model/AccountingDepartmentsFilterTest.php | 2 +-
.../test/Model/AccountingEventTypeTest.php | 2 +-
src/gen/test/Model/AccountingLocationTest.php | 2 +-
.../Model/AccountingLocationsFilterTest.php | 2 +-
src/gen/test/Model/ActivitiesFilterTest.php | 2 +-
src/gen/test/Model/ActivitiesSortTest.php | 2 +-
src/gen/test/Model/ActivityAttendeeTest.php | 2 +-
src/gen/test/Model/ActivityTest.php | 2 +-
src/gen/test/Model/AddressTest.php | 2 +-
src/gen/test/Model/AgedCreditorsTest.php | 2 +-
src/gen/test/Model/AgedDebtorsTest.php | 2 +-
src/gen/test/Model/AgedReportFilterTest.php | 2 +-
src/gen/test/Model/AllocationTest.php | 2 +-
.../Model/ApiResourceCoverageCoverageTest.php | 2 +-
.../test/Model/ApiResourceCoverageTest.php | 2 +-
.../Model/ApiResourceLinkedResourcesTest.php | 2 +-
src/gen/test/Model/ApiResourceTest.php | 2 +-
src/gen/test/Model/ApiResourcesTest.php | 2 +-
src/gen/test/Model/ApiStatusTest.php | 2 +-
src/gen/test/Model/ApiTest.php | 2 +-
src/gen/test/Model/ApisFilterTest.php | 2 +-
.../test/Model/ApplicantSocialLinksTest.php | 2 +-
src/gen/test/Model/ApplicantTest.php | 2 +-
src/gen/test/Model/ApplicantWebsitesTest.php | 2 +-
src/gen/test/Model/ApplicantsFilterTest.php | 2 +-
src/gen/test/Model/ApplicationStageTest.php | 2 +-
src/gen/test/Model/ApplicationTest.php | 2 +-
src/gen/test/Model/AssigneeTest.php | 2 +-
src/gen/test/Model/AtsActivityTest.php | 2 +-
src/gen/test/Model/AtsEventTypeTest.php | 2 +-
.../test/Model/AttachmentReferenceTest.php | 2 +-
.../Model/AttachmentReferenceTypeTest.php | 2 +-
src/gen/test/Model/AttachmentTest.php | 2 +-
src/gen/test/Model/AuthTypeTest.php | 2 +-
src/gen/test/Model/BadRequestResponseTest.php | 2 +-
src/gen/test/Model/BalanceByPeriodTest.php | 2 +-
.../test/Model/BalanceByTransactionTest.php | 2 +-
.../Model/BalanceSheetAccountRecordTest.php | 2 +-
.../test/Model/BalanceSheetAccountTest.php | 2 +-
.../Model/BalanceSheetAssetsAccountTest.php | 2 +-
.../Model/BalanceSheetEquityAccountTest.php | 2 +-
src/gen/test/Model/BalanceSheetFilterTest.php | 2 +-
.../BalanceSheetLiabilitiesAccountTest.php | 2 +-
.../test/Model/BalanceSheetReportsTest.php | 2 +-
src/gen/test/Model/BalanceSheetTest.php | 2 +-
...anceSheetUncategorizedItemsAccountTest.php | 2 +-
src/gen/test/Model/BankAccountTest.php | 2 +-
src/gen/test/Model/BankFeedAccountTest.php | 217 +
src/gen/test/Model/BankFeedStatementTest.php | 208 +
.../BankFeedStatementTransactionsTest.php | 154 +
src/gen/test/Model/BenefitTest.php | 2 +-
src/gen/test/Model/BillLineItemTest.php | 2 +-
.../test/Model/BillPaymentAllocationsTest.php | 2 +-
src/gen/test/Model/BillPaymentTest.php | 2 +-
src/gen/test/Model/BillTest.php | 2 +-
src/gen/test/Model/BillsFilterTest.php | 2 +-
src/gen/test/Model/BillsSortTest.php | 2 +-
src/gen/test/Model/BranchTest.php | 2 +-
src/gen/test/Model/CashDetailsTest.php | 2 +-
src/gen/test/Model/CollectionTagTest.php | 2 +-
src/gen/test/Model/CollectionTest.php | 2 +-
.../Model/CollectionTicketCommentTest.php | 2 +-
src/gen/test/Model/CollectionUserTest.php | 2 +-
src/gen/test/Model/CollectionsSortTest.php | 2 +-
src/gen/test/Model/CommentsSortTest.php | 2 +-
src/gen/test/Model/CompaniesFilterTest.php | 2 +-
src/gen/test/Model/CompaniesSortTest.php | 2 +-
src/gen/test/Model/CompanyInfoTest.php | 2 +-
src/gen/test/Model/CompanyRowTypeTest.php | 2 +-
src/gen/test/Model/CompanyTest.php | 2 +-
src/gen/test/Model/CompensationTest.php | 2 +-
.../Model/ConnectionConfigurationTest.php | 2 +-
src/gen/test/Model/ConnectionDefaultsTest.php | 2 +-
.../ConnectionImportDataCredentialsTest.php | 2 +-
.../test/Model/ConnectionImportDataTest.php | 2 +-
src/gen/test/Model/ConnectionMetadataTest.php | 2 +-
src/gen/test/Model/ConnectionStateTest.php | 2 +-
src/gen/test/Model/ConnectionTest.php | 2 +-
src/gen/test/Model/ConnectionWebhookTest.php | 2 +-
src/gen/test/Model/ConnectorDocTest.php | 2 +-
src/gen/test/Model/ConnectorEventTest.php | 2 +-
.../test/Model/ConnectorOauthScopes1Test.php | 2 +-
.../test/Model/ConnectorOauthScopesTest.php | 2 +-
src/gen/test/Model/ConnectorResourceTest.php | 2 +-
src/gen/test/Model/ConnectorSettingTest.php | 2 +-
src/gen/test/Model/ConnectorStatusTest.php | 2 +-
src/gen/test/Model/ConnectorTest.php | 2 +-
.../test/Model/ConnectorTlsSupportTest.php | 2 +-
.../test/Model/ConnectorUnifiedApisTest.php | 2 +-
src/gen/test/Model/ConnectorsFilterTest.php | 2 +-
src/gen/test/Model/ConsumerConnectionTest.php | 2 +-
src/gen/test/Model/ConsumerMetadataTest.php | 2 +-
...questCountsInDateRangeResponseDataTest.php | 2 +-
...erRequestCountsInDateRangeResponseTest.php | 2 +-
src/gen/test/Model/ConsumerTest.php | 2 +-
src/gen/test/Model/ContactTest.php | 2 +-
src/gen/test/Model/ContactsFilterTest.php | 2 +-
src/gen/test/Model/ContactsSortTest.php | 2 +-
src/gen/test/Model/CopyFolderRequestTest.php | 2 +-
src/gen/test/Model/CostOfGoodsSoldTest.php | 2 +-
...CreateAccountingDepartmentResponseTest.php | 2 +-
.../CreateAccountingLocationResponseTest.php | 2 +-
.../test/Model/CreateActivityResponseTest.php | 2 +-
.../Model/CreateApplicantResponseTest.php | 2 +-
.../Model/CreateApplicationResponseTest.php | 2 +-
.../Model/CreateAttachmentRequestTest.php | 2 +-
.../Model/CreateAttachmentResponseTest.php | 2 +-
.../CreateBankFeedAccountResponseTest.php | 145 +
.../CreateBankFeedStatementResponseTest.php | 145 +
.../Model/CreateBillPaymentResponseTest.php | 2 +-
src/gen/test/Model/CreateBillResponseTest.php | 2 +-
.../CreateCallbackStateResponseDataTest.php | 2 +-
.../Model/CreateCallbackStateResponseTest.php | 2 +-
.../test/Model/CreateCallbackStateTest.php | 2 +-
.../test/Model/CreateCommentResponseTest.php | 2 +-
.../test/Model/CreateCompanyResponseTest.php | 2 +-
.../Model/CreateConnectionResponseTest.php | 2 +-
.../test/Model/CreateConsumerResponseTest.php | 2 +-
.../test/Model/CreateContactResponseTest.php | 2 +-
.../Model/CreateCreditNoteResponseTest.php | 2 +-
.../Model/CreateCustomMappingRequestTest.php | 2 +-
.../Model/CreateCustomMappingResponseTest.php | 2 +-
.../Model/CreateCustomObjectResponseTest.php | 145 +
.../CreateCustomObjectSchemaResponseTest.php | 145 +
.../test/Model/CreateCustomerResponseTest.php | 2 +-
.../Model/CreateDepartmentResponseTest.php | 2 +-
.../Model/CreateDriveGroupResponseTest.php | 2 +-
.../test/Model/CreateDriveResponseTest.php | 2 +-
.../CreateEcommerceCustomerResponseTest.php | 2 +-
.../CreateEcommerceOrderResponseTest.php | 2 +-
.../test/Model/CreateEmployeeResponseTest.php | 2 +-
.../test/Model/CreateExpenseResponseTest.php | 2 +-
src/gen/test/Model/CreateFileRequestTest.php | 2 +-
src/gen/test/Model/CreateFileResponseTest.php | 2 +-
.../test/Model/CreateFolderRequestTest.php | 2 +-
.../test/Model/CreateFolderResponseTest.php | 2 +-
.../Model/CreateHrisCompanyResponseTest.php | 2 +-
.../Model/CreateInvoiceItemResponseTest.php | 2 +-
.../test/Model/CreateInvoiceResponseTest.php | 2 +-
src/gen/test/Model/CreateItemResponseTest.php | 2 +-
src/gen/test/Model/CreateJobResponseTest.php | 2 +-
.../Model/CreateJournalEntryResponseTest.php | 2 +-
src/gen/test/Model/CreateLeadResponseTest.php | 2 +-
.../Model/CreateLedgerAccountResponseTest.php | 2 +-
.../test/Model/CreateLocationResponseTest.php | 2 +-
.../test/Model/CreateMerchantResponseTest.php | 2 +-
.../test/Model/CreateMessageResponseTest.php | 2 +-
.../Model/CreateModifierGroupResponseTest.php | 2 +-
.../test/Model/CreateModifierResponseTest.php | 2 +-
src/gen/test/Model/CreateNoteResponseTest.php | 2 +-
.../Model/CreateOpportunityResponseTest.php | 2 +-
.../test/Model/CreateOrderResponseTest.php | 2 +-
.../Model/CreateOrderTypeResponseTest.php | 2 +-
.../test/Model/CreatePaymentResponseTest.php | 2 +-
.../test/Model/CreatePipelineResponseTest.php | 2 +-
.../Model/CreatePosPaymentResponseTest.php | 2 +-
.../test/Model/CreateProductResponseTest.php | 2 +-
.../Model/CreatePurchaseOrderResponseTest.php | 2 +-
.../Model/CreateSessionResponseDataTest.php | 2 +-
.../test/Model/CreateSessionResponseTest.php | 2 +-
.../Model/CreateSharedLinkResponseTest.php | 2 +-
.../Model/CreateSubsidiaryResponseTest.php | 2 +-
.../test/Model/CreateSupplierResponseTest.php | 2 +-
.../test/Model/CreateTaxRateResponseTest.php | 2 +-
.../test/Model/CreateTenderResponseTest.php | 2 +-
.../test/Model/CreateTicketResponseTest.php | 2 +-
.../CreateTimeOffRequestResponseTest.php | 2 +-
.../CreateTrackingCategoryResponseTest.php | 2 +-
.../Model/CreateUploadSessionRequestTest.php | 2 +-
.../Model/CreateUploadSessionResponseTest.php | 2 +-
src/gen/test/Model/CreateUserResponseTest.php | 2 +-
.../test/Model/CreateWebhookRequestTest.php | 2 +-
.../test/Model/CreateWebhookResponseTest.php | 2 +-
src/gen/test/Model/CreditNoteTest.php | 2 +-
src/gen/test/Model/CreditNotesFilterTest.php | 2 +-
src/gen/test/Model/CreditNotesSortTest.php | 2 +-
src/gen/test/Model/CreditOrDebitTest.php | 82 +
src/gen/test/Model/CrmEventTypeTest.php | 2 +-
src/gen/test/Model/CurrencyTest.php | 2 +-
src/gen/test/Model/CustomFieldFinderTest.php | 2 +-
src/gen/test/Model/CustomFieldTest.php | 2 +-
src/gen/test/Model/CustomMappingTest.php | 2 +-
src/gen/test/Model/CustomObjectFieldsTest.php | 100 +
.../Model/CustomObjectSchemaFieldsTest.php | 145 +
.../Model/CustomObjectSchemaOptionsTest.php | 100 +
src/gen/test/Model/CustomObjectSchemaTest.php | 181 +
.../Model/CustomObjectSchemasSortTest.php | 100 +
src/gen/test/Model/CustomObjectTest.php | 163 +
src/gen/test/Model/CustomObjectsSortTest.php | 100 +
src/gen/test/Model/CustomerTest.php | 2 +-
src/gen/test/Model/CustomersFilterTest.php | 2 +-
src/gen/test/Model/CustomersSortTest.php | 2 +-
src/gen/test/Model/DeductionTest.php | 2 +-
...DeleteAccountingDepartmentResponseTest.php | 2 +-
.../DeleteAccountingLocationResponseTest.php | 2 +-
.../test/Model/DeleteActivityResponseTest.php | 2 +-
.../Model/DeleteApplicantResponseTest.php | 2 +-
.../Model/DeleteApplicationResponseTest.php | 2 +-
.../Model/DeleteAttachmentResponseTest.php | 2 +-
.../DeleteBankFeedAccountResponseTest.php | 145 +
.../DeleteBankFeedStatementResponseTest.php | 145 +
.../Model/DeleteBillPaymentResponseTest.php | 2 +-
src/gen/test/Model/DeleteBillResponseTest.php | 2 +-
.../test/Model/DeleteCommentResponseTest.php | 2 +-
.../test/Model/DeleteCompanyResponseTest.php | 2 +-
.../test/Model/DeleteConsumerResponseTest.php | 2 +-
.../test/Model/DeleteContactResponseTest.php | 2 +-
.../Model/DeleteCreditNoteResponseTest.php | 2 +-
.../Model/DeleteCustomObjectResponseTest.php | 145 +
.../DeleteCustomObjectSchemaResponseTest.php | 145 +
.../test/Model/DeleteCustomerResponseTest.php | 2 +-
.../Model/DeleteDepartmentResponseTest.php | 2 +-
.../Model/DeleteDriveGroupResponseTest.php | 2 +-
.../test/Model/DeleteDriveResponseTest.php | 2 +-
.../DeleteEcommerceCustomerResponseTest.php | 2 +-
.../DeleteEcommerceOrderResponseTest.php | 2 +-
.../test/Model/DeleteEmployeeResponseTest.php | 2 +-
.../test/Model/DeleteExpenseResponseTest.php | 2 +-
src/gen/test/Model/DeleteFileResponseTest.php | 2 +-
.../test/Model/DeleteFolderResponseTest.php | 2 +-
.../Model/DeleteHrisCompanyResponseTest.php | 2 +-
.../test/Model/DeleteInvoiceResponseTest.php | 2 +-
src/gen/test/Model/DeleteItemResponseTest.php | 2 +-
src/gen/test/Model/DeleteJobResponseTest.php | 2 +-
.../Model/DeleteJournalEntryResponseTest.php | 2 +-
src/gen/test/Model/DeleteLeadResponseTest.php | 2 +-
.../Model/DeleteLedgerAccountResponseTest.php | 2 +-
.../test/Model/DeleteLocationResponseTest.php | 2 +-
.../test/Model/DeleteMerchantResponseTest.php | 2 +-
.../test/Model/DeleteMessageResponseTest.php | 2 +-
.../Model/DeleteModifierGroupResponseTest.php | 2 +-
.../test/Model/DeleteModifierResponseTest.php | 2 +-
src/gen/test/Model/DeleteNoteResponseTest.php | 2 +-
.../Model/DeleteOpportunityResponseTest.php | 2 +-
.../test/Model/DeleteOrderResponseTest.php | 2 +-
.../Model/DeleteOrderTypeResponseTest.php | 2 +-
.../test/Model/DeletePaymentResponseTest.php | 2 +-
.../test/Model/DeletePipelineResponseTest.php | 2 +-
.../Model/DeletePosPaymentResponseTest.php | 2 +-
.../test/Model/DeleteProductResponseTest.php | 2 +-
.../Model/DeletePurchaseOrderResponseTest.php | 2 +-
.../Model/DeleteSharedLinkResponseTest.php | 2 +-
.../Model/DeleteSubsidiaryResponseTest.php | 2 +-
.../test/Model/DeleteSupplierResponseTest.php | 2 +-
.../test/Model/DeleteTaxRateResponseTest.php | 2 +-
.../test/Model/DeleteTenderResponseTest.php | 2 +-
.../test/Model/DeleteTicketResponseTest.php | 2 +-
.../DeleteTimeOffRequestResponseTest.php | 2 +-
.../DeleteTrackingCategoryResponseTest.php | 2 +-
.../Model/DeleteUploadSessionResponseTest.php | 2 +-
src/gen/test/Model/DeleteUserResponseTest.php | 2 +-
.../test/Model/DeleteWebhookResponseTest.php | 2 +-
src/gen/test/Model/DepartmentTest.php | 2 +-
.../Model/DeprecatedLinkedSupplierTest.php | 2 +-
.../DeprecatedLinkedTrackingCategoryTest.php | 2 +-
src/gen/test/Model/DriveGroupTest.php | 2 +-
src/gen/test/Model/DriveGroupsFilterTest.php | 2 +-
src/gen/test/Model/DriveTest.php | 2 +-
src/gen/test/Model/DrivesFilterTest.php | 2 +-
src/gen/test/Model/EcommerceAddressTest.php | 2 +-
.../Model/EcommerceCustomerAddressesTest.php | 2 +-
src/gen/test/Model/EcommerceCustomerTest.php | 2 +-
.../Model/EcommerceCustomersFilterTest.php | 2 +-
src/gen/test/Model/EcommerceDiscountTest.php | 2 +-
src/gen/test/Model/EcommerceEventTypeTest.php | 2 +-
.../test/Model/EcommerceOrderLineItemTest.php | 20 +-
.../test/Model/EcommerceOrderRefundTest.php | 127 +
.../test/Model/EcommerceOrderStatusTest.php | 2 +-
src/gen/test/Model/EcommerceOrderTest.php | 11 +-
.../test/Model/EcommerceOrdersFilterTest.php | 2 +-
.../Model/EcommerceProductCategoriesTest.php | 2 +-
.../Model/EcommerceProductImages1Test.php | 2 +-
.../test/Model/EcommerceProductImagesTest.php | 2 +-
.../Model/EcommerceProductOptions1Test.php | 2 +-
.../Model/EcommerceProductOptionsTest.php | 2 +-
src/gen/test/Model/EcommerceProductTest.php | 2 +-
.../Model/EcommerceProductVariantsTest.php | 2 +-
src/gen/test/Model/EcommerceStoreTest.php | 2 +-
src/gen/test/Model/EmailTest.php | 2 +-
.../test/Model/EmployeeCompensationTest.php | 2 +-
.../test/Model/EmployeeEmploymentRoleTest.php | 2 +-
src/gen/test/Model/EmployeeJobTest.php | 2 +-
src/gen/test/Model/EmployeeListTest.php | 2 +-
src/gen/test/Model/EmployeeManagerTest.php | 2 +-
src/gen/test/Model/EmployeePayrollTest.php | 2 +-
src/gen/test/Model/EmployeeSchedulesTest.php | 2 +-
src/gen/test/Model/EmployeeTest.php | 2 +-
src/gen/test/Model/EmployeesFilterTest.php | 11 +-
src/gen/test/Model/EmployeesOneFilterTest.php | 2 +-
src/gen/test/Model/EmployeesSortTest.php | 2 +-
src/gen/test/Model/EmploymentStatusTest.php | 2 +-
src/gen/test/Model/ErrorTest.php | 2 +-
.../test/Model/ExecuteWebhookResponseTest.php | 2 +-
src/gen/test/Model/ExpenseLineItemTest.php | 11 +-
src/gen/test/Model/ExpenseTest.php | 20 +-
src/gen/test/Model/ExpensesTest.php | 2 +-
.../test/Model/FileStorageEventTypeTest.php | 2 +-
src/gen/test/Model/FileTypeTest.php | 2 +-
src/gen/test/Model/FilesFilterTest.php | 2 +-
src/gen/test/Model/FilesSearchTest.php | 2 +-
src/gen/test/Model/FilesSortTest.php | 2 +-
src/gen/test/Model/FolderTest.php | 2 +-
.../test/Model/FormFieldOptionGroupTest.php | 2 +-
src/gen/test/Model/FormFieldOptionTest.php | 2 +-
src/gen/test/Model/FormFieldTest.php | 2 +-
src/gen/test/Model/GenderTest.php | 2 +-
.../GetAccountingDepartmentResponseTest.php | 2 +-
.../GetAccountingDepartmentsResponseTest.php | 2 +-
.../GetAccountingLocationResponseTest.php | 2 +-
.../GetAccountingLocationsResponseTest.php | 2 +-
.../test/Model/GetActivitiesResponseTest.php | 2 +-
.../test/Model/GetActivityResponseTest.php | 2 +-
.../Model/GetAgedCreditorsResponseTest.php | 2 +-
.../test/Model/GetAgedDebtorsResponseTest.php | 2 +-
.../GetApiResourceCoverageResponseTest.php | 2 +-
.../test/Model/GetApiResourceResponseTest.php | 2 +-
src/gen/test/Model/GetApiResponseTest.php | 2 +-
src/gen/test/Model/GetApisResponseTest.php | 2 +-
.../test/Model/GetApplicantResponseTest.php | 2 +-
.../test/Model/GetApplicantsResponseTest.php | 2 +-
.../test/Model/GetApplicationResponseTest.php | 2 +-
.../Model/GetApplicationsResponseTest.php | 2 +-
.../test/Model/GetAttachmentResponseTest.php | 2 +-
.../test/Model/GetAttachmentsResponseTest.php | 2 +-
.../Model/GetBalanceSheetResponseTest.php | 2 +-
.../Model/GetBankFeedAccountResponseTest.php | 145 +
.../Model/GetBankFeedAccountsResponseTest.php | 163 +
.../GetBankFeedStatementResponseTest.php | 145 +
.../GetBankFeedStatementsResponseTest.php | 163 +
.../test/Model/GetBillPaymentResponseTest.php | 2 +-
.../Model/GetBillPaymentsResponseTest.php | 2 +-
src/gen/test/Model/GetBillResponseTest.php | 2 +-
src/gen/test/Model/GetBillsResponseTest.php | 2 +-
.../test/Model/GetCollectionResponseTest.php | 2 +-
.../Model/GetCollectionTagsResponseTest.php | 2 +-
.../Model/GetCollectionUserResponseTest.php | 2 +-
.../Model/GetCollectionUsersResponseTest.php | 2 +-
.../test/Model/GetCollectionsResponseTest.php | 2 +-
src/gen/test/Model/GetCommentResponseTest.php | 2 +-
.../test/Model/GetCommentsResponseTest.php | 2 +-
.../test/Model/GetCompaniesResponseTest.php | 2 +-
.../test/Model/GetCompanyInfoResponseTest.php | 2 +-
src/gen/test/Model/GetCompanyResponseTest.php | 2 +-
.../test/Model/GetConnectionResponseTest.php | 2 +-
.../test/Model/GetConnectionsResponseTest.php | 2 +-
...nnectorResourceExampleResponseDataTest.php | 2 +-
...etConnectorResourceExampleResponseTest.php | 2 +-
.../GetConnectorResourceResponseTest.php | 2 +-
...GetConnectorResourceSchemaResponseTest.php | 2 +-
.../test/Model/GetConnectorResponseTest.php | 2 +-
.../test/Model/GetConnectorsResponseTest.php | 2 +-
.../test/Model/GetConsumerResponseTest.php | 2 +-
.../Model/GetConsumersResponseDataTest.php | 2 +-
.../test/Model/GetConsumersResponseTest.php | 2 +-
src/gen/test/Model/GetContactResponseTest.php | 2 +-
.../test/Model/GetContactsResponseTest.php | 2 +-
.../test/Model/GetCreditNoteResponseTest.php | 2 +-
.../test/Model/GetCreditNotesResponseTest.php | 2 +-
.../Model/GetCustomFieldsResponseTest.php | 2 +-
.../Model/GetCustomMappingResponseTest.php | 2 +-
.../Model/GetCustomMappingsResponseTest.php | 2 +-
.../Model/GetCustomObjectResponseTest.php | 145 +
.../GetCustomObjectSchemaResponseTest.php | 145 +
.../GetCustomObjectSchemasResponseTest.php | 163 +
.../Model/GetCustomObjectsResponseTest.php | 163 +
.../test/Model/GetCustomerResponseTest.php | 2 +-
.../test/Model/GetCustomersResponseTest.php | 2 +-
.../test/Model/GetDepartmentResponseTest.php | 2 +-
.../test/Model/GetDepartmentsResponseTest.php | 2 +-
.../test/Model/GetDriveGroupResponseTest.php | 2 +-
.../test/Model/GetDriveGroupsResponseTest.php | 2 +-
src/gen/test/Model/GetDriveResponseTest.php | 2 +-
src/gen/test/Model/GetDrivesResponseTest.php | 2 +-
.../GetEcommerceCustomerResponseTest.php | 2 +-
.../GetEcommerceCustomersResponseTest.php | 2 +-
.../Model/GetEcommerceOrderResponseTest.php | 2 +-
.../Model/GetEcommerceOrdersResponseTest.php | 2 +-
.../Model/GetEmployeePayrollResponseTest.php | 2 +-
.../Model/GetEmployeePayrollsResponseTest.php | 2 +-
.../test/Model/GetEmployeeResponseTest.php | 2 +-
.../GetEmployeeSchedulesResponseTest.php | 2 +-
.../test/Model/GetEmployeesResponseTest.php | 2 +-
src/gen/test/Model/GetExpenseResponseTest.php | 2 +-
.../test/Model/GetExpensesResponseTest.php | 2 +-
src/gen/test/Model/GetFileResponseTest.php | 2 +-
src/gen/test/Model/GetFilesResponseTest.php | 2 +-
src/gen/test/Model/GetFolderResponseTest.php | 2 +-
src/gen/test/Model/GetFoldersResponseTest.php | 2 +-
.../Model/GetHrisCompaniesResponseTest.php | 2 +-
.../test/Model/GetHrisCompanyResponseTest.php | 2 +-
src/gen/test/Model/GetHrisJobResponseTest.php | 2 +-
.../test/Model/GetHrisJobsResponseTest.php | 2 +-
.../test/Model/GetInvoiceItemResponseTest.php | 2 +-
.../Model/GetInvoiceItemsResponseTest.php | 2 +-
src/gen/test/Model/GetInvoiceResponseTest.php | 2 +-
.../test/Model/GetInvoicesResponseTest.php | 2 +-
src/gen/test/Model/GetItemResponseTest.php | 2 +-
src/gen/test/Model/GetItemsResponseTest.php | 2 +-
src/gen/test/Model/GetJobResponseTest.php | 2 +-
src/gen/test/Model/GetJobsResponseTest.php | 2 +-
.../Model/GetJournalEntriesResponseTest.php | 2 +-
.../Model/GetJournalEntryResponseTest.php | 2 +-
src/gen/test/Model/GetLeadResponseTest.php | 2 +-
src/gen/test/Model/GetLeadsResponseTest.php | 2 +-
.../Model/GetLedgerAccountResponseTest.php | 2 +-
.../Model/GetLedgerAccountsResponseTest.php | 2 +-
.../test/Model/GetLocationResponseTest.php | 2 +-
.../test/Model/GetLocationsResponseTest.php | 2 +-
src/gen/test/Model/GetLogsResponseTest.php | 2 +-
.../test/Model/GetMerchantResponseTest.php | 2 +-
.../test/Model/GetMerchantsResponseTest.php | 2 +-
src/gen/test/Model/GetMessageResponseTest.php | 2 +-
.../test/Model/GetMessagesResponseTest.php | 2 +-
.../Model/GetModifierGroupResponseTest.php | 2 +-
.../Model/GetModifierGroupsResponseTest.php | 2 +-
.../test/Model/GetModifierResponseTest.php | 2 +-
.../test/Model/GetModifiersResponseTest.php | 2 +-
src/gen/test/Model/GetNoteResponseTest.php | 2 +-
src/gen/test/Model/GetNotesResponseTest.php | 2 +-
.../Model/GetOpportunitiesResponseTest.php | 2 +-
.../test/Model/GetOpportunityResponseTest.php | 2 +-
src/gen/test/Model/GetOrderResponseTest.php | 2 +-
.../test/Model/GetOrderTypeResponseTest.php | 2 +-
.../test/Model/GetOrderTypesResponseTest.php | 2 +-
src/gen/test/Model/GetOrdersResponseTest.php | 2 +-
src/gen/test/Model/GetPaymentResponseTest.php | 2 +-
.../test/Model/GetPaymentsResponseTest.php | 2 +-
src/gen/test/Model/GetPayrollResponseTest.php | 2 +-
.../test/Model/GetPayrollsResponseTest.php | 2 +-
.../test/Model/GetPipelineResponseTest.php | 2 +-
.../test/Model/GetPipelinesResponseTest.php | 2 +-
.../test/Model/GetPosPaymentResponseTest.php | 2 +-
.../test/Model/GetPosPaymentsResponseTest.php | 2 +-
src/gen/test/Model/GetProductResponseTest.php | 2 +-
.../test/Model/GetProductsResponseTest.php | 2 +-
.../Model/GetProfitAndLossResponseTest.php | 2 +-
.../Model/GetPurchaseOrderResponseTest.php | 2 +-
.../Model/GetPurchaseOrdersResponseTest.php | 2 +-
.../Model/GetResourceExampleResponseTest.php | 2 +-
.../Model/GetResourceSchemaResponseTest.php | 2 +-
.../test/Model/GetSharedLinkResponseTest.php | 2 +-
.../test/Model/GetSharedLinksResponseTest.php | 2 +-
src/gen/test/Model/GetStoreResponseTest.php | 2 +-
src/gen/test/Model/GetStoresResponseTest.php | 2 +-
.../Model/GetSubsidiariesResponseTest.php | 2 +-
.../test/Model/GetSubsidiaryResponseTest.php | 2 +-
.../test/Model/GetSupplierResponseTest.php | 2 +-
.../test/Model/GetSuppliersResponseTest.php | 2 +-
src/gen/test/Model/GetTaxRateResponseTest.php | 2 +-
.../test/Model/GetTaxRatesResponseTest.php | 2 +-
src/gen/test/Model/GetTenderResponseTest.php | 2 +-
src/gen/test/Model/GetTendersResponseTest.php | 2 +-
src/gen/test/Model/GetTicketResponseTest.php | 2 +-
src/gen/test/Model/GetTicketsResponseTest.php | 2 +-
.../Model/GetTimeOffRequestResponseTest.php | 2 +-
.../Model/GetTimeOffRequestsResponseTest.php | 2 +-
.../GetTrackingCategoriesResponseTest.php | 2 +-
.../Model/GetTrackingCategoryResponseTest.php | 2 +-
.../Model/GetUploadSessionResponseTest.php | 2 +-
src/gen/test/Model/GetUserResponseTest.php | 2 +-
src/gen/test/Model/GetUsersResponseTest.php | 2 +-
.../Model/GetWebhookEventLogsResponseTest.php | 2 +-
src/gen/test/Model/GetWebhookResponseTest.php | 2 +-
.../test/Model/GetWebhooksResponseTest.php | 2 +-
src/gen/test/Model/HrisCompanyTest.php | 2 +-
src/gen/test/Model/HrisEventTypeTest.php | 2 +-
src/gen/test/Model/HrisJobLocationTest.php | 2 +-
src/gen/test/Model/HrisJobTest.php | 2 +-
src/gen/test/Model/HrisJobsTest.php | 2 +-
src/gen/test/Model/IncomeTest.php | 2 +-
src/gen/test/Model/IntegrationStateTest.php | 2 +-
src/gen/test/Model/InvoiceItemFilterTest.php | 2 +-
.../Model/InvoiceItemSalesDetailsTest.php | 2 +-
src/gen/test/Model/InvoiceItemTest.php | 2 +-
src/gen/test/Model/InvoiceItemsFilterTest.php | 2 +-
src/gen/test/Model/InvoiceItemsSortTest.php | 2 +-
src/gen/test/Model/InvoiceLineItemTest.php | 2 +-
.../Model/InvoicePaymentAllocationsTest.php | 109 +
src/gen/test/Model/InvoiceResponseTest.php | 2 +-
src/gen/test/Model/InvoiceTest.php | 11 +-
src/gen/test/Model/InvoicesFilterTest.php | 2 +-
src/gen/test/Model/InvoicesSortTest.php | 2 +-
.../test/Model/IssueTrackingEventTypeTest.php | 2 +-
src/gen/test/Model/IssuesFilterTest.php | 2 +-
src/gen/test/Model/ItemTest.php | 2 +-
src/gen/test/Model/JobLinksTest.php | 2 +-
src/gen/test/Model/JobSalaryTest.php | 2 +-
src/gen/test/Model/JobStatusTest.php | 2 +-
src/gen/test/Model/JobTest.php | 2 +-
.../test/Model/JournalEntriesFilterTest.php | 2 +-
src/gen/test/Model/JournalEntriesSortTest.php | 2 +-
.../test/Model/JournalEntryLineItemTest.php | 2 +-
src/gen/test/Model/JournalEntryTest.php | 11 +-
src/gen/test/Model/LeadEventTypeTest.php | 2 +-
src/gen/test/Model/LeadTest.php | 10 +-
src/gen/test/Model/LeadsFilterTest.php | 2 +-
src/gen/test/Model/LeadsSortTest.php | 2 +-
.../Model/LedgerAccountCategoriesTest.php | 2 +-
.../Model/LedgerAccountParentAccountTest.php | 2 +-
src/gen/test/Model/LedgerAccountTest.php | 2 +-
.../test/Model/LedgerAccountsFilterTest.php | 2 +-
src/gen/test/Model/LedgerAccountsSortTest.php | 2 +-
.../Model/LinkedConnectorResourceTest.php | 2 +-
src/gen/test/Model/LinkedCustomerTest.php | 2 +-
.../Model/LinkedEcommerceCustomerTest.php | 2 +-
.../test/Model/LinkedEcommerceOrderTest.php | 2 +-
src/gen/test/Model/LinkedFolderTest.php | 2 +-
src/gen/test/Model/LinkedInvoiceItemTest.php | 2 +-
.../test/Model/LinkedLedgerAccountTest.php | 2 +-
.../test/Model/LinkedParentCustomerTest.php | 2 +-
src/gen/test/Model/LinkedSupplierTest.php | 2 +-
src/gen/test/Model/LinkedTaxRateTest.php | 2 +-
.../test/Model/LinkedTrackingCategoryTest.php | 2 +-
src/gen/test/Model/LinksTest.php | 2 +-
src/gen/test/Model/LocationTest.php | 2 +-
src/gen/test/Model/LogOperationTest.php | 2 +-
src/gen/test/Model/LogServiceTest.php | 2 +-
src/gen/test/Model/LogTest.php | 2 +-
src/gen/test/Model/LogsFilterTest.php | 2 +-
src/gen/test/Model/MerchantTest.php | 2 +-
src/gen/test/Model/MessageTest.php | 2 +-
src/gen/test/Model/MetaCursorsTest.php | 2 +-
src/gen/test/Model/MetaTest.php | 2 +-
.../test/Model/ModifierGroupFilterTest.php | 2 +-
src/gen/test/Model/ModifierGroupTest.php | 2 +-
src/gen/test/Model/ModifierTest.php | 2 +-
src/gen/test/Model/NotFoundResponseTest.php | 2 +-
.../test/Model/NotImplementedResponseTest.php | 2 +-
src/gen/test/Model/NoteTest.php | 11 +-
src/gen/test/Model/OAuthGrantTypeTest.php | 2 +-
src/gen/test/Model/OfferTest.php | 2 +-
.../test/Model/OpportunitiesFilterTest.php | 2 +-
src/gen/test/Model/OpportunitiesSortTest.php | 2 +-
src/gen/test/Model/OpportunityTest.php | 2 +-
src/gen/test/Model/OrderCustomersTest.php | 2 +-
src/gen/test/Model/OrderDiscountsTest.php | 2 +-
src/gen/test/Model/OrderFulfillmentsTest.php | 2 +-
src/gen/test/Model/OrderLineItemsTest.php | 2 +-
src/gen/test/Model/OrderPaymentsTest.php | 2 +-
...PickupDetailsCurbsidePickupDetailsTest.php | 2 +-
.../Model/OrderPickupDetailsRecipientTest.php | 2 +-
src/gen/test/Model/OrderPickupDetailsTest.php | 2 +-
src/gen/test/Model/OrderRefundsTest.php | 2 +-
src/gen/test/Model/OrderTendersTest.php | 2 +-
src/gen/test/Model/OrderTest.php | 2 +-
src/gen/test/Model/OrderTypeTest.php | 2 +-
src/gen/test/Model/OrdersSortTest.php | 2 +-
src/gen/test/Model/OtherExpensesTest.php | 20 +-
src/gen/test/Model/OtherIncomeTest.php | 20 +-
.../OutstandingBalanceByCurrencyTest.php | 2 +-
.../OutstandingBalanceByCustomerTest.php | 2 +-
.../OutstandingBalanceBySupplierTest.php | 2 +-
src/gen/test/Model/OwnerTest.php | 2 +-
src/gen/test/Model/PaginationCoverageTest.php | 2 +-
src/gen/test/Model/PassThroughQueryTest.php | 2 +-
src/gen/test/Model/PaymentCardTest.php | 2 +-
src/gen/test/Model/PaymentFrequencyTest.php | 2 +-
.../Model/PaymentRequiredResponseTest.php | 2 +-
src/gen/test/Model/PaymentStatusTest.php | 2 +-
src/gen/test/Model/PaymentTest.php | 2 +-
src/gen/test/Model/PaymentTypeTest.php | 2 +-
src/gen/test/Model/PaymentUnitTest.php | 2 +-
src/gen/test/Model/PaymentsFilterTest.php | 11 +-
src/gen/test/Model/PaymentsSortTest.php | 2 +-
src/gen/test/Model/PayrollTest.php | 2 +-
src/gen/test/Model/PayrollTotalsTest.php | 2 +-
src/gen/test/Model/PayrollsFilterTest.php | 2 +-
src/gen/test/Model/PersonTest.php | 2 +-
src/gen/test/Model/PhoneNumberTest.php | 2 +-
src/gen/test/Model/PipelineStagesTest.php | 2 +-
src/gen/test/Model/PipelineTest.php | 2 +-
.../Model/PosBankAccountAchDetailsTest.php | 2 +-
src/gen/test/Model/PosBankAccountTest.php | 2 +-
.../test/Model/PosPaymentCardDetailsTest.php | 2 +-
.../Model/PosPaymentExternalDetailsTest.php | 2 +-
src/gen/test/Model/PosPaymentTest.php | 2 +-
src/gen/test/Model/PriceTest.php | 2 +-
src/gen/test/Model/ProbationPeriodTest.php | 2 +-
.../test/Model/ProfitAndLossFilterTest.php | 2 +-
.../test/Model/ProfitAndLossIndicatorTest.php | 2 +-
.../test/Model/ProfitAndLossRecordTest.php | 2 +-
.../test/Model/ProfitAndLossSectionTest.php | 2 +-
src/gen/test/Model/ProfitAndLossTest.php | 2 +-
src/gen/test/Model/ProfitAndLossTypeTest.php | 2 +-
src/gen/test/Model/PurchaseOrderTest.php | 11 +-
.../test/Model/PurchaseOrdersFilterTest.php | 2 +-
src/gen/test/Model/PurchaseOrdersSortTest.php | 2 +-
.../test/Model/RequestCountAllocationTest.php | 2 +-
src/gen/test/Model/RequestRateTest.php | 2 +-
.../test/Model/ResolveWebhookResponseTest.php | 2 +-
src/gen/test/Model/ResourceExampleTest.php | 2 +-
src/gen/test/Model/ResourceStatusTest.php | 2 +-
src/gen/test/Model/ScheduleTest.php | 2 +-
.../Model/ScheduleWorkPatternOddWeeksTest.php | 2 +-
.../test/Model/ScheduleWorkPatternTest.php | 2 +-
src/gen/test/Model/SchemaSupportTest.php | 2 +-
src/gen/test/Model/ServiceChargeTest.php | 2 +-
src/gen/test/Model/SessionSettingsTest.php | 2 +-
src/gen/test/Model/SessionTest.php | 2 +-
src/gen/test/Model/SessionThemeTest.php | 2 +-
src/gen/test/Model/SharedLinkTargetTest.php | 2 +-
src/gen/test/Model/SharedLinkTest.php | 2 +-
.../test/Model/SimpleFormFieldOptionTest.php | 2 +-
src/gen/test/Model/SocialLinkTest.php | 2 +-
src/gen/test/Model/SortDirectionTest.php | 2 +-
src/gen/test/Model/StatusTest.php | 2 +-
.../test/Model/SubsidiaryReferenceTest.php | 2 +-
src/gen/test/Model/SubsidiaryTest.php | 2 +-
src/gen/test/Model/SupplierTest.php | 2 +-
src/gen/test/Model/SuppliersFilterTest.php | 2 +-
src/gen/test/Model/SuppliersSortTest.php | 2 +-
src/gen/test/Model/SupportedPropertyTest.php | 2 +-
src/gen/test/Model/TaxRateTest.php | 2 +-
src/gen/test/Model/TaxRatesFilterTest.php | 2 +-
src/gen/test/Model/TaxTest.php | 2 +-
src/gen/test/Model/TeamTest.php | 2 +-
src/gen/test/Model/TenderTest.php | 2 +-
src/gen/test/Model/TicketTest.php | 2 +-
src/gen/test/Model/TicketsSortTest.php | 2 +-
.../test/Model/TimeOffRequestNotesTest.php | 2 +-
src/gen/test/Model/TimeOffRequestTest.php | 2 +-
.../test/Model/TimeOffRequestsFilterTest.php | 2 +-
.../TooManyRequestsResponseDetailTest.php | 2 +-
.../Model/TooManyRequestsResponseTest.php | 2 +-
src/gen/test/Model/TrackingCategoryTest.php | 2 +-
src/gen/test/Model/TrackingItemTest.php | 2 +-
.../test/Model/UnauthorizedResponseTest.php | 2 +-
.../test/Model/UncategorizedAccountsTest.php | 2 +-
.../Model/UnexpectedErrorResponseTest.php | 2 +-
src/gen/test/Model/UnifiedApiIdTest.php | 2 +-
.../test/Model/UnifiedFilePermissionsTest.php | 2 +-
src/gen/test/Model/UnifiedFileTest.php | 2 +-
src/gen/test/Model/UnifiedIdTest.php | 2 +-
.../test/Model/UnprocessableResponseTest.php | 2 +-
...UpdateAccountingDepartmentResponseTest.php | 2 +-
.../UpdateAccountingLocationResponseTest.php | 2 +-
.../test/Model/UpdateActivityResponseTest.php | 2 +-
.../Model/UpdateApplicantResponseTest.php | 2 +-
.../Model/UpdateApplicationResponseTest.php | 2 +-
.../UpdateBankFeedAccountResponseTest.php | 145 +
.../UpdateBankFeedStatementResponseTest.php | 145 +
.../Model/UpdateBillPaymentResponseTest.php | 2 +-
src/gen/test/Model/UpdateBillResponseTest.php | 2 +-
.../test/Model/UpdateCommentResponseTest.php | 2 +-
.../test/Model/UpdateCompanyResponseTest.php | 2 +-
.../Model/UpdateConnectionResponseTest.php | 2 +-
.../test/Model/UpdateConsumerRequestTest.php | 2 +-
.../test/Model/UpdateConsumerResponseTest.php | 2 +-
.../test/Model/UpdateContactResponseTest.php | 2 +-
.../Model/UpdateCreditNoteResponseTest.php | 2 +-
.../Model/UpdateCustomMappingRequestTest.php | 2 +-
.../Model/UpdateCustomMappingResponseTest.php | 2 +-
.../Model/UpdateCustomObjectResponseTest.php | 145 +
.../UpdateCustomObjectSchemaResponseTest.php | 145 +
.../test/Model/UpdateCustomerResponseTest.php | 2 +-
.../Model/UpdateDepartmentResponseTest.php | 2 +-
.../Model/UpdateDriveGroupResponseTest.php | 2 +-
.../test/Model/UpdateDriveResponseTest.php | 2 +-
.../UpdateEcommerceCustomerResponseTest.php | 2 +-
.../UpdateEcommerceOrderResponseTest.php | 2 +-
.../test/Model/UpdateEmployeeResponseTest.php | 2 +-
.../test/Model/UpdateExpenseResponseTest.php | 2 +-
src/gen/test/Model/UpdateFileRequestTest.php | 2 +-
src/gen/test/Model/UpdateFileResponseTest.php | 2 +-
.../test/Model/UpdateFolderRequestTest.php | 2 +-
.../test/Model/UpdateFolderResponseTest.php | 2 +-
.../Model/UpdateHrisCompanyResponseTest.php | 2 +-
.../Model/UpdateInvoiceItemsResponseTest.php | 2 +-
.../test/Model/UpdateInvoiceResponseTest.php | 2 +-
src/gen/test/Model/UpdateItemResponseTest.php | 2 +-
src/gen/test/Model/UpdateJobResponseTest.php | 2 +-
.../Model/UpdateJournalEntryResponseTest.php | 2 +-
src/gen/test/Model/UpdateLeadResponseTest.php | 2 +-
.../Model/UpdateLedgerAccountResponseTest.php | 2 +-
.../test/Model/UpdateLocationResponseTest.php | 2 +-
.../test/Model/UpdateMerchantResponseTest.php | 2 +-
.../test/Model/UpdateMessageResponseTest.php | 2 +-
.../Model/UpdateModifierGroupResponseTest.php | 2 +-
.../test/Model/UpdateModifierResponseTest.php | 2 +-
src/gen/test/Model/UpdateNoteResponseTest.php | 2 +-
.../Model/UpdateOpportunityResponseTest.php | 2 +-
.../test/Model/UpdateOrderResponseTest.php | 2 +-
.../Model/UpdateOrderTypeResponseTest.php | 2 +-
.../test/Model/UpdatePaymentResponseTest.php | 2 +-
.../test/Model/UpdatePipelineResponseTest.php | 2 +-
.../Model/UpdatePosPaymentResponseTest.php | 2 +-
.../test/Model/UpdateProductResponseTest.php | 2 +-
.../Model/UpdatePurchaseOrderResponseTest.php | 2 +-
.../Model/UpdateSharedLinkResponseTest.php | 2 +-
.../Model/UpdateSubsidiaryResponseTest.php | 2 +-
.../test/Model/UpdateSupplierResponseTest.php | 2 +-
.../test/Model/UpdateTaxRateResponseTest.php | 2 +-
.../test/Model/UpdateTenderResponseTest.php | 2 +-
.../test/Model/UpdateTicketResponseTest.php | 2 +-
.../UpdateTimeOffRequestResponseTest.php | 2 +-
.../UpdateTrackingCategoryResponseTest.php | 2 +-
.../Model/UpdateUploadSessionResponseTest.php | 2 +-
src/gen/test/Model/UpdateUserResponseTest.php | 2 +-
.../test/Model/UpdateWebhookRequestTest.php | 2 +-
.../test/Model/UpdateWebhookResponseTest.php | 2 +-
src/gen/test/Model/UploadSessionTest.php | 2 +-
src/gen/test/Model/UserTest.php | 2 +-
...alidateConnectionStateResponseDataTest.php | 2 +-
.../ValidateConnectionStateResponseTest.php | 2 +-
src/gen/test/Model/VaultEventTypeTest.php | 2 +-
.../Model/VirtualWebhooksResourcesTest.php | 2 +-
src/gen/test/Model/VirtualWebhooksTest.php | 2 +-
src/gen/test/Model/WalletDetailsTest.php | 2 +-
.../Model/WebhookEventLogAttemptsTest.php | 2 +-
.../test/Model/WebhookEventLogServiceTest.php | 2 +-
src/gen/test/Model/WebhookEventLogTest.php | 2 +-
.../WebhookEventLogsFilterServiceTest.php | 2 +-
.../test/Model/WebhookEventLogsFilterTest.php | 2 +-
src/gen/test/Model/WebhookEventTest.php | 2 +-
src/gen/test/Model/WebhookEventTypeTest.php | 2 +-
.../test/Model/WebhookSubscriptionTest.php | 2 +-
src/gen/test/Model/WebhookSupportTest.php | 2 +-
src/gen/test/Model/WebhookTest.php | 2 +-
src/gen/test/Model/WebsiteTest.php | 2 +-
1577 files changed, 37318 insertions(+), 1839 deletions(-)
create mode 100644 src/gen/docs/models/BankFeedAccount.md
create mode 100644 src/gen/docs/models/BankFeedStatement.md
create mode 100644 src/gen/docs/models/BankFeedStatementTransactions.md
create mode 100644 src/gen/docs/models/CreateBankFeedAccountResponse.md
create mode 100644 src/gen/docs/models/CreateBankFeedStatementResponse.md
create mode 100644 src/gen/docs/models/CreateCustomObjectResponse.md
create mode 100644 src/gen/docs/models/CreateCustomObjectSchemaResponse.md
create mode 100644 src/gen/docs/models/CreditOrDebit.md
create mode 100644 src/gen/docs/models/CustomObject.md
create mode 100644 src/gen/docs/models/CustomObjectFields.md
create mode 100644 src/gen/docs/models/CustomObjectSchema.md
create mode 100644 src/gen/docs/models/CustomObjectSchemaFields.md
create mode 100644 src/gen/docs/models/CustomObjectSchemaOptions.md
create mode 100644 src/gen/docs/models/CustomObjectSchemasSort.md
create mode 100644 src/gen/docs/models/CustomObjectsSort.md
create mode 100644 src/gen/docs/models/DeleteBankFeedAccountResponse.md
create mode 100644 src/gen/docs/models/DeleteBankFeedStatementResponse.md
create mode 100644 src/gen/docs/models/DeleteCustomObjectResponse.md
create mode 100644 src/gen/docs/models/DeleteCustomObjectSchemaResponse.md
create mode 100644 src/gen/docs/models/EcommerceOrderRefund.md
create mode 100644 src/gen/docs/models/GetBankFeedAccountResponse.md
create mode 100644 src/gen/docs/models/GetBankFeedAccountsResponse.md
create mode 100644 src/gen/docs/models/GetBankFeedStatementResponse.md
create mode 100644 src/gen/docs/models/GetBankFeedStatementsResponse.md
create mode 100644 src/gen/docs/models/GetCustomObjectResponse.md
create mode 100644 src/gen/docs/models/GetCustomObjectSchemaResponse.md
create mode 100644 src/gen/docs/models/GetCustomObjectSchemasResponse.md
create mode 100644 src/gen/docs/models/GetCustomObjectsResponse.md
create mode 100644 src/gen/docs/models/InvoicePaymentAllocations.md
create mode 100644 src/gen/docs/models/UpdateBankFeedAccountResponse.md
create mode 100644 src/gen/docs/models/UpdateBankFeedStatementResponse.md
create mode 100644 src/gen/docs/models/UpdateCustomObjectResponse.md
create mode 100644 src/gen/docs/models/UpdateCustomObjectSchemaResponse.md
create mode 100644 src/gen/lib/Model/BankFeedAccount.php
create mode 100644 src/gen/lib/Model/BankFeedStatement.php
create mode 100644 src/gen/lib/Model/BankFeedStatementTransactions.php
create mode 100644 src/gen/lib/Model/CreateBankFeedAccountResponse.php
create mode 100644 src/gen/lib/Model/CreateBankFeedStatementResponse.php
create mode 100644 src/gen/lib/Model/CreateCustomObjectResponse.php
create mode 100644 src/gen/lib/Model/CreateCustomObjectSchemaResponse.php
create mode 100644 src/gen/lib/Model/CreditOrDebit.php
create mode 100644 src/gen/lib/Model/CustomObject.php
create mode 100644 src/gen/lib/Model/CustomObjectFields.php
create mode 100644 src/gen/lib/Model/CustomObjectSchema.php
create mode 100644 src/gen/lib/Model/CustomObjectSchemaFields.php
create mode 100644 src/gen/lib/Model/CustomObjectSchemaOptions.php
create mode 100644 src/gen/lib/Model/CustomObjectSchemasSort.php
create mode 100644 src/gen/lib/Model/CustomObjectsSort.php
create mode 100644 src/gen/lib/Model/DeleteBankFeedAccountResponse.php
create mode 100644 src/gen/lib/Model/DeleteBankFeedStatementResponse.php
create mode 100644 src/gen/lib/Model/DeleteCustomObjectResponse.php
create mode 100644 src/gen/lib/Model/DeleteCustomObjectSchemaResponse.php
create mode 100644 src/gen/lib/Model/EcommerceOrderRefund.php
create mode 100644 src/gen/lib/Model/GetBankFeedAccountResponse.php
create mode 100644 src/gen/lib/Model/GetBankFeedAccountsResponse.php
create mode 100644 src/gen/lib/Model/GetBankFeedStatementResponse.php
create mode 100644 src/gen/lib/Model/GetBankFeedStatementsResponse.php
create mode 100644 src/gen/lib/Model/GetCustomObjectResponse.php
create mode 100644 src/gen/lib/Model/GetCustomObjectSchemaResponse.php
create mode 100644 src/gen/lib/Model/GetCustomObjectSchemasResponse.php
create mode 100644 src/gen/lib/Model/GetCustomObjectsResponse.php
create mode 100644 src/gen/lib/Model/InvoicePaymentAllocations.php
create mode 100644 src/gen/lib/Model/UpdateBankFeedAccountResponse.php
create mode 100644 src/gen/lib/Model/UpdateBankFeedStatementResponse.php
create mode 100644 src/gen/lib/Model/UpdateCustomObjectResponse.php
create mode 100644 src/gen/lib/Model/UpdateCustomObjectSchemaResponse.php
create mode 100644 src/gen/test/Model/BankFeedAccountTest.php
create mode 100644 src/gen/test/Model/BankFeedStatementTest.php
create mode 100644 src/gen/test/Model/BankFeedStatementTransactionsTest.php
create mode 100644 src/gen/test/Model/CreateBankFeedAccountResponseTest.php
create mode 100644 src/gen/test/Model/CreateBankFeedStatementResponseTest.php
create mode 100644 src/gen/test/Model/CreateCustomObjectResponseTest.php
create mode 100644 src/gen/test/Model/CreateCustomObjectSchemaResponseTest.php
create mode 100644 src/gen/test/Model/CreditOrDebitTest.php
create mode 100644 src/gen/test/Model/CustomObjectFieldsTest.php
create mode 100644 src/gen/test/Model/CustomObjectSchemaFieldsTest.php
create mode 100644 src/gen/test/Model/CustomObjectSchemaOptionsTest.php
create mode 100644 src/gen/test/Model/CustomObjectSchemaTest.php
create mode 100644 src/gen/test/Model/CustomObjectSchemasSortTest.php
create mode 100644 src/gen/test/Model/CustomObjectTest.php
create mode 100644 src/gen/test/Model/CustomObjectsSortTest.php
create mode 100644 src/gen/test/Model/DeleteBankFeedAccountResponseTest.php
create mode 100644 src/gen/test/Model/DeleteBankFeedStatementResponseTest.php
create mode 100644 src/gen/test/Model/DeleteCustomObjectResponseTest.php
create mode 100644 src/gen/test/Model/DeleteCustomObjectSchemaResponseTest.php
create mode 100644 src/gen/test/Model/EcommerceOrderRefundTest.php
create mode 100644 src/gen/test/Model/GetBankFeedAccountResponseTest.php
create mode 100644 src/gen/test/Model/GetBankFeedAccountsResponseTest.php
create mode 100644 src/gen/test/Model/GetBankFeedStatementResponseTest.php
create mode 100644 src/gen/test/Model/GetBankFeedStatementsResponseTest.php
create mode 100644 src/gen/test/Model/GetCustomObjectResponseTest.php
create mode 100644 src/gen/test/Model/GetCustomObjectSchemaResponseTest.php
create mode 100644 src/gen/test/Model/GetCustomObjectSchemasResponseTest.php
create mode 100644 src/gen/test/Model/GetCustomObjectsResponseTest.php
create mode 100644 src/gen/test/Model/InvoicePaymentAllocationsTest.php
create mode 100644 src/gen/test/Model/UpdateBankFeedAccountResponseTest.php
create mode 100644 src/gen/test/Model/UpdateBankFeedStatementResponseTest.php
create mode 100644 src/gen/test/Model/UpdateCustomObjectResponseTest.php
create mode 100644 src/gen/test/Model/UpdateCustomObjectSchemaResponseTest.php
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index ea33d971dd..a263fab169 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 b03960f12d..7010ad0885 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 541127dba2..5d4ff9d4d9 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 df239a013b..c99f38fd5c 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 f09a6c0a9c..76e1812a7a 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 3535e08e96..3bb930df31 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 dc46860a21..485e326452 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 31b7de38e4..5afee87bc9 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 1914f91c30..d4e8eac334 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 1323d0bd8a..9d3f6fe752 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 4fe1b7e87c..fa2a63cbbb 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 1b140259f6..d798c2a400 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 0000000000..75868b1234
--- /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 0000000000..feb7c7ad0a
--- /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 0000000000..cfe6d19dc3
--- /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 b156a8334e..ae72b6e12a 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 fb49ee455d..0c473e2311 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 ca3942734f..21c8a21f0f 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 885f0270e6..de20b959bc 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 519a5b2169..464d11b794 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 de7f227a75..5e75d9e033 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 8d0658bec7..417b024a82 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 305a8d70f4..83ffbbc932 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 e906d50ac2..1cc011b9bb 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 0000000000..4b3d30ba15
--- /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 0000000000..f84eb8de1e
--- /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 0000000000..2c1b2978e8
--- /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 0000000000..1ad46a6ecf
--- /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 24c1ae78c5..7238a5222a 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 0000000000..74844f97cb
--- /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 0000000000..49d8f968a2
--- /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 0000000000..62783c9958
--- /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 0000000000..d393cbb429
--- /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 0000000000..a81e665329
--- /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 0000000000..6d2d523b3e
--- /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 0000000000..4f39b735e4
--- /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 0000000000..beb77a3edd
--- /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 e3d5abec3a..f397c51551 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 0000000000..2c5673eea1
--- /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 0000000000..db024321bf
--- /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 0000000000..d75e7afc12
--- /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 0000000000..082da4d319
--- /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 f5bab85879..71d5cfa999 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 f381ed964e..b29b072034 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 d24d0f56d7..83c0782911 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 372aaced20..5f956bff75 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 a789287402..cdf8bb5938 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 7929000945..2b3b2efeba 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 0000000000..95bd55c3f4
--- /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 c4c9bd3b51..90c2d818e2 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 76aef8aee5..400183a9b8 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 ce93f50c7e..550bed39f1 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 b32b80985b..34f4e8f170 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 1a16554d4d..dc4f31722b 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 f549c79ab0..e58b5aabfd 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 50b7fbc674..7abe9ff447 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 0000000000..cad7614d44
--- /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 0000000000..f11e722384
--- /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 0000000000..eb92356757
--- /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 0000000000..636e70fdd1
--- /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 0000000000..ea979bb9ac
--- /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 0000000000..9d0334b8cf
--- /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 0000000000..cc4d3eef0b
--- /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 0000000000..23ccef8842
--- /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 968c82fcab..8e7d52fb8a 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 04bebd53b2..f37929288c 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 727196a68c..2a0d1ec06e 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 961576679c..71ce06bc07 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 a70e244849..02a7e6aa3a 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 0000000000..cb22905803
--- /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 6a272ec6d3..71b530c91a 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 1128466a79..a7a31068f0 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 9e721d3c09..2fcc9147b3 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 d6006ef4ac..ec14fed206 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 d3dab57b74..160e4c0f64 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 68fa17bfef..8d42bac9d1 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 d810ffdf31..0e929c666b 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 2a69f7fe7d..42e9dbf5fc 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 85c31b673e..899592cc7a 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 cbc5da9a82..5c33923786 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 39e1614dea..68dfa2e0f1 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 3aa358fcbe..876a337ac5 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 3f86edf253..100e5e6d2b 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 30a67745db..d7b5d8b86e 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 55db6dcbdc..f167e5daf3 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 3caf4c1f73..9d6b131226 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 865568ba26..0bd56e3525 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 4bf9047abd..23fd02ccdb 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 f79db367c9..a12d6e55fe 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 1154fd1b7e..48b23e47a1 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 3a57c7af93..46d33c8a00 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 596af35ecb..34fa07643a 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 a9607a44cf..4fc708f717 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 c55d14b35f..7ba0ce1bb9 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 77ef1264b7..0525335b05 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 5c2c9b774f..e876afe0ed 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 6c3360bc97..58550c1f58 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 1e9fcb9ec1..2a69b8d991 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 b15d6d7d72..1e49aeb4d8 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 bca775d28f..fb662a8a58 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 ad581b6127..8999047219 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 0000000000..e89c1641d1
--- /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 0000000000..1b6b39a7ca
--- /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 0000000000..6d32f6ad2b
--- /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 0000000000..01b8aabbb2
--- /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 4b74682299..0f4c4da87f 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 7445773619..528b84b4c4 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 f5f39cccaf..1a2ac08cbd 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 f42b6a7551..b508e4a223 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 956c57cc86..09f4080849 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 c2ae759c3a..e0921e41fc 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 7df6db5506..a3f2dcc2e7 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 1008a88697..b55cdc4122 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 60235c49c9..eeb49f6822 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 d9cca3dde1..feb341e589 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 abd021110d..bb4f1106b6 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 edbaead533..ccf90c5453 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 b8ef8657ce..63a87c9b5d 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 7c15d692c8..5546d6db8f 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 043ad4dca3..20d4f5a884 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 161d595a92..7c87eb97b8 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 6098e21e9c..a80164bb4a 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 f07064d9a0..541b106aaa 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 a3a09fa50d..a7bc1676c1 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 95aefc7aa7..c7180b397c 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 c3c82e4afa..03c0f2f0d1 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 3b6d88a7af..87e714bbb7 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 d68fa1daf9..4456610fb6 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 4c0044fa92..d7b637aa51 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 bf77e5bca2..d6568e111e 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 ed0dd386a6..10cb08a3fa 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 7d064ac066..613db118b8 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 b675ca5447..cc8cfa53c4 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 a877a38715..36d235ceae 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 476eb7387a..d2bac2c846 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 375b8263de..2770f5e18f 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 6e0512457f..d2fd81e44a 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 54d3da4aef..62a48e9bd5 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 dee3647447..e1cde97f04 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 6acad28cbb..157a9df3fc 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 d444b77ce6..1474a7328d 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 3ac1ec4205..bb2097067c 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 8300726994..26f3c489d5 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 e3fb743439..4be609e3f3 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 40492c3db5..5083713681 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 9fc36333fb..774c938de1 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 e80bb00e93..fa5baa0d74 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 b0416ceb57..532a608627 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 032b9b6af5..3995686690 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 dfb3ecb499..ecb042b78c 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 985d5be9d1..666a0459ba 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 e6a4e5bbf8..6b30356ab5 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 b1a9e6e083..6dc3fb94f8 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 72bde22753..36d0d93354 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 ecd093e604..7705da4dcd 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 f065b25245..8b481a7514 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 ab8a0071ff..86476b4466 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 19fb7ddac3..4256d43573 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 3580170073..44ea74a8a2 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 1d3b875425..0cd9dc38f4 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 6ba3e0c1dd..c8f75c3c4e 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 d7466d63b4..599007dbe5 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 d4bf48f2af..ed766117a2 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 c629bf6aca..c579cf8bb0 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 d43acf3b0f..780b76a6b4 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 6bb72c4c18..2bfa0c1929 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 96a56c3e84..dabf2f85c6 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 7ebf4b734c..24a32387be 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 550a4e13a0..569e923fbb 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 5363365d36..e2837cd7a4 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 0000000000..e00aea6bb0
--- /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 0000000000..f0d857be70
--- /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 0000000000..087ed43970
--- /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 db6e64b020..6a93a02957 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 5c85df34e9..33e4fa0f3d 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 3cfcde2ffa..fada1d4ed4 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 e34f36d96f..5504926f80 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 486a316dbd..50e89c2ffd 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 4369db8de1..100dd20dcf 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 563cb10614..b3af0e3203 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 aa32c0a793..f3d3db538d 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 e9d21496ec..98ef3f6f98 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 9c12d07b4e..a409567dfc 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 ce6b800759..420a16db09 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 e21df19ae2..b8d4b2b9d2 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 e30be8a03b..9ab9145406 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 f1bc96a388..b4138bd611 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 089ba9c7ea..9d5a90ec27 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 6919f3f960..9aa0084f71 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 a7579a37ba..f07ee19cca 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 2147e190f0..68f1e8cda3 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 977d16afdf..5788ba0ede 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 0cab732140..a9d11a0f10 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 2ead445951..87ec4edc2d 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 f2d24fe5d3..0ba409698b 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 9b52a986f9..97e0694097 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 2fd6759648..8488849bb5 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 ec3043a780..206cacf756 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 810ed0ae95..dd4a880fe3 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 3276b04e6e..383b5b2244 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 989be79fbd..da75f9a503 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 ca75ca9630..bc7b0e71b5 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 0983e01e63..5fd41dc70f 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 a23de81c2c..b9429a7bf4 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 dbd70d380f..0290b4e365 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 93b2b08d33..46d1104d08 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 8a74385ff3..b7e96ffae5 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 6732ed3f7c..7fc01dfecd 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 5b423cad9b..dc52acd963 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 95f9f1040c..6e7171a2d9 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 6d80312fc2..facecbc7d6 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 82dabf181a..48f932ac39 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 91606423b8..fd1e08f560 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 61750d7325..725a8002f8 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 29db9bff97..9a376a0e9c 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 fddb3c43e2..2de2d6205e 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 755324d104..dae123702b 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 58c6091800..d325f15a1b 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 43e86f8efe..94f9a1416e 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 f04bc412bd..30324332a2 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 6fcba03a56..8fce581c7c 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 3e8abf9434..c1d73870a9 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 5f603f2602..18291906c8 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 ff85283e13..46fa6a6d9d 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 60324cc555..239c136be6 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 c8c2eb453e..89f8bf0fbd 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 a217d4136e..9cfce023b7 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 edf43e3451..57d0308066 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 cd97170813..3d3151fd6b 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 007ebe09be..972b7ca51b 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 0000000000..558680ef16
--- /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 0000000000..d140a8923b
--- /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 a5d0054b88..2e77e60ede 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 4d56c0a778..ad95eb2944 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 e943ef437c..68693ee42c 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 f7b4102d15..722160892c 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 2f835604fa..1da4eea9db 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 caaf1ea728..c7294d6f2d 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 3a2a32c259..c9b5ba5a4e 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 69f32ed783..c0f84e68f4 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 6965a22177..335003439b 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 ab4905a16e..85beda6383 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 80f62150ff..0eba78642d 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 3331d0c30a..95a0ce523a 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 cb905101d7..acc12e9cfe 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 0000000000..a4525b83ac
--- /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 0000000000..84fae9becd
--- /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 bce236cf3f..848ad23b86 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 23442617fc..b56e7761cd 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 0cabe3f078..11889e6719 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 d4961164e6..6290ebccaf 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 adbf7c73e3..1905fcc2e3 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 17b8a5b67a..b89162d68e 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 b03a67e6a3..31d5fcf747 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 aea45744f1..1c7a39e4d4 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 51927bfbfe..0b47d258c0 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 01b5393bb2..58ee0ae5fb 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 cc881aa9e2..0f6986e8ca 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 e42c532a64..c738abaa23 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 963095277d..c1bef1c72e 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 a18ebce68e..e008f7d8a9 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 349f3c1f6c..f87143d996 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 10a610892d..7ac839225f 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 a1b77de4c2..0a56d5d982 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 cb475fd7fb..3aaa91c70a 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 9b82b09d7f..4859839cd6 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 9cf5efae9f..71a698b053 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 6ca2a7a22c..2f714fac62 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 9ff0e493fa..66821e25c7 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 76056c448f..479fd82e0e 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 5781d18f11..507ec6ac1b 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 5685430abf..df9b4d5e7a 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 4f1425cda6..da9c0c93e6 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 123540264f..9dea4ea316 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 43c310ea53..59e185ed16 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 1f86cf6787..314b86a0ef 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 b7f8b7c320..f52dd22da8 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 82bdcf5753..bbd6bba981 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 ba0c36fbce..7e05df8689 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 d0a66bfe7c..d789eae4db 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 0c3ea0406f..b240132c9e 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 2b25d5e9d8..65441f36d2 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 9a918badef..552f27e6d0 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 4d5e93f9c6..53cc1a1ad8 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 ab680a86d3..914105ddcf 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 2991385ebc..d50522fe43 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 c9baf126c5..04699d99c8 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 4900eb816d..035f75264d 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 6476a99408..0e9e970df6 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 860cea6c7c..d8f4d7f837 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 3e685a4ceb..b14cb394a8 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 558b1acc74..b323321b3d 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 dfce36487b..8177589169 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 7401051ff9..617e776232 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 e489622a72..d2cc49ead6 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 7d4f9f224f..1485397e89 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 4accaf2510..5acc4215ba 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 35c977dd57..4264aed507 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 bcbd2eea1e..0625a23273 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 0000000000..410a4a6af4
--- /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 0000000000..b66b346a0f
--- /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 0000000000..018f42ed2f
--- /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 0000000000..83782db6d5
--- /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 0000000000..771d093b63
--- /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 0000000000..fb25be4646
--- /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 0000000000..7a0ae368fd
--- /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 09b7431ed3..e576709b83 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 5ffc3c9b7b..3ac4402fc1 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 a41e5a4a4e..ab3fb8ced2 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 0137f8da05..c249b29aa3 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 c3b68353c8..30c7efd82f 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 3110065e1d..933fa97716 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 f6c3f0339b..d60f0fac83 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 7c14de5238..2a4fa2169d 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 2a71db1888..0de9bd1c69 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 a3846d557a..99fc4edac3 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 0000000000..22b43293c2
--- /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 0000000000..2259e17a34
--- /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 92daa2e792..bfa465913e 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 00ad2481ce..d1a5da0062 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 5d73a74f5e..d2119549e0 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 531297e2d1..b30575ea83 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 5deaa034bf..f1d400acc4 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 c52a744bf2..9b63929543 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 5dc2538194..8af8004307 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 0000000000..ffec6ff96c
--- /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 0000000000..ba242bed15
--- /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 eb73c13b09..b879627ca7 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 e769708f77..690bd64c9b 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 30a5f8a1b4..15c196d440 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 376dbde3e3..a67e3b0b31 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 884681ed05..a6227ca3da 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 f0d47f7796..93e8093986 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 f185ce6c66..1067ac6caa 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 7d0a379e92..6932f7f9f0 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 fd08f90bbb..4ae9e7a234 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 7de317f6b5..5566459951 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 0fc9551a51..1493021d49 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 03ebf29418..5be61ceb5a 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 2ad3c7fe3f..d6a85f7183 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 665ae7c204..9af62ee696 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 d625f8d303..21d481687c 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 b24b3d4e4c..a72e93b125 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 8d5f1fbe41..fced0bffa0 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 85e1ba38c6..10685013d3 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 463b75054c..4cd7315dbd 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 a55f7e59bb..b9064920c7 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 d15933c155..a913c328a1 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 842bda17e7..43bc0915d2 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 a727be8bb2..e16cc8c522 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 7415cb495f..14708fffcb 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 86fee6d1d8..732ac45742 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 e98d68a721..f2d41531d0 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 c4ea2a3f4c..8462133a85 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 41a54d4bac..de9c8e5d45 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 188181b4be..75446c5319 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 4f8c54b402..219bf8abf6 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 70bf14ca2d..76d0d86203 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 541f059bdb..faa77a036b 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 a4551ef9a1..df0a53a55a 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 0ccf5ac1c7..f206e9f8cd 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 da1246e0b6..62ffdd252a 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 d89db0f515..19ea523ef5 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 806c9fe324..8b3a088721 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 5b3af0bb91..9af8f96c45 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 0a4ec1b25f..7ed17fef71 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 7852c0bc2a..d97fde4e56 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 3cfe64cdad..a8bef54e9f 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 ad2e208749..0d6c1ee3dd 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 1028ac9024..e1b42291cb 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 c9fd6ed374..f8a57c2e3c 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 a1fcb60e99..3ffe328f5d 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 9a19046e9a..7b37bd25c7 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 cf0d25c99f..a18b46c3a8 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 939eb40951..b96f448fbf 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 811b6111a0..9909915c25 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 45c1f6503d..08d8d32a72 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 523f74bc76..6e1a0719dd 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 b62d7c3acd..2592e0fb9e 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 0bef44803a..59046e0a57 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 643517d2db..4b5e650d25 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 97bf9549c9..380423a28c 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 a5c6ba65e6..d7af255296 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 d330674838..3db01df24a 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 0000000000..afea6d11df
--- /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 6f0ce67c22..0d5d89cc78 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 0673f30278..20b59a2e67 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 e292708f2e..5e54f7edb3 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 581f47471a..a1ca8bc0bd 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 97f74c0a00..fac2045ff1 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 602ddda8ab..218cb1ddac 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 979241dd3e..9efdb18b86 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 effd1e11c8..bb199eb042 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 bb4303df62..04238d6560 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 4c45c25595..f03540b13f 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 5116f1fbd0..52d005eca5 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 5fa629d416..1ab053a591 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 d5bc57450b..b87395bd3a 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 ef01abe58e..40f563c719 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 8e11d6d864..2cf771f86c 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 7248ecd55f..0b1d4303af 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 57038e1ba8..449ecc7d43 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 8e07fa333b..f3ddb05929 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 ecb07a0065..db615a4826 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 da38396594..de79b49a6f 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 e3776c3538..abe47a5dcd 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 67ff488c10..f90f0e3ade 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 a8ea034b09..a80bbdb50c 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 659deb73bb..76e35505e5 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 bcceb920fc..63cbea21fd 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 931aa7c992..41b157f9e7 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 8727828954..4a287c05c6 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 72d2dbf5e0..595558e385 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 e052c70122..fb7a2fdf8a 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 aab8700652..ca9d8bfd68 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 9f158d7fae..068b21976e 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 ac7faab07f..fb7ce65f45 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 de0fb4b04a..4e24142841 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 61f60d134e..15c2650918 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 c5c28fb69a..fd6fc4ac15 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 52c1d0f3a9..0eabe5eeff 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 84c5bca68e..26a92391af 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 2ba51041d6..9cb39e4bfd 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 0e84b25c8f..7fceef105e 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 9cef380a17..2101be350b 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 e68a85f398..2757f4a877 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 c7aed3b449..4c97fffd5f 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 49e7619d09..87ed569b59 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 802f5ced21..3926b116ef 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 38efbece29..d011ba7c5c 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 5902a90def..79cd6b21c5 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 be0334a6cd..86f0a110b1 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 b8321a9192..a392b96257 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 b42eb25da4..212d2313b7 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 8311c7e0e2..b8dd1db47d 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 32080f5125..15bd9a2091 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 3cd9b94649..8dcb920ba9 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 ca674cf3af..4cfa35f330 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 66b848d9d3..1e84cc682b 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 85e9c3bb26..31e0a29be2 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 a90ea7f0fb..08a3480428 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 aa0e71b246..1d1694fa36 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 0000000000..4c3cb2095f
--- /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 0000000000..f3f6c5fa13
--- /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 0000000000..e49d4a9e95
--- /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 0000000000..f5d616e3a6
--- /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 c2f29805ac..de12d1eec3 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 3556f9cb6c..fb8f71c35a 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 54937ce16f..ced4a6a106 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 8c00edabdc..42447a7d93 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 7473cf027c..6f0023a742 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 2676a6c449..d615bc621e 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 4a3d550abe..ac9b3d4547 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 ae0bd6ec2a..25b2dba833 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 93dc16fd4d..dec5aea0d4 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 e596548ebe..c9f7df7f7e 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 c193537a7f..7d610a2a84 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 e9640d33d4..9de9406b98 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 021ae38993..bf9d5d1785 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 a08fd3c798..5a62ba14de 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 e61b6f5f94..b7e8c08b5c 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 51a774f0dd..ef6a95d335 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 ce43aa2cf7..c06782ff78 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 444e7abe27..ccf21269e4 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 ba4a56a713..d643b001e5 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 3fe4d760d0..448e64d838 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 07362ce889..857fa98078 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 a30a18d847..190c0e15b0 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 8fd8488fff..1619c369a8 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 591ecebac4..a9b26c05bf 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 5dc4fdb269..5e51f030c1 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 b202b3c089..f778ce4f4c 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 0f05e1d52f..5b8067497e 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 64bcb6db2c..7d7fa1bd62 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 3d3a4f9948..5e66507d1e 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 f653d3fee4..af8f80f710 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 1cf5bbca8d..962f418e3d 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 fe587e6946..547976ea4e 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 0000000000..9154aafc5f
--- /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 0000000000..7c2a386aeb
--- /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 0000000000..bcb4221a5e
--- /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 0000000000..9fb3a4b824
--- /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 97eecb9ad0..f236623178 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 e66bef2dcc..f8fd6bd297 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 6f88dd2b5f..d59b96511a 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 d11f6e6cdc..e38563517f 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 6335cf141d..042f66f207 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 45079e82a8..54ff3447de 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 7e70d8b260..8a76003347 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 fafb390419..fbebdcd35f 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 3e65fbd9d4..199fb40a53 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 af1582f360..a9f8cad585 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 e96214a521..53fbc8da77 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 de574dccb4..bb76b30287 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 b3c64367a4..ad400fd2cc 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 f792dc97e3..5ad9edcc02 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 348021de18..936af5cf2d 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 dbfd264015..6d50b27e01 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 6c6131caa9..ab3b59a601 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 e6ccd3b516..2969b603c5 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 8e87a46106..eede8b8496 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 d67555fdaa..7962283ff0 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 37f41536aa..b66d601f84 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 e355c03137..9a0369b383 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 bb368765e6..33217a3cc9 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 a9df284fad..1e2f42ef5b 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 5154b8d9da..bbcd530dac 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 af243d2547..92855ab381 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 f6927a8992..aaff811501 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 dd33d0b374..8e4cd5ec73 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 643ec925b6..3bc8fa0f39 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 900360080f..6219062ad0 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 353e9d7893..89c1b726b8 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 af1a6a8731..8021e050ae 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 192f5a3421..62cc864d92 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 17b077155d..57f250650a 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 f1c75800ae..f14eb3aae9 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 a6d6a9ddd5..4af139d160 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 2fc1df188d..4cc1ceeae1 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 5e86d66fef..3b68d56e18 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 f6c6656b89..36f27e377f 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 4955c26474..4f450819a1 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 faafaaaa7a..ead1b67e51 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 848ca2e09a..0cf7d28d77 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 ada1ac9418..a057ae932c 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 dbf4459289..0a84e62e2b 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 40eca2aa0f..7659656b34 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 c3ecbe4db7..9201edd0b0 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 dc2d30157f..05219fe1ca 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 d70bad50ff..12fac398e2 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 15f43f7a19..4a00fa21d2 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 243d079f30..670739d869 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 e56381d462..417360a1f4 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 703c5f6b93..315dbad3e4 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 6fd357fb19..3c497daf51 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 e41d67878d..3ecefb0ad4 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 9798c79e4f..73c221363e 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 d103b27ef8..9ed2ed6e72 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 3086742b11..3ce4693ae2 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 47f2f9039b..d675c9bb3c 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 56fda274eb..db51632c9a 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 07b5c83849..6cc65aa7b8 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 442c30ae21..47280a1d06 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 60d9b1b030..36679a86cc 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 7b6e4a7d61..21d7fc124f 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 45f4008b95..d9c19afaa1 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 1944b2ea14..03bd385c87 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 5db60624c5..0034279776 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 265995ff81..888a0b6183 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 916d0d801e..11e18d15f2 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 c29095d9e5..7b13b01bca 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 ead9f28769..753d2c189a 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 ba568d009f..89bd0775af 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 85b0dcb8b9..0e13d64142 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 d65528a2f2..0dc0abd1ed 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 3b0a1f3cd0..54faf185b8 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 4a2cb24ea7..3df05a4bb4 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 5602dea2ee..a50b4d5c32 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 82edefc829..9e159dc045 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 f291ec7ada..c7e2518637 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 f2fb876e36..3e891f0dc7 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 9a3e8a2a98..5f6e121e6e 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 440a32a643..7a0f690f24 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 5ffa788b6b..de79adc2fd 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 72597717ee..ecd9371518 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 a80c2a81b9..7993572d01 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 4a4964525b..e79a40a8d2 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 8eb460a759..0932e4fcdb 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 435f5b92d3..d76e6585bd 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 bba870d724..c331b19de0 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 73d6922f21..66ca4c824d 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 519991830d..c18d6c55db 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 7c6e6348cb..c30685e450 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 3c12abc465..f18da75df4 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 cac736be63..218143cab6 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 de778ee747..cd46591113 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 901f0deb95..ea5dd94b80 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 efaa6a6a68..be92c1469a 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 52224b83ca..8838593724 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 37a48fb292..959e139e93 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 4a9fe80b70..c8e8787d93 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 709265f2a0..3d974d9e13 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 15bec231d5..92c480557e 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 f69b6bfa2f..4b9a4d2244 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