
    {i                         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  G d de      Z	 G d d	e	      Z
 G d
 de	      Z G d de	      Zy)    )Field)datetime)Optional)EmailStr)
BaseSchemac                   P   e Zd ZU  ed      Zee   ed<    ed      Zee   ed<    ed      Z	ee   ed<    ed      Z
ee   ed	<    ed
      Zee   ed<    ed      Zee   ed<    ed      Zee   ed<    ed      Zee   ed<    ed      Zee   ed<    ed      Zee   ed<    ed      Zee   ed<    ed      Zee   ed<    ed      Zee   ed<    ed      Zee   ed<    ed      Zee   ed<    ed       Zee   ed!<    ed"      Zee   ed#<   y$)%BusinessOwnerBaseFirst name of ownerdescription
first_nameLast name of owner	last_name9Job title of the principal (e.g. CEO, CFO, President, VP)	job_titlezA valid phone numberphonezA valid emailemailz'Percentage of ownership of the company.percent_ownedSocial Security Number (US) or Social Insurance Number (CA). Optional when business type is NPCORP, CHARITY, or GOV. Expected format: 9-digit string of numbers (e.g. '111444777'). Optional in CA.ssn\Date of birth of owner. A valid UNIX timestamp. Owner must be 18 years or older as of today.dobzCity where address is located.cityzzState/province/region of the address. For US and CA use 2-digit state/province codes (e.g. 'AL', 'AK', 'BC', 'ON', 'etc'.)statez&2-digit Country code (e.g. 'US', 'CA')countryz First line of the street addressaddress_line_1z/Second line of the street address, if required.address_line_2zNationality of the ownernationalityz>Zip code or postal code of the address. No special characters.zipcodeIndicates whether this owner is the applicant for the merchant account. For US merchant accounts (region = US) it is required that exactly one of the principals is specified as the applicant.is_applicant  This indicates whether the principal is the Control Prong. Control Prong is an individual with significant responsibility for managing the legal entity customer (e.g., a CEO, CFO, COO, Managing Member, General Partner, President, Vice-President, or Treasurer). For US merchant accounts (region = US) it is required that exactly one of the principals is specified as the Control Prong.is_control_prongN)__name__
__module____qualname__r   r   r   str__annotations__r   r   r   r   r   r   floatr   r   r   r   r   r   r   r   r   r   r!   boolr#        g/var/www/html/hwPaymentPortal-be-dev/hw-payment-portal-api/src/apps/merchants/schemas/business_owner.pyr	   r	   	   s    %2G HJH$1EFIx}F$O Ix}  !-CDE8C=D %/ BE8HB%*=&M8E?   ZC#  $rC(	   ,LMD(3-M  QE8C=  #/WXGXc]X$)6%NHSM  %*E%NHSM  "'3M!NK#N"TGXc]  $) V$L(4.  (- W(htn r,   r	   c                   *    e Zd ZU  ed      Zeed<   y)BusinessOwnerSchemazId of Business Owner resourcer   idN)r$   r%   r&   r   r0   intr(   r+   r,   r-   r/   r/   1   s     ?@B@r,   r/   c                       e Zd ZU  ed      Zeed<    ed      Zeed<    ed      Zeed<    ed      Z	e
ed	<    ed
      Zeed<    ed      Zeed<    eddd      Zee   ed<   y) BusinessOwnerCreateRequestSchemar
   r   r   r   r   r   r   r   r   r    r!   r"   r#   	   r   
max_length
min_lengthr   r   N)r$   r%   r&   r   r   r'   r(   r   r   r   r   r!   r*   r#   r   r   r+   r,   r-   r3   r3   5   s    (=>J>';<Is<OIs  rC   VL$  # Wd   ZC# r,   r3   c                   4    e Zd ZU  eddd      Zee   ed<   y) BusinessOwnerUpdateRequestSchemar4   r   r5   r   N)r$   r%   r&   r   r   r   r'   r(   r+   r,   r-   r9   r9   K   s#     ZC# r,   r9   N)pydanticr   r   typingr   pydantic.networksr   src.apps.base.schemas.commonr   r	   r/   r3   r9   r+   r,   r-   <module>r>      sJ       & 3%
 %PA+ A'8 ,'8 r,   