
    HUh                     ~    d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	 d dl
mZmZmZ d dlmZmZmZ  G d d	e      Zy
)    )
ListObject)Person)RequestOptions)StripeService)sanitize_id)DictListcast)LiteralNotRequired	TypedDictc                      e Zd Z G d de      Z G d de      Z G d de      Z G d de      Z G d	 d
e      Z G d de      Z	 G d de      Z
 G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d d e      Z G d! d"e      Z G d# d$e      Z G d% d&e      Z G d' d(e      Z G d) d*e      Z G d+ d,e      Z G d- d.e      Z G d/ d0e      Z G d1 d2e      Z G d3 d4e      Z G d5 d6e      Z G d7 d8e      Z G d9 d:e      Z  G d; d<e      Z! G d= d>e      Z" G d? d@e      Z# G dA dBe      Z$ G dC dDe      Z% G dE dFe      Z& G dG dHe      Z' G dI dJe      Z( G dK dLe      Z) G dM dNe      Z* G dO dPe      Z+ G dQ dRe      Z, G dS dTe      Z-i i fdUe.dVe.dWdXdYe/dZe0f
d[Z1i i fdUe.dVe.dWdXdYe/dZe0f
d\Z2i i fdUe.dVe.dWd]dYe/dZe0f
d^Z3i i fdUe.dVe.dWd]dYe/dZe0f
d_Z4i i fdUe.dVe.dWd`dYe/dZe0f
daZ5i i fdUe.dVe.dWd`dYe/dZe0f
dbZ6i i fdUe.dWdcdYe/dZe7e0   fddZ8i i fdUe.dWdcdYe/dZe7e0   fdeZ9i i fdUe.dWdfdYe/dZe0fdgZ:i i fdUe.dWdfdYe/dZe0fdhZ;yi)jAccountPersonServicec                   "   e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed	   ed
<   	 ed   ed<   	 ee   ed<   	 eee      ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 eed       ed!<   	 ed"   ed#<   	 ed$   ed%<   	 ee   ed&<   	 ed'   ed(<   	 ed)   ed*<   y+),!AccountPersonService.CreateParams9AccountPersonService.CreateParamsAdditionalTosAcceptancesadditional_tos_acceptances(AccountPersonService.CreateParamsAddressaddress,AccountPersonService.CreateParamsAddressKanaaddress_kana-AccountPersonService.CreateParamsAddressKanjiaddress_kanjiz0Literal['']|AccountPersonService.CreateParamsDobdob*AccountPersonService.CreateParamsDocuments	documentsemailexpand
first_namefirst_name_kanafirst_name_kanjiLiteral['']|List[str]full_name_aliasesgender	id_numberid_number_secondary	last_namelast_name_kanalast_name_kanjimaiden_nameLiteral['']|Dict[str, str]metadatanationalityperson_tokenphoneexistingnonepolitical_exposure2AccountPersonService.CreateParamsRegisteredAddressregistered_address-AccountPersonService.CreateParamsRelationshiprelationship
ssn_last_4+AccountPersonService.CreateParamsUsCfpbDataus_cfpb_data-AccountPersonService.CreateParamsVerificationverificationN__name__
__module____qualname__r   __annotations__strr	   r        ^/var/www/html/Ryun_Seer/newvenv/lib/python3.12/site-packages/stripe/_account_person_service.pyCreateParamsr      <   $/G%
 	
	 GHH	 ":
 	
	 #;
 	
	 KLL	 KLL	 3	 DI&&	  $$	 %S))	 &c**	 ''>??	 C  	 s##	 )--	 s##	 $C((	 %S))	 !%%	 :;;	 !%%	 "#&&	 3	 (0B(CDD	 (@
 	
	 ";
 	
	  $$	 "9
 	
	 ";
 	
	rD   rF   c                       e Zd ZU ed   ed<   y)r   @AccountPersonService.CreateParamsAdditionalTosAcceptancesAccountaccountNr>   r?   r@   r   rA   rC   rD   rE   $CreateParamsAdditionalTosAcceptancesz9AccountPersonService.CreateParamsAdditionalTosAcceptances       N
 	
	rD   rL   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ed   ed<   y)rI   dateipLiteral['']|str
