Ë
    <@‹g„3  ã                   ó~   — 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 d dlmZmZmZ  G d„ d	e«      Zy
)é    )Ú
ListObject)ÚPromotionCode)ÚRequestOptions)ÚStripeService)Úsanitize_id)ÚDictÚListÚcast)ÚLiteralÚNotRequiredÚ	TypedDictc            	       óº  — e Zd 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i i fdddedee   fd„Zi i fdddedee   fd„Zi fdddedefd„Zi fdddedefd„Zi i fdedddedefd„Zi i fdedddedefd„Zi i fdedd dedefd!„Zi i fdedd dedefd"„Zy#)$ÚPromotionCodeServicec                   ó¸   — 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
<   y)ú!PromotionCodeService.CreateParamsÚactiveÚcodeÚcouponÚcustomerÚexpandÚ
expires_atÚmax_redemptionsÚmetadataú-PromotionCodeService.CreateParamsRestrictionsÚrestrictionsN)
Ú__name__Ú
__module__Ú__qualname__r   ÚboolÚ__annotations__Ústrr	   Úintr   © ó    ú]/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/stripe/_promotion_code_service.pyÚCreateParamsr      s­   … Ø˜DÑ!Ó!ð	ð ˜#ÑÓð	ð
 ‹ð	ð ˜cÑ"Ó"ð	ð ˜D ™IÑ&Ó&ð	ð   Ñ$Ó$ð	ð % SÑ)Ó)ð	ð ˜d 3¨ 8™nÑ-Ó-ð	ð "Ø;ñ
ó 	
ð	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<   y)r   ú<PromotionCodeService.CreateParamsRestrictionsCurrencyOptionsÚcurrency_optionsÚfirst_time_transactionÚminimum_amountÚminimum_amount_currencyN)	r   r   r   r   r   r!   r    r   r"   r#   r$   r%   ÚCreateParamsRestrictionsz-PromotionCodeService.CreateParamsRestrictions7   s^   … Ø%ØØØNðPññ
ó 	
ð	ð !,¨DÑ 1Ó1ð	ð $ CÑ(Ó(ð	ð "-¨SÑ!1Ó1ð	r$   r-   c                   ó   — e Zd ZU ee   ed<   y)r(   r+   N©r   r   r   r   r"   r    r#   r$   r%   Ú'CreateParamsRestrictionsCurrencyOptionsz<PromotionCodeService.CreateParamsRestrictionsCurrencyOptionsN   ó   … Ø# CÑ(Ó(ð	r$   r0   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
<   y)úPromotionCodeService.ListParamsr   r   r   z*PromotionCodeService.ListParamsCreated|intÚcreatedr   Úending_beforer   ÚlimitÚstarting_afterN)	r   r   r   r   r   r    r!   r	   r"   r#   r$   r%   Ú
ListParamsr3   T   s§   … Ø˜DÑ!Ó!ð	ð ˜#ÑÓð	ð ˜CÑ Ó ð	ð ÐIÑJÓJð	ð ˜cÑ"Ó"ð	ð # 3Ñ'Ó'ð	ð ˜D ™IÑ&Ó&ð	ð ˜3ÑÓð	ð $ CÑ(Ó(ð	r$   r8   c                   óT   — e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)ú&PromotionCodeService.ListParamsCreatedÚgtÚgteÚltÚlteNr/   r#   r$   r%   ÚListParamsCreatedr:   z   sH   … Ø˜ÑÓð	ð ˜ÑÓð	ð ˜ÑÓð	ð ˜ÑÓð	r$   r?   c                   ó$   — e Zd ZU eee      ed<   y)ú#PromotionCodeService.RetrieveParamsr   N)r   r   r   r   r	   r!   r    r#   r$   r%   ÚRetrieveParamsrA   Œ   s   … Ø˜D ™IÑ&Ó&ð	r$   rB   c                   óZ   — e Zd ZU ee   ed<   	 eee      ed<   	 ed   ed<   	 ed   ed<   y)ú!PromotionCodeService.UpdateParamsr   r   zLiteral['']|Dict[str, str]r   ú-PromotionCodeService.UpdateParamsRestrictionsr   N)r   r   r   r   r   r    r	   r!   r#   r$   r%   ÚUpdateParamsrD   ’   sR   … Ø˜DÑ!Ó!ð	ð ˜D ™IÑ&Ó&ð	ð Ð:Ñ;Ó;ð	ð "Ø;ñ
ó 	
ð	r$   rF   c                   ó(   — e Zd ZU eeedf      ed<   y)rE   ú<PromotionCodeService.UpdateParamsRestrictionsCurrencyOptionsr)   N)r   r   r   r   r   r!   r    r#   r$   r%   ÚUpdateParamsRestrictionsz-PromotionCodeService.UpdateParamsRestrictions¦   s(   … Ø%ØØØNðPññ
ó 	
ð	r$   rI   c                   ó   — e Zd ZU ee   ed<   y)rH   r+   Nr/   r#   r$   r%   Ú'UpdateParamsRestrictionsCurrencyOptionsz<PromotionCodeService.UpdateParamsRestrictionsCurrencyOptions±   r1   r$   rK   Úparamsr3   ÚoptionsÚreturnc           
      óX   — t        t        t           | j                  ddd||¬«      «      S )ú9
        Returns a list of your promotion codes.
        Úgetú/v1/promotion_codesÚapi©Úbase_addressrL   rM   )r
   r   r   Ú_request©ÚselfrL   rM   s      r%   ÚlistzPromotionCodeService.list·   s9   € ô Ü”}Ñ%Ø�M‰MØØ%Ø"ØØð ó ó	
