22
33from typing import Dict , List , Union , Optional
44
5- from .._types import Timeout
5+ from .._types import Timeout , NotGiven
66from .._models import NoneModel , StringModel
77from .._resource import SyncAPIResource , AsyncAPIResource
88from .._base_client import AsyncPaginator , make_request_options
@@ -23,9 +23,9 @@ def create(
2323 self ,
2424 body : AccountHolderCreateParams ,
2525 * ,
26- headers : Optional [Dict [str , str ]] = None ,
27- max_retries : Optional [int ] = None ,
28- timeout : Optional [ Union [float , Timeout ]] = None ,
26+ headers : Union [Dict [str , str ], NotGiven ] = NotGiven () ,
27+ max_retries : Union [int , NotGiven ] = NotGiven () ,
28+ timeout : Union [float , Timeout , None , NotGiven ] = NotGiven () ,
2929 ) -> AccountHolder :
3030 """
3131 Run an individual or business's information through the Customer Identification
@@ -43,9 +43,9 @@ def retrieve(
4343 self ,
4444 id : str ,
4545 * ,
46- headers : Optional [Dict [str , str ]] = None ,
47- max_retries : Optional [int ] = None ,
48- timeout : Optional [ Union [float , Timeout ]] = None ,
46+ headers : Union [Dict [str , str ], NotGiven ] = NotGiven () ,
47+ max_retries : Union [int , NotGiven ] = NotGiven () ,
48+ timeout : Union [float , Timeout , None , NotGiven ] = NotGiven () ,
4949 ) -> AccountHolder :
5050 """Check the current status of a KYC or KYB evaluation."""
5151 options = make_request_options (headers , max_retries , timeout )
@@ -55,9 +55,9 @@ def create_webhook(
5555 self ,
5656 body : AccountHolderCreateWebhookParams ,
5757 * ,
58- headers : Optional [Dict [str , str ]] = None ,
59- max_retries : Optional [int ] = None ,
60- timeout : Optional [ Union [float , Timeout ]] = None ,
58+ headers : Union [Dict [str , str ], NotGiven ] = NotGiven () ,
59+ max_retries : Union [int , NotGiven ] = NotGiven () ,
60+ timeout : Union [float , Timeout , None , NotGiven ] = NotGiven () ,
6161 ) -> AccountHolderCreateWebhookResponse :
6262 """Create a webhook to receive KYC or KYB evaluation events.
6363
@@ -82,9 +82,9 @@ def list_documents(
8282 self ,
8383 id : str ,
8484 * ,
85- headers : Optional [Dict [str , str ]] = None ,
86- max_retries : Optional [int ] = None ,
87- timeout : Optional [ Union [float , Timeout ]] = None ,
85+ headers : Union [Dict [str , str ], NotGiven ] = NotGiven () ,
86+ max_retries : Union [int , NotGiven ] = NotGiven () ,
87+ timeout : Union [float , Timeout , None , NotGiven ] = NotGiven () ,
8888 ) -> AccountHolderListDocumentsResponse :
8989 """
9090 Retrieve the status of account holder document uploads, or retrieve the upload
@@ -111,9 +111,9 @@ def resubmit(
111111 id : str ,
112112 body : AccountHolderResubmitParams ,
113113 * ,
114- headers : Optional [Dict [str , str ]] = None ,
115- max_retries : Optional [int ] = None ,
116- timeout : Optional [ Union [float , Timeout ]] = None ,
114+ headers : Union [Dict [str , str ], NotGiven ] = NotGiven () ,
115+ max_retries : Union [int , NotGiven ] = NotGiven () ,
116+ timeout : Union [float , Timeout , None , NotGiven ] = NotGiven () ,
117117 ) -> AccountHolder :
118118 """Resubmit a KYC submission.
119119
@@ -134,9 +134,9 @@ def retrieve_document(
134134 account_holder_token : str ,
135135 id : str ,
136136 * ,
137- headers : Optional [Dict [str , str ]] = None ,
138- max_retries : Optional [int ] = None ,
139- timeout : Optional [ Union [float , Timeout ]] = None ,
137+ headers : Union [Dict [str , str ], NotGiven ] = NotGiven () ,
138+ max_retries : Union [int , NotGiven ] = NotGiven () ,
139+ timeout : Union [float , Timeout , None , NotGiven ] = NotGiven () ,
140140 ) -> AccountHolderDocument :
141141 """
142142 Check the status of an account holder document upload, or retrieve the upload
@@ -164,9 +164,9 @@ def upload_document(
164164 id : str ,
165165 body : AccountHolderUploadDocumentParams ,
166166 * ,
167- headers : Optional [Dict [str , str ]] = None ,
168- max_retries : Optional [int ] = None ,
169- timeout : Optional [ Union [float , Timeout ]] = None ,
167+ headers : Union [Dict [str , str ], NotGiven ] = NotGiven () ,
168+ max_retries : Union [int , NotGiven ] = NotGiven () ,
169+ timeout : Union [float , Timeout , None , NotGiven ] = NotGiven () ,
170170 ) -> AccountHolderDocument :
171171 """
172172 Use this endpoint to identify which type of supported government-issued
@@ -197,9 +197,9 @@ async def create(
197197 self ,
198198 body : AccountHolderCreateParams ,
199199 * ,
200- headers : Optional [Dict [str , str ]] = None ,
201- max_retries : Optional [int ] = None ,
202- timeout : Optional [ Union [float , Timeout ]] = None ,
200+ headers : Union [Dict [str , str ], NotGiven ] = NotGiven () ,
201+ max_retries : Union [int , NotGiven ] = NotGiven () ,
202+ timeout : Union [float , Timeout , None , NotGiven ] = NotGiven () ,
203203 ) -> AccountHolder :
204204 """
205205 Run an individual or business's information through the Customer Identification
@@ -217,9 +217,9 @@ async def retrieve(
217217 self ,
218218 id : str ,
219219 * ,
220- headers : Optional [Dict [str , str ]] = None ,
221- max_retries : Optional [int ] = None ,
222- timeout : Optional [ Union [float , Timeout ]] = None ,
220+ headers : Union [Dict [str , str ], NotGiven ] = NotGiven () ,
221+ max_retries : Union [int , NotGiven ] = NotGiven () ,
222+ timeout : Union [float , Timeout , None , NotGiven ] = NotGiven () ,
223223 ) -> AccountHolder :
224224 """Check the current status of a KYC or KYB evaluation."""
225225 options = make_request_options (headers , max_retries , timeout )
@@ -229,9 +229,9 @@ async def create_webhook(
229229 self ,
230230 body : AccountHolderCreateWebhookParams ,
231231 * ,
232- headers : Optional [Dict [str , str ]] = None ,
233- max_retries : Optional [int ] = None ,
234- timeout : Optional [ Union [float , Timeout ]] = None ,
232+ headers : Union [Dict [str , str ], NotGiven ] = NotGiven () ,
233+ max_retries : Union [int , NotGiven ] = NotGiven () ,
234+ timeout : Union [float , Timeout , None , NotGiven ] = NotGiven () ,
235235 ) -> AccountHolderCreateWebhookResponse :
236236 """Create a webhook to receive KYC or KYB evaluation events.
237237
@@ -256,9 +256,9 @@ async def list_documents(
256256 self ,
257257 id : str ,
258258 * ,
259- headers : Optional [Dict [str , str ]] = None ,
260- max_retries : Optional [int ] = None ,
261- timeout : Optional [ Union [float , Timeout ]] = None ,
259+ headers : Union [Dict [str , str ], NotGiven ] = NotGiven () ,
260+ max_retries : Union [int , NotGiven ] = NotGiven () ,
261+ timeout : Union [float , Timeout , None , NotGiven ] = NotGiven () ,
262262 ) -> AccountHolderListDocumentsResponse :
263263 """
264264 Retrieve the status of account holder document uploads, or retrieve the upload
@@ -287,9 +287,9 @@ async def resubmit(
287287 id : str ,
288288 body : AccountHolderResubmitParams ,
289289 * ,
290- headers : Optional [Dict [str , str ]] = None ,
291- max_retries : Optional [int ] = None ,
292- timeout : Optional [ Union [float , Timeout ]] = None ,
290+ headers : Union [Dict [str , str ], NotGiven ] = NotGiven () ,
291+ max_retries : Union [int , NotGiven ] = NotGiven () ,
292+ timeout : Union [float , Timeout , None , NotGiven ] = NotGiven () ,
293293 ) -> AccountHolder :
294294 """Resubmit a KYC submission.
295295
@@ -310,9 +310,9 @@ async def retrieve_document(
310310 account_holder_token : str ,
311311 id : str ,
312312 * ,
313- headers : Optional [Dict [str , str ]] = None ,
314- max_retries : Optional [int ] = None ,
315- timeout : Optional [ Union [float , Timeout ]] = None ,
313+ headers : Union [Dict [str , str ], NotGiven ] = NotGiven () ,
314+ max_retries : Union [int , NotGiven ] = NotGiven () ,
315+ timeout : Union [float , Timeout , None , NotGiven ] = NotGiven () ,
316316 ) -> AccountHolderDocument :
317317 """
318318 Check the status of an account holder document upload, or retrieve the upload
@@ -340,9 +340,9 @@ async def upload_document(
340340 id : str ,
341341 body : AccountHolderUploadDocumentParams ,
342342 * ,
343- headers : Optional [Dict [str , str ]] = None ,
344- max_retries : Optional [int ] = None ,
345- timeout : Optional [ Union [float , Timeout ]] = None ,
343+ headers : Union [Dict [str , str ], NotGiven ] = NotGiven () ,
344+ max_retries : Union [int , NotGiven ] = NotGiven () ,
345+ timeout : Union [float , Timeout , None , NotGiven ] = NotGiven () ,
346346 ) -> AccountHolderDocument :
347347 """
348348 Use this endpoint to identify which type of supported government-issued
0 commit comments