Skip to content

katana_public_api_client.api.bom_row.get_all_bom_rows

katana_public_api_client.api.bom_row.get_all_bom_rows

Classes

Functions

asyncio(*, client, limit=50, page=1, id=UNSET, product_item_id=UNSET, product_variant_id=UNSET, ingredient_variant_id=UNSET, created_at_min=UNSET, created_at_max=UNSET, updated_at_min=UNSET, updated_at_max=UNSET) async

List all BOM rows

Returns a list of BOM (Bill of Materials) rows you've previously created. Product variant BOM consists of ingredient variants and their quantities.

Parameters:

  • limit (Union[Unset, int], default: 50 ) –

    Default: 50.

  • page (Union[Unset, int], default: 1 ) –

    Default: 1.

  • id (Union[Unset, str], default: UNSET ) –
  • product_item_id (Union[Unset, int], default: UNSET ) –
  • product_variant_id (Union[Unset, int], default: UNSET ) –
  • ingredient_variant_id (Union[Unset, int], default: UNSET ) –
  • created_at_min (Union[Unset, datetime], default: UNSET ) –
  • created_at_max (Union[Unset, datetime], default: UNSET ) –
  • updated_at_min (Union[Unset, datetime], default: UNSET ) –
  • updated_at_max (Union[Unset, datetime], default: UNSET ) –

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/bom_row/get_all_bom_rows.py
async def asyncio(
    *,
    client: AuthenticatedClient | Client,
    limit: Unset | int = 50,
    page: Unset | int = 1,
    id: Unset | str = UNSET,
    product_item_id: Unset | int = UNSET,
    product_variant_id: Unset | int = UNSET,
    ingredient_variant_id: Unset | int = UNSET,
    created_at_min: Unset | datetime.datetime = UNSET,
    created_at_max: Unset | datetime.datetime = UNSET,
    updated_at_min: Unset | datetime.datetime = UNSET,
    updated_at_max: Unset | datetime.datetime = UNSET,
) -> BomRowListResponse | ErrorResponse | None:
    """List all BOM rows

     Returns a list of BOM (Bill of Materials) rows you've previously created. Product variant BOM
    consists of
    ingredient variants and their quantities.

    Args:
        limit (Union[Unset, int]):  Default: 50.
        page (Union[Unset, int]):  Default: 1.
        id (Union[Unset, str]):
        product_item_id (Union[Unset, int]):
        product_variant_id (Union[Unset, int]):
        ingredient_variant_id (Union[Unset, int]):
        created_at_min (Union[Unset, datetime.datetime]):
        created_at_max (Union[Unset, datetime.datetime]):
        updated_at_min (Union[Unset, datetime.datetime]):
        updated_at_max (Union[Unset, datetime.datetime]):

    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:
        Union[BomRowListResponse, ErrorResponse]
    """

    return (
        await asyncio_detailed(
            client=client,
            limit=limit,
            page=page,
            id=id,
            product_item_id=product_item_id,
            product_variant_id=product_variant_id,
            ingredient_variant_id=ingredient_variant_id,
            created_at_min=created_at_min,
            created_at_max=created_at_max,
            updated_at_min=updated_at_min,
            updated_at_max=updated_at_max,
        )
    ).parsed

asyncio_detailed(*, client, limit=50, page=1, id=UNSET, product_item_id=UNSET, product_variant_id=UNSET, ingredient_variant_id=UNSET, created_at_min=UNSET, created_at_max=UNSET, updated_at_min=UNSET, updated_at_max=UNSET) async

List all BOM rows

Returns a list of BOM (Bill of Materials) rows you've previously created. Product variant BOM consists of ingredient variants and their quantities.

