
    jofA-                         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d
S )    )
ListObject)RequestOptions)StripeService)Topup)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
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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d"S )#TopupServicec                   2    e Zd ZU eee                  ed<   dS )TopupService.CancelParamsexpandN__name__
__module____qualname__r   r	   str__annotations__     O/var/www/html/Alfredo/env/lib/python3.11/site-packages/stripe/_topup_service.pyCancelParamsr      +         DI&&&&	 	r   r   c                       e Zd ZU eed<   	 eed<   	 ee         ed<   	 eee                  ed<   	 ed         ed<   	 ee         ed<   	 ee         ed<   	 ee         ed	<   d
S )TopupService.CreateParamsamountcurrencydescriptionr   Literal['']|Dict[str, str]metadatasourcestatement_descriptortransfer_groupN)r   r   r   intr   r   r   r	   r   r   r   CreateParamsr      s         	 	 !%%%%	 DI&&&&	 :;;;;	 C    	 *#....	 $C((((	 	r   r)   c                       e Zd ZU ed         ed<   	 ed         ed<   	 ee         ed<   	 eee                  ed<   	 ee         ed<   	 ee         ed<   	 eed	                  ed
<   dS )TopupService.ListParamsz!TopupService.ListParamsAmount|intr    z"TopupService.ListParamsCreated|intcreatedending_beforer   limitstarting_after)canceledfailedpending	succeededstatusN)	r   r   r   r   r   r   r	   r(   r   r   r   r   
ListParamsr+   5   s         ?@@@@	 ABBBB	 #3''''	 DI&&&&	 3	 $C((((	 @A
 	
 	
 	
	 	r   r5   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 )TopupService.ListParamsAmountgtgteltlteNr   r   r   r   r(   r   r   r   r   ListParamsAmountr7   U   o         	 	 	 	 	r   r=   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 )TopupService.ListParamsCreatedr8   r9   r:   r;   Nr<   r   r   r   ListParamsCreatedr@   g   r>   r   rA   c                   2    e Zd ZU eee                  ed<   dS )TopupService.RetrieveParamsr   Nr   r   r   r   RetrieveParamsrC   y   r   r   rD   c                   b    e Zd ZU ee         ed<   	 eee                  ed<   	 ed         ed<   dS )TopupService.UpdateParamsr"   r   r#   r$   N)r   r   r   r   r   r   r	   r   r   r   UpdateParamsrF      s\          %%%%	 DI&&&&	 :;;;;	 	r   rG   paramsr+   optionsreturnc                 t    t          t          t                   |                     dddd||                    S ),
        Returns a list of top-ups.
        get
/v1/topupsV1apiapi_modebase_addressrH   rI   )r
   r   r   _requestselfrH   rI   s      r   listzTopupService.list   sF     uMM"   

 

 
	
r   c                    K   t          t          t                   |                     dddd||           d{V           S )rL   rM   rN   rO   rP   rQ   N)r
   r   r   _request_asyncrU   s      r   
list_asynczTopupService.list_async   sj       u%%" &        

 

 
	
r   r   c                 ^    t          t          |                     dddd||                    S )2
        Top up the balance of an account
        postrN   rO   rP   rQ   )r
   r   rT   rU   s      r   createzTopupService.create   sA     MM"   

 

 
	
r   c                 n   K   t          t          |                     dddd||           d{V           S )r\   r]   rN   rO   rP   rQ   N)r
   r   rY   rU   s      r   create_asynczTopupService.create_async   se       %%" &        

 

 
	
r   topuprC   c                     t          t          |                     dd                    t	          |                    dd||                    S )
        Retrieves the details of a top-up that has previously been created. Supply the unique top-up ID that was returned from your previous request, and Stripe will return the corresponding top-up information.
        rM   /v1/topups/{topup}ra   rO   rP   rQ   r
   r   rT   formatr   rV   ra   rH   rI   s       r   retrievezTopupService.retrieve   sZ     MM$+++e2D2D+EE"   

 

 
	
r   c                    K   t          t          |                     dd                    t	          |                    dd||           d{V           S )rc   rM   rd   re   rO   rP   rQ   Nr
   r   rY   rg   r   rh   s       r   retrieve_asynczTopupService.retrieve_async   s~       %%$+++e2D2D+EE" &        

 

 
	
r   rF   c                     t          t          |                     dd                    t	          |                    dd||                    S )d
        Updates the metadata of a top-up. Other top-up details are not editable by design.
        r]   rd   re   rO   rP   rQ   rf   rh   s       r   updatezTopupService.update  sZ     MM$+++e2D2D+EE"   

 

 
	
r   c                    K   t          t          |                     dd                    t	          |                    dd||           d{V           S )rn   r]   rd   re   rO   rP   rQ   Nrk   rh   s       r   update_asynczTopupService.update_async  s~       %%$+++e2D2D+EE" &        

 

 
	
r   r   c                     t          t          |                     dd                    t	          |                    dd||                    S )I
        Cancels a top-up. Only pending top-ups can be canceled.
        r]   /v1/topups/{topup}/cancelre   rO   rP   rQ   rf   rh   s       r   cancelzTopupService.cancel-  sZ     MM+22U9K9K2LL"   

 

 
	
r   c                    K   t          t          |                     dd                    t	          |                    dd||           d{V           S )rs   r]   rt   re   rO   rP   rQ   Nrk   rh   s       r   cancel_asynczTopupService.cancel_asyncB  s~       %%+22U9K9K2LL" &        

 

 
	
r   N)r   r   r   r   r   r)   r5   r=   rA   rD   rG   r   r   r   rW   rZ   r^   r`   r   ri   rl   ro   rq   ru   rw   r   r   r   r   r      s           y            y      D    Y   @    9   $    I   $           y     -/"$
 
)
  
 
E		
 
 
 
, -/"$
 
)
  
 
E		
 
 
 
* NP
 
1
<J
	
 
 
 
& NP
 
1
<J
	
 
 
 
* 13"$	
 

 .
  	

 

 
 
 
0 13"$	
 

 .
  	

 

 
 
 
0 /1"$	
 

 ,
  	

 

 
 
 
0 /1"$	
 

 ,
  	

 

 
 
 
0 /1"$	
 

 ,
  	

 

 
 
 
0 /1"$	
 

 ,
  	

 

 
 
 
 
 
r   r   N)stripe._list_objectr   stripe._request_optionsr   stripe._stripe_servicer   stripe._topupr   stripe._utilr   typingr   r	   r
   typing_extensionsr   r   r   r   r   r   r   <module>r      s    + * * * * * 2 2 2 2 2 2 0 0 0 0 0 0       $ $ $ $ $ $ # # # # # # # # # # = = = = = = = = = =I
 I
 I
 I
 I
= I
 I
 I
 I
 I
r   