Ë
    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 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$jK                  «        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)ÚLinkCustomerDetailsEntity)ÚLinkMetaResponseEntity)ÚLinkNotifyEntity)ÚVendorSplit)
Ú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<   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"<   dZd#ed$<    edd%¬«      Zd&ed'<   g d(¢Z	 d)d)d*œZd1d+„Zd1d,„Zed2d-„«       Zed2d.„«       Zd/„ Zed3d0„«       Zy)4ÚCreateLinkRequestz/
    Request paramenters for link creation
    z˜Unique Identifier (provided by merchant) for the Link. Alphanumeric and only - and _ allowed (50 character limit). Use this for other link-related APIs.)Údescriptionz1Annotated[str, Field(strict=True, max_length=50)]Úlink_idzLAmount to be collected using this link. Provide upto two decimals for paise.zUnion[StrictFloat, StrictInt]Úlink_amountzbCurrency for the payment link. Default is INR. Contact care@cashfree.com to enable new currencies.z"Annotated[str, Field(strict=True)]Úlink_currencyzWA brief description for which payment must be collected. This is shown to the customer.z2Annotated[str, Field(strict=True, max_length=500)]Úlink_purposer   Úcustomer_detailsNz;If "true", customer can make partial payments for the link.)Údefaultr   zOptional[StrictBool]Úlink_partial_paymentsz”Minimum amount in first installment that needs to be paid by the customer if partial payments are enabled. This should be less than the link_amount.z'Optional[Union[StrictFloat, StrictInt]]Úlink_minimum_partial_amountz»Time after which the link expires. Customers will not be able to make the payment beyond the time specified here. You can provide them in a valid ISO 8601 time format. Default is 30 days.zOptional[StrictStr]Úlink_expiry_timezOptional[LinkNotifyEntity]Úlink_notifyzGIf "true", reminders will be sent to customers for collecting payments.Úlink_auto_reminderszkKey-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairszOptional[Dict[str, StrictStr]]Ú
