Update api spec (#432)
* YOYO NEW API SPEC! * I have generated the latest API! --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
04efe52feb
commit
2fd4d315db
@ -9,6 +9,7 @@ from ...types import Response
|
||||
|
||||
|
||||
def _get_kwargs(
|
||||
include_total_due: bool,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Dict[str, Any]:
|
||||
@ -16,6 +17,12 @@ def _get_kwargs(
|
||||
client.base_url,
|
||||
) # noqa: E501
|
||||
|
||||
if include_total_due is not None:
|
||||
if "?" in url:
|
||||
url = url + "&include_total_due=" + str(include_total_due).lower()
|
||||
else:
|
||||
url = url + "?include_total_due=" + str(include_total_due).lower()
|
||||
|
||||
headers: Dict[str, Any] = client.get_headers()
|
||||
cookies: Dict[str, Any] = client.get_cookies()
|
||||
|
||||
@ -54,10 +61,12 @@ def _build_response(
|
||||
|
||||
|
||||
def sync_detailed(
|
||||
include_total_due: bool,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Response[Optional[Union[CustomerBalance, Error]]]:
|
||||
kwargs = _get_kwargs(
|
||||
include_total_due=include_total_due,
|
||||
client=client,
|
||||
)
|
||||
|
||||
@ -70,21 +79,25 @@ def sync_detailed(
|
||||
|
||||
|
||||
def sync(
|
||||
include_total_due: bool,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Optional[Union[CustomerBalance, Error]]:
|
||||
"""This endpoint requires authentication by any Zoo user. It gets the balance information for the authenticated user.""" # noqa: E501
|
||||
|
||||
return sync_detailed(
|
||||
include_total_due=include_total_due,
|
||||
client=client,
|
||||
).parsed
|
||||
|
||||
|
||||
async def asyncio_detailed(
|
||||
include_total_due: bool,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Response[Optional[Union[CustomerBalance, Error]]]:
|
||||
kwargs = _get_kwargs(
|
||||
include_total_due=include_total_due,
|
||||
client=client,
|
||||
)
|
||||
|
||||
@ -95,6 +108,7 @@ async def asyncio_detailed(
|
||||
|
||||
|
||||
async def asyncio(
|
||||
include_total_due: bool,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Optional[Union[CustomerBalance, Error]]:
|
||||
@ -102,6 +116,7 @@ async def asyncio(
|
||||
|
||||
return (
|
||||
await asyncio_detailed(
|
||||
include_total_due=include_total_due,
|
||||
client=client,
|
||||
)
|
||||
).parsed
|
||||
|
Reference in New Issue
Block a user