§
    jo—fM>  ã                   óþ   — 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 d dlmZ d dlmZ d d	lmZmZmZmZmZ d d
lmZmZmZmZmZ erd dlmZ d dlmZ  G d„ ded         ed         ed         ¦  «        Z dS )é    )ÚCreateableAPIResource)ÚExpandableField)Ú
ListObject)ÚListableAPIResource)ÚRequestOptions)ÚStripeObject)ÚUpdateableAPIResource)Úsanitize_id)ÚClassVarÚDictÚListÚOptionalÚcast)ÚLiteralÚNotRequiredÚ	TypedDictÚUnpackÚTYPE_CHECKING)ÚCoupon)ÚCustomerc                   óÔ  — e Zd ZU dZdZeed                  ed<    G d„ de¦  «        Z	 G d„ de
¦  «        Z G d„ d	e¦  «        Z G d
„ de¦  «        Z G d„ de
¦  «        Z G d„ de¦  «        Z G d„ de
¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de
¦  «        Zeed<   	 eed<   	 ded<   	 eed<   	 eed                  ed<   	 ee         ed<   	 eed <   	 eed!<   	 ee         ed"<   	 eeeef                  ed#<   	 ed         ed$<   	 e	ed%<   eed&<   	 ed'ed(         d)d fd*„¦   «         Zed'ed(         d)d fd+„¦   «         Zed'ed,         d)ed          fd-„¦   «         Z ed'ed,         d)ed          fd.„¦   «         Z!ed ed'ed/         d)d fd0„¦   «         Z"ed ed'ed/         d)d fd1„¦   «         Z#ed ed'ed2         d)d fd3„¦   «         Z$ed ed'ed2         d)d fd4„¦   «         Z%d%e	iZ&d5S )6ÚPromotionCodez¶
    A Promotion Code represents a customer-redeemable code for a [coupon](https://stripe.com/docs/api#coupons). It can be used to
    create multiple codes for a single coupon.
    Úpromotion_codeÚOBJECT_NAMEc                   óž   — e Zd ZU  G d„ de¦  «        Zeeeef                  ed<   	 e	ed<   	 ee
         ed<   	 ee         ed<   	 deiZdgZdS )úPromotionCode.Restrictionsc                   ó   — e Zd ZU eed<   dS )ú*PromotionCode.Restrictions.CurrencyOptionsÚminimum_amountN)Ú__name__Ú
