Skip to content

Commit

Permalink
feat(api): api update (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Nov 4, 2024
1 parent 6d80050 commit 50bb1d3
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 70
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/conductor%2Fconductor-3ff0f459b943ba1a72ae4e5212e819ba7536b691db07ca01232f21ad5eba5dfd.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/conductor%2Fconductor-990f86128bf663ac0fbcb57bf6ddd48712bd5823b4a23b81b93f09e2ef811ec7.yml
8 changes: 4 additions & 4 deletions src/conductor/resources/qbd/sales_tax_codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def create(
cannot be modified once the sales-tax code has been used in a transaction.
name: The case-insensitive unique name of this sales-tax code, unique across all
sales-tax codes. Maximum length: 3 characters. This short name will appear on
sales-tax codes. Maximum length: 31 characters. This short name will appear on
sales forms to identify the tax status of an item.
conductor_end_user_id: The ID of the EndUser to receive this request (e.g.,
Expand Down Expand Up @@ -196,7 +196,7 @@ def update(
cannot be modified once the sales-tax code has been used in a transaction.
name: The case-insensitive unique name of this sales-tax code, unique across all
sales-tax codes. Maximum length: 3 characters. This short name will appear on
sales-tax codes. Maximum length: 31 characters. This short name will appear on
sales forms to identify the tax status of an item.
sales_tax_item_id: The sales-tax item used to calculate the actual tax amount for this sales-tax
Expand Down Expand Up @@ -397,7 +397,7 @@ async def create(
cannot be modified once the sales-tax code has been used in a transaction.
name: The case-insensitive unique name of this sales-tax code, unique across all
sales-tax codes. Maximum length: 3 characters. This short name will appear on
sales-tax codes. Maximum length: 31 characters. This short name will appear on
sales forms to identify the tax status of an item.
conductor_end_user_id: The ID of the EndUser to receive this request (e.g.,
Expand Down Expand Up @@ -521,7 +521,7 @@ async def update(
cannot be modified once the sales-tax code has been used in a transaction.
name: The case-insensitive unique name of this sales-tax code, unique across all
sales-tax codes. Maximum length: 3 characters. This short name will appear on
sales-tax codes. Maximum length: 31 characters. This short name will appear on
sales forms to identify the tax status of an item.
sales_tax_item_id: The sales-tax item used to calculate the actual tax amount for this sales-tax
Expand Down
2 changes: 1 addition & 1 deletion src/conductor/types/qbd/sales_tax_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class SalesTaxCode(BaseModel):
name: str
"""
The case-insensitive unique name of this sales-tax code, unique across all
sales-tax codes. Maximum length: 3 characters. This short name will appear on
sales-tax codes. Maximum length: 31 characters. This short name will appear on
sales forms to identify the tax status of an item.
"""

Expand Down
2 changes: 1 addition & 1 deletion src/conductor/types/qbd/sales_tax_code_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SalesTaxCodeCreateParams(TypedDict, total=False):
name: Required[str]
"""
The case-insensitive unique name of this sales-tax code, unique across all
sales-tax codes. Maximum length: 3 characters. This short name will appear on
sales-tax codes. Maximum length: 31 characters. This short name will appear on
sales forms to identify the tax status of an item.
"""

Expand Down
2 changes: 1 addition & 1 deletion src/conductor/types/qbd/sales_tax_code_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class SalesTaxCodeUpdateParams(TypedDict, total=False):
name: str
"""
The case-insensitive unique name of this sales-tax code, unique across all
sales-tax codes. Maximum length: 3 characters. This short name will appear on
sales-tax codes. Maximum length: 31 characters. This short name will appear on
sales forms to identify the tax status of an item.
"""

Expand Down
20 changes: 10 additions & 10 deletions tests/api_resources/qbd/test_sales_tax_codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class TestSalesTaxCodes:
def test_method_create(self, client: Conductor) -> None:
sales_tax_code = client.qbd.sales_tax_codes.create(
is_taxable=True,
name="xxx",
name="California Sales Tax",
conductor_end_user_id="end_usr_1234567abcdefg",
)
assert_matches_type(SalesTaxCode, sales_tax_code, path=["response"])
Expand All @@ -33,7 +33,7 @@ def test_method_create(self, client: Conductor) -> None:
def test_method_create_with_all_params(self, client: Conductor) -> None:
sales_tax_code = client.qbd.sales_tax_codes.create(
is_taxable=True,
name="xxx",
name="California Sales Tax",
conductor_end_user_id="end_usr_1234567abcdefg",
description="For items that are taxable at the standard rate in California.",
is_active=True,
Expand All @@ -45,7 +45,7 @@ def test_method_create_with_all_params(self, client: Conductor) -> None:
def test_raw_response_create(self, client: Conductor) -> None:
response = client.qbd.sales_tax_codes.with_raw_response.create(
is_taxable=True,
name="xxx",
name="California Sales Tax",
conductor_end_user_id="end_usr_1234567abcdefg",
)

Expand All @@ -58,7 +58,7 @@ def test_raw_response_create(self, client: Conductor) -> None:
def test_streaming_response_create(self, client: Conductor) -> None:
with client.qbd.sales_tax_codes.with_streaming_response.create(
is_taxable=True,
name="xxx",
name="California Sales Tax",
conductor_end_user_id="end_usr_1234567abcdefg",
) as response:
assert not response.is_closed
Expand Down Expand Up @@ -129,7 +129,7 @@ def test_method_update_with_all_params(self, client: Conductor) -> None:
description="For items that are taxable at the standard rate in California.",
is_active=True,
is_taxable=True,
name="xxx",
name="California Sales Tax",
sales_tax_item_id="80000010-1234567890",
)
assert_matches_type(SalesTaxCode, sales_tax_code, path=["response"])
Expand Down Expand Up @@ -228,7 +228,7 @@ class TestAsyncSalesTaxCodes:
async def test_method_create(self, async_client: AsyncConductor) -> None:
sales_tax_code = await async_client.qbd.sales_tax_codes.create(
is_taxable=True,
name="xxx",
name="California Sales Tax",
conductor_end_user_id="end_usr_1234567abcdefg",
)
assert_matches_type(SalesTaxCode, sales_tax_code, path=["response"])
Expand All @@ -237,7 +237,7 @@ async def test_method_create(self, async_client: AsyncConductor) -> None:
async def test_method_create_with_all_params(self, async_client: AsyncConductor) -> None:
sales_tax_code = await async_client.qbd.sales_tax_codes.create(
is_taxable=True,
name="xxx",
name="California Sales Tax",
conductor_end_user_id="end_usr_1234567abcdefg",
description="For items that are taxable at the standard rate in California.",
is_active=True,
Expand All @@ -249,7 +249,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncConductor)
async def test_raw_response_create(self, async_client: AsyncConductor) -> None:
response = await async_client.qbd.sales_tax_codes.with_raw_response.create(
is_taxable=True,
name="xxx",
name="California Sales Tax",
conductor_end_user_id="end_usr_1234567abcdefg",
)

Expand All @@ -262,7 +262,7 @@ async def test_raw_response_create(self, async_client: AsyncConductor) -> None:
async def test_streaming_response_create(self, async_client: AsyncConductor) -> None:
async with async_client.qbd.sales_tax_codes.with_streaming_response.create(
is_taxable=True,
name="xxx",
name="California Sales Tax",
conductor_end_user_id="end_usr_1234567abcdefg",
) as response:
assert not response.is_closed
Expand Down Expand Up @@ -333,7 +333,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncConductor)
description="For items that are taxable at the standard rate in California.",
is_active=True,
is_taxable=True,
name="xxx",
name="California Sales Tax",
sales_tax_item_id="80000010-1234567890",
)
assert_matches_type(SalesTaxCode, sales_tax_code, path=["response"])
Expand Down

0 comments on commit 50bb1d3

Please sign in to comment.