Ë
    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)ÚCartDetails)ÚCustomerDetails)Ú	OrderMeta)ÚTerminalDetails)ÚVendorSplit)
Ú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d¬«      Zded<    ed¬«      Zd	ed
<    ed¬«      Zded<   dZ	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!<   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).ÚCreateOrderRequestz5
    Request body to create an order at cashfree
    NzGOrder identifier present in your system. Alphanumeric, '_' and '-' only)ÚdefaultÚdescriptionzIOptional[Annotated[str, Field(min_length=3, strict=True, max_length=45)]]Úorder_idzTBill amount for the order. Provide upto two decimals. 10.15 means Rs 10 and 15 paisa)r   z[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]Úorder_amountz^Currency for the order. INR if left empty. Contact care@cashfree.com to enable new currencies.r   Úorder_currencyzOptional[CartDetails]Úcart_detailsr   Úcustomer_detailszOptional[TerminalDetails]ÚterminalzOptional[OrderMeta]Ú
order_metaa  Time after which the order expires. Customers will not be able to make the payment beyond the time specified here. We store timestamps in IST, but you can provide them in a valid ISO 8601 time format. Example 2021-07-02T10:20:12+05:30 for IST, 2021-07-02T10:20:12Z for UTCzOptional[StrictStr]Úorder_expiry_timezOrder note for reference.zJOptional[Annotated[str, Field(min_length=3, strict=True, max_length=200)]]Ú
order_noteznCustom Tags in thr form of {"key":"value"} which can be passed for an order. A maximum of 10 tags can be addedzUOptional[Dict[str, Annotated[str, Field(min_length=1, strict=True, max_length=255)]]]Ú
order_tagszoIf 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*   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    úe/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/cashfree_pg/models/create_order_request.pyÚto_strzCreateOrderRequest.to_str8   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_dictr3   s    r5   Úto_jsonzCreateOrderRequest.to_json<   s   € ä�z‰z˜$Ÿ,™,›.Ó)Ð)r7   c                óJ   — | j                  t        j                  |«      «      S )ú;Create an instance of CreateOrderRequest from a JSON string)Ú	from_dictr9   Úloads)ÚclsÚjson_strs     r5   Ú	from_jsonzCreateOrderRequest.from_json@   s   € ð �}‰}œTŸZ™Z¨Ó1Ó2Ð2r7   c                óš   — t        j                  |«      }d|j                  «       v r$| j                  t        j                  |«      «      S y)r>   z•order_id, order_amount, order_currency, cart_details, customer_details, terminal, order_meta, order_expiry_time, order_note, order_tags, order_splitsN)r9   r@   Úkeysr?   )rA   rB   Ú	temp_dicts      r5   Úfrom_json_for_one_ofz'CreateOrderRequest.from_json_for_one_ofE   sU   € ô —J‘J˜xÓ(ˆ	ð cð  gp÷  guñ  guó  gwñ  wØ—=‘=¤§¡¨HÓ!5Ó6Ð6Ør7   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*   )r2   r#   r;   r$   r%   r&   r*   Úappend)r4   Ú_dictÚ_itemsÚ_items       r5   r;   zCreateOrderRequest.to_dictM   së   € à—	‘	 4ð#à'+ð ó -ˆð
 ×ÒØ$(×$5Ñ$5×$=Ñ$=Ó$?ˆE�.Ñ!à× Ò Ø(,×(=Ñ(=×(EÑ(EÓ(GˆEÐ$Ñ%à�=Š=Ø $§¡× 5Ñ 5Ó 7ˆE�*Ñà�?Š?Ø"&§/¡/×"9Ñ"9Ó";ˆE�,ÑàˆØ×ÒØ×*Ñ*ò 3�ÚØ—M‘M %§-¡-£/Õ2ð3ð %+ˆE�.Ñ!Øˆr7   c                ó„  — |€yt        |t        «      st        j                  |«      S t        j                  |j	                  d«      |j	                  d«      |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«      �2|j	                  d«      D �cg c]  }t        j                  |«      ‘Œ c}nddœ«      }|S c c}w )z4Create an instance of CreateOrderRequest from a dictNr    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   )Ú
isinstancer2   r   Ú	parse_objÚgetr   r?   r   r	   r   r
   )rA   ÚobjrN   Ú_objs       r5   r?   zCreateOrderRequest.from_dicth   s€  € ð ˆ;Øä˜#œtÔ$Ü%×/Ñ/°Ó4Ð4ä!×+Ñ+ØŸ™ 
Ó+ØŸG™G NÓ3Ø!Ÿg™gÐ&6Ó7ØNQÏgÉgÐVdÓNeÐNqœK×1Ñ1°#·'±'¸.Ó2IÔJÐw{ØZ]×ZaÑZaÐbtÓZuð  [B¤× 9Ñ 9¸#¿'¹'ÐBTÓ:UÔ Vð  HLØJMÏ'É'ÐR\ÓJ]ÐJiœ×1Ñ1°#·'±'¸*Ó2EÔFÐosØHKÏÉÐP\ÓH]ÐHiœ)×-Ñ-¨c¯g©g°lÓ.CÔDÐosØ!$§¡Ð)<Ó!=ØŸ'™' ,Ó/ØŸ'™' ,Ó/Øcf×cjÑcjÐkyÓczð  dGÀsÇwÁwÈ~ÓG^Ö_¸eœ[×2Ñ2°5Õ9Ó_ð  MQñ-
ó ˆð ˆùò `s   ÆF=)ÚreturnÚstr)rB   rV   rU   r   )rS   r2   rU   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r    Ú__annotations__r!   r"   r#   r%   r&   r'   r(   r)   r*   Ú_CreateOrderRequest__propertiesÚmodel_configr6   r<   ÚclassmethodrC   rG   r;   r?   © r7   r5   r   r       sd  … ññ [`Ðhlð  {Dô  [E€HÐWó  EÙpuð  CYô  qZ€LÐmó  ZÙ %ð  3Sô  !T€N�Ió  TØ*.€LÐ'Ó.Ø%Ó%Ø*.€HÐ'Ó.Ø&*€JÐ#Ó*Ù-2¸4ð  N`ô  .aÐÐ*ó  aÙ]bÐkoð  ~Yô  ^Z€JÐZó  ZÙhmÐvzð  I}ô  i~€JÐeó  ~Ù05¸dð  QBô  1C€LÐ-ó  Cò A€Lð !à Ø#ñ€Ló
8ó*ð ò3ó ð3ð òó ðòð6 òó ñr7   r   )(rZ   Ú
__future__r   r0   Úrer9   r   r   Úcashfree_pg.models.cart_detailsr   Ú#cashfree_pg.models.customer_detailsr   Úcashfree_pg.models.order_metar   Ú#cashfree_pg.models.terminal_detailsr	   Ú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_   r7   r5   ú<module>rk      sd   ðñ
õ #Û Û 	Û ç #õ 8Ý ?Ý 3Ý ?Ý 7÷ X÷  X÷  Xß :× :Ý 'ô^˜ô ^ðD ×  Ñ  Õ "r7   