|
13 | 13 | account_holder_list_params, |
14 | 14 | account_holder_create_params, |
15 | 15 | account_holder_update_params, |
16 | | - account_holder_resubmit_params, |
17 | 16 | account_holder_upload_document_params, |
18 | 17 | account_holder_simulate_enrollment_review_params, |
19 | 18 | account_holder_simulate_enrollment_document_review_params, |
@@ -155,7 +154,7 @@ def create( |
155 | 154 | *, |
156 | 155 | individual: account_holder_create_params.KYCIndividual, |
157 | 156 | tos_timestamp: str, |
158 | | - workflow: Literal["KYC_ADVANCED", "KYC_BASIC", "KYC_BYO"], |
| 157 | + workflow: Literal["KYC_BASIC", "KYC_BYO"], |
159 | 158 | external_id: str | NotGiven = NOT_GIVEN, |
160 | 159 | kyc_passed_timestamp: str | NotGiven = NOT_GIVEN, |
161 | 160 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
@@ -286,9 +285,7 @@ def create( |
286 | 285 | control_person: account_holder_create_params.KYBControlPerson | NotGiven = NOT_GIVEN, |
287 | 286 | nature_of_business: str | NotGiven = NOT_GIVEN, |
288 | 287 | tos_timestamp: str | NotGiven = NOT_GIVEN, |
289 | | - workflow: Literal["KYB_BASIC", "KYB_BYO"] |
290 | | - | Literal["KYC_ADVANCED", "KYC_BASIC", "KYC_BYO"] |
291 | | - | Literal["KYC_EXEMPT"], |
| 288 | + workflow: Literal["KYB_BASIC", "KYB_BYO"] | Literal["KYC_BASIC", "KYC_BYO"] | Literal["KYC_EXEMPT"], |
292 | 289 | external_id: str | NotGiven = NOT_GIVEN, |
293 | 290 | kyb_passed_timestamp: str | NotGiven = NOT_GIVEN, |
294 | 291 | website_url: str | NotGiven = NOT_GIVEN, |
@@ -577,67 +574,6 @@ def list_documents( |
577 | 574 | cast_to=AccountHolderListDocumentsResponse, |
578 | 575 | ) |
579 | 576 |
|
580 | | - def resubmit( |
581 | | - self, |
582 | | - account_holder_token: str, |
583 | | - *, |
584 | | - individual: account_holder_resubmit_params.Individual, |
585 | | - tos_timestamp: str, |
586 | | - workflow: Literal["KYC_ADVANCED"], |
587 | | - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
588 | | - # The extra values given here take precedence over values defined on the client or passed to this method. |
589 | | - extra_headers: Headers | None = None, |
590 | | - extra_query: Query | None = None, |
591 | | - extra_body: Body | None = None, |
592 | | - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
593 | | - ) -> AccountHolder: |
594 | | - """Resubmit a KYC submission. |
595 | | -
|
596 | | - This endpoint should be used in cases where a KYC |
597 | | - submission returned a `PENDING_RESUBMIT` result, meaning one or more critical |
598 | | - KYC fields may have been mis-entered and the individual's identity has not yet |
599 | | - been successfully verified. This step must be completed in order to proceed with |
600 | | - the KYC evaluation. |
601 | | -
|
602 | | - Two resubmission attempts are permitted via this endpoint before a `REJECTED` |
603 | | - status is returned and the account creation process is ended. |
604 | | -
|
605 | | - Args: |
606 | | - individual: Information on individual for whom the account is being opened and KYC is being |
607 | | - re-run. |
608 | | -
|
609 | | - tos_timestamp: An RFC 3339 timestamp indicating when the account holder accepted the applicable |
610 | | - legal agreements (e.g., cardholder terms) as agreed upon during API customer's |
611 | | - implementation with Lithic. |
612 | | -
|
613 | | - extra_headers: Send extra headers |
614 | | -
|
615 | | - extra_query: Add additional query parameters to the request |
616 | | -
|
617 | | - extra_body: Add additional JSON properties to the request |
618 | | -
|
619 | | - timeout: Override the client-level default timeout for this request, in seconds |
620 | | - """ |
621 | | - if not account_holder_token: |
622 | | - raise ValueError( |
623 | | - f"Expected a non-empty value for `account_holder_token` but received {account_holder_token!r}" |
624 | | - ) |
625 | | - return self._post( |
626 | | - f"/v1/account_holders/{account_holder_token}/resubmit", |
627 | | - body=maybe_transform( |
628 | | - { |
629 | | - "individual": individual, |
630 | | - "tos_timestamp": tos_timestamp, |
631 | | - "workflow": workflow, |
632 | | - }, |
633 | | - account_holder_resubmit_params.AccountHolderResubmitParams, |
634 | | - ), |
635 | | - options=make_request_options( |
636 | | - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout |
637 | | - ), |
638 | | - cast_to=AccountHolder, |
639 | | - ) |
640 | | - |
641 | 577 | def retrieve_document( |
642 | 578 | self, |
643 | 579 | document_token: str, |
@@ -791,8 +727,7 @@ def simulate_enrollment_review( |
791 | 727 | """Simulates an enrollment review for an account holder. |
792 | 728 |
|
793 | 729 | This endpoint is only |
794 | | - applicable for workflows that may required intervention such as `KYB_BASIC` or |
795 | | - `KYC_ADVANCED`. |
| 730 | + applicable for workflows that may required intervention such as `KYB_BASIC`. |
796 | 731 |
|
797 | 732 | Args: |
798 | 733 | account_holder_token: The account holder which to perform the simulation upon. |
@@ -1024,7 +959,7 @@ async def create( |
1024 | 959 | *, |
1025 | 960 | individual: account_holder_create_params.KYCIndividual, |
1026 | 961 | tos_timestamp: str, |
1027 | | - workflow: Literal["KYC_ADVANCED", "KYC_BASIC", "KYC_BYO"], |
| 962 | + workflow: Literal["KYC_BASIC", "KYC_BYO"], |
1028 | 963 | external_id: str | NotGiven = NOT_GIVEN, |
1029 | 964 | kyc_passed_timestamp: str | NotGiven = NOT_GIVEN, |
1030 | 965 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
@@ -1155,9 +1090,7 @@ async def create( |
1155 | 1090 | control_person: account_holder_create_params.KYBControlPerson | NotGiven = NOT_GIVEN, |
1156 | 1091 | nature_of_business: str | NotGiven = NOT_GIVEN, |
1157 | 1092 | tos_timestamp: str | NotGiven = NOT_GIVEN, |
1158 | | - workflow: Literal["KYB_BASIC", "KYB_BYO"] |
1159 | | - | Literal["KYC_ADVANCED", "KYC_BASIC", "KYC_BYO"] |
1160 | | - | Literal["KYC_EXEMPT"], |
| 1093 | + workflow: Literal["KYB_BASIC", "KYB_BYO"] | Literal["KYC_BASIC", "KYC_BYO"] | Literal["KYC_EXEMPT"], |
1161 | 1094 | external_id: str | NotGiven = NOT_GIVEN, |
1162 | 1095 | kyb_passed_timestamp: str | NotGiven = NOT_GIVEN, |
1163 | 1096 | website_url: str | NotGiven = NOT_GIVEN, |
@@ -1446,67 +1379,6 @@ async def list_documents( |
1446 | 1379 | cast_to=AccountHolderListDocumentsResponse, |
1447 | 1380 | ) |
1448 | 1381 |
|
1449 | | - async def resubmit( |
1450 | | - self, |
1451 | | - account_holder_token: str, |
1452 | | - *, |
1453 | | - individual: account_holder_resubmit_params.Individual, |
1454 | | - tos_timestamp: str, |
1455 | | - workflow: Literal["KYC_ADVANCED"], |
1456 | | - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
1457 | | - # The extra values given here take precedence over values defined on the client or passed to this method. |
1458 | | - extra_headers: Headers | None = None, |
1459 | | - extra_query: Query | None = None, |
1460 | | - extra_body: Body | None = None, |
1461 | | - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
1462 | | - ) -> AccountHolder: |
1463 | | - """Resubmit a KYC submission. |
1464 | | -
|
1465 | | - This endpoint should be used in cases where a KYC |
1466 | | - submission returned a `PENDING_RESUBMIT` result, meaning one or more critical |
1467 | | - KYC fields may have been mis-entered and the individual's identity has not yet |
1468 | | - been successfully verified. This step must be completed in order to proceed with |
1469 | | - the KYC evaluation. |
1470 | | -
|
1471 | | - Two resubmission attempts are permitted via this endpoint before a `REJECTED` |
1472 | | - status is returned and the account creation process is ended. |
1473 | | -
|
1474 | | - Args: |
1475 | | - individual: Information on individual for whom the account is being opened and KYC is being |
1476 | | - re-run. |
1477 | | -
|
1478 | | - tos_timestamp: An RFC 3339 timestamp indicating when the account holder accepted the applicable |
1479 | | - legal agreements (e.g., cardholder terms) as agreed upon during API customer's |
1480 | | - implementation with Lithic. |
1481 | | -
|
1482 | | - extra_headers: Send extra headers |
1483 | | -
|
1484 | | - extra_query: Add additional query parameters to the request |
1485 | | -
|
1486 | | - extra_body: Add additional JSON properties to the request |
1487 | | -
|
1488 | | - timeout: Override the client-level default timeout for this request, in seconds |
1489 | | - """ |
1490 | | - if not account_holder_token: |
1491 | | - raise ValueError( |
1492 | | - f"Expected a non-empty value for `account_holder_token` but received {account_holder_token!r}" |
1493 | | - ) |
1494 | | - return await self._post( |
1495 | | - f"/v1/account_holders/{account_holder_token}/resubmit", |
1496 | | - body=await async_maybe_transform( |
1497 | | - { |
1498 | | - "individual": individual, |
1499 | | - "tos_timestamp": tos_timestamp, |
1500 | | - "workflow": workflow, |
1501 | | - }, |
1502 | | - account_holder_resubmit_params.AccountHolderResubmitParams, |
1503 | | - ), |
1504 | | - options=make_request_options( |
1505 | | - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout |
1506 | | - ), |
1507 | | - cast_to=AccountHolder, |
1508 | | - ) |
1509 | | - |
1510 | 1382 | async def retrieve_document( |
1511 | 1383 | self, |
1512 | 1384 | document_token: str, |
@@ -1660,8 +1532,7 @@ async def simulate_enrollment_review( |
1660 | 1532 | """Simulates an enrollment review for an account holder. |
1661 | 1533 |
|
1662 | 1534 | This endpoint is only |
1663 | | - applicable for workflows that may required intervention such as `KYB_BASIC` or |
1664 | | - `KYC_ADVANCED`. |
| 1535 | + applicable for workflows that may required intervention such as `KYB_BASIC`. |
1665 | 1536 |
|
1666 | 1537 | Args: |
1667 | 1538 | account_holder_token: The account holder which to perform the simulation upon. |
@@ -1799,9 +1670,6 @@ def __init__(self, account_holders: AccountHolders) -> None: |
1799 | 1670 | self.list_documents = _legacy_response.to_raw_response_wrapper( |
1800 | 1671 | account_holders.list_documents, |
1801 | 1672 | ) |
1802 | | - self.resubmit = _legacy_response.to_raw_response_wrapper( |
1803 | | - account_holders.resubmit, |
1804 | | - ) |
1805 | 1673 | self.retrieve_document = _legacy_response.to_raw_response_wrapper( |
1806 | 1674 | account_holders.retrieve_document, |
1807 | 1675 | ) |
@@ -1835,9 +1703,6 @@ def __init__(self, account_holders: AsyncAccountHolders) -> None: |
1835 | 1703 | self.list_documents = _legacy_response.async_to_raw_response_wrapper( |
1836 | 1704 | account_holders.list_documents, |
1837 | 1705 | ) |
1838 | | - self.resubmit = _legacy_response.async_to_raw_response_wrapper( |
1839 | | - account_holders.resubmit, |
1840 | | - ) |
1841 | 1706 | self.retrieve_document = _legacy_response.async_to_raw_response_wrapper( |
1842 | 1707 | account_holders.retrieve_document, |
1843 | 1708 | ) |
@@ -1871,9 +1736,6 @@ def __init__(self, account_holders: AccountHolders) -> None: |
1871 | 1736 | self.list_documents = to_streamed_response_wrapper( |
1872 | 1737 | account_holders.list_documents, |
1873 | 1738 | ) |
1874 | | - self.resubmit = to_streamed_response_wrapper( |
1875 | | - account_holders.resubmit, |
1876 | | - ) |
1877 | 1739 | self.retrieve_document = to_streamed_response_wrapper( |
1878 | 1740 | account_holders.retrieve_document, |
1879 | 1741 | ) |
@@ -1907,9 +1769,6 @@ def __init__(self, account_holders: AsyncAccountHolders) -> None: |
1907 | 1769 | self.list_documents = async_to_streamed_response_wrapper( |
1908 | 1770 | account_holders.list_documents, |
1909 | 1771 | ) |
1910 | | - self.resubmit = async_to_streamed_response_wrapper( |
1911 | | - account_holders.resubmit, |
1912 | | - ) |
1913 | 1772 | self.retrieve_document = async_to_streamed_response_wrapper( |
1914 | 1773 | account_holders.retrieve_document, |
1915 | 1774 | ) |
|
0 commit comments