diff --git a/.stats.yml b/.stats.yml index 6229fe6e..efc251f3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 47 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/conductor%2Fconductor-4ca93a32ea3ad6872cb231c5f097a9099ffdd67a9607dcd6ce717d4b76d5a3bf.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/conductor%2Fconductor-982a4af6cedb8c9611819a4aff9770de59d9157b557926ca26f360077f49e1df.yml diff --git a/src/conductor/resources/qbd/bills.py b/src/conductor/resources/qbd/bills.py index f6e8a25d..88f72e7f 100644 --- a/src/conductor/resources/qbd/bills.py +++ b/src/conductor/resources/qbd/bills.py @@ -55,7 +55,7 @@ def create( vendor_id: str, conductor_end_user_id: str, accounts_payable_account_id: str | NotGiven = NOT_GIVEN, - due_date: str | NotGiven = NOT_GIVEN, + due_date: Union[str, date] | NotGiven = NOT_GIVEN, exchange_rate: float | NotGiven = NOT_GIVEN, expense_lines: Iterable[bill_create_params.ExpenseLine] | NotGiven = NOT_GIVEN, external_id: str | NotGiven = NOT_GIVEN, @@ -66,7 +66,7 @@ def create( ref_number: str | NotGiven = NOT_GIVEN, sales_tax_code_id: str | NotGiven = NOT_GIVEN, terms_id: str | NotGiven = NOT_GIVEN, - transaction_date: str | NotGiven = NOT_GIVEN, + transaction_date: Union[str, date] | NotGiven = NOT_GIVEN, vendor_address: bill_create_params.VendorAddress | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -347,7 +347,7 @@ async def create( vendor_id: str, conductor_end_user_id: str, accounts_payable_account_id: str | NotGiven = NOT_GIVEN, - due_date: str | NotGiven = NOT_GIVEN, + due_date: Union[str, date] | NotGiven = NOT_GIVEN, exchange_rate: float | NotGiven = NOT_GIVEN, expense_lines: Iterable[bill_create_params.ExpenseLine] | NotGiven = NOT_GIVEN, external_id: str | NotGiven = NOT_GIVEN, @@ -358,7 +358,7 @@ async def create( ref_number: str | NotGiven = NOT_GIVEN, sales_tax_code_id: str | NotGiven = NOT_GIVEN, terms_id: str | NotGiven = NOT_GIVEN, - transaction_date: str | NotGiven = NOT_GIVEN, + transaction_date: Union[str, date] | NotGiven = NOT_GIVEN, vendor_address: bill_create_params.VendorAddress | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. diff --git a/src/conductor/types/qbd/bill_create_params.py b/src/conductor/types/qbd/bill_create_params.py index 3a89ad44..675863d3 100644 --- a/src/conductor/types/qbd/bill_create_params.py +++ b/src/conductor/types/qbd/bill_create_params.py @@ -2,7 +2,8 @@ from __future__ import annotations -from typing import List, Iterable +from typing import List, Union, Iterable +from datetime import date from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo @@ -31,7 +32,7 @@ class BillCreateParams(TypedDict, total=False): accounts_payable_account_id: Annotated[str, PropertyInfo(alias="accountsPayableAccountId")] - due_date: Annotated[str, PropertyInfo(alias="dueDate")] + due_date: Annotated[Union[str, date], PropertyInfo(alias="dueDate", format="iso8601")] """The date when the payment is due, in ISO 8601 format (YYYY-MM-DD).""" exchange_rate: Annotated[float, PropertyInfo(alias="exchangeRate")] @@ -64,7 +65,7 @@ class BillCreateParams(TypedDict, total=False): terms_id: Annotated[str, PropertyInfo(alias="termsId")] - transaction_date: Annotated[str, PropertyInfo(alias="transactionDate")] + transaction_date: Annotated[Union[str, date], PropertyInfo(alias="transactionDate", format="iso8601")] vendor_address: Annotated[VendorAddress, PropertyInfo(alias="vendorAddress")] diff --git a/tests/api_resources/qbd/test_bills.py b/tests/api_resources/qbd/test_bills.py index 2393b584..dd0866d5 100644 --- a/tests/api_resources/qbd/test_bills.py +++ b/tests/api_resources/qbd/test_bills.py @@ -33,7 +33,7 @@ def test_method_create_with_all_params(self, client: Conductor) -> None: vendor_id="vendorId", conductor_end_user_id="end_usr_1234567abcdefg", accounts_payable_account_id="accountsPayableAccountId", - due_date="dueDate", + due_date=parse_date("2019-12-27"), exchange_rate=0, expense_lines=[ { @@ -320,7 +320,7 @@ def test_method_create_with_all_params(self, client: Conductor) -> None: ref_number="CHARGE-1234", sales_tax_code_id="salesTaxCodeId", terms_id="termsId", - transaction_date="transactionDate", + transaction_date=parse_date("2019-12-27"), vendor_address={ "city": "San Francisco", "country": "United States", @@ -479,7 +479,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncConductor) vendor_id="vendorId", conductor_end_user_id="end_usr_1234567abcdefg", accounts_payable_account_id="accountsPayableAccountId", - due_date="dueDate", + due_date=parse_date("2019-12-27"), exchange_rate=0, expense_lines=[ { @@ -766,7 +766,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncConductor) ref_number="CHARGE-1234", sales_tax_code_id="salesTaxCodeId", terms_id="termsId", - transaction_date="transactionDate", + transaction_date=parse_date("2019-12-27"), vendor_address={ "city": "San Francisco", "country": "United States",