|
14 | 14 | brand_screenshot_params, |
15 | 15 | brand_styleguide_params, |
16 | 16 | brand_retrieve_naics_params, |
| 17 | + brand_retrieve_by_isin_params, |
17 | 18 | brand_retrieve_by_name_params, |
18 | 19 | brand_retrieve_by_email_params, |
19 | 20 | brand_retrieve_by_ticker_params, |
|
37 | 38 | from ..types.brand_screenshot_response import BrandScreenshotResponse |
38 | 39 | from ..types.brand_styleguide_response import BrandStyleguideResponse |
39 | 40 | from ..types.brand_retrieve_naics_response import BrandRetrieveNaicsResponse |
| 41 | +from ..types.brand_retrieve_by_isin_response import BrandRetrieveByIsinResponse |
40 | 42 | from ..types.brand_retrieve_by_name_response import BrandRetrieveByNameResponse |
41 | 43 | from ..types.brand_retrieve_by_email_response import BrandRetrieveByEmailResponse |
42 | 44 | from ..types.brand_retrieve_by_ticker_response import BrandRetrieveByTickerResponse |
@@ -515,6 +517,122 @@ def retrieve_by_email( |
515 | 517 | cast_to=BrandRetrieveByEmailResponse, |
516 | 518 | ) |
517 | 519 |
|
| 520 | + def retrieve_by_isin( |
| 521 | + self, |
| 522 | + *, |
| 523 | + isin: str, |
| 524 | + force_language: Literal[ |
| 525 | + "albanian", |
| 526 | + "arabic", |
| 527 | + "azeri", |
| 528 | + "bengali", |
| 529 | + "bulgarian", |
| 530 | + "cebuano", |
| 531 | + "croatian", |
| 532 | + "czech", |
| 533 | + "danish", |
| 534 | + "dutch", |
| 535 | + "english", |
| 536 | + "estonian", |
| 537 | + "farsi", |
| 538 | + "finnish", |
| 539 | + "french", |
| 540 | + "german", |
| 541 | + "hausa", |
| 542 | + "hawaiian", |
| 543 | + "hindi", |
| 544 | + "hungarian", |
| 545 | + "icelandic", |
| 546 | + "indonesian", |
| 547 | + "italian", |
| 548 | + "kazakh", |
| 549 | + "kyrgyz", |
| 550 | + "latin", |
| 551 | + "latvian", |
| 552 | + "lithuanian", |
| 553 | + "macedonian", |
| 554 | + "mongolian", |
| 555 | + "nepali", |
| 556 | + "norwegian", |
| 557 | + "pashto", |
| 558 | + "pidgin", |
| 559 | + "polish", |
| 560 | + "portuguese", |
| 561 | + "romanian", |
| 562 | + "russian", |
| 563 | + "serbian", |
| 564 | + "slovak", |
| 565 | + "slovene", |
| 566 | + "somali", |
| 567 | + "spanish", |
| 568 | + "swahili", |
| 569 | + "swedish", |
| 570 | + "tagalog", |
| 571 | + "turkish", |
| 572 | + "ukrainian", |
| 573 | + "urdu", |
| 574 | + "uzbek", |
| 575 | + "vietnamese", |
| 576 | + "welsh", |
| 577 | + ] |
| 578 | + | Omit = omit, |
| 579 | + max_speed: bool | Omit = omit, |
| 580 | + timeout_ms: int | Omit = omit, |
| 581 | + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
| 582 | + # The extra values given here take precedence over values defined on the client or passed to this method. |
| 583 | + extra_headers: Headers | None = None, |
| 584 | + extra_query: Query | None = None, |
| 585 | + extra_body: Body | None = None, |
| 586 | + timeout: float | httpx.Timeout | None | NotGiven = not_given, |
| 587 | + ) -> BrandRetrieveByIsinResponse: |
| 588 | + """ |
| 589 | + Retrieve brand information using an ISIN (International Securities |
| 590 | + Identification Number). This endpoint looks up the company associated with the |
| 591 | + ISIN and returns its brand data. |
| 592 | +
|
| 593 | + Args: |
| 594 | + isin: ISIN (International Securities Identification Number) to retrieve brand data for |
| 595 | + (e.g., 'AU000000IMD5', 'US0378331005'). Must be exactly 12 characters: 2 letters |
| 596 | + followed by 9 alphanumeric characters and ending with a digit. |
| 597 | +
|
| 598 | + force_language: Optional parameter to force the language of the retrieved brand data. |
| 599 | +
|
| 600 | + max_speed: Optional parameter to optimize the API call for maximum speed. When set to true, |
| 601 | + the API will skip time-consuming operations for faster response at the cost of |
| 602 | + less comprehensive data. |
| 603 | +
|
| 604 | + timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer |
| 605 | + than this value, it will be aborted with a 408 status code. Maximum allowed |
| 606 | + value is 300000ms (5 minutes). |
| 607 | +
|
| 608 | + extra_headers: Send extra headers |
| 609 | +
|
| 610 | + extra_query: Add additional query parameters to the request |
| 611 | +
|
| 612 | + extra_body: Add additional JSON properties to the request |
| 613 | +
|
| 614 | + timeout: Override the client-level default timeout for this request, in seconds |
| 615 | + """ |
| 616 | + return self._get( |
| 617 | + "/brand/retrieve-by-isin", |
| 618 | + options=make_request_options( |
| 619 | + extra_headers=extra_headers, |
| 620 | + extra_query=extra_query, |
| 621 | + extra_body=extra_body, |
| 622 | + timeout=timeout, |
| 623 | + query=maybe_transform( |
| 624 | + { |
| 625 | + "isin": isin, |
| 626 | + "force_language": force_language, |
| 627 | + "max_speed": max_speed, |
| 628 | + "timeout_ms": timeout_ms, |
| 629 | + }, |
| 630 | + brand_retrieve_by_isin_params.BrandRetrieveByIsinParams, |
| 631 | + ), |
| 632 | + ), |
| 633 | + cast_to=BrandRetrieveByIsinResponse, |
| 634 | + ) |
| 635 | + |
518 | 636 | def retrieve_by_name( |
519 | 637 | self, |
520 | 638 | *, |
@@ -1517,6 +1635,122 @@ async def retrieve_by_email( |
1517 | 1635 | cast_to=BrandRetrieveByEmailResponse, |
1518 | 1636 | ) |
1519 | 1637 |
|
| 1638 | + async def retrieve_by_isin( |
| 1639 | + self, |
| 1640 | + *, |
| 1641 | + isin: str, |
| 1642 | + force_language: Literal[ |
| 1643 | + "albanian", |
| 1644 | + "arabic", |
| 1645 | + "azeri", |
| 1646 | + "bengali", |
| 1647 | + "bulgarian", |
| 1648 | + "cebuano", |
| 1649 | + "croatian", |
| 1650 | + "czech", |
| 1651 | + "danish", |
| 1652 | + "dutch", |
| 1653 | + "english", |
| 1654 | + "estonian", |
| 1655 | + "farsi", |
| 1656 | + "finnish", |
| 1657 | + "french", |
| 1658 | + "german", |
| 1659 | + "hausa", |
| 1660 | + "hawaiian", |
| 1661 | + "hindi", |
| 1662 | + "hungarian", |
| 1663 | + "icelandic", |
| 1664 | + "indonesian", |
| 1665 | + "italian", |
| 1666 | + "kazakh", |
| 1667 | + "kyrgyz", |
| 1668 | + "latin", |
| 1669 | + "latvian", |
| 1670 | + "lithuanian", |
| 1671 | + "macedonian", |
| 1672 | + "mongolian", |
| 1673 | + "nepali", |
| 1674 | + "norwegian", |
| 1675 | + "pashto", |
| 1676 | + "pidgin", |
| 1677 | + "polish", |
| 1678 | + "portuguese", |
| 1679 | + "romanian", |
| 1680 | + "russian", |
| 1681 | + "serbian", |
| 1682 | + "slovak", |
| 1683 | + "slovene", |
| 1684 | + "somali", |
| 1685 | + "spanish", |
| 1686 | + "swahili", |
| 1687 | + "swedish", |
| 1688 | + "tagalog", |
| 1689 | + "turkish", |
| 1690 | + "ukrainian", |
| 1691 | + "urdu", |
| 1692 | + "uzbek", |
| 1693 | + "vietnamese", |
| 1694 | + "welsh", |
| 1695 | + ] |
| 1696 | + | Omit = omit, |
| 1697 | + max_speed: bool | Omit = omit, |
| 1698 | + timeout_ms: int | Omit = omit, |
| 1699 | + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
| 1700 | + # The extra values given here take precedence over values defined on the client or passed to this method. |
| 1701 | + extra_headers: Headers | None = None, |
| 1702 | + extra_query: Query | None = None, |
| 1703 | + extra_body: Body | None = None, |
| 1704 | + timeout: float | httpx.Timeout | None | NotGiven = not_given, |
| 1705 | + ) -> BrandRetrieveByIsinResponse: |
| 1706 | + """ |
| 1707 | + Retrieve brand information using an ISIN (International Securities |
| 1708 | + Identification Number). This endpoint looks up the company associated with the |
| 1709 | + ISIN and returns its brand data. |
| 1710 | +
|
| 1711 | + Args: |
| 1712 | + isin: ISIN (International Securities Identification Number) to retrieve brand data for |
| 1713 | + (e.g., 'AU000000IMD5', 'US0378331005'). Must be exactly 12 characters: 2 letters |
| 1714 | + followed by 9 alphanumeric characters and ending with a digit. |
| 1715 | +
|
| 1716 | + force_language: Optional parameter to force the language of the retrieved brand data. |
| 1717 | +
|
| 1718 | + max_speed: Optional parameter to optimize the API call for maximum speed. When set to true, |
| 1719 | + the API will skip time-consuming operations for faster response at the cost of |
| 1720 | + less comprehensive data. |
| 1721 | +
|
| 1722 | + timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer |
| 1723 | + than this value, it will be aborted with a 408 status code. Maximum allowed |
| 1724 | + value is 300000ms (5 minutes). |
| 1725 | +
|
| 1726 | + extra_headers: Send extra headers |
| 1727 | +
|
| 1728 | + extra_query: Add additional query parameters to the request |
| 1729 | +
|
| 1730 | + extra_body: Add additional JSON properties to the request |
| 1731 | +
|
| 1732 | + timeout: Override the client-level default timeout for this request, in seconds |
| 1733 | + """ |
| 1734 | + return await self._get( |
| 1735 | + "/brand/retrieve-by-isin", |
| 1736 | + options=make_request_options( |
| 1737 | + extra_headers=extra_headers, |
| 1738 | + extra_query=extra_query, |
| 1739 | + extra_body=extra_body, |
| 1740 | + timeout=timeout, |
| 1741 | + query=await async_maybe_transform( |
| 1742 | + { |
| 1743 | + "isin": isin, |
| 1744 | + "force_language": force_language, |
| 1745 | + "max_speed": max_speed, |
| 1746 | + "timeout_ms": timeout_ms, |
| 1747 | + }, |
| 1748 | + brand_retrieve_by_isin_params.BrandRetrieveByIsinParams, |
| 1749 | + ), |
| 1750 | + ), |
| 1751 | + cast_to=BrandRetrieveByIsinResponse, |
| 1752 | + ) |
| 1753 | + |
1520 | 1754 | async def retrieve_by_name( |
1521 | 1755 | self, |
1522 | 1756 | *, |
@@ -2069,6 +2303,9 @@ def __init__(self, brand: BrandResource) -> None: |
2069 | 2303 | self.retrieve_by_email = to_raw_response_wrapper( |
2070 | 2304 | brand.retrieve_by_email, |
2071 | 2305 | ) |
| 2306 | + self.retrieve_by_isin = to_raw_response_wrapper( |
| 2307 | + brand.retrieve_by_isin, |
| 2308 | + ) |
2072 | 2309 | self.retrieve_by_name = to_raw_response_wrapper( |
2073 | 2310 | brand.retrieve_by_name, |
2074 | 2311 | ) |
@@ -2108,6 +2345,9 @@ def __init__(self, brand: AsyncBrandResource) -> None: |
2108 | 2345 | self.retrieve_by_email = async_to_raw_response_wrapper( |
2109 | 2346 | brand.retrieve_by_email, |
2110 | 2347 | ) |
| 2348 | + self.retrieve_by_isin = async_to_raw_response_wrapper( |
| 2349 | + brand.retrieve_by_isin, |
| 2350 | + ) |
2111 | 2351 | self.retrieve_by_name = async_to_raw_response_wrapper( |
2112 | 2352 | brand.retrieve_by_name, |
2113 | 2353 | ) |
@@ -2147,6 +2387,9 @@ def __init__(self, brand: BrandResource) -> None: |
2147 | 2387 | self.retrieve_by_email = to_streamed_response_wrapper( |
2148 | 2388 | brand.retrieve_by_email, |
2149 | 2389 | ) |
| 2390 | + self.retrieve_by_isin = to_streamed_response_wrapper( |
| 2391 | + brand.retrieve_by_isin, |
| 2392 | + ) |
2150 | 2393 | self.retrieve_by_name = to_streamed_response_wrapper( |
2151 | 2394 | brand.retrieve_by_name, |
2152 | 2395 | ) |
@@ -2186,6 +2429,9 @@ def __init__(self, brand: AsyncBrandResource) -> None: |
2186 | 2429 | self.retrieve_by_email = async_to_streamed_response_wrapper( |
2187 | 2430 | brand.retrieve_by_email, |
2188 | 2431 | ) |
| 2432 | + self.retrieve_by_isin = async_to_streamed_response_wrapper( |
| 2433 | + brand.retrieve_by_isin, |
| 2434 | + ) |
2189 | 2435 | self.retrieve_by_name = async_to_streamed_response_wrapper( |
2190 | 2436 | brand.retrieve_by_name, |
2191 | 2437 | ) |
|
0 commit comments