Ë
    T>{id  ã                  óÎ   — 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	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)
Úvalidate_argumentsÚValidationErrorÚFieldÚ	StrictStrÚStrictBytesÚ	StrictIntÚStrictFloatÚ
StrictBoolÚfield_validatorÚ	BaseModel)ÚAnyÚDictÚListÚOptionalÚTupleÚUnion)Ú	Annotatedc                  óv  — 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<    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<    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$<   g d%¢Z ed«      d&„ «       Z ed«      d'„ «       Z ed!«      d(„ «       Z	 d)d)d*œZd1d+„Zd1d,„Zed2d-„«       Zed2d.„«       Zd/„ Z ed3d0„«       Z!y)4ÚCardz
    Card Payment method
    zŒThe channel for card payments can be "link" or "post". Post is used for seamless OTP payments where merchant captures OTP on their own page.)Údescriptionr	   ÚchannelNzcCustomer card number for plain card transactions. Token pan number for tokenized card transactions.)Údefaultr   zOptional[StrictStr]Úcard_numberz$Customer name mentioned on the card.Úcard_holder_namezbCard expiry month for plain card transactions. Token expiry month for tokenized card transactions.Úcard_expiry_mmz`Card expiry year for plain card transactions. Token expiry year for tokenized card transactions.Úcard_expiry_yyzCVV mentioned on the card.Úcard_cvvzRinstrument id of saved card. Required only to make payment using saved instrument.Úinstrument_idzUcryptogram received from card network. Required only for tokenized card transactions.Ú
cryptogramzLTRID issued by card networks. Required only for tokenized card transactions.Útoken_requestor_idz`Token Reference Id provided by Diners for Guest Checkout Token.  Required only for Diners cards.Útoken_reference_idÚ
token_typezUlast 4 digits of original card number. Required only for tokenized card transactions.Úcard_displayz-Card alias as returned by Cashfree Vault API.Ú
card_aliasz”One of ["Kotak", "ICICI", "RBL", "BOB", "Standard Chartered"]. Card bank name, required for EMI payments. This is the bank user has selected for EMIÚcard_bank_namezEMI tenure selected by the userzOptional[StrictInt]Ú
emi_tenure©r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   c                ó$   — |dvrt        d«      ‚|S )úValidates the enum)ÚlinkÚpostz+must be one of enum values ('link', 'post')©Ú
ValueError©ÚclsÚvalues     úU/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/cashfree_pg/models/card.pyÚchannel_validate_enumzCard.channel_validate_enum0   s   € ð Ð(Ñ(ÜÐJÓKÐKØˆó    c                ó,   — |€|S |dvrt        d«      ‚|S )r,   )ÚISSUER_TOKENÚNETWORK_GC_TOKENÚISSUER_GC_TOKENzRmust be one of enum values ('ISSUER_TOKEN', 'NETWORK_GC_TOKEN', 'ISSUER_GC_TOKEN')r/   r1   s     r4   Útoken_type_validate_enumzCard.token_type_validate_enum7   s(   € ð ˆ=ØˆLàÐOÑOÜÐqÓrÐrØˆr6   c                ó,   — |€|S |dvrt        d«      ‚|S )r,   )ÚKotakÚICICIÚRBLÚBOBzStandard CharteredzQmust be one of enum values ('Kotak', 'ICICI', 'RBL', 'BOB', 'Standard Chartered')r/   r1   s     r4   Úcard_bank_name_validate_enumz!Card.card_bank_name_validate_enumA   s(   € ð ˆ=ØˆLàÐNÑNÜÐpÓqÐqØˆr6   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    r4   Úto_strzCard.to_strR   s   € ä�~‰~˜dŸi™i°˜iÓ6Ó7Ð7r6   c                óH   — t        j                  | j                  «       «      S )z8Returns the JSON representation of the model using alias)ÚjsonÚdumpsÚto_dictrI   s    r4   Úto_jsonzCard.to_jsonV   s   € ä�z‰z˜$Ÿ,™,›.Ó)Ð)r6   c                óJ   — | j                  t        j                  |«      «      S )ú-Create an instance of Card from a JSON string)Ú	from_dictrM   Úloads)r2   Újson_strs     r4   Ú	from_jsonzCard.from_jsonZ   s   € ð �}‰}œTŸZ™Z¨Ó1Ó2Ð2r6   c                óš   — t        j                  |«      }d|j                  «       v r$| j                  t        j                  |«      «      S y)rR   zÕchannel, card_number, card_holder_name, card_expiry_mm, card_expiry_yy, card_cvv, instrument_id, cryptogram, token_requestor_id, token_reference_id, token_type, card_display, card_alias, card_bank_name, emi_tenureN)rM   rT   ÚkeysrS   )r2   rU   Ú	temp_dicts      r4   Úfrom_json_for_one_ofzCard.from_json_for_one_of_   sU   € ô —J‘J˜xÓ(ˆ	ð cð  gp÷  guñ  guó  gwñ  wØ—=‘=¤§¡¨HÓ!5Ó6Ð6Ør6   c                ó.   — | j                  di d¬«      }|S )z>Returns the dictionary representation of the model using aliasT)rE   ÚexcludeÚexclude_none)rH   )rJ   Ú_dicts     r4   rO   zCard.to_dictg   s&   € à—	‘	 4ð#à'+ð ó -ˆð ˆr6   c                ób  — |€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
«      |j	                  d«      |j	                  d«      |j	                  d«      |j	                  d«      |j	                  d«      |j	                  d«      dœ«      }|S )z&Create an instance of Card from a dictNr   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   )Ú
isinstancerH   r   Ú	parse_objÚget)r2   ÚobjÚ_objs      r4   rS   zCard.from_dicto   sù   € ð ˆ;Øä˜#œtÔ$Ü—>‘> #Ó&Ð&ä�~‰~Ø—w‘w˜yÓ)ØŸ7™7 =Ó1Ø #§¡Ð(:Ó ;Ø!Ÿg™gÐ&6Ó7Ø!Ÿg™gÐ&6Ó7ØŸ™ 
Ó+Ø ŸW™W _Ó5ØŸ'™' ,Ó/Ø"%§'¡'Ð*>Ó"?Ø"%§'¡'Ð*>Ó"?ØŸ'™' ,Ó/ØŸG™G NÓ3ØŸ'™' ,Ó/Ø!Ÿg™gÐ&6Ó7ØŸ'™' ,Ó/ñ
ó ˆð" ˆr6   )ÚreturnÚstr)rU   rf   re   r   )rc   rH   re   r   )"Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ú__annotations__r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   Ú_Card__propertiesr   r5   r;   rA   Úmodel_configrK   rP   ÚclassmethodrV   rZ   rO   rS   © r6   r4   r   r      s0  … ññ ð  ,~ô  €GˆYó  Ù',°Tð  Hmô  (n€KÐ$ó  nÙ,1¸$ÐLrÔ,sÐÐ)ÓsÙ*/¸ð  Koô  +p€NÐ'ó  pÙ*/¸ð  Kmô  +n€NÐ'ó  nÙ$)°$ÐD`Ô$a€HÐ!ÓaÙ).°tð  J^ô  *_€MÐ&ó  _Ù&+°Dð  G^ô  '_€JÐ#ó  _Ù.3¸Dð  O]ô  /^ÐÐ+ó  ^Ù.3¸Dð  Oqô  /rÐÐ+ó  rØ&*€JÐ#Ó*Ù(-°dð  I`ô  )a€LÐ%ó  aÙ&+°DÐFuÔ&v€JÐ#ÓvÙ*/¸ð  Kkô  +l€NÐ'ó  lÙ&+°DÐFgÔ&h€JÐ#Óhò I€Lá�YÓñó  ðñ �\Ó"ñó #ðñ Ð%Ó&ñó 'ðð !à Ø#ñ€Ló
8ó*ð ò3ó ð3ð òó ðòð òó ñr6   r   )rj   Ú
__future__r   rF   ÚrerM   r   r   Úpydanticr   r   r   r	   r
   r   r   r   r   r   Útypingr   r   r   r   r   r   Útyping_extensionsr   r   Úmodel_rebuildro   r6   r4   ú<module>rv      sS   ðñ
õ #Û Û 	Û ç #÷ X÷  X÷  Xß :× :Ý 'ônˆ9ô nðd × Ñ Õ r6   