diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 9e7b8bd..8dde7a9 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,14 @@ lockVersion: 2.0.0 id: 0e1578f5-5df8-4086-96d6-369ac62fc49d management: - docChecksum: fb276a6004d52b717539d57facc08235 - docVersion: 10.8.1 + docChecksum: 5a3c61710af05ae5c21380b118217322 + docVersion: 10.8.3 speakeasyVersion: 1.453.0 generationVersion: 2.472.1 - releaseVersion: 0.0.2 - configChecksum: 874eb4c570fcfb98b9d1f2fbd049e13a + releaseVersion: 0.0.3 + configChecksum: dac14721849799a0fe7ba3949bcc1164 + repoURL: https://github.com/apideck-libraries/sdk-php.git + installationURL: https://github.com/apideck-libraries/sdk-php published: true features: php: @@ -337,6 +339,7 @@ generatedFiles: - docs/Models/Components/ExpenseInput.md - docs/Models/Components/ExpenseLineItem.md - docs/Models/Components/ExpenseLineItemInput.md + - docs/Models/Components/ExpensePaymentType.md - docs/Models/Components/ExpenseType.md - docs/Models/Components/Expenses.md - docs/Models/Components/ExtendPaths.md @@ -484,10 +487,13 @@ generatedFiles: - docs/Models/Components/Invoice.md - docs/Models/Components/InvoiceInput.md - docs/Models/Components/InvoiceItem.md + - docs/Models/Components/InvoiceItemFilter.md + - docs/Models/Components/InvoiceItemFilterInvoiceItemType.md - docs/Models/Components/InvoiceItemInput.md - docs/Models/Components/InvoiceItemPurchaseDetails.md - docs/Models/Components/InvoiceItemSalesDetails.md - docs/Models/Components/InvoiceItemType.md + - docs/Models/Components/InvoiceItemTypeType.md - docs/Models/Components/InvoiceItemsFilter.md - docs/Models/Components/InvoiceLineItem.md - docs/Models/Components/InvoiceLineItemInput.md @@ -519,6 +525,7 @@ generatedFiles: - docs/Models/Components/LeavingReason.md - docs/Models/Components/LedgerAccount.md - docs/Models/Components/LedgerAccountInput.md + - docs/Models/Components/LedgerAccountSubsidiaries.md - docs/Models/Components/LedgerAccountType.md - docs/Models/Components/LedgerAccountsFilter.md - docs/Models/Components/LedgerAccountsSort.md @@ -586,6 +593,7 @@ generatedFiles: - docs/Models/Components/Payroll.md - docs/Models/Components/PayrollTotals.md - docs/Models/Components/PayrollsFilter.md + - docs/Models/Components/PeriodType.md - docs/Models/Components/Permissions.md - docs/Models/Components/Person.md - docs/Models/Components/PersonInput.md @@ -674,6 +682,7 @@ generatedFiles: - docs/Models/Components/TrackingCategory.md - docs/Models/Components/TrackingCategoryInput.md - docs/Models/Components/TrackingCategoryStatus.md + - docs/Models/Components/TrackingCategorySubsidiaries.md - docs/Models/Components/TrackingItem.md - docs/Models/Components/Type.md - docs/Models/Components/UnexpectedErrorResponse.md @@ -1749,6 +1758,7 @@ generatedFiles: - src/Models/Components/ExpenseInput.php - src/Models/Components/ExpenseLineItem.php - src/Models/Components/ExpenseLineItemInput.php + - src/Models/Components/ExpensePaymentType.php - src/Models/Components/ExpenseType.php - src/Models/Components/Expenses.php - src/Models/Components/ExtendPaths.php @@ -1894,10 +1904,13 @@ generatedFiles: - src/Models/Components/Invoice.php - src/Models/Components/InvoiceInput.php - src/Models/Components/InvoiceItem.php + - src/Models/Components/InvoiceItemFilter.php + - src/Models/Components/InvoiceItemFilterInvoiceItemType.php - src/Models/Components/InvoiceItemInput.php - src/Models/Components/InvoiceItemPurchaseDetails.php - src/Models/Components/InvoiceItemSalesDetails.php - src/Models/Components/InvoiceItemType.php + - src/Models/Components/InvoiceItemTypeType.php - src/Models/Components/InvoiceItemsFilter.php - src/Models/Components/InvoiceLineItem.php - src/Models/Components/InvoiceLineItemInput.php @@ -1929,6 +1942,7 @@ generatedFiles: - src/Models/Components/LeavingReason.php - src/Models/Components/LedgerAccount.php - src/Models/Components/LedgerAccountInput.php + - src/Models/Components/LedgerAccountSubsidiaries.php - src/Models/Components/LedgerAccountType.php - src/Models/Components/LedgerAccountsFilter.php - src/Models/Components/LedgerAccountsSort.php @@ -1996,6 +2010,7 @@ generatedFiles: - src/Models/Components/Payroll.php - src/Models/Components/PayrollTotals.php - src/Models/Components/PayrollsFilter.php + - src/Models/Components/PeriodType.php - src/Models/Components/Permissions.php - src/Models/Components/Person.php - src/Models/Components/PersonInput.php @@ -2083,6 +2098,7 @@ generatedFiles: - src/Models/Components/TrackingCategory.php - src/Models/Components/TrackingCategoryInput.php - src/Models/Components/TrackingCategoryStatus.php + - src/Models/Components/TrackingCategorySubsidiaries.php - src/Models/Components/TrackingItem.php - src/Models/Components/Type.php - src/Models/Components/UnexpectedErrorResponse.php @@ -2791,7 +2807,7 @@ examples: "402": application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} "404": - application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": {"not_found": {"entity": "widget", "id": "123"}}, "ref": "https://developers.apideck.com/errors#entitynotfounderror"} + application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: @@ -2873,7 +2889,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} accounting.billsAll: "": parameters: @@ -2921,7 +2937,7 @@ examples: "402": application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} "404": - application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": {"not_found": {"entity": "widget", "id": "123"}}, "ref": "https://developers.apideck.com/errors#entitynotfounderror"} + application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: @@ -3003,7 +3019,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} accounting.invoicesAll: "": parameters: @@ -3133,7 +3149,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} accounting.ledgerAccountsAll: "": parameters: @@ -3185,7 +3201,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} accounting.ledgerAccountsOne: "": parameters: @@ -3263,12 +3279,12 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} accounting.invoiceItemsAll: "": parameters: query: - filter: {"name": "Widgets Large"} + filter: {"name": "Widgets Large", "type": "service"} pass_through: {"search": "San Francisco"} fields: "id,updated_at" header: @@ -3310,7 +3326,7 @@ examples: "402": application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} "404": - application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": {"not_found": {"entity": "widget", "id": "123"}}, "ref": "https://developers.apideck.com/errors#entitynotfounderror"} + application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: @@ -3322,6 +3338,7 @@ examples: id: "" query: fields: "id,updated_at" + filter: {"type": "service"} header: x-apideck-consumer-id: "test-consumer" x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" @@ -3392,7 +3409,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} accounting.creditNotesAll: "": parameters: @@ -3522,7 +3539,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} accounting.customersAll: "": parameters: @@ -3570,7 +3587,7 @@ examples: "402": application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} "404": - application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": {"not_found": {"entity": "widget", "id": "123"}}, "ref": "https://developers.apideck.com/errors#entitynotfounderror"} + application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: @@ -3652,7 +3669,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} accounting.suppliersAll: "": parameters: @@ -3700,7 +3717,7 @@ examples: "402": application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} "404": - application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": {"not_found": {"entity": "widget", "id": "123"}}, "ref": "https://developers.apideck.com/errors#entitynotfounderror"} + application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: @@ -3782,7 +3799,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} accounting.paymentsAll: "": parameters: @@ -3826,7 +3843,7 @@ examples: "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} "401": - application/json: {"status_code": 401, "error": "Unauthorized", "type_name": "UnauthorizedError", "message": "Unauthorized Request", "detail": {"statusCode": 401, "error": "Unauthorized", "message": "Missing authentication"}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 401, "error": "Unauthorized", "type_name": "UnauthorizedError", "message": "Unauthorized Request", "detail": "Missing authentication", "ref": "https://developers.apideck.com/errors#unauthorizederror"} "402": application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} "404": @@ -3912,7 +3929,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} accounting.companyInfoOne: "": parameters: @@ -3942,7 +3959,7 @@ examples: parameters: query: pass_through: {"search": "San Francisco"} - filter: {"start_date": "2021-01-01", "end_date": "2021-12-31"} + filter: {"start_date": "2021-01-01", "end_date": "2021-12-31", "period_count": 3, "period_type": "month"} header: x-apideck-consumer-id: "test-consumer" x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" @@ -4035,7 +4052,7 @@ examples: "402": application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} "404": - application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": {"not_found": {"entity": "widget", "id": "123"}}, "ref": "https://developers.apideck.com/errors#entitynotfounderror"} + application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: @@ -4117,7 +4134,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} accounting.purchaseOrdersAll: "": parameters: @@ -4164,7 +4181,7 @@ examples: "402": application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} "404": - application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": {"not_found": {"entity": "widget", "id": "123"}}, "ref": "https://developers.apideck.com/errors#entitynotfounderror"} + application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: @@ -4245,7 +4262,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} accounting.subsidiariesAll: "": parameters: @@ -4294,7 +4311,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} accounting.subsidiariesOne: "": parameters: @@ -4372,7 +4389,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} accounting.locationsAll: "": parameters: @@ -4418,7 +4435,7 @@ examples: "402": application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} "404": - application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": {"not_found": {"entity": "widget", "id": "123"}}, "ref": "https://developers.apideck.com/errors#entitynotfounderror"} + application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: @@ -4500,7 +4517,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} accounting.departmentsAll: "": parameters: @@ -4546,7 +4563,7 @@ examples: "402": application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} "404": - application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": {"not_found": {"entity": "widget", "id": "123"}}, "ref": "https://developers.apideck.com/errors#entitynotfounderror"} + application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: @@ -4628,7 +4645,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} accounting.attachmentsAll: "": parameters: @@ -4710,7 +4727,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} accounting.attachmentsDownload: "": parameters: @@ -4738,7 +4755,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} accounting.trackingCategoriesAll: "": parameters: @@ -4788,7 +4805,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} accounting.trackingCategoriesOne: "": parameters: @@ -4866,7 +4883,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} accounting.billPaymentsAll: "": parameters: @@ -4910,7 +4927,7 @@ examples: "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} "401": - application/json: {"status_code": 401, "error": "Unauthorized", "type_name": "UnauthorizedError", "message": "Unauthorized Request", "detail": {"statusCode": 401, "error": "Unauthorized", "message": "Missing authentication"}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 401, "error": "Unauthorized", "type_name": "UnauthorizedError", "message": "Unauthorized Request", "detail": "Missing authentication", "ref": "https://developers.apideck.com/errors#unauthorizederror"} "402": application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} "404": @@ -4996,7 +5013,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} accounting.expensesAll: "": parameters: @@ -5036,7 +5053,7 @@ examples: "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} "401": - application/json: {"status_code": 401, "error": "Unauthorized", "type_name": "UnauthorizedError", "message": "Unauthorized Request", "detail": {"statusCode": 401, "error": "Unauthorized", "message": "Missing authentication"}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 401, "error": "Unauthorized", "type_name": "UnauthorizedError", "message": "Unauthorized Request", "detail": "Missing authentication", "ref": "https://developers.apideck.com/errors#unauthorizederror"} "402": application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} "404": @@ -5121,7 +5138,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} ats.jobsAll: "": parameters: @@ -5219,7 +5236,7 @@ examples: "402": application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} "404": - application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": {"not_found": {"entity": "widget", "id": "123"}}, "ref": "https://developers.apideck.com/errors#entitynotfounderror"} + application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: @@ -5301,7 +5318,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} ats.applicationsAll: "": parameters: @@ -5350,7 +5367,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} ats.applicationsOne: "": parameters: @@ -5427,7 +5444,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} crm.companiesAll: "": parameters: @@ -5557,7 +5574,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} crm.contactsAll: "": parameters: @@ -5688,7 +5705,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} crm.opportunitiesAll: "": parameters: @@ -5736,7 +5753,7 @@ examples: "402": application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} "404": - application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": {"not_found": {"entity": "widget", "id": "123"}}, "ref": "https://developers.apideck.com/errors#entitynotfounderror"} + application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: @@ -5818,7 +5835,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} crm.leadsAll: "": parameters: @@ -5948,7 +5965,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} crm.pipelinesAll: "": parameters: @@ -5994,7 +6011,7 @@ examples: "402": application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} "404": - application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": {"not_found": {"entity": "widget", "id": "123"}}, "ref": "https://developers.apideck.com/errors#entitynotfounderror"} + application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: @@ -6076,7 +6093,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} crm.notesAll: "": parameters: @@ -6126,7 +6143,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} crm.notesOne: "": parameters: @@ -6204,7 +6221,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} crm.usersAll: "": parameters: @@ -6250,7 +6267,7 @@ examples: "402": application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} "404": - application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": {"not_found": {"entity": "widget", "id": "123"}}, "ref": "https://developers.apideck.com/errors#entitynotfounderror"} + application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: @@ -6332,7 +6349,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} crm.activitiesAll: "": parameters: @@ -6380,7 +6397,7 @@ examples: "402": application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} "404": - application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": {"not_found": {"entity": "widget", "id": "123"}}, "ref": "https://developers.apideck.com/errors#entitynotfounderror"} + application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: @@ -6462,7 +6479,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} ecommerce.ordersAll: "": parameters: @@ -6775,7 +6792,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} fileStorage.filesDownload: "": parameters: @@ -6801,7 +6818,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} fileStorage.filesExport: "": parameters: @@ -6854,7 +6871,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} fileStorage.foldersOne: "": parameters: @@ -6932,7 +6949,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} fileStorage.foldersCopy: "": parameters: @@ -7010,7 +7027,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} fileStorage.sharedLinksOne: "": parameters: @@ -7088,7 +7105,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} fileStorage.uploadSessionsAdd: "": parameters: @@ -7113,7 +7130,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} fileStorage.uploadSessionsOne: "": parameters: @@ -7164,7 +7181,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} fileStorage.uploadSessionsFinish: "": parameters: @@ -7240,7 +7257,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} fileStorage.drivesOne: "": parameters: @@ -7318,7 +7335,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} fileStorage.driveGroupsAll: "": parameters: @@ -7369,7 +7386,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} fileStorage.driveGroupsOne: "": parameters: @@ -7447,7 +7464,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} hris.employeesAll: "": parameters: @@ -7497,7 +7514,7 @@ examples: "404": application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} "422": - application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": {"error": "Unprocessable", "message": "Unprocessable request, please verify your request headers and body."}, "ref": "https://developers.apideck.com/errors#invalidstateerror"} + application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} hris.employeesOne: @@ -7579,7 +7596,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} hris.companiesAll: "": parameters: @@ -7621,7 +7638,7 @@ examples: "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} "401": - application/json: {"status_code": 401, "error": "Unauthorized", "type_name": "UnauthorizedError", "message": "Unauthorized Request", "detail": {"statusCode": 401, "error": "Unauthorized", "message": "Missing authentication"}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 401, "error": "Unauthorized", "type_name": "UnauthorizedError", "message": "Unauthorized Request", "detail": "Missing authentication", "ref": "https://developers.apideck.com/errors#unauthorizederror"} "402": application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} "404": @@ -7707,7 +7724,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} hris.departmentsAll: "": parameters: @@ -7757,7 +7774,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} hris.departmentsOne: "": parameters: @@ -7835,7 +7852,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} hris.payrollsAll: "": parameters: @@ -8020,7 +8037,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} hris.timeOffRequestsOne: "": parameters: @@ -8101,7 +8118,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} sms.messagesAll: "": parameters: @@ -8150,7 +8167,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} sms.messagesOne: "": parameters: @@ -8228,7 +8245,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} issueTracking.collectionsAll: "": parameters: @@ -8332,7 +8349,7 @@ examples: "402": application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} "404": - application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": {"not_found": {"entity": "widget", "id": "123"}}, "ref": "https://developers.apideck.com/errors#entitynotfounderror"} + application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: @@ -8417,7 +8434,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} issueTracking.collectionTicketCommentsAll: "": parameters: @@ -8474,7 +8491,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} issueTracking.collectionTicketCommentsOne: "": parameters: @@ -8558,7 +8575,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} issueTracking.collectionUsersAll: "": parameters: @@ -8811,7 +8828,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} vault.consumersAll: "": parameters: @@ -8900,7 +8917,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} vault.consumerRequestCountsAll: "": parameters: @@ -9021,7 +9038,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} vault.connectionsImport: "": parameters: @@ -9069,7 +9086,7 @@ examples: "404": application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} "422": - application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": {"error": "Unprocessable", "message": "Unprocessable request, please verify your request headers and body."}, "ref": "https://developers.apideck.com/errors#invalidstateerror"} + application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} vault.validateConnectionState: @@ -9091,7 +9108,7 @@ examples: "402": application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} "404": - application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": {"not_found": {"entity": "widget", "id": "123"}}, "ref": "https://developers.apideck.com/errors#entitynotfounderror"} + application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": {"error": "Unprocessable", "message": "Unprocessable request, please verify your request headers and body."}, "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: @@ -9117,7 +9134,7 @@ examples: "402": application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} "404": - application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": {"not_found": {"entity": "widget", "id": "123"}}, "ref": "https://developers.apideck.com/errors#entitynotfounderror"} + application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": {"error": "Unprocessable", "message": "Unprocessable request, please verify your request headers and body."}, "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: @@ -9386,7 +9403,7 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} webhook.webhooksDelete: "": parameters: @@ -9408,5 +9425,5 @@ examples: "422": application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: - application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": {"missing": [{"x-apideck-consumer-id": "required"}]}, "ref": "https://developers.apideck.com/errors#unauthorizederror"} + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} generatedTests: {} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 4fa0797..35b0aec 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -13,7 +13,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: true php: - version: 0.0.2 + version: 0.0.3 clientServerStatusCodesAsErrors: true defaultErrorName: APIException flattenGlobalSecurity: true diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 9ffb0e6..73afe29 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,26 +2,27 @@ speakeasyVersion: 1.453.0 sources: Apideck: sourceNamespace: apideck - sourceRevisionDigest: sha256:fa0799358f2c0a80c78698039cda0586cf8c876582e3edcac3c6b48a089897dc - sourceBlobDigest: sha256:39c96f8d4a5fbecf9ab7034eea61ed5d4c8230f961e142764bc3cf69306b06a7 + sourceRevisionDigest: sha256:0b5c1d9084456845b39928c8770817584e9e6b460f251fa25ba6a52f2cd5b584 + sourceBlobDigest: sha256:c78223a6f6e3fb5b1d9f0d663d8bd72bf35ecc3ed8435dd81561c45569a9f642 tags: - latest - - 10.8.1 + - speakeasy-sdk-regen-1733502108 + - 10.8.3 targets: apideck: source: Apideck sourceNamespace: apideck - sourceRevisionDigest: sha256:fa0799358f2c0a80c78698039cda0586cf8c876582e3edcac3c6b48a089897dc - sourceBlobDigest: sha256:39c96f8d4a5fbecf9ab7034eea61ed5d4c8230f961e142764bc3cf69306b06a7 + sourceRevisionDigest: sha256:0b5c1d9084456845b39928c8770817584e9e6b460f251fa25ba6a52f2cd5b584 + sourceBlobDigest: sha256:c78223a6f6e3fb5b1d9f0d663d8bd72bf35ecc3ed8435dd81561c45569a9f642 codeSamplesNamespace: apideck-php-code-samples - codeSamplesRevisionDigest: sha256:171a65c2a9c561323ef948937ca4f88b197938e815585ec19715109b36239f0c + codeSamplesRevisionDigest: sha256:7d5b42a9f7fc00e6906f6d824349da197434acf00cda00270de112a3c14be53e workflow: workflowVersion: 1.0.0 speakeasyVersion: latest sources: Apideck: inputs: - - location: ../unify/speakeasy-spec.yml + - location: https://ci-spec-unify.s3.eu-central-1.amazonaws.com/speakeasy-spec.yml registry: location: registry.speakeasyapi.dev/apideck-k2o/apideck/apideck targets: diff --git a/RELEASES.md b/RELEASES.md new file mode 100644 index 0000000..7e8a4e1 --- /dev/null +++ b/RELEASES.md @@ -0,0 +1,11 @@ + + +## 2024-12-06 16:21:44 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.453.0 (2.472.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [php v0.0.3] . +### Releases +- [Composer v0.0.3] https://packagist.org/packages/apideck-libraries/sdk-php#v0.0.3 - . \ No newline at end of file diff --git a/docs/Models/Components/BalanceSheetFilter.md b/docs/Models/Components/BalanceSheetFilter.md index 56d711e..1f8c772 100644 --- a/docs/Models/Components/BalanceSheetFilter.md +++ b/docs/Models/Components/BalanceSheetFilter.md @@ -3,7 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `startDate` | *?string* | :heavy_minus_sign: | Filter by start date. If start date is given, end date is required. | 2021-01-01 | -| `endDate` | *?string* | :heavy_minus_sign: | Filter by end date. If end date is given, start date is required. | 2021-12-31 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `startDate` | *?string* | :heavy_minus_sign: | The start date of the period to include in the resource. | 2021-01-01 | +| `endDate` | *?string* | :heavy_minus_sign: | The end date of the period to include in the resource. | 2021-12-31 | +| `periodCount` | *?int* | :heavy_minus_sign: | The number of periods to include in the resource. | 3 | +| `periodType` | [?Components\PeriodType](../../Models/Components/PeriodType.md) | :heavy_minus_sign: | The type of period to include in the resource: month, quarter, year. | month | \ No newline at end of file diff --git a/docs/Models/Components/Expense.md b/docs/Models/Components/Expense.md index abc3fc9..111b5b4 100644 --- a/docs/Models/Components/Expense.md +++ b/docs/Models/Components/Expense.md @@ -17,6 +17,7 @@ | `passThrough` | array<[Components\PassThroughBody](../../Models/Components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | | `number` | *?string* | :heavy_minus_sign: | Number. | OIT00546 | | `companyId` | *?string* | :heavy_minus_sign: | The company or subsidiary id the transaction belongs to | 12345 | +| `paymentType` | [?Components\ExpensePaymentType](../../Models/Components/ExpensePaymentType.md) | :heavy_minus_sign: | The type of payment for the expense. | cash | | `currency` | [?Components\Currency](../../Models/Components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | | `currencyRate` | *?float* | :heavy_minus_sign: | Currency Exchange Rate at the time entity was recorded/generated. | 0.69 | | `type` | [?Components\ExpenseType](../../Models/Components/ExpenseType.md) | :heavy_minus_sign: | The type of expense. | expense | diff --git a/docs/Models/Components/ExpenseInput.md b/docs/Models/Components/ExpenseInput.md index 96df7fe..832895a 100644 --- a/docs/Models/Components/ExpenseInput.md +++ b/docs/Models/Components/ExpenseInput.md @@ -16,6 +16,7 @@ | `passThrough` | array<[Components\PassThroughBody](../../Models/Components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | | `number` | *?string* | :heavy_minus_sign: | Number. | OIT00546 | | `companyId` | *?string* | :heavy_minus_sign: | The company or subsidiary id the transaction belongs to | 12345 | +| `paymentType` | [?Components\ExpensePaymentType](../../Models/Components/ExpensePaymentType.md) | :heavy_minus_sign: | The type of payment for the expense. | cash | | `currency` | [?Components\Currency](../../Models/Components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | | `currencyRate` | *?float* | :heavy_minus_sign: | Currency Exchange Rate at the time entity was recorded/generated. | 0.69 | | `type` | [?Components\ExpenseType](../../Models/Components/ExpenseType.md) | :heavy_minus_sign: | The type of expense. | expense | diff --git a/docs/Models/Components/ExpensePaymentType.md b/docs/Models/Components/ExpensePaymentType.md new file mode 100644 index 0000000..b98df83 --- /dev/null +++ b/docs/Models/Components/ExpensePaymentType.md @@ -0,0 +1,12 @@ +# ExpensePaymentType + +The type of payment for the expense. + + +## Values + +| Name | Value | +| ------------ | ------------ | +| `Cash` | cash | +| `Check` | check | +| `CreditCard` | credit_card | \ No newline at end of file diff --git a/docs/Models/Components/InvoiceItem.md b/docs/Models/Components/InvoiceItem.md index ff57e10..4ef3938 100644 --- a/docs/Models/Components/InvoiceItem.md +++ b/docs/Models/Components/InvoiceItem.md @@ -17,7 +17,7 @@ | `tracked` | *?bool* | :heavy_minus_sign: | Item is inventoried | true | | `taxable` | *?bool* | :heavy_minus_sign: | If true, transactions for this item are taxable | true | | `inventoryDate` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | The date of opening balance if inventory item is tracked - YYYY-MM-DD. | 2020-10-30 | -| `type` | [?Components\InvoiceItemType](../../Models/Components/InvoiceItemType.md) | :heavy_minus_sign: | Item type | inventory | +| `type` | [?Components\InvoiceItemTypeType](../../Models/Components/InvoiceItemTypeType.md) | :heavy_minus_sign: | Item type | inventory | | `quantity` | *?float* | :heavy_minus_sign: | N/A | 1 | | `unitPrice` | *?float* | :heavy_minus_sign: | N/A | 27500.5 | | `assetAccount` | [?Components\LinkedLedgerAccount](../../Models/Components/LinkedLedgerAccount.md) | :heavy_minus_sign: | N/A | | diff --git a/docs/Models/Components/InvoiceItemFilter.md b/docs/Models/Components/InvoiceItemFilter.md new file mode 100644 index 0000000..63b06b3 --- /dev/null +++ b/docs/Models/Components/InvoiceItemFilter.md @@ -0,0 +1,8 @@ +# InvoiceItemFilter + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `type` | [?Components\InvoiceItemFilterInvoiceItemType](../../Models/Components/InvoiceItemFilterInvoiceItemType.md) | :heavy_minus_sign: | The type of invoice item, indicating whether it is an inventory item, a service, or another type. | service | \ No newline at end of file diff --git a/docs/Models/Components/InvoiceItemFilterInvoiceItemType.md b/docs/Models/Components/InvoiceItemFilterInvoiceItemType.md new file mode 100644 index 0000000..8c09dd3 --- /dev/null +++ b/docs/Models/Components/InvoiceItemFilterInvoiceItemType.md @@ -0,0 +1,12 @@ +# InvoiceItemFilterInvoiceItemType + +The type of invoice item, indicating whether it is an inventory item, a service, or another type. + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `Inventory` | inventory | +| `Service` | service | +| `Other` | other | \ No newline at end of file diff --git a/docs/Models/Components/InvoiceItemInput.md b/docs/Models/Components/InvoiceItemInput.md index 63f3430..33adfe5 100644 --- a/docs/Models/Components/InvoiceItemInput.md +++ b/docs/Models/Components/InvoiceItemInput.md @@ -16,7 +16,7 @@ | `tracked` | *?bool* | :heavy_minus_sign: | Item is inventoried | true | | `taxable` | *?bool* | :heavy_minus_sign: | If true, transactions for this item are taxable | true | | `inventoryDate` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | The date of opening balance if inventory item is tracked - YYYY-MM-DD. | 2020-10-30 | -| `type` | [?Components\InvoiceItemType](../../Models/Components/InvoiceItemType.md) | :heavy_minus_sign: | Item type | inventory | +| `type` | [?Components\InvoiceItemTypeType](../../Models/Components/InvoiceItemTypeType.md) | :heavy_minus_sign: | Item type | inventory | | `quantity` | *?float* | :heavy_minus_sign: | N/A | 1 | | `unitPrice` | *?float* | :heavy_minus_sign: | N/A | 27500.5 | | `assetAccount` | [?Components\LinkedLedgerAccountInput](../../Models/Components/LinkedLedgerAccountInput.md) | :heavy_minus_sign: | N/A | | diff --git a/docs/Models/Components/InvoiceItemType.md b/docs/Models/Components/InvoiceItemType.md index d61bd13..110e538 100644 --- a/docs/Models/Components/InvoiceItemType.md +++ b/docs/Models/Components/InvoiceItemType.md @@ -1,6 +1,6 @@ # InvoiceItemType -Item type +The type of invoice item, indicating whether it is an inventory item, a service, or another type. ## Values diff --git a/docs/Models/Components/InvoiceItemTypeType.md b/docs/Models/Components/InvoiceItemTypeType.md new file mode 100644 index 0000000..1c8b25f --- /dev/null +++ b/docs/Models/Components/InvoiceItemTypeType.md @@ -0,0 +1,12 @@ +# InvoiceItemTypeType + +Item type + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `Inventory` | inventory | +| `Service` | service | +| `Other` | other | \ No newline at end of file diff --git a/docs/Models/Components/InvoiceItemsFilter.md b/docs/Models/Components/InvoiceItemsFilter.md index fae2190..9f950cc 100644 --- a/docs/Models/Components/InvoiceItemsFilter.md +++ b/docs/Models/Components/InvoiceItemsFilter.md @@ -3,6 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `name` | *?string* | :heavy_minus_sign: | Name of Invoice Items to search for | Widgets Large | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `name` | *?string* | :heavy_minus_sign: | Name of Invoice Items to search for | Widgets Large | +| `type` | [?Components\InvoiceItemType](../../Models/Components/InvoiceItemType.md) | :heavy_minus_sign: | The type of invoice item, indicating whether it is an inventory item, a service, or another type. | service | \ No newline at end of file diff --git a/docs/Models/Components/LedgerAccount.md b/docs/Models/Components/LedgerAccount.md index f431adb..a4af8c4 100644 --- a/docs/Models/Components/LedgerAccount.md +++ b/docs/Models/Components/LedgerAccount.md @@ -13,7 +13,7 @@ | `categories` | array<[Components\Categories](../../Models/Components/Categories.md)> | :heavy_minus_sign: | The categories of the account. | | | `parentAccount` | [?Components\ParentAccount](../../Models/Components/ParentAccount.md) | :heavy_minus_sign: | N/A | | | `subAccounts` | array<[Components\SubAccounts](../../Models/Components/SubAccounts.md)> | :heavy_minus_sign: | The sub accounts of the account. | | -| `subsidiaries` | array<[Components\Subsidiaries](../../Models/Components/Subsidiaries.md)> | :heavy_minus_sign: | The subsidiaries the account belongs to. | | +| `subsidiaries` | array<[Components\LedgerAccountSubsidiaries](../../Models/Components/LedgerAccountSubsidiaries.md)> | :heavy_minus_sign: | The subsidiaries the account belongs to. | | | `passThrough` | array<[Components\PassThroughBody](../../Models/Components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | | ~~`nominalCode`~~ | *?string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The nominal code of the ledger account. | N091 | | `code` | *?string* | :heavy_minus_sign: | The code assigned to the account. | 453 | diff --git a/docs/Models/Components/LedgerAccountInput.md b/docs/Models/Components/LedgerAccountInput.md index 349023a..68555f0 100644 --- a/docs/Models/Components/LedgerAccountInput.md +++ b/docs/Models/Components/LedgerAccountInput.md @@ -10,7 +10,7 @@ | `taxRate` | [?Components\LinkedTaxRateInput](../../Models/Components/LinkedTaxRateInput.md) | :heavy_minus_sign: | N/A | | | `bankAccount` | [?Components\BankAccount](../../Models/Components/BankAccount.md) | :heavy_minus_sign: | N/A | | | `parentAccount` | [?Components\ParentAccount](../../Models/Components/ParentAccount.md) | :heavy_minus_sign: | N/A | | -| `subsidiaries` | array<[Components\Subsidiaries](../../Models/Components/Subsidiaries.md)> | :heavy_minus_sign: | The subsidiaries the account belongs to. | | +| `subsidiaries` | array<[Components\LedgerAccountSubsidiaries](../../Models/Components/LedgerAccountSubsidiaries.md)> | :heavy_minus_sign: | The subsidiaries the account belongs to. | | | `passThrough` | array<[Components\PassThroughBody](../../Models/Components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | | ~~`nominalCode`~~ | *?string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The nominal code of the ledger account. | N091 | | `code` | *?string* | :heavy_minus_sign: | The code assigned to the account. | 453 | diff --git a/docs/Models/Components/LedgerAccountSubsidiaries.md b/docs/Models/Components/LedgerAccountSubsidiaries.md new file mode 100644 index 0000000..25a1df4 --- /dev/null +++ b/docs/Models/Components/LedgerAccountSubsidiaries.md @@ -0,0 +1,8 @@ +# LedgerAccountSubsidiaries + + +## Fields + +| Field | Type | Required | Description | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `id` | *?string* | :heavy_minus_sign: | The ID of the subsidiary. | \ No newline at end of file diff --git a/docs/Models/Components/PeriodType.md b/docs/Models/Components/PeriodType.md new file mode 100644 index 0000000..0cf0093 --- /dev/null +++ b/docs/Models/Components/PeriodType.md @@ -0,0 +1,12 @@ +# PeriodType + +The type of period to include in the resource: month, quarter, year. + + +## Values + +| Name | Value | +| --------- | --------- | +| `Month` | month | +| `Quarter` | quarter | +| `Year` | year | \ No newline at end of file diff --git a/docs/Models/Components/Supplier.md b/docs/Models/Components/Supplier.md index f01dc19..c62ab93 100644 --- a/docs/Models/Components/Supplier.md +++ b/docs/Models/Components/Supplier.md @@ -13,6 +13,7 @@ | `bankAccounts` | array<[Components\BankAccount](../../Models/Components/BankAccount.md)> | :heavy_minus_sign: | N/A | | | `taxRate` | [?Components\LinkedTaxRate](../../Models/Components/LinkedTaxRate.md) | :heavy_minus_sign: | N/A | | | `passThrough` | array<[Components\PassThroughBody](../../Models/Components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | +| `subsidiaryId` | *?string* | :heavy_minus_sign: | The subsidiary the supplier belongs to. | 12345 | | `downstreamId` | *?string* | :heavy_minus_sign: | The third-party API ID of original entity | 12345 | | `displayId` | *?string* | :heavy_minus_sign: | Display ID | EMP00101 | | `displayName` | *?string* | :heavy_minus_sign: | Display name | Windsurf Shop | diff --git a/docs/Models/Components/SupplierInput.md b/docs/Models/Components/SupplierInput.md index 8362ba0..da6695b 100644 --- a/docs/Models/Components/SupplierInput.md +++ b/docs/Models/Components/SupplierInput.md @@ -12,6 +12,7 @@ | `bankAccounts` | array<[Components\BankAccount](../../Models/Components/BankAccount.md)> | :heavy_minus_sign: | N/A | | | `taxRate` | [?Components\LinkedTaxRateInput](../../Models/Components/LinkedTaxRateInput.md) | :heavy_minus_sign: | N/A | | | `passThrough` | array<[Components\PassThroughBody](../../Models/Components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | +| `subsidiaryId` | *?string* | :heavy_minus_sign: | The subsidiary the supplier belongs to. | 12345 | | `displayId` | *?string* | :heavy_minus_sign: | Display ID | EMP00101 | | `displayName` | *?string* | :heavy_minus_sign: | Display name | Windsurf Shop | | `companyName` | *?string* | :heavy_minus_sign: | The name of the company. | SpaceX | diff --git a/docs/Models/Components/TaxRate.md b/docs/Models/Components/TaxRate.md index a422bfe..a97ccd6 100644 --- a/docs/Models/Components/TaxRate.md +++ b/docs/Models/Components/TaxRate.md @@ -7,6 +7,7 @@ | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | | `name` | *?string* | :heavy_minus_sign: | Name assigned to identify this tax rate. | GST on Purchases | | `passThrough` | array<[Components\PassThroughBody](../../Models/Components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | +| `subsidiaries` | array<[Components\Subsidiaries](../../Models/Components/Subsidiaries.md)> | :heavy_minus_sign: | The subsidiaries this belongs to. | | | `id` | *?string* | :heavy_minus_sign: | ID assigned to identify this tax rate. | 1234 | | `code` | *?string* | :heavy_minus_sign: | Tax code assigned to identify this tax rate. | ABN | | `description` | *?string* | :heavy_minus_sign: | Description of tax rate | Reduced rate GST Purchases | diff --git a/docs/Models/Components/TaxRateInput.md b/docs/Models/Components/TaxRateInput.md index c41df10..d6ced59 100644 --- a/docs/Models/Components/TaxRateInput.md +++ b/docs/Models/Components/TaxRateInput.md @@ -7,6 +7,7 @@ | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | | `name` | *?string* | :heavy_minus_sign: | Name assigned to identify this tax rate. | GST on Purchases | | `passThrough` | array<[Components\PassThroughBody](../../Models/Components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | +| `subsidiaries` | array<[Components\Subsidiaries](../../Models/Components/Subsidiaries.md)> | :heavy_minus_sign: | The subsidiaries this belongs to. | | | `id` | *?string* | :heavy_minus_sign: | ID assigned to identify this tax rate. | 1234 | | `code` | *?string* | :heavy_minus_sign: | Tax code assigned to identify this tax rate. | ABN | | `description` | *?string* | :heavy_minus_sign: | Description of tax rate | Reduced rate GST Purchases | diff --git a/docs/Models/Components/TrackingCategory.md b/docs/Models/Components/TrackingCategory.md index d1ae2fa..ecb280e 100644 --- a/docs/Models/Components/TrackingCategory.md +++ b/docs/Models/Components/TrackingCategory.md @@ -9,6 +9,7 @@ | `name` | *?string* | :heavy_minus_sign: | The name of the tracking category. | Department | | `status` | [?Components\TrackingCategoryStatus](../../Models/Components/TrackingCategoryStatus.md) | :heavy_minus_sign: | Based on the status some functionality is enabled or disabled. | active | | `passThrough` | array<[Components\PassThroughBody](../../Models/Components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | +| `subsidiaries` | array<[Components\TrackingCategorySubsidiaries](../../Models/Components/TrackingCategorySubsidiaries.md)> | :heavy_minus_sign: | The subsidiaries the account belongs to. | | | `parentId` | *?string* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | | `code` | *?string* | :heavy_minus_sign: | The code of the tracking category. | 100 | | `customMappings` | [?Components\CustomMappings](../../Models/Components/CustomMappings.md) | :heavy_minus_sign: | When custom mappings are configured on the resource, the result is included here. | | diff --git a/docs/Models/Components/TrackingCategoryInput.md b/docs/Models/Components/TrackingCategoryInput.md index 8e4cebb..f16fb2f 100644 --- a/docs/Models/Components/TrackingCategoryInput.md +++ b/docs/Models/Components/TrackingCategoryInput.md @@ -8,6 +8,7 @@ | `name` | *?string* | :heavy_minus_sign: | The name of the tracking category. | Department | | `status` | [?Components\TrackingCategoryStatus](../../Models/Components/TrackingCategoryStatus.md) | :heavy_minus_sign: | Based on the status some functionality is enabled or disabled. | active | | `passThrough` | array<[Components\PassThroughBody](../../Models/Components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | +| `subsidiaries` | array<[Components\TrackingCategorySubsidiaries](../../Models/Components/TrackingCategorySubsidiaries.md)> | :heavy_minus_sign: | The subsidiaries the account belongs to. | | | `parentId` | *?string* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | | `code` | *?string* | :heavy_minus_sign: | The code of the tracking category. | 100 | | `rowVersion` | *?string* | :heavy_minus_sign: | 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. | 1-12345 | \ No newline at end of file diff --git a/docs/Models/Components/TrackingCategorySubsidiaries.md b/docs/Models/Components/TrackingCategorySubsidiaries.md new file mode 100644 index 0000000..ee2713b --- /dev/null +++ b/docs/Models/Components/TrackingCategorySubsidiaries.md @@ -0,0 +1,8 @@ +# TrackingCategorySubsidiaries + + +## Fields + +| Field | Type | Required | Description | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `id` | *?string* | :heavy_minus_sign: | The ID of the subsidiary. | \ No newline at end of file diff --git a/docs/Models/Operations/AccountingBalanceSheetOneRequest.md b/docs/Models/Operations/AccountingBalanceSheetOneRequest.md index 4870bfc..c991aa0 100644 --- a/docs/Models/Operations/AccountingBalanceSheetOneRequest.md +++ b/docs/Models/Operations/AccountingBalanceSheetOneRequest.md @@ -9,5 +9,5 @@ | `appId` | *?string* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *?string* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `passThrough` | array | :heavy_minus_sign: | Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads | {
"search": "San Francisco"
} | -| `filter` | [?Components\BalanceSheetFilter](../../Models/Components/BalanceSheetFilter.md) | :heavy_minus_sign: | Apply filters | {
"start_date": "2021-01-01",
"end_date": "2021-12-31"
} | +| `filter` | [?Components\BalanceSheetFilter](../../Models/Components/BalanceSheetFilter.md) | :heavy_minus_sign: | Apply filters | {
"start_date": "2021-01-01",
"end_date": "2021-12-31",
"period_count": 3,
"period_type": "month"
} | | `raw` | *?bool* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/Models/Operations/AccountingInvoiceItemsAllRequest.md b/docs/Models/Operations/AccountingInvoiceItemsAllRequest.md index 692f072..c9d00ee 100644 --- a/docs/Models/Operations/AccountingInvoiceItemsAllRequest.md +++ b/docs/Models/Operations/AccountingInvoiceItemsAllRequest.md @@ -10,7 +10,7 @@ | `appId` | *?string* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *?string* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `limit` | *?int* | :heavy_minus_sign: | Number of results to return. Minimum 1, Maximum 200, Default 20 | | -| `filter` | [?Components\InvoiceItemsFilter](../../Models/Components/InvoiceItemsFilter.md) | :heavy_minus_sign: | Apply filters | {
"name": "Widgets Large"
} | +| `filter` | [?Components\InvoiceItemsFilter](../../Models/Components/InvoiceItemsFilter.md) | :heavy_minus_sign: | Apply filters | {
"name": "Widgets Large",
"type": "service"
} | | `passThrough` | array | :heavy_minus_sign: | Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads | {
"search": "San Francisco"
} | | `cursor` | *?string* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | | `fields` | *?string* | :heavy_minus_sign: | 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. | id,updated_at | \ No newline at end of file diff --git a/docs/Models/Operations/AccountingInvoiceItemsOneRequest.md b/docs/Models/Operations/AccountingInvoiceItemsOneRequest.md index 72f040f..18cb349 100644 --- a/docs/Models/Operations/AccountingInvoiceItemsOneRequest.md +++ b/docs/Models/Operations/AccountingInvoiceItemsOneRequest.md @@ -10,4 +10,5 @@ | `appId` | *?string* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *?string* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *?bool* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | +| `filter` | [?Components\InvoiceItemFilter](../../Models/Components/InvoiceItemFilter.md) | :heavy_minus_sign: | Apply filters | {
"type": "service"
} | | `fields` | *?string* | :heavy_minus_sign: | 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. | id,updated_at | \ No newline at end of file diff --git a/docs/sdks/balancesheet/README.md b/docs/sdks/balancesheet/README.md index 5209768..4458935 100644 --- a/docs/sdks/balancesheet/README.md +++ b/docs/sdks/balancesheet/README.md @@ -37,6 +37,8 @@ $request = new Operations\AccountingBalanceSheetOneRequest( filter: new Components\BalanceSheetFilter( startDate: '2021-01-01', endDate: '2021-12-31', + periodCount: 3, + periodType: Components\PeriodType::Month, ), ); diff --git a/docs/sdks/expenses/README.md b/docs/sdks/expenses/README.md index 4923c06..442d64e 100644 --- a/docs/sdks/expenses/README.md +++ b/docs/sdks/expenses/README.md @@ -146,6 +146,7 @@ $request = new Operations\AccountingExpensesAddRequest( ], number: 'OIT00546', companyId: '12345', + paymentType: Components\ExpensePaymentType::Cash, currency: Components\Currency::Usd, currencyRate: 0.69, type: Components\ExpenseType::Expense, @@ -325,6 +326,7 @@ $request = new Operations\AccountingExpensesUpdateRequest( ], number: 'OIT00546', companyId: '12345', + paymentType: Components\ExpensePaymentType::Cash, currency: Components\Currency::Usd, currencyRate: 0.69, type: Components\ExpenseType::Expense, diff --git a/docs/sdks/invoiceitems/README.md b/docs/sdks/invoiceitems/README.md index 831748a..d5c1a6b 100644 --- a/docs/sdks/invoiceitems/README.md +++ b/docs/sdks/invoiceitems/README.md @@ -37,6 +37,7 @@ $request = new Operations\AccountingInvoiceItemsAllRequest( serviceId: 'salesforce', filter: new Components\InvoiceItemsFilter( name: 'Widgets Large', + type: Components\InvoiceItemType::Service, ), passThrough: [ 'search' => 'San Francisco', @@ -140,7 +141,7 @@ $request = new Operations\AccountingInvoiceItemsAddRequest( tracked: true, taxable: true, inventoryDate: LocalDate::parse('2020-10-30'), - type: Components\InvoiceItemType::Inventory, + type: Components\InvoiceItemTypeType::Inventory, quantity: 1, unitPrice: 27500.5, assetAccount: new Components\LinkedLedgerAccountInput( @@ -212,6 +213,7 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Apideck\Unify; +use Apideck\Unify\Models\Components; use Apideck\Unify\Models\Operations; $security = ''; @@ -224,6 +226,9 @@ $sdk = Unify\Apideck::builder() $request = new Operations\AccountingInvoiceItemsOneRequest( id: '', serviceId: 'salesforce', + filter: new Components\InvoiceItemFilter( + type: Components\InvoiceItemFilterInvoiceItemType::Service, + ), fields: 'id,updated_at', ); @@ -324,7 +329,7 @@ $request = new Operations\AccountingInvoiceItemsUpdateRequest( tracked: true, taxable: true, inventoryDate: LocalDate::parse('2020-10-30'), - type: Components\InvoiceItemType::Inventory, + type: Components\InvoiceItemTypeType::Inventory, quantity: 1, unitPrice: 27500.5, assetAccount: new Components\LinkedLedgerAccountInput( diff --git a/docs/sdks/suppliers/README.md b/docs/sdks/suppliers/README.md index e6c567a..6939676 100644 --- a/docs/sdks/suppliers/README.md +++ b/docs/sdks/suppliers/README.md @@ -194,6 +194,7 @@ $request = new Operations\AccountingSuppliersAddRequest( ], ), ], + subsidiaryId: '12345', displayId: 'EMP00101', displayName: 'Windsurf Shop', companyName: 'SpaceX', @@ -418,6 +419,7 @@ $request = new Operations\AccountingSuppliersUpdateRequest( ], ), ], + subsidiaryId: '12345', displayId: 'EMP00101', displayName: 'Windsurf Shop', companyName: 'SpaceX', diff --git a/src/Models/Components/BalanceSheetFilter.php b/src/Models/Components/BalanceSheetFilter.php index 54f064d..12b7ae2 100644 --- a/src/Models/Components/BalanceSheetFilter.php +++ b/src/Models/Components/BalanceSheetFilter.php @@ -12,7 +12,7 @@ class BalanceSheetFilter { /** - * Filter by start date. If start date is given, end date is required. + * The start date of the period to include in the resource. * * @var ?string $startDate */ @@ -20,20 +20,40 @@ class BalanceSheetFilter public ?string $startDate = null; /** - * Filter by end date. If end date is given, start date is required. + * The end date of the period to include in the resource. * * @var ?string $endDate */ #[SpeakeasyMetadata('queryParam:name=end_date')] public ?string $endDate = null; + /** + * The number of periods to include in the resource. + * + * @var ?int $periodCount + */ + #[SpeakeasyMetadata('queryParam:name=period_count')] + public ?int $periodCount = null; + + /** + * The type of period to include in the resource: month, quarter, year. + * + * @var ?PeriodType $periodType + */ + #[SpeakeasyMetadata('queryParam:name=period_type')] + public ?PeriodType $periodType = null; + /** * @param ?string $startDate * @param ?string $endDate + * @param ?int $periodCount + * @param ?PeriodType $periodType */ - public function __construct(?string $startDate = null, ?string $endDate = null) + public function __construct(?string $startDate = null, ?string $endDate = null, ?int $periodCount = null, ?PeriodType $periodType = null) { $this->startDate = $startDate; $this->endDate = $endDate; + $this->periodCount = $periodCount; + $this->periodType = $periodType; } } \ No newline at end of file diff --git a/src/Models/Components/Expense.php b/src/Models/Components/Expense.php index 7ebe51c..e210a09 100644 --- a/src/Models/Components/Expense.php +++ b/src/Models/Components/Expense.php @@ -81,6 +81,16 @@ class Expense #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $departmentId = null; + /** + * The type of payment for the expense. + * + * @var ?ExpensePaymentType $paymentType + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('payment_type')] + #[\Speakeasy\Serializer\Annotation\Type('\Apideck\Unify\Models\Components\ExpensePaymentType|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?ExpensePaymentType $paymentType = null; + /** * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). * @@ -216,6 +226,7 @@ class Expense * @param ?array $passThrough * @param ?string $number * @param ?string $companyId + * @param ?ExpensePaymentType $paymentType * @param ?Currency $currency * @param ?float $currencyRate * @param ?ExpenseType $type @@ -226,7 +237,7 @@ class Expense * @param ?\DateTime $createdAt * @param ?string $rowVersion */ - public function __construct(string $accountId, array $lineItems, ?string $id = null, ?\DateTime $transactionDate = null, ?string $customerId = null, ?string $supplierId = null, ?string $departmentId = null, ?LinkedTaxRate $taxRate = null, ?array $customFields = null, ?array $passThrough = null, ?string $number = null, ?string $companyId = null, ?Currency $currency = null, ?float $currencyRate = null, ?ExpenseType $type = null, ?string $memo = null, ?float $totalAmount = null, ?CustomMappings $customMappings = null, ?\DateTime $updatedAt = null, ?\DateTime $createdAt = null, ?string $rowVersion = null) + public function __construct(string $accountId, array $lineItems, ?string $id = null, ?\DateTime $transactionDate = null, ?string $customerId = null, ?string $supplierId = null, ?string $departmentId = null, ?LinkedTaxRate $taxRate = null, ?array $customFields = null, ?array $passThrough = null, ?string $number = null, ?string $companyId = null, ?ExpensePaymentType $paymentType = null, ?Currency $currency = null, ?float $currencyRate = null, ?ExpenseType $type = null, ?string $memo = null, ?float $totalAmount = null, ?CustomMappings $customMappings = null, ?\DateTime $updatedAt = null, ?\DateTime $createdAt = null, ?string $rowVersion = null) { $this->accountId = $accountId; $this->lineItems = $lineItems; @@ -240,6 +251,7 @@ public function __construct(string $accountId, array $lineItems, ?string $id = n $this->passThrough = $passThrough; $this->number = $number; $this->companyId = $companyId; + $this->paymentType = $paymentType; $this->currency = $currency; $this->currencyRate = $currencyRate; $this->type = $type; diff --git a/src/Models/Components/ExpenseInput.php b/src/Models/Components/ExpenseInput.php index 2aa48c0..b800f58 100644 --- a/src/Models/Components/ExpenseInput.php +++ b/src/Models/Components/ExpenseInput.php @@ -72,6 +72,16 @@ class ExpenseInput #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $departmentId = null; + /** + * The type of payment for the expense. + * + * @var ?ExpensePaymentType $paymentType + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('payment_type')] + #[\Speakeasy\Serializer\Annotation\Type('\Apideck\Unify\Models\Components\ExpensePaymentType|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?ExpensePaymentType $paymentType = null; + /** * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). * @@ -178,6 +188,7 @@ class ExpenseInput * @param ?array $passThrough * @param ?string $number * @param ?string $companyId + * @param ?ExpensePaymentType $paymentType * @param ?Currency $currency * @param ?float $currencyRate * @param ?ExpenseType $type @@ -185,7 +196,7 @@ class ExpenseInput * @param ?float $totalAmount * @param ?string $rowVersion */ - public function __construct(string $accountId, array $lineItems, ?\DateTime $transactionDate = null, ?string $customerId = null, ?string $supplierId = null, ?string $departmentId = null, ?LinkedTaxRateInput $taxRate = null, ?array $customFields = null, ?array $passThrough = null, ?string $number = null, ?string $companyId = null, ?Currency $currency = null, ?float $currencyRate = null, ?ExpenseType $type = null, ?string $memo = null, ?float $totalAmount = null, ?string $rowVersion = null) + public function __construct(string $accountId, array $lineItems, ?\DateTime $transactionDate = null, ?string $customerId = null, ?string $supplierId = null, ?string $departmentId = null, ?LinkedTaxRateInput $taxRate = null, ?array $customFields = null, ?array $passThrough = null, ?string $number = null, ?string $companyId = null, ?ExpensePaymentType $paymentType = null, ?Currency $currency = null, ?float $currencyRate = null, ?ExpenseType $type = null, ?string $memo = null, ?float $totalAmount = null, ?string $rowVersion = null) { $this->accountId = $accountId; $this->lineItems = $lineItems; @@ -198,6 +209,7 @@ public function __construct(string $accountId, array $lineItems, ?\DateTime $tra $this->passThrough = $passThrough; $this->number = $number; $this->companyId = $companyId; + $this->paymentType = $paymentType; $this->currency = $currency; $this->currencyRate = $currencyRate; $this->type = $type; diff --git a/src/Models/Components/ExpensePaymentType.php b/src/Models/Components/ExpensePaymentType.php new file mode 100644 index 0000000..2900830 --- /dev/null +++ b/src/Models/Components/ExpensePaymentType.php @@ -0,0 +1,18 @@ +id = $id; $this->salesDetails = $salesDetails; diff --git a/src/Models/Components/InvoiceItemFilter.php b/src/Models/Components/InvoiceItemFilter.php new file mode 100644 index 0000000..0195987 --- /dev/null +++ b/src/Models/Components/InvoiceItemFilter.php @@ -0,0 +1,29 @@ +type = $type; + } +} \ No newline at end of file diff --git a/src/Models/Components/InvoiceItemFilterInvoiceItemType.php b/src/Models/Components/InvoiceItemFilterInvoiceItemType.php new file mode 100644 index 0000000..c7ad605 --- /dev/null +++ b/src/Models/Components/InvoiceItemFilterInvoiceItemType.php @@ -0,0 +1,18 @@ +salesDetails = $salesDetails; $this->purchaseDetails = $purchaseDetails; diff --git a/src/Models/Components/InvoiceItemType.php b/src/Models/Components/InvoiceItemType.php index 377662f..4ba01d1 100644 --- a/src/Models/Components/InvoiceItemType.php +++ b/src/Models/Components/InvoiceItemType.php @@ -9,7 +9,7 @@ namespace Apideck\Unify\Models\Components; -/** Item type */ +/** The type of invoice item, indicating whether it is an inventory item, a service, or another type. */ enum InvoiceItemType: string { case Inventory = 'inventory'; diff --git a/src/Models/Components/InvoiceItemTypeType.php b/src/Models/Components/InvoiceItemTypeType.php new file mode 100644 index 0000000..5b5820c --- /dev/null +++ b/src/Models/Components/InvoiceItemTypeType.php @@ -0,0 +1,18 @@ +name = $name; + $this->type = $type; } } \ No newline at end of file diff --git a/src/Models/Components/LedgerAccount.php b/src/Models/Components/LedgerAccount.php index 2e6baae..bae72bb 100644 --- a/src/Models/Components/LedgerAccount.php +++ b/src/Models/Components/LedgerAccount.php @@ -245,10 +245,10 @@ class LedgerAccount /** * The subsidiaries the account belongs to. * - * @var ?array $subsidiaries + * @var ?array $subsidiaries */ #[\Speakeasy\Serializer\Annotation\SerializedName('subsidiaries')] - #[\Speakeasy\Serializer\Annotation\Type('array<\Apideck\Unify\Models\Components\Subsidiaries>|null')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Apideck\Unify\Models\Components\LedgerAccountSubsidiaries>|null')] #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $subsidiaries = null; @@ -326,7 +326,7 @@ class LedgerAccount * @param ?array $categories * @param ?ParentAccount $parentAccount * @param ?array $subAccounts - * @param ?array $subsidiaries + * @param ?array $subsidiaries * @param ?array $passThrough * @param ?string $nominalCode * @param ?string $code diff --git a/src/Models/Components/LedgerAccountInput.php b/src/Models/Components/LedgerAccountInput.php index 807deab..8e165ff 100644 --- a/src/Models/Components/LedgerAccountInput.php +++ b/src/Models/Components/LedgerAccountInput.php @@ -216,10 +216,10 @@ class LedgerAccountInput /** * The subsidiaries the account belongs to. * - * @var ?array $subsidiaries + * @var ?array $subsidiaries */ #[\Speakeasy\Serializer\Annotation\SerializedName('subsidiaries')] - #[\Speakeasy\Serializer\Annotation\Type('array<\Apideck\Unify\Models\Components\Subsidiaries>|null')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Apideck\Unify\Models\Components\LedgerAccountSubsidiaries>|null')] #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $subsidiaries = null; @@ -248,7 +248,7 @@ class LedgerAccountInput * @param ?LinkedTaxRateInput $taxRate * @param ?BankAccount $bankAccount * @param ?ParentAccount $parentAccount - * @param ?array $subsidiaries + * @param ?array $subsidiaries * @param ?array $passThrough * @param ?string $nominalCode * @param ?string $code diff --git a/src/Models/Components/LedgerAccountSubsidiaries.php b/src/Models/Components/LedgerAccountSubsidiaries.php new file mode 100644 index 0000000..b6e3fb4 --- /dev/null +++ b/src/Models/Components/LedgerAccountSubsidiaries.php @@ -0,0 +1,30 @@ +id = $id; + } +} \ No newline at end of file diff --git a/src/Models/Components/PeriodType.php b/src/Models/Components/PeriodType.php new file mode 100644 index 0000000..8d70ffe --- /dev/null +++ b/src/Models/Components/PeriodType.php @@ -0,0 +1,18 @@ + $addresses @@ -314,6 +323,7 @@ class Supplier * @param ?array $bankAccounts * @param ?LinkedTaxRate $taxRate * @param ?array $passThrough + * @param ?string $subsidiaryId * @param ?string $downstreamId * @param ?string $displayId * @param ?string $displayName @@ -339,7 +349,7 @@ class Supplier * @param ?\DateTime $createdAt * @param ?string $rowVersion */ - public function __construct(string $id, ?array $addresses = null, ?array $phoneNumbers = null, ?array $emails = null, ?array $websites = null, ?array $bankAccounts = null, ?LinkedTaxRate $taxRate = null, ?array $passThrough = null, ?string $downstreamId = null, ?string $displayId = null, ?string $displayName = null, ?string $companyName = null, ?string $companyId = null, ?string $title = null, ?string $firstName = null, ?string $middleName = null, ?string $lastName = null, ?string $suffix = null, ?bool $individual = null, ?string $notes = null, ?string $taxNumber = null, ?Currency $currency = null, ?LinkedLedgerAccount $account = null, ?SupplierStatus $status = null, ?string $paymentMethod = null, ?string $channel = null, ?CustomMappings $customMappings = null, ?string $updatedBy = null, ?string $createdBy = null, ?\DateTime $updatedAt = null, ?\DateTime $createdAt = null, ?string $rowVersion = null) + public function __construct(string $id, ?array $addresses = null, ?array $phoneNumbers = null, ?array $emails = null, ?array $websites = null, ?array $bankAccounts = null, ?LinkedTaxRate $taxRate = null, ?array $passThrough = null, ?string $subsidiaryId = null, ?string $downstreamId = null, ?string $displayId = null, ?string $displayName = null, ?string $companyName = null, ?string $companyId = null, ?string $title = null, ?string $firstName = null, ?string $middleName = null, ?string $lastName = null, ?string $suffix = null, ?bool $individual = null, ?string $notes = null, ?string $taxNumber = null, ?Currency $currency = null, ?LinkedLedgerAccount $account = null, ?SupplierStatus $status = null, ?string $paymentMethod = null, ?string $channel = null, ?CustomMappings $customMappings = null, ?string $updatedBy = null, ?string $createdBy = null, ?\DateTime $updatedAt = null, ?\DateTime $createdAt = null, ?string $rowVersion = null) { $this->id = $id; $this->addresses = $addresses; @@ -349,6 +359,7 @@ public function __construct(string $id, ?array $addresses = null, ?array $phoneN $this->bankAccounts = $bankAccounts; $this->taxRate = $taxRate; $this->passThrough = $passThrough; + $this->subsidiaryId = $subsidiaryId; $this->downstreamId = $downstreamId; $this->displayId = $displayId; $this->displayName = $displayName; diff --git a/src/Models/Components/SupplierInput.php b/src/Models/Components/SupplierInput.php index e9af1b1..2cea3c5 100644 --- a/src/Models/Components/SupplierInput.php +++ b/src/Models/Components/SupplierInput.php @@ -242,6 +242,15 @@ class SupplierInput #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $passThrough = null; + /** + * The subsidiary the supplier belongs to. + * + * @var ?string $subsidiaryId + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('subsidiary_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?string $subsidiaryId = null; + /** * @param ?array
$addresses * @param ?array $phoneNumbers @@ -250,6 +259,7 @@ class SupplierInput * @param ?array $bankAccounts * @param ?LinkedTaxRateInput $taxRate * @param ?array $passThrough + * @param ?string $subsidiaryId * @param ?string $displayId * @param ?string $displayName * @param ?string $companyName @@ -269,7 +279,7 @@ class SupplierInput * @param ?string $channel * @param ?string $rowVersion */ - public function __construct(?array $addresses = null, ?array $phoneNumbers = null, ?array $emails = null, ?array $websites = null, ?array $bankAccounts = null, ?LinkedTaxRateInput $taxRate = null, ?array $passThrough = null, ?string $displayId = null, ?string $displayName = null, ?string $companyName = null, ?string $companyId = null, ?string $title = null, ?string $firstName = null, ?string $middleName = null, ?string $lastName = null, ?string $suffix = null, ?bool $individual = null, ?string $notes = null, ?string $taxNumber = null, ?Currency $currency = null, ?LinkedLedgerAccountInput $account = null, ?SupplierStatus $status = null, ?string $paymentMethod = null, ?string $channel = null, ?string $rowVersion = null) + public function __construct(?array $addresses = null, ?array $phoneNumbers = null, ?array $emails = null, ?array $websites = null, ?array $bankAccounts = null, ?LinkedTaxRateInput $taxRate = null, ?array $passThrough = null, ?string $subsidiaryId = null, ?string $displayId = null, ?string $displayName = null, ?string $companyName = null, ?string $companyId = null, ?string $title = null, ?string $firstName = null, ?string $middleName = null, ?string $lastName = null, ?string $suffix = null, ?bool $individual = null, ?string $notes = null, ?string $taxNumber = null, ?Currency $currency = null, ?LinkedLedgerAccountInput $account = null, ?SupplierStatus $status = null, ?string $paymentMethod = null, ?string $channel = null, ?string $rowVersion = null) { $this->addresses = $addresses; $this->phoneNumbers = $phoneNumbers; @@ -278,6 +288,7 @@ public function __construct(?array $addresses = null, ?array $phoneNumbers = nul $this->bankAccounts = $bankAccounts; $this->taxRate = $taxRate; $this->passThrough = $passThrough; + $this->subsidiaryId = $subsidiaryId; $this->displayId = $displayId; $this->displayName = $displayName; $this->companyName = $companyName; diff --git a/src/Models/Components/TaxRate.php b/src/Models/Components/TaxRate.php index 55ed6db..a30f547 100644 --- a/src/Models/Components/TaxRate.php +++ b/src/Models/Components/TaxRate.php @@ -195,9 +195,20 @@ class TaxRate #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $passThrough = null; + /** + * The subsidiaries this belongs to. + * + * @var ?array $subsidiaries + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('subsidiaries')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Apideck\Unify\Models\Components\Subsidiaries>|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?array $subsidiaries = null; + /** * @param ?string $name * @param ?array $passThrough + * @param ?array $subsidiaries * @param ?string $id * @param ?string $code * @param ?string $description @@ -217,10 +228,11 @@ class TaxRate * @param ?\DateTime $updatedAt * @param ?\DateTime $createdAt */ - public function __construct(?string $name = null, ?array $passThrough = null, ?string $id = null, ?string $code = null, ?string $description = null, ?float $effectiveTaxRate = null, ?float $totalTaxRate = null, ?string $taxPayableAccountId = null, ?string $taxRemittedAccountId = null, ?array $components = null, ?string $type = null, ?string $reportTaxType = null, ?string $originalTaxRateId = null, ?TaxRateStatus $status = null, ?CustomMappings $customMappings = null, ?string $rowVersion = null, ?string $updatedBy = null, ?string $createdBy = null, ?\DateTime $updatedAt = null, ?\DateTime $createdAt = null) + public function __construct(?string $name = null, ?array $passThrough = null, ?array $subsidiaries = null, ?string $id = null, ?string $code = null, ?string $description = null, ?float $effectiveTaxRate = null, ?float $totalTaxRate = null, ?string $taxPayableAccountId = null, ?string $taxRemittedAccountId = null, ?array $components = null, ?string $type = null, ?string $reportTaxType = null, ?string $originalTaxRateId = null, ?TaxRateStatus $status = null, ?CustomMappings $customMappings = null, ?string $rowVersion = null, ?string $updatedBy = null, ?string $createdBy = null, ?\DateTime $updatedAt = null, ?\DateTime $createdAt = null) { $this->name = $name; $this->passThrough = $passThrough; + $this->subsidiaries = $subsidiaries; $this->id = $id; $this->code = $code; $this->description = $description; diff --git a/src/Models/Components/TaxRateInput.php b/src/Models/Components/TaxRateInput.php index 52426a9..1590a31 100644 --- a/src/Models/Components/TaxRateInput.php +++ b/src/Models/Components/TaxRateInput.php @@ -149,9 +149,20 @@ class TaxRateInput #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $passThrough = null; + /** + * The subsidiaries this belongs to. + * + * @var ?array $subsidiaries + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('subsidiaries')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Apideck\Unify\Models\Components\Subsidiaries>|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?array $subsidiaries = null; + /** * @param ?string $name * @param ?array $passThrough + * @param ?array $subsidiaries * @param ?string $id * @param ?string $code * @param ?string $description @@ -166,10 +177,11 @@ class TaxRateInput * @param ?TaxRateStatus $status * @param ?string $rowVersion */ - public function __construct(?string $name = null, ?array $passThrough = null, ?string $id = null, ?string $code = null, ?string $description = null, ?float $effectiveTaxRate = null, ?float $totalTaxRate = null, ?string $taxPayableAccountId = null, ?string $taxRemittedAccountId = null, ?array $components = null, ?string $type = null, ?string $reportTaxType = null, ?string $originalTaxRateId = null, ?TaxRateStatus $status = null, ?string $rowVersion = null) + public function __construct(?string $name = null, ?array $passThrough = null, ?array $subsidiaries = null, ?string $id = null, ?string $code = null, ?string $description = null, ?float $effectiveTaxRate = null, ?float $totalTaxRate = null, ?string $taxPayableAccountId = null, ?string $taxRemittedAccountId = null, ?array $components = null, ?string $type = null, ?string $reportTaxType = null, ?string $originalTaxRateId = null, ?TaxRateStatus $status = null, ?string $rowVersion = null) { $this->name = $name; $this->passThrough = $passThrough; + $this->subsidiaries = $subsidiaries; $this->id = $id; $this->code = $code; $this->description = $description; diff --git a/src/Models/Components/TrackingCategory.php b/src/Models/Components/TrackingCategory.php index 24fed2b..015898a 100644 --- a/src/Models/Components/TrackingCategory.php +++ b/src/Models/Components/TrackingCategory.php @@ -122,11 +122,22 @@ class TrackingCategory #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $passThrough = null; + /** + * The subsidiaries the account belongs to. + * + * @var ?array $subsidiaries + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('subsidiaries')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Apideck\Unify\Models\Components\TrackingCategorySubsidiaries>|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?array $subsidiaries = null; + /** * @param ?string $id * @param ?string $name * @param ?TrackingCategoryStatus $status * @param ?array $passThrough + * @param ?array $subsidiaries * @param ?string $parentId * @param ?string $code * @param ?CustomMappings $customMappings @@ -136,12 +147,13 @@ class TrackingCategory * @param ?\DateTime $updatedAt * @param ?\DateTime $createdAt */ - public function __construct(?string $id = null, ?string $name = null, ?TrackingCategoryStatus $status = null, ?array $passThrough = null, ?string $parentId = null, ?string $code = null, ?CustomMappings $customMappings = null, ?string $rowVersion = null, ?string $updatedBy = null, ?string $createdBy = null, ?\DateTime $updatedAt = null, ?\DateTime $createdAt = null) + public function __construct(?string $id = null, ?string $name = null, ?TrackingCategoryStatus $status = null, ?array $passThrough = null, ?array $subsidiaries = null, ?string $parentId = null, ?string $code = null, ?CustomMappings $customMappings = null, ?string $rowVersion = null, ?string $updatedBy = null, ?string $createdBy = null, ?\DateTime $updatedAt = null, ?\DateTime $createdAt = null) { $this->id = $id; $this->name = $name; $this->status = $status; $this->passThrough = $passThrough; + $this->subsidiaries = $subsidiaries; $this->parentId = $parentId; $this->code = $code; $this->customMappings = $customMappings; diff --git a/src/Models/Components/TrackingCategoryInput.php b/src/Models/Components/TrackingCategoryInput.php index f2b9c0d..9f27c55 100644 --- a/src/Models/Components/TrackingCategoryInput.php +++ b/src/Models/Components/TrackingCategoryInput.php @@ -67,19 +67,31 @@ class TrackingCategoryInput #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $passThrough = null; + /** + * The subsidiaries the account belongs to. + * + * @var ?array $subsidiaries + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('subsidiaries')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Apideck\Unify\Models\Components\TrackingCategorySubsidiaries>|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?array $subsidiaries = null; + /** * @param ?string $name * @param ?TrackingCategoryStatus $status * @param ?array $passThrough + * @param ?array $subsidiaries * @param ?string $parentId * @param ?string $code * @param ?string $rowVersion */ - public function __construct(?string $name = null, ?TrackingCategoryStatus $status = null, ?array $passThrough = null, ?string $parentId = null, ?string $code = null, ?string $rowVersion = null) + public function __construct(?string $name = null, ?TrackingCategoryStatus $status = null, ?array $passThrough = null, ?array $subsidiaries = null, ?string $parentId = null, ?string $code = null, ?string $rowVersion = null) { $this->name = $name; $this->status = $status; $this->passThrough = $passThrough; + $this->subsidiaries = $subsidiaries; $this->parentId = $parentId; $this->code = $code; $this->rowVersion = $rowVersion; diff --git a/src/Models/Components/TrackingCategorySubsidiaries.php b/src/Models/Components/TrackingCategorySubsidiaries.php new file mode 100644 index 0000000..91e9069 --- /dev/null +++ b/src/Models/Components/TrackingCategorySubsidiaries.php @@ -0,0 +1,30 @@ +id = $id; + } +} \ No newline at end of file diff --git a/src/Models/Errors/UnauthorizedResponse.php b/src/Models/Errors/UnauthorizedResponse.php index dbbe0a2..9e843fe 100644 --- a/src/Models/Errors/UnauthorizedResponse.php +++ b/src/Models/Errors/UnauthorizedResponse.php @@ -9,7 +9,7 @@ namespace Apideck\Unify\Models\Errors; -use Apideck\Unify\Utils; + /** UnauthorizedResponse - Unauthorized */ class UnauthorizedResponse { @@ -88,8 +88,11 @@ public function __construct(?float $statusCode = null, ?string $error = null, ?s public function toException(): UnauthorizedResponseThrowable { - $serializer = Utils\JSON::createSerializer(); - $message = $serializer->serialize($this, 'json'); + if ($this->message !== null) { + $message = $this->message; + } else { + $message = 'unknown error'; + } $code = -1; return new UnauthorizedResponseThrowable($message, (int) $code, $this); diff --git a/src/Models/Operations/AccountingInvoiceItemsOneRequest.php b/src/Models/Operations/AccountingInvoiceItemsOneRequest.php index 93a81cb..98ff3fd 100644 --- a/src/Models/Operations/AccountingInvoiceItemsOneRequest.php +++ b/src/Models/Operations/AccountingInvoiceItemsOneRequest.php @@ -8,6 +8,7 @@ namespace Apideck\Unify\Models\Operations; +use Apideck\Unify\Models\Components; use Apideck\Unify\Utils\SpeakeasyMetadata; class AccountingInvoiceItemsOneRequest { @@ -59,21 +60,31 @@ class AccountingInvoiceItemsOneRequest #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=fields')] public ?string $fields = null; + /** + * Apply filters + * + * @var ?Components\InvoiceItemFilter $filter + */ + #[SpeakeasyMetadata('queryParam:style=deepObject,explode=true,name=filter')] + public ?Components\InvoiceItemFilter $filter = null; + /** * @param string $id * @param ?string $consumerId * @param ?string $appId * @param ?string $serviceId * @param ?bool $raw + * @param ?Components\InvoiceItemFilter $filter * @param ?string $fields */ - public function __construct(string $id, ?string $consumerId = null, ?string $appId = null, ?string $serviceId = null, ?string $fields = null, ?bool $raw = false) + public function __construct(string $id, ?string $consumerId = null, ?string $appId = null, ?string $serviceId = null, ?Components\InvoiceItemFilter $filter = null, ?string $fields = null, ?bool $raw = false) { $this->id = $id; $this->consumerId = $consumerId; $this->appId = $appId; $this->serviceId = $serviceId; $this->raw = $raw; + $this->filter = $filter; $this->fields = $fields; } } \ No newline at end of file diff --git a/src/SDKConfiguration.php b/src/SDKConfiguration.php index b1476c5..db8ffb8 100644 --- a/src/SDKConfiguration.php +++ b/src/SDKConfiguration.php @@ -24,13 +24,13 @@ class SDKConfiguration public string $language = 'php'; - public string $openapiDocVersion = '10.8.1'; + public string $openapiDocVersion = '10.8.3'; - public string $sdkVersion = '0.0.2'; + public string $sdkVersion = '0.0.3'; public string $genVersion = '2.472.1'; - public string $userAgent = 'speakeasy-sdk/php 0.0.2 2.472.1 10.8.1 apideck-libraries/sdk-php'; + public string $userAgent = 'speakeasy-sdk/php 0.0.3 2.472.1 10.8.3 apideck-libraries/sdk-php'; /** @var array>> */ public ?array $globals = [ 'parameters' => [],