def iter_list_fulfillment_options(
self,
product_id: "capo_marketplace_discovery.types.product_id.ProductId",
*,
config_overrides: Optional[MarketplaceDiscoveryClientConfig] = 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,
) -> "Iterator[capo_marketplace_discovery.types.fulfillment_option.FulfillmentOption]":
_token = next_token
while True:
_response = 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