
    k)i},                         d dl mZmZ d dlmZ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mZ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 G d de
      Z G d de      Zy)    )ListOptional)Field
ConfigDict)datetime)EmailStr)
BaseSchema)BusinessOwnerSchema)BusinessCategoriesBusinessLocalesBusinessRegionsBusinessTypes$BusinessYearlyTransactionVolumeTypes)PaymentCurrenciesc                      e Zd ZU  ed      Z edd      Zee   e	d<    edd      Z
ee   e	d<    edd	      Zee   e	d
<    edd      Zee   e	d<    edd      Zee   e	d<    edd      Zee   e	d<    edd      Zee   e	d<    edd      Zee   e	d<    edd      Zee   e	d<    edd      Zee   e	d<    edd      Zee   e	d<    edd      Zee   e	d<    edd      Zee   e	d<    edd      Zee   e	d<    edd       Zee   e	d!<    edd"      Z ee   e	d#<    edd$      Z!ee   e	d%<    edd&d'(      Z"ee   e	d)<    edd&d*(      Z#ee   e	d+<    edd,d,d-.      Z$ee   e	d/<   y)0BusinessProfileBaseTfrom_attributesNThe merchant/business namedefaultdescriptionbusiness_name7Registered business legal/trading name (e.g. 'ACME CA')
legal_nameType of business.business_type#Company's Tax Identification Numbertax_idCategory code of the businesscategoryEmail of business.company_emailQCustomer support phone number of the business. Cannot contain special characters.company_phoneBusiness websitecompany_websiteRegion for the merchant accountregionLThe locale value used for the merchant account. Values depend on the region.localeMSingle currency used for processing and settlement for this merchant account.currency2Universal Identification Number of BusinessProfileaverage_transaction_amount8Estimated yearly volume of transactions of the business.yearly_transaction_volumeyearly_txn_volumez!Monthly Volume of BusinessProfilemonthly_volume2Highest Transaction amount of the Business Profilehigh_transaction_amountCompany's business descriptionr        Provides information about a payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 20 characters for the concatenated descriptor.r   
max_lengthr   purposeThis is the bank account numberbank_account_number	   lThe sequence of 9-digits used by banks to identify specific financial institutions (i.e. ABA routing number)r   
min_lengthr:   r   bank_routing_number)%__name__
__module____qualname__r   model_configr   r   r   str__annotations__r   r   r   r   r!   r   r#   r   r%   r'   r)   r   r+   r   r-   r   r/   floatr1   r   r2   r3   r5   r   r;   r=   rB        i/var/www/html/hwPaymentPortal-be-dev/hw-payment-portal-api/src/apps/merchants/schemas/business_profile.pyr   r      sI   d3L#(C_#`M8C=` %M!J  .34M`-aM8M*a!$<abFHSMb-23.Hh)*  ).dH\(]M8H%]#(g$M8C=  &+4EW%XOXc]X(-5)FH_%  ).b)FH_%  -2c-Hh()  38H3  QVNQx(LM  */N*x  ',7'NHUO  05H0Xe_  "'tAa!bK#b" kGXc] 
 */5*# 
 */ C	*# rK   r   c                   l   e Zd ZU  ed      Z ed      Zeed<    edd      Z	e
ee      ed	<    edd
      Ze
e   ed<    edd      Ze
e   ed<    eddd      Ze
e   ed<    eddd      Ze
e   ed<    eddd      Ze
e   ed<    eddd      Ze
e   ed<    eddd      Ze
e   ed<   y)BusinessProfileSchemaTr   Id of BusinessProfile resourcer   idN?Registered owners of this business. Only for read-only purposesr   business_owners6Founding date of the Business. A valid UNIX timestamp.founding_date%Percentage of sales to other business%percentage_of_sales_to_other_businessr7   ;Statement Descriptor Will Appears on credit card statementsr9   statement_descriptor'Bank Accountholder Name (Business Name)bank_account_holder_name	Bank Name	bank_nameBank accout typebank_account_type
Owner Typebank_account_owner_type)rC   rD   rE   r   rF   r   rQ   intrH   rS   r   r   r
   rU   r   rW   rI   rY   rG   r[   r]   r_   ra   rJ   rK   rL   rN   rN   Y   s   d3L @ABA;@U<OXd#678  ).L)M8H%  >C;>)8E?  +0Q+(3- 
 /4=/hsm 
  % Ix} 
 (-&(x} 
 .3 .Xc] rK   rN   c                       e Zd ZU  eddddddddddi	      Z 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<   y)"BusinessProfileCreateRequestSchemaTexampleGrofersCHARITYz