__module__Ú__qualname__ÚintÚ__annotations__© ó    úP/var/www/html/Alfredo/env/lib/python3.11/site-packages/stripe/_promotion_code.pyÚCurrencyOptionsr   &   s"   € € € € € € ØÐÐÑðð r&   r(   Úcurrency_optionsÚfirst_time_transactionr   Úminimum_amount_currencyN)r    r!   r"   r   r(   r   r   Ústrr$   Úboolr#   Ú_inner_class_typesÚ_inner_class_dictsr%   r&   r'   ÚRestrictionsr   %   sµ   € € € € € € ð	ð 	ð 	ð 	ð 	˜lñ 	ô 	ð 	ð # 4¨¨_Ð(<Ô#=Ô>Ð>Ð>Ñ>ð	ð !%Ð$Ð$Ñ$ð	ð ! œÐ%Ð%Ñ%ð	ð "*¨#¤Ð.Ð.Ñ.ð	ð 1°/ÐBÐØ0Ð1ÐÐÐr&   r0   c                   óö   — e Zd ZU ee         ed<   	 ee         ed<   	 eed<   	 ee         ed<   	 eee                  ed<   	 ee         ed<   	 ee         ed<   	 ee	eef                  ed<   	 ed	         ed
<   dS )úPromotionCode.CreateParamsÚactiveÚcodeÚcouponÚcustomerÚexpandÚ
expires_atÚmax_redemptionsÚmetadataú&PromotionCode.CreateParamsRestrictionsÚrestrictionsN)
r    r!   r"   r   r-   r$   r,   r   r#   r   r%   r&   r'   ÚCreateParamsr2   ?   sì   € € € € € € Ø˜DÔ!Ð!Ð!Ñ!ð	ð ˜#ÔÐÐÑð	ð ˆˆ‰ð	ð ˜cÔ"Ð"Ð"Ñ"ð	ð ˜D œIÔ&Ð&Ð&Ñ&ð	ð   Ô$Ð$Ð$Ñ$ð	ð % SÔ)Ð)Ð)Ñ)ð	ð ˜d 3¨ 8œnÔ-Ð-Ð-Ñ-ð	ð "Ð"JÔKÐKÐKÑKð	ð 	r&   r=   c                   ó~   — e Zd ZU eeedf                  ed<   	 ee         ed<   	 ee         ed<   	 ee         ed<   dS )r;   ú5PromotionCode.CreateParamsRestrictionsCurrencyOptionsr)   r*   r   r+   N)	r    r!   r"   r   r   r,   r$   r-   r#   r%   r&   r'   ÚCreateParamsRestrictionsz&PromotionCode.CreateParamsRestrictionse   sƒ   € € € € € € Ø%ØÐMÐMÔNô
ð 	
ð 	
ñ 	
ð	ð !,¨DÔ 1Ð1Ð1Ñ1ð	ð $ CÔ(Ð(Ð(Ñ(ð	ð "-¨SÔ!1Ð1Ð1Ñ1ð	ð 	r&   r@   c                   ó&   — e Zd ZU ee         ed<   dS )r?   r   N©r    r!   r"   r   r#   r$   r%   r&   r'   Ú'CreateParamsRestrictionsCurrencyOptionsz5PromotionCode.CreateParamsRestrictionsCurrencyOptionsy   ó'   € € € € € € Ø# CÔ(Ð(Ð(Ñ(ð	ð 	r&   rC   c                   óò   — e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   	 ed         ed<   	 ee         ed<   	 ee         ed<   	 eee                  ed<   	 ee         ed	<   	 ee         ed
<   dS )úPromotionCode.ListParamsr3   r4   r5   z#PromotionCode.ListParamsCreated|intÚcreatedr6   Úending_beforer7   ÚlimitÚstarting_afterN)	r    r!   r"   r   r-   r$   r,   r   r#   r%   r&   r'   Ú
ListParamsrF      sì   € € € € € € Ø˜DÔ!Ð!Ð!Ñ!ð	ð ˜#ÔÐÐÑð	ð ˜CÔ Ð Ð Ñ ð	ð ÐBÔCÐCÐCÑCð	ð ˜cÔ"Ð"Ð"Ñ"ð	ð # 3Ô'Ð'Ð'Ñ'ð	ð ˜D œIÔ&Ð&Ð&Ñ&ð	ð ˜3ÔÐÐÑð	ð $ CÔ(Ð(Ð(Ñ(ð	ð 	r&   rK   c                   ón   — e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   	 ee         ed<   dS )úPromotionCode.ListParamsCreatedÚgtÚgteÚltÚlteNrB   r%   r&   r'   ÚListParamsCreatedrM   ¥   so   € € € € € € Ø˜ÔÐÐÑð	ð ˜ÔÐÐÑð	ð ˜ÔÐÐÑð	ð ˜ÔÐÐÑð	ð 	r&   rR   c                   óz   — e Zd ZU ee         ed<   	 eee                  ed<   	 ed         ed<   	 ed         ed<   dS )úPromotionCode.ModifyParamsr3   r7   zLiteral['']|Dict[str, str]r:   ú&PromotionCode.ModifyParamsRestrictionsr<   N)r    r!   r"   r   r-   r$   r   r,   r%   r&   r'   ÚModifyParamsrT   ·   su   € € € € € € Ø˜DÔ!Ð!Ð!Ñ!ð	ð ˜D œIÔ&Ð&Ð&Ñ&ð	ð Ð:Ô;Ð;Ð;Ñ;ð	ð "Ð"JÔKÐKÐKÑKð	ð 	r&   rV   c                   ó6   — e Zd ZU eeedf                  ed<   dS )rU   ú5PromotionCode.ModifyParamsRestrictionsCurrencyOptionsr)   N)r    r!   r"   r   r   r,   r$   r%   r&   r'   ÚModifyParamsRestrictionsz&PromotionCode.ModifyParamsRestrictionsÉ   s;   € € € € € € Ø%ØÐMÐMÔNô
ð 	
ð 	
ñ 	
ð	ð 	r&   rY   c                   ó&   — e Zd ZU ee         ed<   dS )rX   r   NrB   r%   r&   r'   Ú'ModifyParamsRestrictionsCurrencyOptionsz5PromotionCode.ModifyParamsRestrictionsCurrencyOptionsÑ   rD   r&   r[   c                   ó2   — e Zd ZU eee                  ed<   dS )úPromotionCode.RetrieveParamsr7   N)r    r!   r"   r   r   r,   r$   r%   r&   r'   ÚRetrieveParamsr]   ×   s+   € € € € € € Ø˜D œIÔ&Ð&Ð&Ñ&ð	ð 	r&   r^   r3   r4   r   r5   rG   r   r6   r8   ÚidÚlivemoder9   r:   Úobjectr<   Útimes_redeemedÚparamsr2   Úreturnc                 ór   — t          d|                      d|                      ¦   «         |¬¦  «        ¦  «        S )úš
        A promotion code points to a coupon. You can optionally restrict the code to a specific customer, redemption limit, and expiration date.
        r   Úpost©rc   )r   Ú_static_requestÚ	class_url©Úclsrc   s     r'   ÚcreatezPromotionCode.create  sB   € õ ØØ×ÒØØ—’‘”Øð  ñ ô ñ
