Ë
    T>{iÛ  ã                  óÚ   — 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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j?                  «        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)ÚUPIAuthorizeDetails)
Úvalidate_argumentsÚValidationErrorÚFieldÚ	StrictStrÚStrictBytesÚ	StrictIntÚStrictFloatÚ
StrictBoolÚfield_validatorÚ	BaseModel)ÚAnyÚDictÚListÚOptionalÚTupleÚUnion)Ú	Annotatedc                  ó0  — e Zd ZU dZ 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<   dZded<   g d¢Z ed«      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)"ÚUpiz+
    UPI collect payment method object
    zlSpecify the channel through which the payment must be processed. Can be one of ["link", "collect", "qrcode"])Údescriptionr
   ÚchannelNziCustomer UPI VPA to process payment.  ### Important This is a required parameter for channel = `collect` )Údefaultr   zOptional[StrictStr]Úupi_idzºuse this if you want cashfree to show a loader. Sample response below. It is only supported for collect `action:collect` will be returned with `data.url` having the link for redirection zOptional[StrictBool]Úupi_redirect_urlz×The UPI request will be valid for this expiry minutes. This parameter is only applicable for a UPI collect payment. The default value is 5 minutes. You should keep the minimum as 5 minutes, and maximum as 15 minutesz'Optional[Union[StrictFloat, StrictInt]]Úupi_expiry_minutesz¥For one time mandate on UPI. Set this as authorize_only = true. Please note that you can only use the "collect" channel if you are sending a one time mandate requestÚauthorize_onlyzOptional[UPIAuthorizeDetails]Úauthorization©r   r   r   r   r    r!   c                ó$   — |dvrt        d«      ‚|S )zValidates the enum)ÚlinkÚcollectÚqrcodez8must be one of enum values ('link', 'collect', 'qrcode'))Ú
ValueError)ÚclsÚvalues     úT/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/cashfree_pg/models/upi.pyÚchannel_validate_enumzUpi.channel_validate_enum(   s   € ð Ð5Ñ5ÜÐWÓXÐXØˆó    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    r*   Úto_strz
Upi.to_str6   s   € ä�~‰~˜dŸi™i°˜iÓ6Ó7Ð7r,   c                óH   — t        j                  | j                  «       «      S )z8Returns the JSON representation of the model using alias)ÚjsonÚdumpsÚto_dictr4   s    r*   Úto_jsonzUpi.to_json:   s   € ä�z‰z˜$Ÿ,™,›.Ó)Ð)r,   c                óJ   — | j                  t        j                  |«      «      S )ú,Create an instance of Upi from a JSON string)Ú	from_dictr8   Úloads)r(   Újson_strs     r*   Ú	from_jsonzUpi.from_json>   s   € ð �}‰}œTŸZ™Z¨Ó1Ó2Ð2r,   c                óš   — t        j                  |«      }d|j                  «       v r$| j                  t        j                  |«      «      S y)r=   zTchannel, upi_id, upi_redirect_url, upi_expiry_minutes, authorize_only, authorizationN)r8   r?   Úkeysr>   )r(   r@   Ú	temp_dicts      r*   Úfrom_json_for_one_ofzUpi.from_json_for_one_ofC   s?   € ô —J‘J˜xÓ(ˆ	ØaÐen×esÑesÓeuÑuØ—=‘=¤§¡¨HÓ!5Ó6Ð6Ør,   c                ó€   — | j                  di d¬«      }| j                  r| j                  j                  «       |d<   |S )z>Returns the dictionary representation of the model using aliasT)r0   ÚexcludeÚexclude_noner!   )r3   r!   r:   )r5   Ú_dicts     r*   r:   zUpi.to_dictK   sH   € à—	‘	 4ð#à'+ð ó -ˆð
 ×ÒØ%)×%7Ñ%7×%?Ñ%?Ó%AˆE�/Ñ"Øˆr,   c                óŽ  — |€yt        |t        «      st        j                  |«      S t        j                  |j	                  d«      |j	                  d«      |j	                  d«      |j	                  d«      |j	                  d«      |j	                  d«      �$t        j                  |j	                  d«      «      nddœ«      }|S )	z%Create an instance of Upi from a dictNr   r   r   r   r    r!   r"   )Ú
isinstancer3   r   Ú	parse_objÚgetr   r>   )r(   ÚobjÚ_objs      r*   r>   zUpi.from_dictV   s®   € ð ˆ;Øä˜#œtÔ$Ü—=‘= Ó%Ð%ä�}‰}Ø—w‘w˜yÓ)Ø—g‘g˜hÓ'Ø #§¡Ð(:Ó ;Ø"%§'¡'Ð*>Ó"?Ø!Ÿg™gÐ&6Ó7ØX[×X_ÑX_Ð`oÓXpÐX|Ô0×:Ñ:¸3¿7¹7À?Ó;SÔTð  CGñ
ó ˆð ˆr,   )ÚreturnÚstr)r@   rQ   rP   r   )rN   r3   rP   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r	   r   Ú__annotations__r   r   r   r    r!   Ú_Upi__propertiesr   r+   Úmodel_configr6   r;   ÚclassmethodrA   rE   r:   r>   © r,   r*   r   r      s  … ññ ð  ,`ô  a€GˆYó  aÙ"'°ð  Cnô  #o€FÐó  oÙ-2¸4ð  NJô  .KÐÐ*ó  KÙBGÐPTð  c|ô  C}ÐÐ?ó  }Ù+0¸ð  Luô  ,v€NÐ(ó  vØ37€MÐ0Ó7Úu€Lá�YÓñó  ðð !à Ø#ñ€Ló
8ó*ð ò3ó ð3ð òó ðò	ð òó ñr,   r   ) rU   Ú
__future__r   r1   Úrer8   r   r   Ú(cashfree_pg.models.upi_authorize_detailsr   Úpydanticr   r   r	   r
   r   r   r   r   r   r   Útypingr   r   r   r   r   r   Útyping_extensionsr   r   Úmodel_rebuildrZ   r,   r*   ú<module>rb      sY   ðñ
õ #Û Û 	Û ç #õ I÷ X÷  X÷  Xß :× :Ý 'ôKˆ)ô Kð^ × Ñ Õ r,   