
    Ch,1                     ~    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)CreditGrant)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
 " 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 4SSS\S\4S jjr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/)0CreditGrantService   c                       \ rS rSr% S\S'    S\S'    \S   \S'    \\S'    \\   \S	'    \\	\      \S
'    \\   \S'    \\
\\4      \S'    \\   \S'    \\   \S'   Srg)CreditGrantService.CreateParams   %CreditGrantService.CreateParamsAmountamount2CreditGrantService.CreateParamsApplicabilityConfigapplicability_config)paidpromotionalcategorycustomereffective_atexpand
expires_atmetadatanamepriority N)__name__
__module____qualname____firstlineno____annotations__r   strr   intr	   r   __static_attributes__r"       g/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/stripe/billing/_credit_grant_service.pyCreateParamsr      s    77	 A	
	 /00	 	 "#&&	 DI&&	  $$	 d38n--	 #	 c""	r+   r-   c                   8    \ rS rSr% \S   \S'    \S   \S'   Srg)r   9   -CreditGrantService.CreateParamsAmountMonetarymonetarytyper"   N)r#   r$   r%   r&   r   r'   r   r*   r"   r+   r,   CreateParamsAmount%CreditGrantService.CreateParamsAmount9   s%    MNN	 j!!	r+   r3   c                   ,    \ rS rSr% \\S'    \\S'   Srg)r0   C   currencyvaluer"   N)r#   r$   r%   r&   r(   r'   r)   r*   r"   r+   r,   CreateParamsAmountMonetary-CreditGrantService.CreateParamsAmountMonetaryC   s    	 
	r+   r9   c                        \ rS rSr% S\S'   Srg)r   M   7CreditGrantService.CreateParamsApplicabilityConfigScopescoper"   N)r#   r$   r%   r&   r'   r*   r"   r+   r,   CreateParamsApplicabilityConfig2CreditGrantService.CreateParamsApplicabilityConfigM   s    HH	r+   r?   c                   D    \ rS rSr% \\S      \S'    \\S      \S'   Srg)r=   S   metered
price_type<CreditGrantService.CreateParamsApplicabilityConfigScopePricepricesr"   N)	r#   r$   r%   r&   r   r   r'   r	   r*   r"   r+   r,   $CreateParamsApplicabilityConfigScope7CreditGrantService.CreateParamsApplicabilityConfigScopeS   s6    	 233	 N
 	

	r+   rG   c                        \ rS rSr% \\S'   Srg)rE   a   idr"   N)r#   r$   r%   r&   r(   r'   r*   r"   r+   r,   )CreateParamsApplicabilityConfigScopePrice<CreditGrantService.CreateParamsApplicabilityConfigScopePricea   s    	r+   rL   c                   ,    \ rS rSr% \\\      \S'   Srg)CreditGrantService.ExpireParamsg   r   r"   N	r#   r$   r%   r&   r   r	   r(   r'   r*   r"   r+   r,   ExpireParamsrO   g       DI&&	r+   rR   c                   t    \ rS rSr% \\   \S'    \\   \S'    \\\      \S'    \\   \S'    \\   \S'   Sr	g)	CreditGrantService.ListParamsm   r   ending_beforer   limitstarting_afterr"   N)