link_notesz Optional[LinkMetaResponseEntity]Ú	link_metazoIf you have Easy split enabled in your Cashfree account then you can use this option to split the order amount.zOptional[List[VendorSplit]]Úorder_splits©r   r   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    úd/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/cashfree_pg/models/create_link_request.pyÚto_strzCreateLinkRequest.to_str9   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_dictr4   s    r6   Úto_jsonzCreateLinkRequest.to_json=   s   € ä�z‰z˜$Ÿ,™,›.Ó)Ð)r8   c                óJ   — | j                  t        j                  |«      «      S )ú:Create an instance of CreateLinkRequest from a JSON string)Ú	from_dictr:   Úloads)ÚclsÚjson_strs     r6   Ú	from_jsonzCreateLinkRequest.from_jsonA   s   € ð �}‰}œTŸZ™Z¨Ó1Ó2Ð2r8   c                óš   — t        j                  |«      }d|j                  «       v r$| j                  t        j                  |«      «      S y)r?   zÐlink_id, link_amount, link_currency, link_purpose, customer_details, link_partial_payments, link_minimum_partial_amount, link_expiry_time, link_notify, link_auto_reminders, link_notes, link_meta, order_splitsN)r:   rA   Úkeysr@   )rB   rC   Ú	temp_dicts      r6   Úfrom_json_for_one_ofz&CreateLinkRequest.from_json_for_one_ofF   sU   € ô —J‘J˜xÓ(ˆ	ð ^ð  bk÷  bpñ  bpó  brñ  rØ—=‘=¤§¡¨HÓ!5Ó6Ð6Ør8   c                ó°  — | j                  di d¬«      }| j                  r| j                  j                  «       |d<   | j                  r| j                  j                  «       |d<   | j                  r| j                  j                  «       |d<   g }| j
                  r8| j
                  D ]$  }|sŒ|j                  |j                  «       «       Œ& ||d<   |S )z>Returns the dictionary representation of the model using aliasT)r0   ÚexcludeÚexclude_noner"   r'   r*   r+   )r3   r"   r<   r'   r*   r+   Úappend)r5   Ú_dictÚ_itemsÚ_items       r6   r<   zCreateLinkRequest.to_dictN   sÍ   € à—	‘	 4ð#à'+ð ó -ˆð
 × Ò Ø(,×(=Ñ(=×(EÑ(EÓ(GˆEÐ$Ñ%à×ÒØ#'×#3Ñ#3×#;Ñ#;Ó#=ˆE�-Ñ à�>Š>Ø!%§¡×!7Ñ!7Ó!9ˆE�+ÑàˆØ×ÒØ×*Ñ*ò 3�ÚØ—M‘M %§-¡-£/Õ2ð3ð %+ˆE�.Ñ!Øˆr8   c                óx  — |€yt        |t        «      st        j                  |«      S t        j                  |j	                  d«      |j	                  d«      |j	                  d«      |j	                  d«      |j	                  d«      �$t        j                  |j	                  d«      «      nd|j	                  d«      |j	                  d«      |j	                  d	«      |j	                  d
«      �$t        j                  |j	                  d
«      «      nd|j	                  d«      |j	                  d«      |j	                  d«      �$t        j                  |j	                  d«      «      nd|j	                  d«      �2|j	                  d«      D �cg c]  }t        j                  |«      ‘Œ c}nddœ«      }|S c c}w )z3Create an instance of CreateLinkRequest from a dictNr   r   r    r!   r"   r$   r%   r&   r'   r(   r)   r*   r+   r,   )
Ú
isinstancer3   r   Ú	parse_objÚgetr   r@   r   r   r	   )rB   ÚobjrO   Ú_objs       r6   r@   zCreateLinkRequest.from_dictf   s„  € ð ˆ;Øä˜#œtÔ$Ü$×.Ñ.¨sÓ3Ð3ä ×*Ñ*Ø—w‘w˜yÓ)ØŸ7™7 =Ó1Ø ŸW™W _Ó5ØŸG™G NÓ3Ødg×dkÑdkÐl~Ódð  eLÔ 9× CÑ CÀCÇGÁGÐL^ÓD_Ô `ð  RVØ%(§W¡WÐ-DÓ%EØ+.¯7©7Ð3PÓ+QØ #§¡Ð(:Ó ;ØQT×QXÑQXÐYfÓQgÐQsÔ+×5Ñ5°c·g±g¸mÓ6LÔMÐy}Ø#&§7¡7Ð+@Ó#AØŸ'™' ,Ó/ØSV×SZÑSZÐ[fÓSgÐSsÔ/×9Ñ9¸#¿'¹'À+Ó:NÔOÐy}Øcf×cjÑcjÐkyÓczð  dGÀsÇwÁwÈ~ÓG^Ö_¸eœ[×2Ñ2°5Õ9Ó_ð  MQñ,
ó ˆð ˆùò `s   ÆF7 )ÚreturnÚstr)rC   rW   rV   r   )rT   r3   rV   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ú__annotations__r   r    r!   r$   r%   r&   r'   r(   r)   r*   r+   Ú_CreateLinkRequest__propertiesÚmodel_configr7   r=   ÚclassmethodrD   rH   r<   r@   © r8   r6   r   r      s®  … ññ BGð  Tnô  Bo€GÐ>ó  oÙ16ð  DRô  2S€KÐ.ó  SÙ8=ð  Koô  9p€MÐ5ó  pÙGLð  Zsô  Ht€LÐDó  tØ/Ó/Ù27Àð  SRô  3SÐÐ/ó  SÙKPÐY]ð  lBô  LCÐÐ!Hó  CÙ,1¸$ð  MJô  -KÐÐ)ó  KØ.2€KÐ+Ó2Ù05¸dð  Q\ô  1]ÐÐ-ó  ]Ù16¸tð  Rô  2@€JÐ.ó  @Ø26€IÐ/Ó6Ù05¸dð  QBô  1C€LÐ-ó  Cò @€Lð !à Ø#ñ€Ló
8ó*ð ò3ó ð3ð òó ðòð0 òó ñr8   r   )&r[   Ú
__future__r   r1   Úrer:   r   r   Ú/cashfree_pg.models.link_customer_details_entityr   Ú,cashfree_pg.models.link_meta_response_entityr   Ú%cashfree_pg.models.link_notify_entityr   Úcashfree_pg.models.vendor_splitr	   Úpydanticr
   r   r   r   r   r   r   r   r   r   Útypingr   r   r   r   r   r   Útyping_extensionsr   r   Úmodel_rebuildr`   r8   r6   ú<module>rk      sb   ðñ
õ #Û Û 	Û ç #õ VÝ OÝ BÝ 7÷ X÷  X÷  Xß :× :Ý 'ô_˜	ô _ðF × Ñ Õ !r8   