ô 
ð 	
r&   c              ‹   ó‚   K  — t          d|                      d|                      ¦   «         |¬¦  «        ƒ d{V —†¦  «        S )rf   r   rg   rh   N)r   Ú_static_request_asyncrj   rk   s     r'   Úcreate_asynczPromotionCode.create_async!  sd   è è € õ ØØ×+Ò+ØØ—’‘”Øð ,ñ ô ð ð ð ð ð ð ñ
ô 
ð 	
r&   rF   c                 óÌ   — |                       d|                      ¦   «         |¬¦  «        }t          |t          ¦  «        s$t	          dt          |¦  «        j        z  ¦  «        ‚|S )ú9
        Returns a list of your promotion codes.
        Úgetrh   ú%Expected list object from API, got %s)ri   rj   Ú
isinstancer   Ú	TypeErrorÚtyper    ©rl   rc   Úresults      r'   ÚlistzPromotionCode.list1  sp   € ð ×$Ò$ØØMŠM‰OŒOØð %ñ 
ô 
ˆõ
 ˜&¥*Ñ-Ô-ð 	ÝØ7Ý˜‘<”<Ô(ñ*ñô ð ð
 ˆr&   c              ‹   óÜ   K  — |                       d|                      ¦   «         |¬¦  «        ƒ d{V —†}t          |t          ¦  «        s$t	          dt          |¦  «        j        z  ¦  «        ‚|S )rr   rs   rh   Nrt   )ro   rj   ru   r   rv   rw   r    rx   s      r'   Ú
list_asynczPromotionCode.list_asyncE  s’   è è € ð ×0Ò0ØØMŠM‰OŒOØð 1ñ 
ô 
ð 
ð 
ð 
ð 
ð 
ð 
ˆõ
 ˜&¥*Ñ-Ô-ð 	ÝØ7Ý˜‘<”<Ô(ñ*ñô ð ð
 ˆr&   rT   c                 óš   — |                       ¦   «         ›dt          |¦  «        ›}t          d|                      d||¬¦  «        ¦  «        S )ú
        Updates the specified promotion code by setting the values of the parameters passed. Most fields are, by design, not editable.
        ú/r   rg   rh   )rj   r
   r   ri   ©rl   r_   rc   Úurls       r'   ÚmodifyzPromotionCode.modifyY  sX   € ð Ÿš™œ˜˜­+°b©/¬/¨/Ð:ˆÝØØ×ÒØØØð  ñ ô ñ
ô 
ð 	
r&   c              ‹   óª   K  — |                       ¦   «         ›dt          |¦  «        ›}t          d|                      d||¬¦  «        ƒ d{V —†¦  «        S )r~   r   r   rg   rh   N)rj   r
   r   ro   r€   s       r'   Úmodify_asynczPromotionCode.modify_asyncj  sz   è è € ð Ÿš™œ˜˜­+°b©/¬/¨/Ð:ˆÝØØ×+Ò+ØØØð ,ñ ô ð ð ð ð ð ð ñ
