@@ -49,7 +49,7 @@ def create(
4949
5050 def retrieve (
5151 self ,
52- id : str ,
52+ account_holder_token : str ,
5353 * ,
5454 headers : Union [Headers , NotGiven ] = NOT_GIVEN ,
5555 max_retries : Union [int , NotGiven ] = NOT_GIVEN ,
@@ -58,7 +58,7 @@ def retrieve(
5858 """Check the current status of a KYC or KYB evaluation."""
5959 options = make_request_options (headers , max_retries , timeout )
6060 return self ._get (
61- f"/account_holders/{ id } " ,
61+ f"/account_holders/{ account_holder_token } " ,
6262 options = options ,
6363 cast_to = AccountHolder ,
6464 )
@@ -95,7 +95,7 @@ def create_webhook(
9595
9696 def list_documents (
9797 self ,
98- id : str ,
98+ account_holder_token : str ,
9999 * ,
100100 headers : Union [Headers , NotGiven ] = NOT_GIVEN ,
101101 max_retries : Union [int , NotGiven ] = NOT_GIVEN ,
@@ -120,14 +120,14 @@ def list_documents(
120120 """
121121 options = make_request_options (headers , max_retries , timeout )
122122 return self ._get (
123- f"/account_holders/{ id } /documents" ,
123+ f"/account_holders/{ account_holder_token } /documents" ,
124124 options = options ,
125125 cast_to = AccountHolderListDocumentsResponse ,
126126 )
127127
128128 def resubmit (
129129 self ,
130- id : str ,
130+ account_holder_token : str ,
131131 body : AccountHolderResubmitParams ,
132132 * ,
133133 headers : Union [Headers , NotGiven ] = NOT_GIVEN ,
@@ -147,7 +147,7 @@ def resubmit(
147147 """
148148 options = make_request_options (headers , max_retries , timeout )
149149 return self ._post (
150- f"/account_holders/{ id } /resubmit" ,
150+ f"/account_holders/{ account_holder_token } /resubmit" ,
151151 body = body ,
152152 options = options ,
153153 cast_to = AccountHolder ,
@@ -156,7 +156,7 @@ def resubmit(
156156 def retrieve_document (
157157 self ,
158158 account_holder_token : str ,
159- id : str ,
159+ document_token : str ,
160160 * ,
161161 headers : Union [Headers , NotGiven ] = NOT_GIVEN ,
162162 max_retries : Union [int , NotGiven ] = NOT_GIVEN ,
@@ -180,14 +180,14 @@ def retrieve_document(
180180 """
181181 options = make_request_options (headers , max_retries , timeout )
182182 return self ._get (
183- f"/account_holders/{ account_holder_token } /documents/{ id } " ,
183+ f"/account_holders/{ account_holder_token } /documents/{ document_token } " ,
184184 options = options ,
185185 cast_to = AccountHolderDocument ,
186186 )
187187
188188 def upload_document (
189189 self ,
190- id : str ,
190+ account_holder_token : str ,
191191 body : AccountHolderUploadDocumentParams ,
192192 * ,
193193 headers : Union [Headers , NotGiven ] = NOT_GIVEN ,
@@ -216,7 +216,7 @@ def upload_document(
216216 """
217217 options = make_request_options (headers , max_retries , timeout )
218218 return self ._post (
219- f"/account_holders/{ id } /documents" ,
219+ f"/account_holders/{ account_holder_token } /documents" ,
220220 body = body ,
221221 options = options ,
222222 cast_to = AccountHolderDocument ,
@@ -251,7 +251,7 @@ async def create(
251251
252252 async def retrieve (
253253 self ,
254- id : str ,
254+ account_holder_token : str ,
255255 * ,
256256 headers : Union [Headers , NotGiven ] = NOT_GIVEN ,
257257 max_retries : Union [int , NotGiven ] = NOT_GIVEN ,
@@ -260,7 +260,7 @@ async def retrieve(
260260 """Check the current status of a KYC or KYB evaluation."""
261261 options = make_request_options (headers , max_retries , timeout )
262262 return await self ._get (
263- f"/account_holders/{ id } " ,
263+ f"/account_holders/{ account_holder_token } " ,
264264 options = options ,
265265 cast_to = AccountHolder ,
266266 )
@@ -297,7 +297,7 @@ async def create_webhook(
297297
298298 async def list_documents (
299299 self ,
300- id : str ,
300+ account_holder_token : str ,
301301 * ,
302302 headers : Union [Headers , NotGiven ] = NOT_GIVEN ,
303303 max_retries : Union [int , NotGiven ] = NOT_GIVEN ,
@@ -322,14 +322,14 @@ async def list_documents(
322322 """
323323 options = make_request_options (headers , max_retries , timeout )
324324 return await self ._get (
325- f"/account_holders/{ id } /documents" ,
325+ f"/account_holders/{ account_holder_token } /documents" ,
326326 options = options ,
327327 cast_to = AccountHolderListDocumentsResponse ,
328328 )
329329
330330 async def resubmit (
331331 self ,
332- id : str ,
332+ account_holder_token : str ,
333333 body : AccountHolderResubmitParams ,
334334 * ,
335335 headers : Union [Headers , NotGiven ] = NOT_GIVEN ,
@@ -349,7 +349,7 @@ async def resubmit(
349349 """
350350 options = make_request_options (headers , max_retries , timeout )
351351 return await self ._post (
352- f"/account_holders/{ id } /resubmit" ,
352+ f"/account_holders/{ account_holder_token } /resubmit" ,
353353 body = body ,
354354 options = options ,
355355 cast_to = AccountHolder ,
@@ -358,7 +358,7 @@ async def resubmit(
358358 async def retrieve_document (
359359 self ,
360360 account_holder_token : str ,
361- id : str ,
361+ document_token : str ,
362362 * ,
363363 headers : Union [Headers , NotGiven ] = NOT_GIVEN ,
364364 max_retries : Union [int , NotGiven ] = NOT_GIVEN ,
@@ -382,14 +382,14 @@ async def retrieve_document(
382382 """
383383 options = make_request_options (headers , max_retries , timeout )
384384 return await self ._get (
385- f"/account_holders/{ account_holder_token } /documents/{ id } " ,
385+ f"/account_holders/{ account_holder_token } /documents/{ document_token } " ,
386386 options = options ,
387387 cast_to = AccountHolderDocument ,
388388 )
389389
390390 async def upload_document (
391391 self ,
392- id : str ,
392+ account_holder_token : str ,
393393 body : AccountHolderUploadDocumentParams ,
394394 * ,
395395 headers : Union [Headers , NotGiven ] = NOT_GIVEN ,
@@ -418,7 +418,7 @@ async def upload_document(
418418 """
419419 options = make_request_options (headers , max_retries , timeout )
420420 return await self ._post (
421- f"/account_holders/{ id } /documents" ,
421+ f"/account_holders/{ account_holder_token } /documents" ,
422422 body = body ,
423423 options = options ,
424424 cast_to = AccountHolderDocument ,
0 commit comments