Skip to content

katana_public_api_client.api.bin_transfer.get_all_bin_transfers

katana_public_api_client.api.bin_transfer.get_all_bin_transfers

Classes

Functions

asyncio(*, client, limit=UNSET, page=UNSET, ids=UNSET, include_deleted=UNSET, bin_transfer_number=UNSET, location_id=UNSET, status=UNSET) async

List all bin transfers

Returns a list of bin transfers.

Parameters:

  • limit (int | Unset, default: UNSET ) –

    Default: 50.

  • page (int | Unset, default: UNSET ) –

    Default: 1.

  • ids (list[int] | Unset, default: UNSET ) –
  • include_deleted (bool | Unset, default: UNSET ) –
  • bin_transfer_number (str | Unset, default: UNSET ) –
  • location_id (int | Unset, default: UNSET ) –
  • status (BinTransferStatus | Unset, default: UNSET ) –

    Lifecycle status of a bin transfer. New transfers start in CREATED; status changes are applied through the dedicated status endpoint.

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/bin_transfer/get_all_bin_transfers.py
async def asyncio(
    *,
    client: AuthenticatedClient | Client,
    limit: int | Unset = UNSET,
    page: int | Unset = UNSET,
    ids: list[int] | Unset = UNSET,
    include_deleted: bool | Unset = UNSET,
    bin_transfer_number: str | Unset = UNSET,
    location_id: int | Unset = UNSET,
    status: BinTransferStatus | Unset = UNSET,
) -> BinTransferListResponse | ErrorResponse | None:
    """List all bin transfers

     Returns a list of bin transfers.

    Args:
        limit (int | Unset):  Default: 50.
        page (int | Unset):  Default: 1.
        ids (list[int] | Unset):
        include_deleted (bool | Unset):
        bin_transfer_number (str | Unset):
        location_id (int | Unset):
        status (BinTransferStatus | Unset): Lifecycle status of a bin transfer. New transfers
            start in `CREATED`; status
            changes are applied through the dedicated status endpoint.

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        BinTransferListResponse | ErrorResponse
    """

    return (
        await asyncio_detailed(
            client=client,
            limit=limit,
            page=page,
            ids=ids,
            include_deleted=include_deleted,
            bin_transfer_number=bin_transfer_number,
            location_id=location_id,
            status=status,
        )
    ).parsed

asyncio_detailed(*, client, limit=UNSET, page=UNSET, ids=UNSET, include_deleted=UNSET, bin_transfer_number=UNSET, location_id=UNSET, status=UNSET) async

List all bin transfers

Returns a list of bin transfers.

Parameters:

  • limit (int | Unset, default: UNSET ) –

    Default: 50.

  • page (int | Unset, default: UNSET ) –

    Default: 1.

  • ids (list[int] | Unset, default: UNSET ) –
  • include_deleted (bool | Unset, default: UNSET ) –
  • bin_transfer_number (str | Unset, default: UNSET ) –
  • location_id (int | Unset, default: UNSET ) –
  • status (BinTransferStatus | Unset, default: UNSET ) –

    Lifecycle status of a bin transfer. New transfers start in CREATED; status changes are applied through the dedicated status endpoint.

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/bin_transfer/get_all_bin_transfers.py
async def asyncio_detailed(
    *,
    client: AuthenticatedClient | Client,
    limit: int | Unset = UNSET,
    page: int | Unset = UNSET,
    ids: list[int] | Unset = UNSET,
    include_deleted: bool | Unset = UNSET,
    bin_transfer_number: str | Unset = UNSET,
    location_id: int | Unset = UNSET,
    status: BinTransferStatus | Unset = UNSET,
) -> Response[BinTransferListResponse | ErrorResponse]:
    """List all bin transfers

     Returns a list of bin transfers.

    Args:
        limit (int | Unset):  Default: 50.
        page (int | Unset):  Default: 1.
        ids (list[int] | Unset):
        include_deleted (bool | Unset):
        bin_transfer_number (str | Unset):
        location_id (int | Unset):
        status (BinTransferStatus | Unset): Lifecycle status of a bin transfer. New transfers
            start in `CREATED`; status
            changes are applied through the dedicated status endpoint.

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Response[BinTransferListResponse | ErrorResponse]
    """

    kwargs = _get_kwargs(
        limit=limit,
        page=page,
        ids=ids,
        include_deleted=include_deleted,
        bin_transfer_number=bin_transfer_number,
        location_id=location_id,
        status=status,
    )

    response = await client.get_async_httpx_client().request(**kwargs)

    return _build_response(client=client, response=response)