user_agentNr>   r?   r@   r   intrA   rB   rC   rD   rE   +CreateParamsAdditionalTosAcceptancesAccountz@AccountPersonService.CreateParamsAdditionalTosAcceptancesAccount   7    #	 	   122	rD   rU   c                   x    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)r   citycountryline1line2postal_codestateNr>   r?   r@   r   rB   rA   rC   rD   rE   CreateParamsAddressz(AccountPersonService.CreateParamsAddress   l    #	 S!!	 3	 3	 !%%	 3	rD   r_   c                       e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)	r   rX   rY   rZ   r[   r\   r]   townNr^   rC   rD   rE   CreateParamsAddressKanaz,AccountPersonService.CreateParamsAddressKana   ~    #	 S!!	 3	 3	 !%%	 3	 #	rD   rc   c                       e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)	r   rX   rY   rZ   r[   r\   r]   rb   Nr^   rC   rD   rE   CreateParamsAddressKanjiz-AccountPersonService.CreateParamsAddressKanji   rd   rD   rf   c                   0    e Zd ZU eed<   	 eed<   	 eed<   y)$AccountPersonService.CreateParamsDobdaymonthyearNr>   r?   r@   rT   rA   rC   rD   rE   CreateParamsDobrh      $    	 
	 		rD   rm   c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r   >AccountPersonService.CreateParamsDocumentsCompanyAuthorizationcompany_authorization2AccountPersonService.CreateParamsDocumentsPassportpassport.AccountPersonService.CreateParamsDocumentsVisavisaNrK   rC   rD   rE   CreateParamsDocumentsz*AccountPersonService.CreateParamsDocuments  A    *L 
 	
	 @
 	
	 JKK	rD   rv   c                   $    e Zd ZU eee      ed<   y)rp   filesNr>   r?   r@   r   r	   rB   rA   rC   rD   rE   )CreateParamsDocumentsCompanyAuthorizationz>AccountPersonService.CreateParamsDocumentsCompanyAuthorization      49%%	rD   r{   c                   $    e Zd ZU eee      ed<   y)rr   ry   Nrz   rC   rD   rE   CreateParamsDocumentsPassportz2AccountPersonService.CreateParamsDocumentsPassport#  r|   rD   r~   c                   $    e Zd ZU eee      ed<   y)rt   ry   Nrz   rC   rD   rE   CreateParamsDocumentsVisaz.AccountPersonService.CreateParamsDocumentsVisa)  r|   rD   r   c                   x    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)r4   rX   rY   rZ   r[   r\   r]   Nr^   rC   rD   rE   CreateParamsRegisteredAddressz2AccountPersonService.CreateParamsRegisteredAddress/  r`   rD   r   c                       e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ee   ed	<   y
)r6   
authorizerdirector	executivelegal_guardianownerLiteral['']|floatpercent_ownershiprepresentativetitleNr>   r?   r@   r   boolrA   rB   rC   rD   rE   CreateParamsRelationshipz-AccountPersonService.CreateParamsRelationshipI      %%	 d##	 t$$	 $D))	 4  	 '':;;	 $D))	 3	rD   r   c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ee   ed<   y)r9   ;AccountPersonService.CreateParamsUsCfpbDataEthnicityDetailsethnicity_details6AccountPersonService.CreateParamsUsCfpbDataRaceDetailsrace_detailsself_identified_genderNr>   r?   r@   r   rA   rB   rC   rD   rE   CreateParamsUsCfpbDataz+AccountPersonService.CreateParamsUsCfpbDatak  @    &I
 	
	 "D
 	
	 !,C 00	rD   r   c                   <    e Zd ZU eeed         ed<   	 ee   ed<   y)r   cubanhispanic_or_latinomexicannot_hispanic_or_latinoother_hispanic_or_latinoprefer_not_to_answerpuerto_rican	ethnicityethnicity_otherNr>   r?   r@   r   r	   r   rA   rB   rC   rD   rE   &CreateParamsUsCfpbDataEthnicityDetailsz;AccountPersonService.CreateParamsUsCfpbDataEthnicityDetails}  ;    $

 	
	 %S))	rD   r   c                   <    e Zd ZU eeed         ed<   	 ee   ed<   y)r   african_american american_indian_or_alaska_nativeasianasian_indianblack_or_african_americanchinese	ethiopianfilipinoguamanian_or_chamorrohaitianjamaicanjapanesekoreannative_hawaiian)native_hawaiian_or_other_pacific_islandernigerianother_asianother_black_or_african_americanother_pacific_islanderr   samoansomali
