
    Ch'                     ~    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
)    )CustomerBalanceTransaction)
ListObject)RequestOptions)StripeService)sanitize_id)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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 4S
\	SSS\
S\4S jjr0 4S
\	SSS\
S\4S jjr0 0 4S
\	S\	SSS\
S\4
S jjr0 0 4S
\	S\	SSS\
S\4
S jjr0 0 4S
\	S\	SSS\
S\4
S jjr0 0 4S
\	S\	SSS\
S\4
S jjrSrg)!CustomerBalanceTransactionService   c                   h    \ rS rSr% \\S'    \\S'    \\   \S'    \\\      \S'    \S   \S'   Sr	g	)
.CustomerBalanceTransactionService.CreateParams   amountcurrencydescriptionexpandLiteral['']|Dict[str, str]metadata N)
__name__
__module____qualname____firstlineno__int__annotations__strr   r	   __static_attributes__r       o/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/stripe/_customer_balance_transaction_service.pyCreateParamsr      sS    	 	 !%%	 DI&&	 :;;	r#   r%   c                   b    \ rS rSr% \\   \S'    \\\      \S'    \\   \S'    \\   \S'   Sr	g),CustomerBalanceTransactionService.ListParams#   ending_beforer   limitstarting_afterr   N)
r   r   r   r   r   r!   r    r	   r   r"   r   r#   r$   
ListParamsr'   #   sL    "3''	 DI&&	 3	 $C((	r#   r,   c                   ,    \ rS rSr% \\\      \S'   Srg)0CustomerBalanceTransactionService.RetrieveParams5   r   r   N)	r   r   r   r   r   r	   r!   r    r"   r   r#   r$   RetrieveParamsr.   5   s    DI&&	r#   r0   c                   P    \ rS rSr% \\   \S'    \\\      \S'    \S   \S'   Srg).CustomerBalanceTransactionService.UpdateParams;   r   r   r   r   r   N)	r   r   r   r   r   r!   r    r	   r"   r   r#   r$   UpdateParamsr2   ;   s;     %%	 DI&&	 :;;	r#   r4   customerparamsr'   optionsreturnc                 ~    [        [        [           U R                  SSR	                  [        U5      S9SUUS95      $ )
Returns a list of transactions that updated the customer's [balances](https://docs.stripe.com/docs/billing/customer/balance).
get-/v1/customers/{customer}/balance_transactionsr5   apibase_addressr6   r7   )r
   r   r   _requestformatr   selfr5   r6   r7   s       r$   list&CustomerBalanceTransactionService.listI   sU     12MM?FF(2 G  #  
 	
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=   r>   r?   N)r
   r   r   _request_asyncrB   r   rC   s       r$   
list_async,CustomerBalanceTransactionService.list_async_   sd      12%%?FF(2 G  # &  
 	
s   >A A	
	Ar   c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ )
Creates an immutable transaction that updates the customer's credit [balance](https://docs.stripe.com/docs/billing/customer/balance).
postr<   r=   r>   r?   r
   r   rA   rB   r   rC   s       r$   create(CustomerBalanceTransactionService.createu   sO     &MM?FF(2 G  #  
 	
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=   r>   r?   Nr
   r   rH   rB   r   rC   s       r$   create_async.CustomerBalanceTransactionService.create_async   s^      &%%?FF(2 G  # &  
 	
s   7AA
	Atransactionr.   c                     [        [        U R                  SSR                  [	        U5      [	        U5      S9SUUS95      $ )
Retrieves a specific customer balance transaction that updated the customer's [balances](https://docs.stripe.com/docs/billing/customer/balance).
r;   ;/v1/customers/{customer}/balance_transactions/{transaction}r5   rU   r>   r?   rN   rD   r5   rU   r6   r7   s        r$   retrieve*CustomerBalanceTransactionService.retrieve   sW     &MMMTT(2 +K 8 U  #  	
 	
r#   c                    #    [        [        U R                  SSR                  [	        U5      [	        U5      S9SUUS9I Sh  vN 5      $  N7f)rW   r;   rX   rY   r>   r?   NrR   rZ   s        r$   retrieve_async0CustomerBalanceTransactionService.retrieve_async   sf      &%%MTT(2 +K 8 U  # & 	 	
 	
	   AAA
	Ar2   c                     [        [        U R                  SSR                  [	        U5      [	        U5      S9SUUS95      $ )h
Most credit balance transaction fields are immutable, but you may update its description and metadata.
rM   rX   rY   r>   r?   rN   rZ   s        r$   update(CustomerBalanceTransactionService.update   sW     &MMMTT(2 +K 8 U  #  	
 	
r#   c                    #    [        [        U R                  SSR                  [	        U5      [	        U5      S9SUUS9I Sh  vN 5      $  N7f)rb   rM   rX   rY   r>   r?   NrR   rZ   s        r$   update_async.CustomerBalanceTransactionService.update_async   sf      &%%MTT(2 +K 8 U  # & 	 	
 	
	r`   r   N)r   r   r   r   r   r%   r,   r0   r4   r!   r   r   r   rE   rI   rO   rS   r[   r^   rc   rf   r"   r   r#   r$   r   r      s   y ,Y $ y " BD"$	

 ?
  	

 
.	/
2 BD"$	

 ?
  	

 
.	/
4 #%	

 A
  	

 
$
4 #%	

 A
  	

 
$
4 FH"$

 
 C	

  
 
$
8 FH"$

 
 C	

  
 
$
8 DF"$

 
 A	

  
 
$
8 DF"$

 
 A	

  
 
$
 
r#   r   N)$stripe._customer_balance_transactionr   stripe._list_objectr   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr   typingr   r	   r
   typing_extensionsr   r   r   r   r   r#   r$   <module>ro      s1    L * 2 0 $ # # = =s
 s
r#   