Ë
    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 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&jO                  «        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)ÚAuthorizationDetails)Ú
PlanEntity)ÚSubscriptionCustomerDetails)Ú"SubscriptionEntitySubscriptionMeta)ÚSubscriptionPaymentSplitItem)
Ú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dZded<    edd¬«      Z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<   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 <   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)-ÚSubscriptionEntityzL
    The response returned for Get, Create or Manage Subscription APIs.
    NzOptional[AuthorizationDetails]Úauthorisation_detailsz&Cashfree subscription reference number)ÚdefaultÚdescriptionzOptional[StrictStr]Úcf_subscription_idz%Optional[SubscriptionCustomerDetails]Úcustomer_detailszOptional[PlanEntity]Úplan_detailsz+Time at which the subscription will expire.Úsubscription_expiry_timezeTime at which the first charge will be made for the subscription. Applicable only for PERIODIC plans.Úsubscription_first_charge_timez@A unique ID passed by merchant for identifying the subscription.Úsubscription_idz,Optional[SubscriptionEntitySubscriptionMeta]Úsubscription_metazNote for the subscription.Úsubscription_notezSubscription Session Id.Úsubscription_session_idz$Payment splits for the subscription.z,Optional[List[SubscriptionPaymentSplitItem]]Úsubscription_payment_splitszStatus of the subscription.Úsubscription_statuszTags for the subscription.zOptional[Dict[str, Any]]Úsubscription_tags©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/subscription_entity.pyÚto_strzSubscriptionEntity.to_str:   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_dictr5   s    r7   Úto_jsonzSubscriptionEntity.to_json>   s   € ä�z‰z˜$Ÿ,™,›.Ó)Ð)r9   c                óJ   — | j                  t        j                  |«      «      S )ú;Create an instance of SubscriptionEntity from a JSON string)Ú	from_dictr;   Úloads)ÚclsÚjson_strs     r7   Ú	from_jsonzSubscriptionEntity.from_jsonB   s   € ð �}‰}œTŸZ™Z¨Ó1Ó2Ð2r9   c                óš   — t        j                  |«      }d|j                  «       v r$| j                  t        j                  |«      «      S y)r@   a  authorisation_details, cf_subscription_id, customer_details, plan_details, subscription_expiry_time, subscription_first_charge_time, subscription_id, subscription_meta, subscription_note, subscription_session_id, subscription_payment_splits, subscription_status, subscription_tagsN)r;   rB   ÚkeysrA   )rC   rD   Ú	temp_dicts      r7   Úfrom_json_for_one_ofz'SubscriptionEntity.from_json_for_one_ofG   sU   € ô —J‘J˜xÓ(ˆ	ð fð  js÷  jxñ  jxó  jzñ  zØ—=‘=¤§¡¨HÓ!5Ó6Ð6Ør9   c                ó  — | j                  di d¬«      }| j                  r| j                  j                  «       |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)r1   ÚexcludeÚexclude_noner   r"   r#   r'   r*   )r4   r   r=   r"   r#   r'   r*   Úappend)r6   Ú_dictÚ_itemsÚ_items       r7   r=   zSubscriptionEntity.to_dictO   sö   € à—	‘	 4ð#à'+ð ó -ˆð
 ×%Ò%Ø-1×-GÑ-G×-OÑ-OÓ-QˆEÐ)Ñ*à× Ò Ø(,×(=Ñ(=×(EÑ(EÓ(GˆEÐ$Ñ%à×ÒØ$(×$5Ñ$5×$=Ñ$=Ó$?ˆE�.Ñ!à×!Ò!Ø)-×)?Ñ)?×)GÑ)GÓ)IˆEÐ%Ñ&àˆØ×+Ò+Ø×9Ñ9ò 3�ÚØ—M‘M %§-¡-£/Õ2ð3ð 4:ˆEÐ/Ñ0Øˆr9   c                óÄ  — |€yt        |t        «      st        j                  |«      S t        j                  |j	                  d«      �$t        j                  |j	                  d«      «      nd|j	                  d«      |j	                  d«      �$t        j                  |j	                  d«      «      n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«      �2|j	                  d«      D �cg c]  }t        j                  |«      ‘Œ c}nd|j	                  d«      |j	                  d«      dœ«      }|S c c}w )z4Create an instance of SubscriptionEntity from a dictNr   r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   )Ú
