Skip to content

Commit

Permalink
feat(api): api update (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Oct 29, 2024
1 parent fcda928 commit 45c98a0
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 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: 71
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/conductor%2Fconductor-64079a7ca9d6e3ba3c97674febf89cbdf33e74e51ced35bbb6e48ba27debfd73.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/conductor%2Fconductor-c7cecb168a10fc41ae7cc764202d79eab59c8ff34122fd90fbee4483456e787e.yml
2 changes: 1 addition & 1 deletion src/conductor/types/qbd/customer_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ class AlternateShippingAddress(TypedDict, total=False):
country: str
"""The country name of the address."""

default_ship_to: Annotated[bool, PropertyInfo(alias="defaultShipTo")]
is_default_address: Annotated[bool, PropertyInfo(alias="isDefaultAddress")]
"""Indicates whether this address is the default shipping address."""

line1: str
Expand Down
2 changes: 1 addition & 1 deletion src/conductor/types/qbd/customer_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ class AlternateShippingAddress(TypedDict, total=False):
country: str
"""The country name of the address."""

default_ship_to: Annotated[bool, PropertyInfo(alias="defaultShipTo")]
is_default_address: Annotated[bool, PropertyInfo(alias="isDefaultAddress")]
"""Indicates whether this address is the default shipping address."""

line1: str
Expand Down
2 changes: 1 addition & 1 deletion src/conductor/types/qbd/qbd_customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class AlternateShippingAddress(BaseModel):
country: Optional[str] = None
"""The country name of the address."""

default_ship_to: Optional[bool] = FieldInfo(alias="defaultShipTo", default=None)
is_default_address: Optional[bool] = FieldInfo(alias="isDefaultAddress", default=None)
"""Indicates whether this address is the default shipping address."""

line1: Optional[str] = None
Expand Down
24 changes: 12 additions & 12 deletions tests/api_resources/qbd/test_customers.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_method_create_with_all_params(self, client: Conductor) -> None:
"name": "Alternate shipping address",
"city": "San Francisco",
"country": "United States",
"default_ship_to": True,
"is_default_address": True,
"line1": "548 Market St.",
"line2": "Suite 100",
"line3": "line3",
Expand All @@ -59,7 +59,7 @@ def test_method_create_with_all_params(self, client: Conductor) -> None:
"name": "Alternate shipping address",
"city": "San Francisco",
"country": "United States",
"default_ship_to": True,
"is_default_address": True,
"line1": "548 Market St.",
"line2": "Suite 100",
"line3": "line3",
Expand All @@ -73,7 +73,7 @@ def test_method_create_with_all_params(self, client: Conductor) -> None:
"name": "Alternate shipping address",
"city": "San Francisco",
"country": "United States",
"default_ship_to": True,
"is_default_address": True,
"line1": "548 Market St.",
"line2": "Suite 100",
"line3": "line3",
Expand Down Expand Up @@ -340,7 +340,7 @@ def test_method_update_with_all_params(self, client: Conductor) -> None:
"name": "Alternate shipping address",
"city": "San Francisco",
"country": "United States",
"default_ship_to": True,
"is_default_address": True,
"line1": "548 Market St.",
"line2": "Suite 100",
"line3": "line3",
Expand All @@ -354,7 +354,7 @@ def test_method_update_with_all_params(self, client: Conductor) -> None:
"name": "Alternate shipping address",
"city": "San Francisco",
"country": "United States",
"default_ship_to": True,
"is_default_address": True,
"line1": "548 Market St.",
"line2": "Suite 100",
"line3": "line3",
Expand All @@ -368,7 +368,7 @@ def test_method_update_with_all_params(self, client: Conductor) -> None:
"name": "Alternate shipping address",
"city": "San Francisco",
"country": "United States",
"default_ship_to": True,
"is_default_address": True,
"line1": "548 Market St.",
"line2": "Suite 100",
"line3": "line3",
Expand Down Expand Up @@ -658,7 +658,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncConductor)
"name": "Alternate shipping address",
"city": "San Francisco",
"country": "United States",
"default_ship_to": True,
"is_default_address": True,
"line1": "548 Market St.",
"line2": "Suite 100",
"line3": "line3",
Expand All @@ -672,7 +672,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncConductor)
"name": "Alternate shipping address",
"city": "San Francisco",
"country": "United States",
"default_ship_to": True,
"is_default_address": True,
"line1": "548 Market St.",
"line2": "Suite 100",
"line3": "line3",
Expand All @@ -686,7 +686,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncConductor)
"name": "Alternate shipping address",
"city": "San Francisco",
"country": "United States",
"default_ship_to": True,
"is_default_address": True,
"line1": "548 Market St.",
"line2": "Suite 100",
"line3": "line3",
Expand Down Expand Up @@ -953,7 +953,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncConductor)
"name": "Alternate shipping address",
"city": "San Francisco",
"country": "United States",
"default_ship_to": True,
"is_default_address": True,
"line1": "548 Market St.",
"line2": "Suite 100",
"line3": "line3",
Expand All @@ -967,7 +967,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncConductor)
"name": "Alternate shipping address",
"city": "San Francisco",
"country": "United States",
"default_ship_to": True,
"is_default_address": True,
"line1": "548 Market St.",
"line2": "Suite 100",
"line3": "line3",
Expand All @@ -981,7 +981,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncConductor)
"name": "Alternate shipping address",
"city": "San Francisco",
"country": "United States",
"default_ship_to": True,
"is_default_address": True,
"line1": "548 Market St.",
"line2": "Suite 100",
"line3": "line3",
Expand Down

0 comments on commit 45c98a0

Please sign in to comment.