sync(*, client, limit=UNSET, page=UNSET, ids=UNSET, include_deleted=UNSET, bin_transfer_number=UNSET, location_id=UNSET, status=UNSET)

List all bin transfers

Returns a list of bin transfers.

Parameters:

  • limit (int | Unset, default: UNSET ) –

    Default: 50.

  • page (int | Unset, default: UNSET ) –

    Default: 1.

  • ids (list[int] | Unset, default: UNSET ) –
  • include_deleted (bool | Unset, default: UNSET ) –
  • bin_transfer_number (str | Unset, default: UNSET ) –
  • location_id (int | Unset, default: UNSET ) –
  • status (BinTransferStatus | Unset, default: UNSET ) –

    Lifecycle status of a bin transfer. New transfers start in CREATED; status changes are applied through the dedicated status endpoint.

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/bin_transfer/get_all_bin_transfers.py
def sync(
    *,
    client: AuthenticatedClient | Client,
    limit: int | Unset = UNSET,
    page: int | Unset = UNSET,
    ids: list[int] | Unset = UNSET,
    include_deleted: bool | Unset = UNSET,
    bin_transfer_number: str | Unset = UNSET,
    location_id: int | Unset = UNSET,
    status: BinTransferStatus | Unset = UNSET,
) -> BinTransferListResponse | ErrorResponse | None:
    """List all bin transfers

     Returns a list of bin transfers.

    Args:
        limit (int | Unset):  Default: 50.
        page (int | Unset):  Default: 1.
        ids (list[int] | Unset):
        include_deleted (bool | Unset):
        bin_transfer_number (str | Unset):
        location_id (int | Unset):
        status (BinTransferStatus | Unset): Lifecycle status of a bin transfer. New transfers
            start in `CREATED`; status
            changes are applied through the dedicated status endpoint.

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        BinTransferListResponse | ErrorResponse
    """

    return sync_detailed(
        client=client,
        limit=limit,
        page=page,
        ids=ids,
        include_deleted=include_deleted,
        bin_transfer_number=bin_transfer_number,
        location_id=location_id,
        status=status,
    ).parsed

sync_detailed(*, client, limit=UNSET, page=UNSET, ids=UNSET, include_deleted=UNSET, bin_transfer_number=UNSET, location_id=UNSET, status=UNSET)

List all bin transfers

Returns a list of bin transfers.

Parameters:

  • limit (int | Unset, default: UNSET ) –

    Default: 50.

  • page (int | Unset, default: UNSET ) –

    Default: 1.

  • ids (list[int] | Unset, default: UNSET ) –
  • include_deleted (bool | Unset, default: UNSET ) –
  • bin_transfer_number (str | Unset, default: UNSET ) –
  • location_id (int | Unset, default: UNSET ) –
  • status (BinTransferStatus | Unset, default: UNSET ) –

    Lifecycle status of a bin transfer. New transfers start in CREATED; status changes are applied through the dedicated status endpoint.

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/bin_transfer/get_all_bin_transfers.py
def sync_detailed(
    *,
    client: AuthenticatedClient | Client,
    limit: int | Unset = UNSET,
    page: int | Unset = UNSET,
    ids: list[int] | Unset = UNSET,
    include_deleted: bool | Unset = UNSET,
    bin_transfer_number: str | Unset = UNSET,
    location_id: int | Unset = UNSET,
    status: BinTransferStatus | Unset = UNSET,
) -> Response[BinTransferListResponse | ErrorResponse]:
    """List all bin transfers

     Returns a list of bin transfers.

    Args:
        limit (int | Unset):  Default: 50.
        page (int | Unset):  Default: 1.
        ids (list[int] | Unset):
        include_deleted (bool | Unset):
        bin_transfer_number (str | Unset):
        location_id (int | Unset):
        status (BinTransferStatus | Unset): Lifecycle status of a bin transfer. New transfers
            start in `CREATED`; status
            changes are applied through the dedicated status endpoint.

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Response[BinTransferListResponse | ErrorResponse]
    """

    kwargs = _get_kwargs(
        limit=limit,
        page=page,
        ids=ids,
        include_deleted=include_deleted,
        bin_transfer_number=bin_transfer_number,
        location_id=location_id,
        status=status,
    )

    response = client.get_httpx_client().request(
        **kwargs,
    )

    return _build_response(client=client, response=response)