def iter_get_offer_terms(
self,
offer_id: "capo_marketplace_discovery.types.offer_id.OfferId",
*,
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.offer_term.OfferTerm]":
_token = next_token
while True:
_response = self.get_offer_terms(
offer_id,
config_overrides=config_overrides,
locale=locale,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("offer_terms",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break