
    DhR3                     ~    S SK Jr  S SKJr  S SKJr  S SKJr  S SKJ	r	  S SK
JrJrJr  S SKJrJrJr   " S S	\5      rg
)    )
ListObject)RequestOptions)StripeService)sanitize_id)Authorization)DictListcast)LiteralNotRequired	TypedDictc            	          \ rS rSr " S S\5      r " S S\5      r " S S\5      r " S S	\5      r " S
 S\5      r	 " S S\5      r
0 0 4SSS\S\\   4S jjr0 0 4SSS\S\\   4S jjr0 0 4S\SSS\S\4S jjr0 0 4S\SSS\S\4S jjr0 0 4S\SSS\S\4S jjr0 0 4S\SSS\S\4S jjr0 0 4S\SSS\S\4S jjr0 0 4S\SSS\S\4S jjr0 0 4S\SSS\S\4S jjr0 0 4S\SSS\S\4S  jjrS!rg")#AuthorizationService   c                   P    \ rS rSr% \\   \S'    \\\      \S'    \S   \S'   Sr	g)"AuthorizationService.ApproveParams   amountexpandLiteral['']|Dict[str, str]metadata N)
__name__
__module____qualname____firstlineno__r   int__annotations__r	   str__static_attributes__r       h/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/stripe/issuing/_authorization_service.pyApproveParamsr      s;    C  	 DI&&	 :;;	r!   r#   c                   >    \ rS rSr% \\\      \S'    \S   \S'   Srg)"AuthorizationService.DeclineParams   r   r   r   r   N	r   r   r   r   r   r	   r   r   r    r   r!   r"   DeclineParamsr%      )    DI&&	 :;;	r!   r(   c                       \ rS rSr% \\   \S'    \\   \S'    \S   \S'    \\   \S'    \\\      \S'    \\   \S'    \\   \S	'    \\	S
      \S'   Sr
g)AuthorizationService.ListParams%   card
cardholderz*AuthorizationService.ListParamsCreated|intcreatedending_beforer   limitstarting_after)closedexpiredpendingreversedstatusr   N)r   r   r   r   r   r   r   r	   r   r   r    r   r!   r"   
ListParamsr+   %   s    #	  $$	 IJJ	 #3''	 DI&&	 3	 $C((	 >?
 	
	r!   r8   c                   \    \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'   Srg)&AuthorizationService.ListParamsCreatedI   gtgteltlter   N)r   r   r   r   r   r   r   r    r   r!   r"   ListParamsCreatedr:   I   sH    	 	 	 	r!   r@   c                   ,    \ rS rSr% \\\      \S'   Srg)#AuthorizationService.RetrieveParams[   r   r   Nr'   r   r!   r"   RetrieveParamsrB   [   s    DI&&	r!   rD   c                   >    \ rS rSr% \\\      \S'    \S   \S'   Srg)!AuthorizationService.UpdateParamsa   r   r   r   r   Nr'   r   r!   r"   UpdateParamsrF   a   r)   r!   rH   paramsr+   optionsreturnc                 R    [        [        [           U R                  SSSUUS95      $ )
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_addressrI   rJ   )r
   r   r   _requestselfrI   rJ   s      r"   listAuthorizationService.listk   s9     }%MM,"  	
 		
r!   c                 n   #    [        [        [           U R                  SSSUUS9I Sh  vN 5      $  N7f)rM   rN   rO   rP   rQ   N)r
   r   r   _request_asyncrT   s      r"   
list_asyncAuthorizationService.list_async~   sH      }%%%," &  	
 		
s   (53
	5authorizationrB   c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ ),
Retrieves an Issuing Authorization object.
rN   */v1/issuing/authorizations/{authorization}r\   rP   rQ   r
   r   rS   formatr   rU   r\   rI   rJ   s       r"   retrieveAuthorizationService.retrieve   sO     MM<CC"-m"< D  #  
 	
r!   c                    #    [        [        U R                  SSR                  [	        U5      S9SUUS9I Sh  vN 5      $  N7f)r^   rN   r_   r`   rP   rQ   Nr
   r   rY   rb   r   rc   s       r"   retrieve_async#AuthorizationService.retrieve_async   s^      %%<CC"-m"< D  # &  
 	
   7AA
	ArF   c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ )
Updates the specified Issuing Authorization object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
postr_   r`   rP   rQ   ra   rc   s       r"   updateAuthorizationService.update   sO     MM<CC"-m"< D  #  
 	
r!   c                    #    [        [        U R                  SSR                  [	        U5      S9SUUS9I Sh  vN 5      $  N7f)rl   rm   r_   r`   rP   rQ   Nrg   rc   s       r"   update_async!AuthorizationService.update_async   s^      %%<CC"-m"< D  # &  
 	
rj   r   c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ )  
[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).
rm   2/v1/issuing/authorizations/{authorization}/approver`   rP   rQ   ra   rc   s       r"   approveAuthorizationService.approve   O     MMDKK"-m"< L  #  
 	
r!   c                    #    [        [        U R                  SSR                  [	        U5      S9SUUS9I Sh  vN 5      $  N7f)rt   rm   ru   r`   rP   rQ   Nrg   rc   s       r"   approve_async"AuthorizationService.approve_async   ^      %%DKK"-m"< L  # &  
 	
rj   r%   c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ )  
[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).
rm   2/v1/issuing/authorizations/{authorization}/decliner`   rP   rQ   ra   rc   s       r"   declineAuthorizationService.decline  rx   r!   c                    #    [        [        U R                  SSR                  [	        U5      S9SUUS9I Sh  vN 5      $  N7f)r~   rm   r   r`   rP   rQ   Nrg   rc   s       r"   decline_async"AuthorizationService.decline_async.  r|   rj   r   N)r   r   r   r   r   r#   r(   r8   r@   rD   rH   r   r   r   rV   rZ   r   rd   rh   rn   rq   rv   rz   r   r   r    r   r!   r"   r   r      sD   	 	 "Y "H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>r      s0    + 2 0 $ 7 # # = =w
= w
r!   