isinstancer4   r   Ú	parse_objÚgetr   rA   r   r   r	   r
   )rC   ÚobjrP   Ú_objs       r7   rA   zSubscriptionEntity.from_dictj   sø  € ð ˆ;Øä˜#œtÔ$Ü%×/Ñ/°Ó4Ð4ä!×+Ñ+Øil×ipÑipð  rIó  jJð  jVÔ%9×%CÑ%CÀCÇGÁGÐLcÓDdÔ%eð  \`Ø"%§'¡'Ð*>Ó"?Øfi×fmÑfmð  oAó  gBð  gNÔ ;× EÑ EÀcÇgÁgÐN`ÓFaÔ bð  TXØMPÏWÉWÐUcÓMdÐMpœJ×0Ñ0°·±¸Ó1HÔIÐvzØ(+¯©Ð0JÓ(KØ.1¯g©gÐ6VÓ.WØ"Ÿw™wÐ'8Ó9Øor×ovÑovð  xKó  pLð  pXÔ!C×!MÑ!MÈcÏgÉgÐViÓNjÔ!kð  ^bØ!$§¡Ð)<Ó!=Ø'*§w¡wÐ/HÓ'Ið SV÷  SZñ  SZð  [xó  Syð  SEÐgj×gnÑgnð  pMó  hNö  ,OÐ^cÔ,H×,RÑ,RÐSXÕ,Yó  ,Oð  KOØ#&§7¡7Ð+@Ó#AØ!$§¡Ð)<Ó!=ñ-
ó ˆð ˆùò	 ,Os   ÆG)ÚreturnÚstr)rD   rX   rW   r   )rU   r4   rW   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__annotations__r   r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   Ú_SubscriptionEntity__propertiesÚmodel_configr8   r>   ÚclassmethodrE   rI   r=   rA   © r9   r7   r   r       s{  … ñð =AÐÐ9Ó@Ù.3¸DÐNvÔ.wÐÐ+ÓwØ>BÐÐ;ÓBØ)-€LÐ&Ó-Ù49À$ð  UBô  5CÐÐ1ó  CÙ:?Èð  [Bô  ;CÐ"Ð$7ó  CÙ+0¸ð  LNô  ,O€OÐ(ó  OØFJÐÐCÓJÙ-2¸4ÐMiÔ-jÐÐ*ÓjÙ38ÀÐSmÔ3nÐÐ0ÓnÙPUÐ^bð  qWô  QXÐÐ!Mó  XÙ/4¸TÐOlÔ/mÐÐ,ÓmÙ27ÀÐRnÔ2oÐÐ/Óoò H€Lð !à Ø#ñ€Ló
8ó*ð ò3ó ð3ð òó ðòð6 òó ñr9   r   )(r\   Ú
__future__r   r2   Úrer;   r   r   Ú(cashfree_pg.models.authorization_detailsr   Úcashfree_pg.models.plan_entityr   Ú0cashfree_pg.models.subscription_customer_detailsr   Ú8cashfree_pg.models.subscription_entity_subscription_metar	   Ú2cashfree_pg.models.subscription_payment_split_itemr
   Úpydanticr   r   r   r   r   r   r   r   r   r   Útypingr   r   r   r   r   r   Útyping_extensionsr   r   Úmodel_rebuildra   r9   r7   ú<module>rm      se   ðñ
õ #Û Û 	Û ç #õ JÝ 5Ý XÝ gÝ [÷ X÷  X÷  Xß :× :Ý 'ôb˜ô bðL ×  Ñ  Õ "r9   