vietnamesewhiterace
race_otherNr   rC   rD   rE   !CreateParamsUsCfpbDataRaceDetailsz6AccountPersonService.CreateParamsUsCfpbDataRaceDetails  ;    
 	
<	  $$	rD   r   c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r;   ?AccountPersonService.CreateParamsVerificationAdditionalDocumentadditional_document5AccountPersonService.CreateParamsVerificationDocumentdocumentNrK   rC   rD   rE   CreateParamsVerificationz-AccountPersonService.CreateParamsVerification  .    (M
 	
	 C
 	
	rD   r   c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)r   backfrontNr^   rC   rD   rE   *CreateParamsVerificationAdditionalDocumentz?AccountPersonService.CreateParamsVerificationAdditionalDocument  $    #	 3	rD   r   c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)r   r   r   Nr^   rC   rD   rE    CreateParamsVerificationDocumentz5AccountPersonService.CreateParamsVerificationDocument  r   rD   r   c                       e Zd Zy)!AccountPersonService.DeleteParamsN)r>   r?   r@   rC   rD   rE   DeleteParamsr     s    rD   r   c                   l    e Zd ZU ee   ed<   	 eee      ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   y)AccountPersonService.ListParamsending_beforer   limit+AccountPersonService.ListParamsRelationshipr7   starting_afterN)r>   r?   r@   r   rB   rA   r	   rT   rC   rD   rE   
ListParamsr     sc    "3''	 DI&&	 3	 "9
 	
	 $C((	rD   r   c                   x    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)r   r   r   r   r   r   r   N)r>   r?   r@   r   r   rA   rC   rD   rE   ListParamsRelationshipz+AccountPersonService.ListParamsRelationship  sl    %%	 d##	 t$$	 $D))	 4  	 $D))	rD   r   c                   $    e Zd ZU eee      ed<   y)#AccountPersonService.RetrieveParamsr   Nrz   rC   rD   rE   RetrieveParamsr     s    DI&&	rD   r   c                   "   e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed	   ed
