Ë
    T>{iv  ã                  óò   — d Z ddlmZ ddlZddlZddl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mZmZmZmZmZmZmZmZmZ dd	lmZmZmZmZmZmZ dd
l m!Z!  G d„ de«      Z"e"jG                  «        y)aˆ  
Cashfree Payment Gateway APIs

Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.

The version of the OpenAPI document: 2023-08-01
Contact: developers@cashfree.com
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
é    )ÚannotationsN)ÚdateÚdatetime)ÚBankDetails)Ú
KycDetails)Ú
UpiDetails)
Úvalidate_argumentsÚValidationErrorÚFieldÚ	StrictStrÚStrictBytesÚ	StrictIntÚStrictFloatÚ
StrictBoolÚfield_validatorÚ	BaseModel)ÚAnyÚDictÚListÚOptionalÚTupleÚUnion)Ú	Annotatedc                  ó°  — e Zd ZU dZ ed¬«      Zded<    ed¬«      Zded<    ed¬«      Zded	<    ed
¬«      Z	ded<    ed¬«      Z
ded<    edd¬«      Zded<    edd¬«      Zded<    edd¬«      Zded<    edd¬«      Zded<    edd¬«      Zded<    ed¬«      Zded <   g d!¢Z	 d"d"d#œZd*d$„Zd*d%„Zed+d&„«       Zed+d'„«       Zd(„ Zed,d)„«       Zy)-ÚCreateVendorRequestz
    Create Vendor Request
    zbSpecify the unique Vendor ID to identify the beneficiary. Alphanumeric and underscore (_) allowed.)Údescriptionr   Ú	vendor_idz]Specify the status of vendor that should be updated. Possible values: ACTIVE,BLOCKED, DELETEDÚstatuszgSpecify the name of the vendor to be updated. Name should not have any special character except . / - &Únamez†Specify the vendor email ID that should be updated. String in email ID format (Ex:johndoe_1@cashfree.com) should contain @ and dot (.)ÚemailzŒSpecify the beneficiaries phone number to be updated. Phone number registered in India (only digits, 8 - 12 characters after excluding +91).ÚphoneNz]Specify if the vendor bank account details should be verified. Possible values: true or false)Údefaultr   zOptional[StrictBool]Úverify_accountzZUpdate if the vendor will have dashboard access or not. Possible values are: true or falseÚdashboard_accessa  Specify the settlement cycle to be updated. View the settlement cycle details from the "Settlement Cycles Supported" table. If no schedule option is configured, the settlement cycle ID "1" will be in effect. Select "8" or "9" if you want to schedule instant vendor settlements.z'Optional[Union[StrictFloat, StrictInt]]Úschedule_optionz6Specify the vendor bank account details to be updated.zOptional[List[BankDetails]]ÚbankzèUpdated beneficiary upi vpa. Alphanumeric, dot (.), hyphen (-), at sign (@), and underscore allowed (100 character limit). Note: underscore and dot (.) gets accepted before and after @, but hyphen (-) is only accepted before @ sign.zOptional[List[UpiDetails]]Úupiz/Specify the kyc details that should be updated.zList[KycDetails]Úkyc_details©r   r   r   r    r!   r#   r$   r%   r&   r'   r(   T)Úpopulate_by_nameÚvalidate_assignmentc                óL   — t        j                  | j                  d¬«      «      S )z:Returns the string representation of the model using aliasT)Úby_alias)ÚpprintÚpformatÚdict©Úselfs    úf/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/cashfree_pg/models/create_vendor_request.pyÚto_strzCreateVendorRequest.to_str6   s   € ä�~‰~˜dŸi™i°˜iÓ6Ó7Ð7ó    c                óH   — t        j                  | j                  «       «      S )z8Returns the JSON representation of the model using alias)ÚjsonÚdumpsÚto_dictr1   s    r3   Úto_jsonzCreateVendorRequest.to_json:   s   € ä�z‰z˜$Ÿ,™,›.Ó)Ð)r5   c                óJ   — | j                  t        j                  |«      «      S )ú<Create an instance of CreateVendorRequest from a JSON string)Ú	from_dictr7   Úloads)ÚclsÚjson_strs     r3   Ú	from_jsonzCreateVendorRequest.from_json>   s   € ð �}‰}œTŸZ™Z¨Ó1Ó2Ð2r5   c                óš   — t        j                  |«      }d|j                  «       v r$| j                  t        j                  |«      «      S y)r<   zpvendor_id, status, name, email, phone, verify_account, dashboard_access, schedule_option, bank, upi, kyc_detailsN)r7   r>   Úkeysr=   )r?   r@   Ú	temp_dicts      r3   Úfrom_json_for_one_ofz(CreateVendorRequest.from_json_for_one_ofC   sR   € ô —J‘J˜xÓ(ˆ	Ø}ð  BK÷  BPñ  BPó  BRñ  RØ—=‘=¤§¡¨HÓ!5Ó6Ð6Ør5   c                óÒ  — | j                  di d¬«      }g }| j                  r8| j                  D ]$  }|sŒ|j                  |j                  «       «       Œ& ||d<   g }| j                  r8| j                  D ]$  }|sŒ|j                  |j                  «       «       Œ& ||d<   g }| j
                  r8| j
                  D ]$  }|sŒ|j                  |j                  «       «       Œ& ||d<   |S )z>Returns the dictionary representation of the model using aliasT)r-   ÚexcludeÚexclude_noner&   r'   r(   )r0   r&   Úappendr9   r'   r(   )r2   Ú_dictÚ_itemsÚ_items       r3   r9   zCreateVendorRequest.to_dictK   sè   € à—	‘	 4ð#à'+ð ó -ˆð
 ˆØ�9Š9ØŸ™ò 3�ÚØ—M‘M %§-¡-£/Õ2ð3ð #ˆE�&‰MàˆØ�8Š8ØŸ™ò 3�ÚØ—M‘M %§-¡-£/Õ2ð3ð "ˆE�%‰LàˆØ×ÒØ×)Ñ)ò 3�ÚØ—M‘M %§-¡-£/Õ2ð3ð $*ˆE�-Ñ Øˆr5   c                ó8  — |€yt        |t        «      st        j                  |«      S t        j                  |j	                  d«      |j	                  d«      |j	                  d«      |j	                  d«      |j	                  d«      |j	                  d«      |j	                  d«      |j	                  d	«      |j	                  d
