Skip to content

Commit

Permalink
refactor(api): Fix check model name (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Nov 5, 2024
1 parent e808673 commit d561a8b
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 58 deletions.
10 changes: 5 additions & 5 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ Methods:
Types:

```python
from conductor.types.qbd import QbdCheck
from conductor.types.qbd import Check
```

Methods:

- <code title="post /quickbooks-desktop/checks">client.qbd.checks.<a href="./src/conductor/resources/qbd/checks.py">create</a>(\*\*<a href="src/conductor/types/qbd/check_create_params.py">params</a>) -> <a href="./src/conductor/types/qbd/qbd_check.py">QbdCheck</a></code>
- <code title="get /quickbooks-desktop/checks/{id}">client.qbd.checks.<a href="./src/conductor/resources/qbd/checks.py">retrieve</a>(id) -> <a href="./src/conductor/types/qbd/qbd_check.py">QbdCheck</a></code>
- <code title="post /quickbooks-desktop/checks/{id}">client.qbd.checks.<a href="./src/conductor/resources/qbd/checks.py">update</a>(id, \*\*<a href="src/conductor/types/qbd/check_update_params.py">params</a>) -> <a href="./src/conductor/types/qbd/qbd_check.py">QbdCheck</a></code>
- <code title="get /quickbooks-desktop/checks">client.qbd.checks.<a href="./src/conductor/resources/qbd/checks.py">list</a>(\*\*<a href="src/conductor/types/qbd/check_list_params.py">params</a>) -> <a href="./src/conductor/types/qbd/qbd_check.py">SyncCursorPage[QbdCheck]</a></code>
- <code title="post /quickbooks-desktop/checks">client.qbd.checks.<a href="./src/conductor/resources/qbd/checks.py">create</a>(\*\*<a href="src/conductor/types/qbd/check_create_params.py">params</a>) -> <a href="./src/conductor/types/qbd/check.py">Check</a></code>
- <code title="get /quickbooks-desktop/checks/{id}">client.qbd.checks.<a href="./src/conductor/resources/qbd/checks.py">retrieve</a>(id) -> <a href="./src/conductor/types/qbd/check.py">Check</a></code>
- <code title="post /quickbooks-desktop/checks/{id}">client.qbd.checks.<a href="./src/conductor/resources/qbd/checks.py">update</a>(id, \*\*<a href="src/conductor/types/qbd/check_update_params.py">params</a>) -> <a href="./src/conductor/types/qbd/check.py">Check</a></code>
- <code title="get /quickbooks-desktop/checks">client.qbd.checks.<a href="./src/conductor/resources/qbd/checks.py">list</a>(\*\*<a href="src/conductor/types/qbd/check_list_params.py">params</a>) -> <a href="./src/conductor/types/qbd/check.py">SyncCursorPage[Check]</a></code>

## Classes

Expand Down
38 changes: 19 additions & 19 deletions src/conductor/resources/qbd/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from ...types.qbd import check_list_params, check_create_params, check_update_params
from ...pagination import SyncCursorPage, AsyncCursorPage
from ..._base_client import AsyncPaginator, make_request_options
from ...types.qbd.qbd_check import QbdCheck
from ...types.qbd.check import Check

__all__ = ["ChecksResource", "AsyncChecksResource"]

Expand Down Expand Up @@ -72,7 +72,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> QbdCheck:
) -> Check:
"""
Creates a check.
Expand Down Expand Up @@ -167,7 +167,7 @@ def create(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=QbdCheck,
cast_to=Check,
)

def retrieve(
Expand All @@ -181,7 +181,7 @@ def retrieve(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> QbdCheck:
) -> Check:
"""
Retrieves a check by ID.
Expand All @@ -207,7 +207,7 @@ def retrieve(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=QbdCheck,
cast_to=Check,
)

def update(
Expand Down Expand Up @@ -237,7 +237,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> QbdCheck:
) -> Check:
"""
Updates an existing check.
Expand Down Expand Up @@ -364,7 +364,7 @@ def update(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=QbdCheck,
cast_to=Check,
)

def list(
Expand Down Expand Up @@ -395,7 +395,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> SyncCursorPage[QbdCheck]:
) -> SyncCursorPage[Check]:
"""
Returns a list of checks.
Expand Down Expand Up @@ -486,7 +486,7 @@ def list(
extra_headers = {"Conductor-End-User-Id": conductor_end_user_id, **(extra_headers or {})}
return self._get_api_list(
"/quickbooks-desktop/checks",
page=SyncCursorPage[QbdCheck],
page=SyncCursorPage[Check],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down Expand Up @@ -516,7 +516,7 @@ def list(
check_list_params.CheckListParams,
),
),
model=QbdCheck,
model=Check,
)


Expand Down Expand Up @@ -564,7 +564,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> QbdCheck:
) -> Check:
"""
Creates a check.
Expand Down Expand Up @@ -659,7 +659,7 @@ async def create(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=QbdCheck,
cast_to=Check,
)

async def retrieve(
Expand All @@ -673,7 +673,7 @@ async def retrieve(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> QbdCheck:
) -> Check:
"""
Retrieves a check by ID.
Expand All @@ -699,7 +699,7 @@ async def retrieve(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=QbdCheck,
cast_to=Check,
)

async def update(
Expand Down Expand Up @@ -729,7 +729,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> QbdCheck:
) -> Check:
"""
Updates an existing check.
Expand Down Expand Up @@ -856,7 +856,7 @@ async def update(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=QbdCheck,
cast_to=Check,
)

def list(
Expand Down Expand Up @@ -887,7 +887,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> AsyncPaginator[QbdCheck, AsyncCursorPage[QbdCheck]]:
) -> AsyncPaginator[Check, AsyncCursorPage[Check]]:
"""
Returns a list of checks.
Expand Down Expand Up @@ -978,7 +978,7 @@ def list(
extra_headers = {"Conductor-End-User-Id": conductor_end_user_id, **(extra_headers or {})}
return self._get_api_list(
"/quickbooks-desktop/checks",
page=AsyncCursorPage[QbdCheck],
page=AsyncCursorPage[Check],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down Expand Up @@ -1008,7 +1008,7 @@ def list(
check_list_params.CheckListParams,
),
),
model=QbdCheck,
model=Check,
)


Expand Down
2 changes: 1 addition & 1 deletion src/conductor/types/qbd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
from __future__ import annotations

from .bill import Bill as Bill
from .check import Check as Check
from .class_ import Class as Class
from .vendor import Vendor as Vendor
from .account import Account as Account
from .invoice import Invoice as Invoice
from .customer import Customer as Customer
from .transfer import Transfer as Transfer
from .qbd_check import QbdCheck as QbdCheck
from .service_item import ServiceItem as ServiceItem
from .standard_term import StandardTerm as StandardTerm
from .inventory_item import InventoryItem as InventoryItem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from ..._models import BaseModel

__all__ = [
"QbdCheck",
"Check",
"Account",
"Address",
"Currency",
Expand Down Expand Up @@ -1172,7 +1172,7 @@ class SalesTaxCode(BaseModel):
"""


class QbdCheck(BaseModel):
class Check(BaseModel):
id: str
"""The unique identifier assigned by QuickBooks to this check.
Expand Down
Loading

0 comments on commit d561a8b

Please sign in to comment.