<   	 ed   ed<   	 ee   ed<   	 eee      ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 eed       ed!<   	 ed"   ed#<   	 ed$   ed%<   	 ee   ed&<   	 ed'   ed(<   	 ed)   ed*<   y+),!AccountPersonService.UpdateParams9AccountPersonService.UpdateParamsAdditionalTosAcceptancesr   (AccountPersonService.UpdateParamsAddressr   ,AccountPersonService.UpdateParamsAddressKanar   -AccountPersonService.UpdateParamsAddressKanjir   z0Literal['']|AccountPersonService.UpdateParamsDobr   *AccountPersonService.UpdateParamsDocumentsr   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r3   2AccountPersonService.UpdateParamsRegisteredAddressr5   -AccountPersonService.UpdateParamsRelationshipr7   r8   +AccountPersonService.UpdateParamsUsCfpbDatar:   -AccountPersonService.UpdateParamsVerificationr<   Nr=   rC   rD   rE   UpdateParamsr     rG   rD   r   c                       e Zd ZU ed   ed<   y)r   @AccountPersonService.UpdateParamsAdditionalTosAcceptancesAccountrJ   NrK   rC   rD   rE   $UpdateParamsAdditionalTosAcceptancesz9AccountPersonService.UpdateParamsAdditionalTosAcceptances  rM   rD   r   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ed   ed<   y)r   rO   rP   rQ   rR   NrS   rC   rD   rE   +UpdateParamsAdditionalTosAcceptancesAccountz@AccountPersonService.UpdateParamsAdditionalTosAcceptancesAccount  rV   rD   r   c                   x    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)r   rX   rY   rZ   r[   r\   r]   Nr^   rC   rD   rE   UpdateParamsAddressz(AccountPersonService.UpdateParamsAddress  r`   rD   r   c                       e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)	r   rX   rY   rZ   r[   r\   r]   rb   Nr^   rC   rD   rE   UpdateParamsAddressKanaz,AccountPersonService.UpdateParamsAddressKana  rd   rD   r   c                       e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)	r   rX   rY   rZ   r[   r\   r]   rb   Nr^   rC   rD   rE   UpdateParamsAddressKanjiz-AccountPersonService.UpdateParamsAddressKanji  rd   rD   r   c                   0    e Zd ZU eed<   	 eed<   	 eed<   y)$AccountPersonService.UpdateParamsDobri   rj   rk   Nrl   rC   rD   rE   UpdateParamsDobr     rn   rD   r   c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r   >AccountPersonService.UpdateParamsDocumentsCompanyAuthorizationrq   2AccountPersonService.UpdateParamsDocumentsPassportrs   .AccountPersonService.UpdateParamsDocumentsVisaru   NrK   rC   rD   rE   UpdateParamsDocumentsz*AccountPersonService.UpdateParamsDocuments  rw   rD   r   c                   $    e Zd ZU eee      ed<   y)r   ry   Nrz   rC   rD   rE   )UpdateParamsDocumentsCompanyAuthorizationz>AccountPersonService.UpdateParamsDocumentsCompanyAuthorization'  r|   rD   r  c                   $    e Zd ZU eee      ed<   y)r   ry   Nrz   rC   rD   rE   UpdateParamsDocumentsPassportz2AccountPersonService.UpdateParamsDocumentsPassport-  r|   rD   r  c                   $    e Zd ZU eee      ed<   y)r   ry   Nrz   rC   rD   rE   UpdateParamsDocumentsVisaz.AccountPersonService.UpdateParamsDocumentsVisa3  r|   rD   r  c                   x    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)r   rX   rY   rZ   r[   r\   r]   Nr^   rC   rD   rE   UpdateParamsRegisteredAddressz2AccountPersonService.UpdateParamsRegisteredAddress9  r`   rD   r  c                       e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ee   ed	<   y
)r   r   r   r   r   r   r   r   r   r   Nr   rC   rD   rE   UpdateParamsRelationshipz-AccountPersonService.UpdateParamsRelationshipS  r   rD   r
  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ee   ed<   y)r   ;AccountPersonService.UpdateParamsUsCfpbDataEthnicityDetailsr   6AccountPersonService.UpdateParamsUsCfpbDataRaceDetailsr   r   Nr   rC   rD   rE   UpdateParamsUsCfpbDataz+AccountPersonService.UpdateParamsUsCfpbDatau  r   rD   r  c                   <    e Zd ZU eeed         ed<   	 ee   ed<   y)r  r   r   r   Nr   rC   rD   rE   &UpdateParamsUsCfpbDataEthnicityDetailsz;AccountPersonService.UpdateParamsUsCfpbDataEthnicityDetails  r   rD   r  c                   <    e Zd ZU eeed         ed<   	 ee   ed<   y)r  r   r   r   Nr   rC   rD   rE   !UpdateParamsUsCfpbDataRaceDetailsz6AccountPersonService.UpdateParamsUsCfpbDataRaceDetails  r   rD   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r   ?AccountPersonService.UpdateParamsVerificationAdditionalDocumentr   5AccountPersonService.UpdateParamsVerificationDocumentr   NrK   rC   rD   rE   UpdateParamsVerificationz-AccountPersonService.UpdateParamsVerification  r   rD   r  c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)r  r   r   Nr^   rC   rD   rE   *UpdateParamsVerificationAdditionalDocumentz?AccountPersonService.UpdateParamsVerificationAdditionalDocument  r   rD   r  c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)r  r   r   Nr^   rC   rD   rE    UpdateParamsVerificationDocumentz5AccountPersonService.UpdateParamsVerificationDocument  r   rD   r  rJ   personparamsr   optionsreturnc                     t        t        | j                  ddj                  t	        |      t	        |            d||            S )A  
        Deletes an existing person's relationship to the account's legal entity. Any person with a relationship for an account can be deleted through the API, except if the person is the account_opener. If your integration is using the executive parameter, you cannot delete the only verified executive on file.
        delete'/v1/accounts/{account}/persons/{person}rJ   r  apibase_addressr  r  r
   r   _requestformatr   selfrJ   r  r  r  s        rE   r!  zAccountPersonService.delete  sW     MM9@@'0&v. A  #  	
 	
