Ë
    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)ÚOrderPayData)
Úvalidate_argumentsÚValidationErrorÚFieldÚ	StrictStrÚStrictBytesÚ	StrictIntÚStrictFloatÚ
StrictBoolÚfield_validatorÚ	BaseModel)ÚAnyÚDictÚListÚOptionalÚTupleÚUnion)Ú	Annotatedc                  ój  — e Zd ZU dZ 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<   dZded<   g d¢Z ed«      d„ «       Z ed«      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)!ÚPayOrderEntityzI
    Order Pay response once you create a transaction for that order
    Nztotal amount payable)ÚdefaultÚdescriptionz'Optional[Union[StrictFloat, StrictInt]]Úpayment_amountz&Payment identifier created by CashfreezOptional[StrictStr]Úcf_payment_idzXOne of ["upi", "netbanking", "card", "app", "cardless_emi", "paylater", "banktransfer"] Úpayment_methoda-  One of ["link", "collect", "qrcode"]. In an older version we used to support different channels like 'gpay', 'phonepe' etc. However, we now support only the following channels - link, collect and qrcode. To process payments using gpay, you will have to provide channel as 'link' and provider as 'gpay'Úchannelz!One of ["link", "custom", "form"]ÚactionzOptional[OrderPayData]Údata©r   r   r   r   r    r!   c                ó,   — |€|S |dvrt        d«      ‚|S )úValidates the enum)Ú
netbankingÚcardÚupiÚappÚcardless_emiÚpaylaterÚbanktransferzkmust be one of enum values ('netbanking', 'card', 'upi', 'app', 'cardless_emi', 'paylater', 'banktransfer')©Ú
ValueError©ÚclsÚvalues     úa/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/cashfree_pg/models/pay_order_entity.pyÚpayment_method_validate_enumz+PayOrderEntity.payment_method_validate_enum(   s1   € ð ˆ=ØˆLàÐhÑhÜð  Kó  Lð  LØˆó    c                ó,   — |€|S |dvrt        d«      ‚|S )r$   )ÚlinkÚcollectÚqrcodeÚpostz@must be one of enum values ('link', 'collect', 'qrcode', 'post')r,   r.   s     r1   Úchannel_validate_enumz$PayOrderEntity.channel_validate_enum2   s(   € ð ˆ=ØˆLàÐ=Ñ=ÜÐ_Ó`Ð`Øˆr3   c                ó,   — |€|S |dvrt        d«      ‚|S )r$   )r5   ÚcustomÚformr8   z=must be one of enum values ('link', 'custom', 'form', 'post')r,   r.   s     r1   Úaction_validate_enumz#PayOrderEntity.action_validate_enum<   s(   € ð ˆ=ØˆLàÐ:Ñ:ÜÐ\Ó]Ð]Øˆr3   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    r1   Úto_strzPayOrderEntity.to_strM   s   € ä�~‰~˜dŸi™i°˜iÓ6Ó7Ð7r3   c                óH   — t        j                  | j                  «       «      S )z8Returns the JSON representation of the model using alias)ÚjsonÚdumpsÚto_dictrE   s    r1   Úto_jsonzPayOrderEntity.to_jsonQ   s   € ä�z‰z˜$Ÿ,™,›.Ó)Ð)r3   c                óJ   — | j                  t        j                  |«      «      S )ú7Create an instance of PayOrderEntity from a JSON string)Ú	from_dictrI   Úloads)r/   Újson_strs     r1   Ú	from_jsonzPayOrderEntity.from_jsonU   s   € ð �}‰}œTŸZ™Z¨Ó1Ó2Ð2r3   c                óš   — t        j                  |«      }d|j                  «       v r$| j                  t        j                  |«      «      S y)rN   zDpayment_amount, cf_payment_id, payment_method, channel, action, dataN)rI   rP   ÚkeysrO   )r/   rQ   Ú	temp_dicts      r1   Úfrom_json_for_one_ofz#PayOrderEntity.from_json_for_one_ofZ   s?   € ô —J‘J˜xÓ(ˆ	ØQÐU^×UcÑUcÓUeÑeØ—=‘=¤§¡¨HÓ!5Ó6Ð6Ør3   c                ó€   — | j                  di d¬«      }| j                  r| j                  j                  «       |d<   |S )z>Returns the dictionary representation of the model using aliasT)rA   ÚexcludeÚexclude_noner!   )rD   r!   rK   )rF   Ú_dicts     r1   rK   zPayOrderEntity.to_dictb   sC   € à—	‘	 4ð#à'+ð ó -ˆð
 �9Š9Ø ŸI™I×-Ñ-Ó/ˆE�&‰MØˆr3   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 )	z0Create an instance of PayOrderEntity from a dictNr   r   r   r   r    r!   r"   )Ú
isinstancerD   r   Ú	parse_objÚgetr   rO   )r/   ÚobjÚ_objs      r1   rO   zPayOrderEntity.from_dictm   s§   € ð ˆ;Øä˜#œtÔ$Ü!×+Ñ+¨CÓ0Ð0ä×'Ñ'Ø!Ÿg™gÐ&6Ó7Ø ŸW™W _Ó5Ø!Ÿg™gÐ&6Ó7Ø—w‘w˜yÓ)Ø—g‘g˜hÓ'Ø?B¿w¹wÀv»Ð?Z”L×*Ñ*¨3¯7©7°6«?Ô;Ð`dñ)
ó ˆð ˆr3   )ÚreturnÚstr)rQ   rb   ra   r   )r_   rD   ra   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r	   r   Ú__annotations__r   r   r   r    r!   Ú_PayOrderEntity__propertiesr   r2   r9   r=   Úmodel_configrG   rL   ÚclassmethodrR   rV   rK   rO   © r3   r1   r   r      s4  … ññ ?DÈDÐ^tÔ>u€NÐ;ÓuÙ).°tÐIqÔ)r€MÐ&ÓrÙ*/¸ð  Ksô  +t€NÐ'ó  tÙ#(°ð  Dyô  $z€GÐ ó  zÙ"'°ÐBkÔ"l€FÐÓlØ#'€DÐ
 Ó'Úe€LáÐ%Ó&ñó 'ðñ �YÓñó  ðñ �XÓñó ðð !à Ø#ñ€Ló
8ó*ð ò3ó ð3ð òó ðò	ð òó ñr3   r   ) rf   Ú
__future__r   rB   ÚrerI   r   r   Ú!cashfree_pg.models.order_pay_datar   Úpydanticr   r   r	   r
   r   r   r   r   r   r   Útypingr   r   r   r   r   r   Útyping_extensionsr   r   Úmodel_rebuildrk   r3   r1   ú<module>rs      sX   ðñ
õ #Û Û 	Û ç #õ ;÷ X÷  X÷  Xß :× :Ý 'ôb�Yô bðL × Ñ Õ r3   