ð 		
r$   c           
   ƒ   ót   K  — t        t        t           | j                  ddd||¬«      ƒ d{  –—† «      S 7 Œ­w)rP   rQ   rR   rS   rT   N)r
   r   r   Ú_request_asyncrW   s      r%   Ú
list_asynczPromotionCodeService.list_asyncÊ   sI   è ø€ ô Ü”}Ñ%Ø×%Ñ%ØØ%Ø"ØØð &ó ÷ ó	
ð 		
ðús   ‚+8­6
®	8r   c           
      óJ   — t        t        | j                  d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.
        ÚpostrR   rS   rT   )r
   r   rV   rW   s      r%   ÚcreatezPromotionCodeService.createÝ   s4   € ô ÜØ�M‰MØØ%Ø"ØØð ó ó	
ð 		
r$   c           
   ƒ   óf   K  — t        t        | j                  ddd||¬«      ƒ d{  –—† «      S 7 Œ­w)r^   r_   rR   rS   rT   N)r
   r   r[   rW   s      r%   Úcreate_asyncz!PromotionCodeService.create_asyncð   sD   è ø€ ô ÜØ×%Ñ%ØØ%Ø"ØØð &ó ÷ ó	
ð 		
ðús   ‚$1¦/
§	1Úpromotion_coderA   c                 ó|   — t        t        | j                  ddj                  t	        |«      ¬«      d||¬«      «      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.
        rQ   ú$/v1/promotion_codes/{promotion_code}©rc   rS   rT   ©r
   r   rV   Úformatr   ©rX   rc   rL   rM   s       r%   ÚretrievezPromotionCodeService.retrieve  sN   € ô ÜØ�M‰MØØ6×=Ñ=Ü#.¨~Ó#>ð >ó ð #ØØð ó ó
ð 	
r$   c              ƒ   ó˜   K  — t        t        | j                  ddj                  t	        |«      ¬«      d||¬«      ƒ d{  –—† «      S 7 Œ­w)re   rQ   rf   rg   rS   rT   N©r
   r   r[   ri   r   rj   s       r%   Úretrieve_asyncz#PromotionCodeService.retrieve_async  s^   è ø€ ô ÜØ×%Ñ%ØØ6×=Ñ=Ü#.¨~Ó#>ð >ó ð #ØØð &ó ÷ ó
ð 	
ðúó   ‚=A
¿A
Á 	A
rD   c                 ó|   — t        t        | j                  ddj                  t	        |«      ¬«      d||¬«      «      S )ú�
        Updates the specified promotion code by setting the values of the parameters passed. Most fields are, by design, not editable.
        r_   rf   rg   rS   rT   rh   rj   s       r%   ÚupdatezPromotionCodeService.update/  sN   € ô ÜØ�M‰MØØ6×=Ñ=Ü#.¨~Ó#>ð >ó ð #ØØð ó ó
ð 	
r$   c              ƒ   ó˜   K  — t        t        | j                  ddj                  t	        |«      ¬«      d||¬«      ƒ d{  –—† «      S 7 Œ­w)rq   r_   rf   rg   rS   rT   Nrm   rj   s       r%   Úupdate_asyncz!PromotionCodeService.update_asyncE  s^   è ø€ ô ÜØ×%Ñ%ØØ6×=Ñ=Ü#.¨~Ó#>ð >ó ð #ØØð &ó ÷ ó
ð 	
ðúro   N)r   r   r   r   r&   r-   r0   r8   r?   rB   rF   rI   rK   r   r   r   rY   r\   r`   rb   r!   rk   rn   rr   rt   r#   r$   r%   r   r      sä  „ ô(�yô (ôT 9ô ô.°)ô ô$�Yô $ôL˜Iô ô$˜ô ô�yô ô(	 9ô 	ô°)ô ð 57Ø"$ñ
à1ð
ð  ð
ð 
�MÑ	"ó	
ð* 57Ø"$ñ
à1ð
ð  ð
ð 
�MÑ	"ó	
ð, #%ñ
à3ð
ð  ð
ð 
ó	
ð, #%ñ
à3ð
ð  ð
ð 
ó	
ð, 9;Ø"$ñ	
àð
ð 6ð
ð  ð	
ð
 
ó
ð2 9;Ø"$ñ	
àð
ð 6ð
ð  ð	
ð
 
ó
ð2 79Ø"$ñ	
àð
ð 4ð
ð  ð	
ð
 
ó
ð2 79Ø"$ñ	
àð
ð 4ð
ð  ð	
ð
 
ô
r$   r   N)Ústripe._list_objectr   Ústripe._promotion_coder   Ústripe._request_optionsr   Ústripe._stripe_servicer   Ústripe._utilr   Útypingr   r	   r
   Útyping_extensionsr   r   r   r   r#   r$   r%   ú<module>r|      s0   ðõ +Ý 0Ý 2Ý 0Ý $ß #Ñ #ß =Ñ =ôM
˜=õ M
r$   