r#   r$   r%   r&   r   r(   r'   r	   r)   r*   r"   r+   r,   
ListParamsrU   m   s^    c""	 #3''	 DI&&	 3	 $C((	r+   rZ   c                   ,    \ rS rSr% \\\      \S'   Srg)!CreditGrantService.RetrieveParams   r   r"   NrQ   r"   r+   r,   RetrieveParamsr\      rS   r+   r^   c                   Z    \ rS rSr% \\\      \S'    \S   \S'    \\\\4      \S'   Sr	g)CreditGrantService.UpdateParams   r   zLiteral['']|intr   r   r"   N)
r#   r$   r%   r&   r   r	   r(   r'   r   r*   r"   r+   r,   UpdateParamsr`      sC    DI&&	   122	 d38n--	r+   rb   c                   ,    \ rS rSr% \\\      \S'   Srg)"CreditGrantService.VoidGrantParams   r   r"   NrQ   r"   r+   r,   VoidGrantParamsrd      rS   r+   rf   paramsrU   optionsreturnc                 R    [        [        [           U R                  SSSUUS95      $ )#
Retrieve a list of credit grants.
get/v1/billing/credit_grantsapibase_addressrg   rh   )r
   r   r   _requestselfrg   rh   s      r,   listCreditGrantService.list   s9     {#MM+"  	
 		
r+   c                 n   #    [        [        [           U R                  SSSUUS9I Sh  vN 5      $  N7f)rk   rl   rm   rn   ro   N)r
   r   r   _request_asyncrr   s      r,   
list_asyncCreditGrantService.list_async   sH      {#%%+" &  	
 		
s   (53
	5r   c                 D    [        [        U R                  SSSUUS95      $ )
Creates a credit grant.
postrm   rn   ro   )r
   r   rq   rr   s      r,   createCreditGrantService.create   s4     MM+"  	
 		
r+   c                 `   #    [        [        U R                  SSSUUS9I Sh  vN 5      $  N7f)r{   r|   rm   rn   ro   N)r
   r   rw   rr   s      r,   create_asyncCreditGrantService.create_async   sC      %%+" &  	
 		
s   !.,
	.rK   r\   c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ )
Retrieves a credit grant.
rl   /v1/billing/credit_grants/{id}rK   rn   ro   r
   r   rq   formatr   rs   rK   rg   rh   s       r,   retrieveCreditGrantService.retrieve   sF     MM077;r?7K"  	
 		
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   rl   r   r   rn   ro   Nr
   r   rw   r   r   r   s       r,   retrieve_async!CreditGrantService.retrieve_async   sU      %%077;r?7K" &  	
 		
   7AA
	Ar`   c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ )
Updates a credit grant.
r|   r   r   rn   ro   r   r   s       r,   updateCreditGrantService.update  sF     MM077;r?7K"  	
 		
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   r|   r   r   rn   ro   Nr   r   s       r,   update_asyncCreditGrantService.update_async%  sU      %%077;r?7K" &  	
 		
r   rO   c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ )
Expires a credit grant.
r|   %/v1/billing/credit_grants/{id}/expirer   rn   ro   r   r   s       r,   expireCreditGrantService.expire9  sM     MM7>>"2 ?  #  
 	
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   r|   r   r   rn   ro   Nr   r   s       r,   expire_asyncCreditGrantService.expire_asyncO  s\      %%7>>"2 ?  # &  
 	
r   rd   c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ )
Voids a credit grant.
r|   #/v1/billing/credit_grants/{id}/voidr   rn   ro   r   r   s       r,   
void_grantCreditGrantService.void_grante  sM     MM5<<"2 =  #  
 	
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   r|   r   r   rn   ro   Nr   r   s       r,   void_grant_async#CreditGrantService.void_grant_async{  s\      %%5<<"2 =  # &  
 	
r   r"   N)!r#   r$   r%   r&   r   r-   r3   r9   r?   rG   rL   rR   rZ   r^   rb   rf   r   r   r   rt   rx   r}   r   r(   r   r   r   r   r   r   r   r   r*   r"   r+   r,   r   r      s   *y *XY Y ) y I y Y , y )  35"$
/
  
 
K	 	
* 35"$
/
  
 
K	 	
, #%
1
  
 
	
, #%
1
  
 
	
, 79"$	

 4
  	

 

. 79"$	

 4
  	

 

. 57"$	

 2
  	

 

. 57"$	

 2
  	

 

. 57"$	

 2
  	

 

2 57"$	

 2
  	

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

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

 

 
r+   r   N)stripe._list_objectr   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr   stripe.billing._credit_grantr   typingr   r	   r
   typing_extensionsr   r   r   r   r"   r+   r,   <module>r      s0    + 2 0 $ 4 # # = =C
 C
r+   