Skip to content

iter_list_fulfillment_options async

iter_list_fulfillment_options(
    product_id: ProductId,
    *,
    config_overrides: Optional[AsyncMarketplaceDiscoveryClientConfig] = None,
    locale: Optional[Locale] = None,
    max_results: Optional[int] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[FulfillmentOption]
Source code in docs_src/capo_marketplace_discovery/_services/async_marketplace_discovery.py
async def iter_list_fulfillment_options(
    self,
    product_id: "capo_marketplace_discovery.types.product_id.ProductId",
    *,
    config_overrides: Optional[AsyncMarketplaceDiscoveryClientConfig] = None,
    locale: Optional["capo_marketplace_discovery.types.locale.Locale"] = None,
    max_results: Optional[int] = None,
    next_token: Optional[
        "capo_marketplace_discovery.types.next_token.NextToken"
    ] = None,
) -> "AsyncIterator[capo_marketplace_discovery.types.fulfillment_option.FulfillmentOption]":
    _token = next_token
    while True:
        _response = await self.list_fulfillment_options(
            product_id,
            config_overrides=config_overrides,
            locale=locale,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("fulfillment_options",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break