
    Ai
%                         d dl mZ d dlmZ d dlmZmZ d dlmZ er0d 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  G d de      Zy)    )StripeService)sanitize_id)Optionalcast)TYPE_CHECKING)
ListObject)RequestOptions)Authorization)AuthorizationApproveParams)AuthorizationDeclineParams)AuthorizationListParams)AuthorizationRetrieveParams)AuthorizationUpdateParamsc            	          e Zd Z	 	 dded   ded   ddfdZ	 	 dded   ded   ddfd	Z	 	 dd
eded   ded   ddfdZ	 	 dd
eded   ded   ddfdZ	 	 dd
eded   ded   ddfdZ		 	 dd
eded   ded   ddfdZ
	 	 dd
eded   ded   ddfdZ	 	 dd
eded   ded   ddfdZ	 	 dd
eded   ded   ddfdZ	 	 dd
eded   ded   ddfdZy)AuthorizationServiceNparamsr   optionsr	   returnListObject[Authorization]c           
      B    t        d| 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.
        r   get/v1/issuing/authorizationsapibase_addressr   r   )r   _requestselfr   r   s      X/var/www/html/immo/lib/python3.12/site-packages/stripe/issuing/_authorization_service.pylistzAuthorizationService.list   s4     'MM,"  	
 		
    c           
      ^   K   t        d| j                  ddd||       d{         S 7 w)r   r   r   r   r   r   N)r   _request_asyncr   s      r    
list_asynczAuthorizationService.list_async1   sD      '%%," &  	
 		
s    -+
	-authorizationr   r
   c                 t    t        d| j                  ddj                  t        |            d||            S )<
        Retrieves an Issuing Authorization object.
        r
   r   */v1/issuing/authorizations/{authorization}r&   r   r   r   r   formatr   r   r&   r   r   s       r    retrievezAuthorizationService.retrieveD   sO     MM<CC"-m"< D  #  
 	
r"   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r(   r
   r   r)   r*   r   r   Nr   r$   r,   r   r-   s       r    retrieve_asyncz#AuthorizationService.retrieve_asyncZ   s_      %%<CC"-m"< D  # &  
 	
   9AA
	Ar   c                 t    t        d| 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.
        r
   postr)   r*   r   r   r+   r-   s       r    updatezAuthorizationService.updatep   sO     MM<CC"-m"< D  #  
 	
r"   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r4   r
   r5   r)   r*   r   r   Nr0   r-   s       r    update_asyncz!AuthorizationService.update_async   s_      %%<CC"-m"< D  # &  
 	
r2   r   c                 t    t        d| 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://docs.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://docs.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
        r
   r5   2/v1/issuing/authorizations/{authorization}/approver*   r   r   r+   r-   s       r    approvezAuthorizationService.approve   O     MMDKK"-m"< L  #  
 	
r"   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r:   r
   r5   r;   r*   r   r   Nr0   r-   s       r    approve_asyncz"AuthorizationService.approve_async   _      %%DKK"-m"< L  # &  
 	
r2   r   c                 t    t        d| 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://docs.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://docs.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
        r
   r5   2/v1/issuing/authorizations/{authorization}/decliner*   r   r   r+   r-   s       r    declinezAuthorizationService.decline   r=   r"   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)rB   r
   r5   rC   r*   r   r   Nr0   r-   s       r    decline_asyncz"AuthorizationService.decline_async   r@   r2   )NN)__name__
__module____qualname__r   r!   r%   strr.   r1   r6   r8   r<   r?   rD   rF    r"   r    r   r      sd    7;.2
23
 *+
 
%	
* 7;.2
23
 *+
 
%	
, ;?.2	

 67
 *+	

 

2 ;?.2	

 67
 *+	

 

2 9=.2	

 45
 *+	

 

2 9=.2	

 45
 *+	

 

2 :>.2	

 56
 *+	

 

4 :>.2	

 56
 *+	

 

4 :>.2	

 56
 *+	

 

4 :>.2	

 56
 *+	

 

r"   r   N)stripe._stripe_servicer   stripe._utilr   typingr   r   typing_extensionsr   stripe._list_objectr   stripe._request_optionsr	   stripe.issuing._authorizationr
   3stripe.params.issuing._authorization_approve_paramsr   3stripe.params.issuing._authorization_decline_paramsr   0stripe.params.issuing._authorization_list_paramsr   4stripe.params.issuing._authorization_retrieve_paramsr   2stripe.params.issuing._authorization_update_paramsr   r   rK   r"   r    <module>rX      sF    1 $ ! +.6;
Y
= Y
r"   