
    <@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)RequestOptions)StripeService)sanitize_id)Authorization)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	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 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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 )!AuthorizationServicec                   H    e Zd ZU ee   ed<   	 eee      ed<   	 ed   ed<   y)"AuthorizationService.ApproveParamsamountexpandLiteral['']|Dict[str, str]metadataN)__name__
__module____qualname__r   int__annotations__r	   str     d/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/stripe/issuing/_authorization_service.pyApproveParamsr      s;    C  	 DI&&	 :;;	r   r   c                   6    e Zd ZU eee      ed<   	 ed   ed<   y)"AuthorizationService.DeclineParamsr   r   r   Nr   r   r   r   r	   r   r   r   r   r   DeclineParamsr!      )    DI&&	 :;;	r   r#   c                       e Zd ZU ee   ed<   	 ee   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
<   y)AuthorizationService.ListParamscard
cardholderz*AuthorizationService.ListParamsCreated|intcreatedending_beforer   limitstarting_after)closedpendingreversedstatusN)	r   r   r   r   r   r   r	   r   r   r   r   r   
ListParamsr&   %   s    #	  $$	 IJJ	 #3''	 DI&&	 3	 $C((	 G$CDEE	r   r1   c                   T    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)&AuthorizationService.ListParamsCreatedgtgteltlteN)r   r   r   r   r   r   r   r   r   ListParamsCreatedr3   G   sH    	 	 	 	r   r8   c                   $    e Zd ZU eee      ed<   y)#AuthorizationService.RetrieveParamsr   Nr"   r   r   r   RetrieveParamsr:   Y   s    DI&&	r   r;   c                   6    e Zd ZU eee      ed<   	 ed   ed<   y)!AuthorizationService.UpdateParamsr   r   r   Nr"   r   r   r   UpdateParamsr=   _   r$   r   r>   paramsr&   optionsreturnc           
      X    t        t        t           | j                  ddd||            S )
        Returns a list of Issuing Authorization objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
        get/v1/issuing/authorizationsapibase_addressr?   r@   )r
   r   r   _requestselfr?   r@   s      r   listzAuthorizationService.listi   s9     }%MM,"  	
 		
r   c           
      t   K   t        t        t           | j                  ddd||       d{         S 7 w)rC   rD   rE   rF   rG   N)r
   r   r   _request_asyncrJ   s      r   
list_asynczAuthorizationService.list_async|   sI      }%%%," &  	
 		
s   +86
	8authorizationr:   c                 |    t        t        | j                  ddj                  t	        |            d||            S )<
        Retrieves an Issuing Authorization object.
        rD   */v1/issuing/authorizations/{authorization}rP   rF   rG   r
   r   rI   formatr   rK   rP   r?   r@   s       r   retrievezAuthorizationService.retrieve   sO     MM<CC"-m"< D  #  
 	
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)rR   rD   rS   rT   rF   rG   Nr
   r   rN   rV   r   rW   s       r   retrieve_asyncz#AuthorizationService.retrieve_async   s_      %%<CC"-m"< D  # &  
 	
   =A
A
 	A
r=   c                 |    t        t        | j                  ddj                  t	        |            d||            S )
        Updates the specified Issuing Authorization object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
        postrS   rT   rF   rG   rU   rW   s       r   updatezAuthorizationService.update   sO     MM<CC"-m"< D  #  
 	
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r^   r_   rS   rT   rF   rG   NrZ   rW   s       r   update_asyncz!AuthorizationService.update_async   s_      %%<CC"-m"< D  # &  
 	
r\   r   c                 |    t        t        | j                  ddj                  t	        |            d||            S )  
        [Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow.
        This method is deprecated. Instead, [respond directly to the webhook request to approve an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
        r_   2/v1/issuing/authorizations/{authorization}/approverT   rF   rG   rU   rW   s       r   approvezAuthorizationService.approve   O     MMDKK"-m"< L  #  
 	
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)rd   r_   re   rT   rF   rG   NrZ   rW   s       r   approve_asyncz"AuthorizationService.approve_async   _      %%DKK"-m"< L  # &  
 	
r\   r!   c                 |    t        t        | j                  ddj                  t	        |            d||            S )  
        [Deprecated] Declines a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow.
        This method is deprecated. Instead, [respond directly to the webhook request to decline an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
        r_   2/v1/issuing/authorizations/{authorization}/declinerT   rF   rG   rU   rW   s       r   declinezAuthorizationService.decline  rg   r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)rl   r_   rm   rT   rF   rG   NrZ   rW   s       r   decline_asyncz"AuthorizationService.decline_async,  rj   r\   N)r   r   r   r   r   r#   r1   r8   r;   r>   r   r   r   rL   rO   r   rX   r[   r`   rb   rf   ri   rn   rp   r   r   r   r   r      s?   	 	  Y  DI $ y  57"$
1
  
 
M	"	
* 57"$
1
  
 
M	"	
, 9;"$	

 6
  	

 

2 9;"$	

 6
  	

 

2 79"$	

 4
  	

 

2 79"$	

 4
  	

 

2 8:"$	

 5
  	

 

4 8:"$	

 5
  	

 

4 8:"$	

 5
  	

 

4 8:"$	

 5
  	

 

r   r   N)stripe._list_objectr   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr   stripe.issuing._authorizationr   typingr   r	   r
   typing_extensionsr   r   r   r   r   r   r   <module>rx      s0    + 2 0 $ 7 # # = =u
= u
r   