123-456-78zgrofers@yopmail.comz+91 123 456)r   r   r   r   r!   r#   r%   )r   json_schema_extrar   rP   r   r   r   r   r   r   r   r    r!   r$   r%   N)rC   rD   rE   r   rF   r   r   rG   rH   r   r   r   r   r!   r   r%   rJ   rK   rL   rd   rd      s    !*'!*&%!6!.

L +GHM3HMJ  $)5H#IM=I$IJFCJ#(5T#UH UgM3 rK   rd   c                       e Zd Z ed      Zy)"BusinessProfileUpdateRequestSchemaTr   N)rC   rD   rE   r   rF   rJ   rK   rL   rj   rj      s    d3LrK   rj   c                      e Zd ZU  ed      Z edd      Zee   e	d<    edd      Z
ee   e	d<    edd	      Zee   e	d
<    edd      Zee   e	d<    edd      Zee   e	d<    edd      Zee   e	d<    edd      Zee   e	d<    edd      Zee   e	d<    edd      Zee   e	d<    edd      Zee   e	d<    edd      Zee   e	d<    edd      Zee   e	d<    edd      Zee   e	d<    edd      Zee   e	d <    edd!      Zee   e	d"<    edd#      Zee    e	d$<    edd      Z!ee   e	d%<    edd&      Z"ee   e	d'<    edd(      Z#ee$   e	d)<    edd(      Z%ee   e	d*<    edd+      Z&ee   e	d,<    edd-d./      Z'ee   e	d0<    edd-d1/      Z(ee   e	d2<    edd3d3d45      Z)ee   e	d6<    edd7      Z*ee   e	d8<    edd9      Z+ee   e	d:<    edd-d;/      Z,ee   e	d<<    edd-d=/      Z-ee   e	d><    edd-d?/      Z.ee   e	d@<    edd-dA/      Z/ee   e	dB<    edd-dC/      Z0ee   e	dD<   y)EBusinessProfileBaseV2Tr   Nr   r   r   zType of Ownership.r   r   r   rT   rU   z,The DBA(Doing business as) name information.r   z"Preference for the mail receive atmail_receive_atr"   r#   r$   r%   zHistory info of the businesshistory_infor.   r3   r    r!   zfax number of the business
fax_numberr&   r'   r(   r)   r*   r+   r,   r-   r/   r4   r5   r0   r1   r2   r6   r   r7   r8   r9   r;   r<   r=   r>   r?   r@   rB   zCompany's IndustryindustryrV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   )1rC   rD   rE   r   rF   r   r   r   rG   rH   r   r   r   rU   r   r   rm   r#   r   r%   rn   r3   rI   r!   r   ro   r'   r)   r   r+   r   r-   r   r/   r5   r1   r   r2   r   r;   r=   rB   rp   rW   rY   r[   r]   r_   ra   rJ   rK   rL   rl   rl      s   d3L %M!J  .34Ma-bM8M*b!$<abFHSMb(-L)M8H%  $)B$M8C=  &+8&OXc]  ).dH\(]M8H%]#(g$M8C=  #(B`"aL(3-a&+H'NHUO  .33.Hh)*  !&d@\ ]J]%*4EW%XOXc]X(-5)FH_%  ).b)FH_%  -2c-Hh()  38H3  05H0Xe_  QVNQx(LM  */N*x  "'tAa!bK#b" kGXc] 
 */5*# 
 */ C	*#  $D>RSHhsmS=B;>)8E?  +0Q+(3- 
 /4=/hsm 
  % Ix} 
 (-&(x} 
 .3 .Xc] rK   rl   c                   f    e Zd ZU  ed      Z ed      Zeed<    edd      Z	e
ee      ed	<   y)
BusinessProfileSchemaV2Tr   rO   rP   rQ   NrR   r   rS   )rC   rD   rE   r   rF   r   rQ   rb   rH   rS   r   r   r
   rJ   rK   rL   rr   rr     s>    d3L @ABA;@U<OXd#678 rK   rr   N)typingr   r   pydanticr   r   r   pydantic.networksr   src.apps.base.schemas.commonr	   )src.apps.merchants.schemas.business_ownerr
   src.core.utils.enumsr   r   r   r   r   src.apps.payment_requests.enumsr   r   rN   rd   rj   rl   rr   rJ   rK   rL   <module>rz      sy    ! &  & 3 I  >D* DN(/ (V)< 84)< 4oJ od3 rK   