Ë
    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)Ú-CreateSubscriptionRequestAuthorizationDetails)Ú$CreateSubscriptionRequestPlanDetails)Ú)CreateSubscriptionRequestSubscriptionMeta)ÚSubscriptionCustomerDetails)ÚSubscriptionPaymentSplitItem)
Úvalidate_argumentsÚValidationErrorÚFieldÚ	StrictStrÚStrictBytesÚ	StrictIntÚStrictFloatÚ
StrictBoolÚfield_validatorÚ	BaseModel)ÚAnyÚDictÚListÚOptionalÚTupleÚUnion)Ú	Annotatedc                  óT  — e Zd ZU dZ ed¬«      Zded<   ded<   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
))ÚCreateSubscriptionRequestz4
    Request body to create a new subscription.
    z�A unique ID for the subscription. It can include alphanumeric characters, underscore, dot, hyphen, and space. Maximum characters allowed is 250.)Údescriptionz@Annotated[str, Field(min_length=1, strict=True, max_length=250)]Úsubscription_idr	   Úcustomer_detailsr   Úplan_detailsNz7Optional[CreateSubscriptionRequestAuthorizationDetails]Úauthorization_detailsz3Optional[CreateSubscriptionRequestSubscriptionMeta]Úsubscription_metaz!Expiry date for the subscription.)Údefaultr   zOptional[StrictStr]Úsubscription_expiry_timezyTime at which the first charge will be made for the subscription after authorization. Applicable only for PERIODIC plans.Úsubscription_first_charge_timezNote for the subscription.Úsubscription_notezTags for the subscription.zOptional[Dict[str, Any]]Úsubscription_tagsz$Payment splits for the subscription.z,Optional[List[SubscriptionPaymentSplitItem]]Úsubscription_payment_splits©
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    úl/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/cashfree_pg/models/create_subscription_request.pyÚto_strz CreateSubscriptionRequest.to_str7   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_dictr2   s    r4   Úto_jsonz!CreateSubscriptionRequest.to_json;   s   € ä�z‰z˜$Ÿ,™,›.Ó)Ð)r6   c                óJ   — | j                  t        j                  |«      «      S )úBCreate an instance of CreateSubscriptionRequest from a JSON string)Ú	from_dictr8   Úloads)ÚclsÚjson_strs     r4   Ú	from_jsonz#CreateSubscriptionRequest.from_json?   s   € ð �}‰}œTŸZ™Z¨Ó1Ó2Ð2r6   c                óš   — t        j                  |«      }d|j                  «       v r$| j                  t        j                  |«      «      S y)r=   zÖsubscription_id, customer_details, plan_details, authorization_details, subscription_meta, subscription_expiry_time, subscription_first_charge_time, subscription_note, subscription_tags, subscription_payment_splitsN)r8   r?   Úkeysr>   )r@   rA   Ú	temp_dicts      r4   Úfrom_json_for_one_ofz.CreateSubscriptionRequest.from_json_for_one_ofD   sU   € ô —J‘J˜xÓ(ˆ	ð dð  hq÷  hvñ  hvó  hxñ  xØ—=‘=¤§¡¨HÓ!5Ó6Ð6Ør6   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)r.   ÚexcludeÚexclude_noner    r!   r"   r#   r)   )r1   r    r:   r!   r"   r#   r)   Úappend)r3   Ú_dictÚ_itemsÚ_items       r4   r:   z!CreateSubscriptionRequest.to_dictL   sö   € à—	‘	 4ð#à'+ð ó -ˆð
 × Ò Ø(,×(=Ñ(=×(EÑ(EÓ(GˆEÐ$Ñ%à×ÒØ$(×$5Ñ$5×$=Ñ$=Ó$?ˆE�.Ñ!à×%Ò%Ø-1×-GÑ-G×-OÑ-OÓ-QˆEÐ)Ñ*à×!Ò!Ø)-×)?Ñ)?×)GÑ)GÓ)IˆEÐ%Ñ&àˆØ×+Ò+Ø×9Ñ9ò 3�ÚØ—M‘M %§-¡-£/Õ2ð3ð 4:ˆEÐ/Ñ0Øˆr6   c                ód  — |€yt        |t        «      st        j                  |«      S t        j                  |j	                  d«      |j	                  d«      �$t        j                  |j	                  d«      «      nd|j	                  d«      �$t        j                  |j	                  d«      «      n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
«      |j	                  d«      �2|j	                  d«      D �cg c]  }t        j                  |«      ‘Œ c}nddœ
«      }|S c c}w )z;Create an instance of CreateSubscriptionRequest from a dictNr   r    r!   r"   r#   r%   r&   r'   r(   r)   r*   )Ú
isinstancer1   r   Ú	parse_objÚgetr	   r>   r   r   r   r
   )r@   ÚobjrM   Ú_objs       r4   r>   z#CreateSubscriptionRequest.from_dictg   sï  € ð ˆ;Øä˜#œtÔ$Ü,×6Ñ6°sÓ;Ð;ä(×2Ñ2Ø"Ÿw™wÐ'8Ó9Øfi×fmÑfmð  oAó  gBð  gNÔ ;× EÑ EÀcÇgÁgÐN`ÓFaÔ bð  TXØgj×gnÑgnÐo}Óg~ð  hKÔ@×JÑJÈ3Ï7É7ÐSaÓKbÔcð  QUð CF÷  CJñ  CJð  Kbó  Ccð  CoÔ%R×%\Ñ%\Ð]`×]dÑ]dÐe|Ó]}Ô%~ð  uyØvy×v}Ñv}ð  Ró  wSð  w_Ô!J×!TÑ!TÐUX×U\ÑU\Ð]pÓUqÔ!rð  eiØ(+¯©Ð0JÓ(KØ.1¯g©gÐ6VÓ.WØ!$§¡Ð)<Ó!=Ø!$§¡Ð)<Ó!=ð 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ñ4
ó ˆð ˆùò ,Os   ÆF-)ÚreturnÚstr)rA   rU   rT   r   )rR   r1   rT   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ú__annotations__r"   r#   r%   r&   r'   r(   r)   Ú&_CreateSubscriptionRequest__propertiesÚmodel_configr5   r;   ÚclassmethodrB   rF   r:   r>   © r6   r4   r   r       s*  … ññ Y^ð  k}ô  Y~€OÐUó  ~Ø1Ó1Ø6Ó6ØUYÐÐRÓYØMQÐÐJÓQÙ49À$ÐTwÔ4xÐÐ1ÓxÙ:?Èð  [Vô  ;WÐ"Ð$7ó  WÙ-2¸4ÐMiÔ-jÐÐ*ÓjÙ27ÀÐRnÔ2oÐÐ/ÓoÙPUÐ^bð  qWô  QXÐÐ!Mó  Xò @€Lð !à Ø#ñ€Ló
8ó*ð ò3ó ð3ð òó ðòð6 òó ñr6   r   )(rY   Ú
__future__r   r/   Úrer8   r   r   ÚDcashfree_pg.models.create_subscription_request_authorization_detailsr   Ú;cashfree_pg.models.create_subscription_request_plan_detailsr   Ú@cashfree_pg.models.create_subscription_request_subscription_metar   Ú0cashfree_pg.models.subscription_customer_detailsr	   Ú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_rebuildr^   r6   r4   ú<module>rj      se   ðñ
õ #Û Û 	Û ç #õ Ý lÝ vÝ XÝ [÷ X÷  X÷  Xß :× :Ý 'ô\ 	ô \ð@ × 'Ñ 'Õ )r6   