rD   c                    K   t        t        | j                  ddj                  t	        |      t	        |            d||       d{         S 7 w)r   r!  r"  r#  r$  r%  Nr
   r   _request_asyncr)  r   r*  s        rE   delete_asyncz!AccountPersonService.delete_async  sg      %%9@@'0&v. A  # & 	 	
 	
	   AA	A

	Ar   c                     t        t        | j                  ddj                  t	        |      t	        |            d||            S )/
        Retrieves an existing person.
        getr"  r#  r$  r%  r'  r*  s        rE   retrievezAccountPersonService.retrieve  sW     MM9@@'0&v. A  #  	
 	
rD   c                    K   t        t        | j                  ddj                  t	        |      t	        |            d||       d{         S 7 w)r2  r3  r"  r#  r$  r%  Nr-  r*  s        rE   retrieve_asyncz#AccountPersonService.retrieve_async.  sg      %%9@@'0&v. A  # & 	 	
 	
	r0  r   c                     t        t        | j                  ddj                  t	        |      t	        |            d||            S )-
        Updates an existing person.
        postr"  r#  r$  r%  r'  r*  s        rE   updatezAccountPersonService.updateF  sW     MM9@@'0&v. A  #  	
 	
rD   c                    K   t        t        | j                  ddj                  t	        |      t	        |            d||       d{         S 7 w)r8  r9  r"  r#  r$  r%  Nr-  r*  s        rE   update_asyncz!AccountPersonService.update_async^  sg      %%9@@'0&v. A  # & 	 	
 	
	r0  r   c                     t        t        t           | j                  ddj	                  t        |            d||            S )
        Returns a list of people associated with the account's legal entity. The people are returned sorted by creation date, with the most recent people appearing first.
        r3  /v1/accounts/{account}/personsrJ   r$  r%  )r
   r   r   r(  r)  r   r+  rJ   r  r  s       rE   listzAccountPersonService.listv  sS     vMM077'0 8  #  
 	
rD   c                    K   t        t        t           | j                  ddj	                  t        |            d||       d{         S 7 w)r>  r3  r?  r@  r$  r%  N)r
   r   r   r.  r)  r   rA  s       rE   
list_asynczAccountPersonService.list_async  sc      v%%077'0 8  # &  
 	
s   AAA
	Ar   c                 |    t        t        | j                  ddj                  t	        |            d||            S )'
        Creates a new person.
        r9  r?  r@  r$  r%  r'  rA  s       rE   createzAccountPersonService.create  sN     MM077'0 8  #  
 	
rD   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)rF  r9  r?  r@  r$  r%  Nr-  rA  s       rE   create_asyncz!AccountPersonService.create_async  s^      %%077'0 8  # &  
 	
s   =A
A
 	A
N)<r>   r?   r@   r   rF   rL   rU   r_   rc   rf   rm   rv   r{   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r
  r  r  r  r  r  r  rB   r   r   r!  r/  r4  r6  r:  r<  r   rB  rD  rG  rI  rC   rD   rE   r   r      sH   By BHy i i 4) <9 <) 	 $I 	 I 	 4 9  D $ ,%I %N9 Y 9 y Y 0 4 By BHy i i 4) <9 <) 	 $I 	 I 	 4 9  D $ ,%I %N9 Y 9  79"$

 
 4	

  
 

8 79"$

 
 4	

  
 

8 9;"$

 
 6	

  
 

8 9;"$

 
 6	

  
 

8 79"$

 
 4	

  
 

8 79"$

 
 4	

  
 

6 57"$	

 2
  	

 
F	
2 57"$	

 2
  	

 
F	
2 79"$	

 4
  	

 

2 79"$	

 4
  	

 

rD   r   N)stripe._list_objectr   stripe._personr   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr   typingr   r	   r
   typing_extensionsr   r   r   r   rC   rD   rE   <module>rQ     s0    + ! 2 0 $ # # = =@
= @
rD   