Parameters:

  • limit (Union[Unset, int], default: 50 ) –

    Default: 50.

  • page (Union[Unset, int], default: 1 ) –

    Default: 1.

  • id (Union[Unset, str], default: UNSET ) –
  • product_item_id (Union[Unset, int], default: UNSET ) –
  • product_variant_id (Union[Unset, int], default: UNSET ) –
  • ingredient_variant_id (Union[Unset, int], default: UNSET ) –
  • created_at_min (Union[Unset, datetime], default: UNSET ) –
  • created_at_max (Union[Unset, datetime], default: UNSET ) –
  • updated_at_min (Union[Unset, datetime], default: UNSET ) –
  • updated_at_max (Union[Unset, datetime], default: UNSET ) –

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/bom_row/get_all_bom_rows.py
async def asyncio_detailed(
    *,
    client: AuthenticatedClient | Client,
    limit: Unset | int = 50,
    page: Unset | int = 1,
    id: Unset | str = UNSET,
    product_item_id: Unset | int = UNSET,
    product_variant_id: Unset | int = UNSET,
    ingredient_variant_id: Unset | int = UNSET,
    created_at_min: Unset | datetime.datetime = UNSET,
    created_at_max: Unset | datetime.datetime = UNSET,
    updated_at_min: Unset | datetime.datetime = UNSET,
    updated_at_max: Unset | datetime.datetime = UNSET,
) -> Response[BomRowListResponse | ErrorResponse]:
    """List all BOM rows

     Returns a list of BOM (Bill of Materials) rows you've previously created. Product variant BOM
    consists of
    ingredient variants and their quantities.

    Args:
        limit (Union[Unset, int]):  Default: 50.
        page (Union[Unset, int]):  Default: 1.
        id (Union[Unset, str]):
        product_item_id (Union[Unset, int]):
        product_variant_id (Union[Unset, int]):
        ingredient_variant_id (Union[Unset, int]):
        created_at_min (Union[Unset, datetime.datetime]):
        created_at_max (Union[Unset, datetime.datetime]):
        updated_at_min (Union[Unset, datetime.datetime]):
        updated_at_max (Union[Unset, datetime.datetime]):

    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[Union[BomRowListResponse, ErrorResponse]]
    """

    kwargs = _get_kwargs(
        limit=limit,
        page=page,
        id=id,
        product_item_id=product_item_id,
        product_variant_id=product_variant_id,
        ingredient_variant_id=ingredient_variant_id,
        created_at_min=created_at_min,
        created_at_max=created_at_max,
        updated_at_min=updated_at_min,
        updated_at_max=updated_at_max,
    )

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

    return _build_response(client=client, response=response)

sync(*, client, limit=50, page=1, id=UNSET, product_item_id=UNSET, product_variant_id=UNSET, ingredient_variant_id=UNSET, created_at_min=UNSET, created_at_max=UNSET, updated_at_min=UNSET, updated_at_max=UNSET)

List all BOM rows

Returns a list of BOM (Bill of Materials) rows you've previously created. Product variant BOM consists of ingredient variants and their quantities.

Parameters:

  • limit (Union[Unset, int], default: 50 ) –

    Default: 50.

  • page (Union[Unset, int], default: 1 ) –

    Default: 1.

  • id (Union[Unset, str], default: UNSET ) –
  • product_item_id (Union[Unset, int], default: UNSET ) –
  • product_variant_id (Union[Unset, int], default: UNSET ) –
  • ingredient_variant_id (Union[Unset, int], default: UNSET ) –
  • created_at_min (Union[Unset, datetime], default: UNSET ) –
  • created_at_max (Union[Unset, datetime], default: UNSET ) –
  • updated_at_min (Union[Unset, datetime], default: UNSET ) –
  • updated_at_max (Union[Unset, datetime], default: UNSET ) –

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/bom_row/get_all_bom_rows.py
def sync(
    *,
    client: AuthenticatedClient | Client,
    limit: Unset | int = 50,
    page: Unset | int = 1,
    id: Unset | str = UNSET,
    product_item_id: Unset | int = UNSET,
    product_variant_id: Unset | int = UNSET,
    ingredient_variant_id: Unset | int = UNSET,
    created_at_min: Unset | datetime.datetime = UNSET,
    created_at_max: Unset | datetime.datetime = UNSET,
    updated_at_min: Unset | datetime.datetime = UNSET,
    updated_at_max: Unset | datetime.datetime = UNSET,
) -> BomRowListResponse | ErrorResponse | None:
    """List all BOM rows

     Returns a list of BOM (Bill of Materials) rows you've previously created. Product variant BOM
    consists of
    ingredient variants and their quantities.

    Args:
        limit (Union[Unset, int]):  Default: 50.
        page (Union[Unset, int]):  Default: 1.
        id (Union[Unset, str]):
        product_item_id (Union[Unset, int]):
        product_variant_id (Union[Unset, int]):
        ingredient_variant_id (Union[Unset, int]):
        created_at_min (Union[Unset, datetime.datetime]):
        created_at_max (Union[Unset, datetime.datetime]):
        updated_at_min (Union[Unset, datetime.datetime]):
        updated_at_max (Union[Unset, datetime.datetime]):

    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:
        Union[BomRowListResponse, ErrorResponse]
    """

    return sync_detailed(
        client=client,
        limit=limit,
        page=page,
        id=id,
        product_item_id=product_item_id,
        product_variant_id=product_variant_id,
        ingredient_variant_id=ingredient_variant_id,
        created_at_min=created_at_min,
        created_at_max=created_at_max,
        updated_at_min=updated_at_min,
        updated_at_max=updated_at_max,
    ).parsed