ô 
ð 	
r&   r]   c                 ó@   —  | |fi |¤Ž}|                      ¦   «          |S )ú×
        Retrieves the promotion code with the given ID. In order to retrieve a promotion code by the customer-facing code use [list](https://stripe.com/docs/api/promotion_codes/list) with the desired code.
        )Úrefresh©rl   r_   rc   Úinstances       r'   ÚretrievezPromotionCode.retrieve{  s2   € ð 3rÐ$Ð$˜VÐ$Ð$ˆØ×ÒÑÔÐØˆr&   c              ‹   óP   K  —  | |fi |¤Ž}|                      ¦   «         ƒ d{V —† |S )r†   N)Úrefresh_asyncrˆ   s       r'   Úretrieve_asynczPromotionCode.retrieve_async†  sH   è è € ð 3rÐ$Ð$˜VÐ$Ð$ˆØ×$Ò$Ñ&Ô&Ð&Ð&Ð&Ð&Ð&Ð&Ð&Øˆr&   N)'r    r!   r"   Ú__doc__r   r   r   r$   r   r0   r   r=   r   r@   rC   rK   rR   rV   rY   r[   r^   r-   r,   r#   r   r   r   Úclassmethodr   rm   rp   r   rz   r|   r‚   r„   rŠ   r   r.   r%   r&   r'   r   r      sÍ  € € € € € € ð
ð ð
 8H€K˜'Ð"2Ô3Ô4ÐGÐGÑGð2ð 2ð 2ð 2ð 2|ñ 2ô 2ð 2ð4$ð $ð $ð $ð $~ñ $ô $ð $ðLð ð ð ð  9ñ ô ð ð(ð ð ð ð °)ñ ô ð ð$ð $ð $ð $ð $^ñ $ô $ð $ðLð ð ð ð ˜Iñ ô ð ð$ð ð ð ð ~ñ ô ð ð$ð ð ð ð  9ñ ô ð ðð ð ð ð °)ñ ô ð ðð ð ð ð ˜ñ ô ð ð €L€LLðð €I€IIðð ÐÐÑðð
 €L€LLðð  zÔ2Ô3Ð3Ð3Ñ3ðð ˜”ÐÐÑðð 	€G€GGðð €N€NNðð ˜c”]Ð"Ð"Ñ"ðð t˜C ˜H”~Ô&Ð&Ð&Ñ&ðð Ð$Ô%Ð%Ð%Ñ%ðð ÐÐÑØÐÐÑðð ð
ØÐ:Ô;ð
à	ð
ð 
ð 
ñ „[ð
ð ð
ØÐ:Ô;ð
à	ð
ð 
ð 
ñ „[ð
ð ðØÐ8Ô9ðà	OÔ	$ðð ð ñ „[ðð& ðØÐ8Ô9ðà	OÔ	$ðð ð ñ „[ðð& ð
Øð
Ø &Ð'CÔ Dð
à	ð
ð 
ð 
ñ „[ð
ð  ð
Øð
Ø &Ð'CÔ Dð
à	ð
ð 
ð 
ñ „[ð
ð  ðØðØ &Ð'EÔ Fðà	ðð ð ñ „[ðð ðØðØ &Ð'EÔ Fðà	ðð ð ñ „[ðð )¨,Ð7ÐÐÐr&   r   N)!Ústripe._createable_api_resourcer   Ústripe._expandable_fieldr   Ústripe._list_objectr   Ústripe._listable_api_resourcer   Ústripe._request_optionsr   Ústripe._stripe_objectr   Ústripe._updateable_api_resourcer	   Ústripe._utilr
   Útypingr   r   r   r   r   Útyping_extensionsr   r   r   r   r   Ústripe._couponr   Ústripe._customerr   r   r%   r&   r'   ú<module>rœ      sŠ  ðð BÐ AÐ AÐ AÐ AÐ AØ 4Ð 4Ð 4Ð 4Ð 4Ð 4Ø *Ð *Ð *Ð *Ð *Ð *Ø =Ð =Ð =Ð =Ð =Ð =Ø 2Ð 2Ð 2Ð 2Ð 2Ð 2Ø .Ð .Ð .Ð .Ð .Ð .Ø AÐ AÐ AÐ AÐ AÐ AØ $Ð $Ð $Ð $Ð $Ð $Ø 7Ð 7Ð 7Ð 7Ð 7Ð 7Ð 7Ð 7Ð 7Ð 7Ð 7Ð 7Ð 7Ð 7ðð ð ð ð ð ð ð ð ð ð ð ð ð ð ð *Ø%Ð%Ð%Ð%Ð%Ð%Ø)Ð)Ð)Ð)Ð)Ð)ðx8ð x8ð x8ð x8ð x8Ø˜/Ô*Ø˜Ô(Ø˜/Ô*ñx8ô x8ð x8ð x8ð x8r&   