diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 09159b1c..0e4fc902 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: fca0ac3a-5f4e-452c-bbc7-2311afa8da40 management: - docChecksum: 2d918b6b0dc4abae28a10d889a05e324 - docVersion: 10.20.10 - speakeasyVersion: 1.606.0 - generationVersion: 2.686.7 - releaseVersion: 0.21.5 - configChecksum: 3aff60436bfb02762a844a652085131c + docChecksum: 24281e33739845fb843e27e699b1394d + docVersion: 10.20.11 + speakeasyVersion: 1.606.4 + generationVersion: 2.687.1 + releaseVersion: 0.21.6 + configChecksum: ac994f0e9bd92c2c97613757ce3135d2 repoURL: https://github.com/apideck-libraries/sdk-python.git installationURL: https://github.com/apideck-libraries/sdk-python.git published: true @@ -4005,7 +4005,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"name": "Model Y", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "code": "120-C", "sold": true, "purchased": true, "tracked": true, "taxable": true, "inventory_date": "2020-10-30", "type": "inventory", "sales_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "rate": 10}}, "purchase_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "rate": 10}}, "quantity": 1, "unit_price": 27500.5, "asset_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "income_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "expense_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "tracking_categories": null, "active": true, "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_schedule_id": "123456", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"name": "Model Y", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "code": "120-C", "sold": true, "purchased": true, "tracked": true, "taxable": true, "inventory_date": "2020-10-30", "type": "inventory", "sales_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "rate": 10}}, "purchase_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "rate": 10}}, "quantity": 1, "unit_price": 27500.5, "currency": "USD", "asset_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "income_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "expense_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "tracking_categories": null, "active": true, "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_schedule_id": "123456", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "invoice-items", "operation": "add", "data": {"id": "12345"}} @@ -4063,7 +4063,7 @@ examples: x-apideck-service-id: "salesforce" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "invoice-items", "operation": "one", "data": {"id": "123456", "name": "Model Y", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "code": "120-C", "sold": true, "purchased": true, "tracked": true, "taxable": true, "inventory_date": "2020-10-30", "type": "inventory", "sales_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}}, "purchase_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}}, "quantity": 1, "unit_price": 27500.5, "asset_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "income_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "expense_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "active": true, "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_schedule_id": "123456", "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} + application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "invoice-items", "operation": "one", "data": {"id": "123456", "name": "Model Y", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "code": "120-C", "sold": true, "purchased": true, "tracked": true, "taxable": true, "inventory_date": "2020-10-30", "type": "inventory", "sales_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}}, "purchase_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}}, "quantity": 1, "unit_price": 27500.5, "currency": "USD", "asset_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "income_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "expense_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "active": true, "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_schedule_id": "123456", "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} "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": @@ -4115,7 +4115,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"name": "Model Y", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "code": "120-C", "sold": true, "purchased": true, "tracked": true, "taxable": true, "inventory_date": "2020-10-30", "type": "inventory", "sales_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "rate": 10}}, "purchase_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "rate": 10}}, "quantity": 1, "unit_price": 27500.5, "asset_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "income_account": null, "expense_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "active": true, "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_schedule_id": "123456", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"name": "Model Y", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "code": "120-C", "sold": true, "purchased": true, "tracked": true, "taxable": true, "inventory_date": "2020-10-30", "type": "inventory", "sales_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "rate": 10}}, "purchase_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "rate": 10}}, "quantity": 1, "unit_price": 27500.5, "currency": "USD", "asset_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "income_account": null, "expense_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "active": true, "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_schedule_id": "123456", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "invoice-items", "operation": "update", "data": {"id": "12345"}} @@ -18019,9 +18019,7 @@ examplesVersion: 1.0.2 generatedTests: {} releaseNotes: | ## SDK Changes Detected: - * `apideck.ats.jobs.list()`: `response.data.[].blocks.[].content` **Changed** **Breaking** :warning: - * `apideck.ats.jobs.get()`: `response.data.blocks.[].content` **Changed** **Breaking** :warning: - * `apideck.accounting.suppliers.list()`: `response.data.[]` **Changed** - * `apideck.accounting.suppliers.create()`: `request` **Changed** - * `apideck.accounting.suppliers.get()`: `response.data` **Changed** - * `apideck.accounting.suppliers.update()`: `request` **Changed** + * `apideck.accounting.invoice_items.list()`: `response.data.[].currency` **Added** + * `apideck.accounting.invoice_items.create()`: `request.currency` **Added** + * `apideck.accounting.invoice_items.get()`: `response.data.currency` **Added** + * `apideck.accounting.invoice_items.update()`: `request.currency` **Added** diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 154df26c..c666b52f 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -24,7 +24,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false python: - version: 0.21.5 + version: 0.21.6 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index a5d97722..a0bafbf3 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.606.0 +speakeasyVersion: 1.606.4 sources: Apideck: sourceNamespace: apideck - sourceRevisionDigest: sha256:e7b566f95fb335f8ed86ee70bae23c2b86a606eed8123307f1408f9c8ea63941 - sourceBlobDigest: sha256:8a19e9c46f43e336fb59ca58640fe173dd0e97b0d13d7422a143a70a8392726c + sourceRevisionDigest: sha256:7e6ee2580cb43945d59c470fc802a553dca2d94fd3009aee06c89ec054422b0e + sourceBlobDigest: sha256:9175c4c8d5be2f36f6b37a73cfe5d419b017212ff019803d0ac009750154919a tags: - latest - - speakeasy-sdk-regen-1755773170 - - 10.20.10 + - speakeasy-sdk-regen-1755873448 + - 10.20.11 targets: apideck: source: Apideck sourceNamespace: apideck - sourceRevisionDigest: sha256:e7b566f95fb335f8ed86ee70bae23c2b86a606eed8123307f1408f9c8ea63941 - sourceBlobDigest: sha256:8a19e9c46f43e336fb59ca58640fe173dd0e97b0d13d7422a143a70a8392726c + sourceRevisionDigest: sha256:7e6ee2580cb43945d59c470fc802a553dca2d94fd3009aee06c89ec054422b0e + sourceBlobDigest: sha256:9175c4c8d5be2f36f6b37a73cfe5d419b017212ff019803d0ac009750154919a codeSamplesNamespace: apideck-python-code-samples - codeSamplesRevisionDigest: sha256:6120fde82f438e37b6a9e8a59138decc012ea71925d6aa53b30c62910d32317b + codeSamplesRevisionDigest: sha256:8e80567e199ea32c241305b1612d712ec564a4533515ef558386392cc23b16f7 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 3c3d4809..832e2265 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -428,4 +428,14 @@ Based on: ### Generated - [python v0.21.5] . ### Releases -- [PyPI v0.21.5] https://pypi.org/project/apideck-unify/0.21.5 - . \ No newline at end of file +- [PyPI v0.21.5] https://pypi.org/project/apideck-unify/0.21.5 - . + +## 2025-08-25 12:54:58 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.606.4 (2.687.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.21.6] . +### Releases +- [PyPI v0.21.6] https://pypi.org/project/apideck-unify/0.21.6 - . \ No newline at end of file diff --git a/docs/models/invoiceitem.md b/docs/models/invoiceitem.md index b629b57f..3d88acf9 100644 --- a/docs/models/invoiceitem.md +++ b/docs/models/invoiceitem.md @@ -19,6 +19,7 @@ | `purchase_details` | [Optional[models.PurchaseDetails]](../models/purchasedetails.md) | :heavy_minus_sign: | N/A | | | `quantity` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | 1 | | `unit_price` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | 27500.5 | +| `currency` | [OptionalNullable[models.Currency]](../models/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 | | `asset_account` | [OptionalNullable[models.LinkedLedgerAccount]](../models/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | | `income_account` | [OptionalNullable[models.LinkedLedgerAccount]](../models/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | | `expense_account` | [OptionalNullable[models.LinkedLedgerAccount]](../models/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | diff --git a/docs/models/invoiceiteminput.md b/docs/models/invoiceiteminput.md index 33a16bda..919ca38e 100644 --- a/docs/models/invoiceiteminput.md +++ b/docs/models/invoiceiteminput.md @@ -18,6 +18,7 @@ | `purchase_details` | [Optional[models.InvoiceItemPurchaseDetails]](../models/invoiceitempurchasedetails.md) | :heavy_minus_sign: | N/A | | | `quantity` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | 1 | | `unit_price` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | 27500.5 | +| `currency` | [OptionalNullable[models.Currency]](../models/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 | | `asset_account` | [OptionalNullable[models.LinkedLedgerAccountInput]](../models/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | | `income_account` | [OptionalNullable[models.LinkedLedgerAccountInput]](../models/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | | `expense_account` | [OptionalNullable[models.LinkedLedgerAccountInput]](../models/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | diff --git a/docs/models/timeoffrequestsfilter.md b/docs/models/timeoffrequestsfilter.md index 21d512e9..57cb780c 100644 --- a/docs/models/timeoffrequestsfilter.md +++ b/docs/models/timeoffrequestsfilter.md @@ -3,11 +3,11 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `start_date` | *Optional[str]* | :heavy_minus_sign: | Start date | 2022-04-08 | -| `end_date` | *Optional[str]* | :heavy_minus_sign: | End date | 2022-04-21 | -| `updated_since` | *Optional[str]* | :heavy_minus_sign: | Minimum date the time off request was last created or modified | 2020-09-30T07:43:32.000Z | -| `employee_id` | *Optional[str]* | :heavy_minus_sign: | Employee ID | 1234 | -| `time_off_request_status` | [Optional[models.TimeOffRequestStatus]](../models/timeoffrequeststatus.md) | :heavy_minus_sign: | Time off request status to filter on | requested | -| `company_id` | *Optional[str]* | :heavy_minus_sign: | Company ID | 1234 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | +| `start_date` | *Optional[str]* | :heavy_minus_sign: | Start date of the date range to filter time off requests. When used with end_date, filters for requests within the specified date range. | 2022-04-08 | +| `end_date` | *Optional[str]* | :heavy_minus_sign: | End date of the date range to filter time off requests. When used with start_date, filters for requests within the specified date range. | 2022-04-21 | +| `updated_since` | *Optional[str]* | :heavy_minus_sign: | Minimum date the time off request was last created or modified | 2020-09-30T07:43:32.000Z | +| `employee_id` | *Optional[str]* | :heavy_minus_sign: | Employee ID | 1234 | +| `time_off_request_status` | [Optional[models.TimeOffRequestStatus]](../models/timeoffrequeststatus.md) | :heavy_minus_sign: | Time off request status to filter on | requested | +| `company_id` | *Optional[str]* | :heavy_minus_sign: | Company ID | 1234 | \ No newline at end of file diff --git a/docs/sdks/invoiceitems/README.md b/docs/sdks/invoiceitems/README.md index b22d13d1..d06e3379 100644 --- a/docs/sdks/invoiceitems/README.md +++ b/docs/sdks/invoiceitems/README.md @@ -114,7 +114,7 @@ with Apideck( "id": "123456", "rate": 10, }, - }, quantity=1, unit_price=27500.5, asset_account={ + }, quantity=1, unit_price=27500.5, currency=apideck_unify.Currency.USD, asset_account={ "id": "123456", "nominal_code": "N091", "code": "453", @@ -253,6 +253,7 @@ with Apideck( | `purchase_details` | [Optional[models.InvoiceItemPurchaseDetails]](../../models/invoiceitempurchasedetails.md) | :heavy_minus_sign: | N/A | | | `quantity` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | 1 | | `unit_price` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | 27500.5 | +| `currency` | [OptionalNullable[models.Currency]](../../models/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 | | `asset_account` | [OptionalNullable[models.LinkedLedgerAccountInput]](../../models/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | | `income_account` | [OptionalNullable[models.LinkedLedgerAccountInput]](../../models/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | | `expense_account` | [OptionalNullable[models.LinkedLedgerAccountInput]](../../models/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | @@ -376,7 +377,7 @@ with Apideck( "id": "123456", "rate": 10, }, - }, quantity=1, unit_price=27500.5, asset_account={ + }, quantity=1, unit_price=27500.5, currency=apideck_unify.Currency.USD, asset_account={ "id": "123456", "nominal_code": "N091", "code": "453", @@ -438,6 +439,7 @@ with Apideck( | `purchase_details` | [Optional[models.InvoiceItemPurchaseDetails]](../../models/invoiceitempurchasedetails.md) | :heavy_minus_sign: | N/A | | | `quantity` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | 1 | | `unit_price` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | 27500.5 | +| `currency` | [OptionalNullable[models.Currency]](../../models/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 | | `asset_account` | [OptionalNullable[models.LinkedLedgerAccountInput]](../../models/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | | `income_account` | [OptionalNullable[models.LinkedLedgerAccountInput]](../../models/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | | `expense_account` | [OptionalNullable[models.LinkedLedgerAccountInput]](../../models/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | diff --git a/pyproject.toml b/pyproject.toml index 04459ba0..4276c4c8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "apideck-unify" -version = "0.21.5" +version = "0.21.6" description = "Python Client SDK Generated by Speakeasy." authors = [{ name = "Speakeasy" },] readme = "README-PYPI.md" diff --git a/src/apideck_unify/_version.py b/src/apideck_unify/_version.py index d8acb7d2..ac913d64 100644 --- a/src/apideck_unify/_version.py +++ b/src/apideck_unify/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "apideck-unify" -__version__: str = "0.21.5" -__openapi_doc_version__: str = "10.20.10" -__gen_version__: str = "2.686.7" -__user_agent__: str = "speakeasy-sdk/python 0.21.5 2.686.7 10.20.10 apideck-unify" +__version__: str = "0.21.6" +__openapi_doc_version__: str = "10.20.11" +__gen_version__: str = "2.687.1" +__user_agent__: str = "speakeasy-sdk/python 0.21.6 2.687.1 10.20.11 apideck-unify" try: if __package__ is not None: diff --git a/src/apideck_unify/invoiceitems.py b/src/apideck_unify/invoiceitems.py index 44e47995..a79fe19e 100644 --- a/src/apideck_unify/invoiceitems.py +++ b/src/apideck_unify/invoiceitems.py @@ -419,6 +419,7 @@ def create( ] = None, quantity: OptionalNullable[float] = UNSET, unit_price: OptionalNullable[float] = UNSET, + currency: OptionalNullable[models.Currency] = UNSET, asset_account: OptionalNullable[ Union[ models.LinkedLedgerAccountInput, @@ -484,6 +485,7 @@ def create( :param purchase_details: :param quantity: :param unit_price: + :param currency: Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). :param asset_account: :param income_account: :param expense_account: @@ -534,6 +536,7 @@ def create( ), quantity=quantity, unit_price=unit_price, + currency=currency, asset_account=utils.get_pydantic_model( asset_account, OptionalNullable[models.LinkedLedgerAccountInput] ), @@ -691,6 +694,7 @@ async def create_async( ] = None, quantity: OptionalNullable[float] = UNSET, unit_price: OptionalNullable[float] = UNSET, + currency: OptionalNullable[models.Currency] = UNSET, asset_account: OptionalNullable[ Union[ models.LinkedLedgerAccountInput, @@ -756,6 +760,7 @@ async def create_async( :param purchase_details: :param quantity: :param unit_price: + :param currency: Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). :param asset_account: :param income_account: :param expense_account: @@ -806,6 +811,7 @@ async def create_async( ), quantity=quantity, unit_price=unit_price, + currency=currency, asset_account=utils.get_pydantic_model( asset_account, OptionalNullable[models.LinkedLedgerAccountInput] ), @@ -1266,6 +1272,7 @@ def update( ] = None, quantity: OptionalNullable[float] = UNSET, unit_price: OptionalNullable[float] = UNSET, + currency: OptionalNullable[models.Currency] = UNSET, asset_account: OptionalNullable[ Union[ models.LinkedLedgerAccountInput, @@ -1332,6 +1339,7 @@ def update( :param purchase_details: :param quantity: :param unit_price: + :param currency: Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). :param asset_account: :param income_account: :param expense_account: @@ -1383,6 +1391,7 @@ def update( ), quantity=quantity, unit_price=unit_price, + currency=currency, asset_account=utils.get_pydantic_model( asset_account, OptionalNullable[models.LinkedLedgerAccountInput] ), @@ -1541,6 +1550,7 @@ async def update_async( ] = None, quantity: OptionalNullable[float] = UNSET, unit_price: OptionalNullable[float] = UNSET, + currency: OptionalNullable[models.Currency] = UNSET, asset_account: OptionalNullable[ Union[ models.LinkedLedgerAccountInput, @@ -1607,6 +1617,7 @@ async def update_async( :param purchase_details: :param quantity: :param unit_price: + :param currency: Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). :param asset_account: :param income_account: :param expense_account: @@ -1658,6 +1669,7 @@ async def update_async( ), quantity=quantity, unit_price=unit_price, + currency=currency, asset_account=utils.get_pydantic_model( asset_account, OptionalNullable[models.LinkedLedgerAccountInput] ), diff --git a/src/apideck_unify/models/invoiceitem.py b/src/apideck_unify/models/invoiceitem.py index 2408eb8b..4b0cd5ab 100644 --- a/src/apideck_unify/models/invoiceitem.py +++ b/src/apideck_unify/models/invoiceitem.py @@ -1,6 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations +from .currency import Currency from .deprecatedlinkedtrackingcategory import ( DeprecatedLinkedTrackingCategory, DeprecatedLinkedTrackingCategoryTypedDict, @@ -169,6 +170,8 @@ class InvoiceItemTypedDict(TypedDict): purchase_details: NotRequired[PurchaseDetailsTypedDict] quantity: NotRequired[Nullable[float]] unit_price: NotRequired[Nullable[float]] + currency: NotRequired[Nullable[Currency]] + r"""Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).""" asset_account: NotRequired[Nullable[LinkedLedgerAccountTypedDict]] income_account: NotRequired[Nullable[LinkedLedgerAccountTypedDict]] expense_account: NotRequired[Nullable[LinkedLedgerAccountTypedDict]] @@ -241,6 +244,9 @@ class InvoiceItem(BaseModel): unit_price: OptionalNullable[float] = UNSET + currency: OptionalNullable[Currency] = UNSET + r"""Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).""" + asset_account: OptionalNullable[LinkedLedgerAccount] = UNSET income_account: OptionalNullable[LinkedLedgerAccount] = UNSET @@ -311,6 +317,7 @@ def serialize_model(self, handler): "purchase_details", "quantity", "unit_price", + "currency", "asset_account", "income_account", "expense_account", @@ -341,6 +348,7 @@ def serialize_model(self, handler): "type", "quantity", "unit_price", + "currency", "asset_account", "income_account", "expense_account", @@ -510,6 +518,8 @@ class InvoiceItemInputTypedDict(TypedDict): purchase_details: NotRequired[InvoiceItemPurchaseDetailsTypedDict] quantity: NotRequired[Nullable[float]] unit_price: NotRequired[Nullable[float]] + currency: NotRequired[Nullable[Currency]] + r"""Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).""" asset_account: NotRequired[Nullable[LinkedLedgerAccountInputTypedDict]] income_account: NotRequired[Nullable[LinkedLedgerAccountInputTypedDict]] expense_account: NotRequired[Nullable[LinkedLedgerAccountInputTypedDict]] @@ -569,6 +579,9 @@ class InvoiceItemInput(BaseModel): unit_price: OptionalNullable[float] = UNSET + currency: OptionalNullable[Currency] = UNSET + r"""Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).""" + asset_account: OptionalNullable[LinkedLedgerAccountInput] = UNSET income_account: OptionalNullable[LinkedLedgerAccountInput] = UNSET @@ -623,6 +636,7 @@ def serialize_model(self, handler): "purchase_details", "quantity", "unit_price", + "currency", "asset_account", "income_account", "expense_account", @@ -648,6 +662,7 @@ def serialize_model(self, handler): "type", "quantity", "unit_price", + "currency", "asset_account", "income_account", "expense_account", diff --git a/src/apideck_unify/models/timeoffrequestsfilter.py b/src/apideck_unify/models/timeoffrequestsfilter.py index 72a53fbc..6a42f8e5 100644 --- a/src/apideck_unify/models/timeoffrequestsfilter.py +++ b/src/apideck_unify/models/timeoffrequestsfilter.py @@ -21,9 +21,9 @@ class TimeOffRequestStatus(str, Enum): class TimeOffRequestsFilterTypedDict(TypedDict): start_date: NotRequired[str] - r"""Start date""" + r"""Start date of the date range to filter time off requests. When used with end_date, filters for requests within the specified date range.""" end_date: NotRequired[str] - r"""End date""" + r"""End date of the date range to filter time off requests. When used with start_date, filters for requests within the specified date range.""" updated_since: NotRequired[str] r"""Minimum date the time off request was last created or modified""" employee_id: NotRequired[str] @@ -36,10 +36,10 @@ class TimeOffRequestsFilterTypedDict(TypedDict): class TimeOffRequestsFilter(BaseModel): start_date: Annotated[Optional[str], FieldMetadata(query=True)] = None - r"""Start date""" + r"""Start date of the date range to filter time off requests. When used with end_date, filters for requests within the specified date range.""" end_date: Annotated[Optional[str], FieldMetadata(query=True)] = None - r"""End date""" + r"""End date of the date range to filter time off requests. When used with start_date, filters for requests within the specified date range.""" updated_since: Annotated[Optional[str], FieldMetadata(query=True)] = None r"""Minimum date the time off request was last created or modified"""