sync_detailed(*, client, limit=50, page=1, id=UNSET, product_item_id=UNSET, product_variant_id=UNSET, ingredient_variant_id=UNSET, created_at_min=UNSET, created_at_max=UNSET, updated_at_min=UNSET, updated_at_max=UNSET)

List all BOM rows

Returns a list of BOM (Bill of Materials) rows you've previously created. Product variant BOM consists of ingredient variants and their quantities.

Parameters:

  • limit (Union[Unset, int], default: 50 ) –

    Default: 50.

  • page (Union[Unset, int], default: 1 ) –

    Default: 1.

  • id (Union[Unset, str], default: UNSET ) –
  • product_item_id (Union[Unset, int], default: UNSET ) –
  • product_variant_id (Union[Unset, int], default: UNSET ) –
  • ingredient_variant_id (Union[Unset, int], default: UNSET ) –
  • created_at_min (Union[Unset, datetime], default: UNSET ) –
  • created_at_max (Union[Unset, datetime], default: UNSET ) –
  • updated_at_min (Union[Unset, datetime], default: UNSET ) –
  • updated_at_max (Union[Unset, datetime], default: UNSET ) –

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/bom_row/get_all_bom_rows.py
def sync_detailed(
    *,
    client: AuthenticatedClient | Client,
    limit: Unset | int = 50,
    page: Unset | int = 1,
    id: Unset | str = UNSET,
    product_item_id: Unset | int = UNSET,
    product_variant_id: Unset | int = UNSET,
    ingredient_variant_id: Unset | int = UNSET,
    created_at_min: Unset | datetime.datetime = UNSET,
    created_at_max: Unset | datetime.datetime = UNSET,
    updated_at_min: Unset | datetime.datetime = UNSET,
    updated_at_max: Unset | datetime.datetime = UNSET,
) -> Response[BomRowListResponse | ErrorResponse]:
    """List all BOM rows

     Returns a list of BOM (Bill of Materials) rows you've previously created. Product variant BOM
    consists of
    ingredient variants and their quantities.

    Args:
        limit (Union[Unset, int]):  Default: 50.
        page (Union[Unset, int]):  Default: 1.
        id (Union[Unset, str]):
        product_item_id (Union[Unset, int]):
        product_variant_id (Union[Unset, int]):
        ingredient_variant_id (Union[Unset, int]):
        created_at_min (Union[Unset, datetime.datetime]):
        created_at_max (Union[Unset, datetime.datetime]):
        updated_at_min (Union[Unset, datetime.datetime]):
        updated_at_max (Union[Unset, datetime.datetime]):

    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[Union[BomRowListResponse, ErrorResponse]]
    """

    kwargs = _get_kwargs(
        limit=limit,
        page=page,
        id=id,
        product_item_id=product_item_id,
        product_variant_id=product_variant_id,
        ingredient_variant_id=ingredient_variant_id,
        created_at_min=created_at_min,
        created_at_max=created_at_max,
        updated_at_min=updated_at_min,
        updated_at_max=updated_at_max,
    )

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

    return _build_response(client=client, response=response)