«      �2|j	                  d
«      D �cg c]  }t        j                  |«      ‘Œ c}nd|j	                  d«      �2|j	                  d«      D �cg c]  }t        j                  |«      ‘Œ c}nd|j	                  d«      �2|j	                  d«      D �cg c]  }t        j                  |«      ‘Œ c}nddœ«      }|S c c}w c c}w c c}w )z5Create an instance of CreateVendorRequest from a dictNr   r   r   r    r!   r#   r$   r%   r&   r'   r(   r)   )	Ú
isinstancer0   r   Ú	parse_objÚgetr   r=   r   r   )r?   ÚobjrL   Ú_objs       r3   r=   zCreateVendorRequest.from_dicth   sY  € ð ˆ;Øä˜#œtÔ$Ü&×0Ñ0°Ó5Ð5ä"×,Ñ,ØŸ™ Ó-Ø—g‘g˜hÓ'Ø—G‘G˜F“OØ—W‘W˜WÓ%Ø—W‘W˜WÓ%Ø!Ÿg™gÐ&6Ó7Ø #§¡Ð(:Ó ;Ø"Ÿw™wÐ'8Ó9ØSV×SZÑSZÐ[aÓSbÐSn¸s¿w¹wÀv»ÖO°e”[×*Ñ*¨5Õ1ÓOÐtxØPS×PWÑPWÐX]ÓP^ÐPj¸S¿W¹WÀU»^ÖL°E”J×(Ñ(¨Õ/ÓLÐptØ`c×`gÑ`gÐhuÓ`vð  aCÀSÇWÁWÈ]ÓE[Ö\¸EœJ×0Ñ0°Õ7Ó\ð  IMñ.
ó ˆð ˆùò	 PùÚLùÚ\s   ÃFÄ FÅ$F)ÚreturnÚstr)r@   rT   rS   r   )rQ   r0   rS   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ú__annotations__r   r   r    r!   r#   r$   r%   r&   r'   r(   Ú _CreateVendorRequest__propertiesÚmodel_configr4   r:   ÚclassmethodrA   rE   r9   r=   © r5   r3   r   r      s�  … ññ !ð  .Rô  S€Iˆyó  SÙð  +Jô  K€FˆIó  KÙð  )Rô  S€Dˆ)ó  SÙð  *rô  s€Eˆ9ó  sÙð  *xô  y€Eˆ9ó  yÙ+0¸ð  Lkô  ,l€NÐ(ó  lÙ-2¸4ð  Njô  .kÐÐ*ó  kÙ?DÈTð  `ô  @@€OÐ<ó  @Ù(-°dð  IAô  )B€DÐ
%ó  BÙ&+°Dð  Gqô  'r€CÐ	#ó  rÙ$)Ð6gÔ$h€KÐ!Óhò \€Lð !à Ø#ñ€Ló
8ó*ð ò3ó ð3ð òó ðòð: òó ñr5   r   )$rX   Ú
__future__r   r.   Úrer7   r   r   Úcashfree_pg.models.bank_detailsr   Úcashfree_pg.models.kyc_detailsr   Úcashfree_pg.models.upi_detailsr   Úpydanticr	   r
   r   r   r   r   r   r   r   r   Útypingr   r   r   r   r   r   Útyping_extensionsr   r   Úmodel_rebuildr]   r5   r3   ú<module>rg      s^   ðñ
õ #Û Û 	Û ç #õ 8Ý 5Ý 5÷ X÷  X÷  Xß :× :Ý 'ô`˜)ô `ðH × !Ñ !Õ #r5   