
    <@gx                         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mZmZ erd dlmZ  G d d	ed	         Zy
)    )ExpandableField)RequestOptions)SingletonAPIResource)StripeObject)ClassVarListOptional)LiteralNotRequired	TypedDictUnpackTYPE_CHECKING)Customerc                      e Zd ZU dZdZeed      ed<    G d de      Z	 G d de
      Z G d d	e      Z G d
 de      Zee	   ed<   	 ed   ed<   	 eed<   	 ed   ed<   	 eded   dd fd       Zeded   dd fd       Zed        Zde	iZy)CreditBalanceSummaryzY
    Indicates the billing credit balance for billing credits granted to a customer.
    zbilling.credit_balance_summaryOBJECT_NAMEc                   X    e Zd ZU  G d de      Z G d de      Zeed<   eed<   eedZy)	CreditBalanceSummary.Balancec                   P    e Zd ZU  G d de      Zee   ed<   	 ed   ed<   	 deiZy)-CreditBalanceSummary.Balance.AvailableBalancec                   $    e Zd ZU eed<   	 eed<   y)6CreditBalanceSummary.Balance.AvailableBalance.MonetarycurrencyvalueN__name__
__module____qualname__str__annotations__int     e/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/stripe/billing/_credit_balance_summary.pyMonetaryr           
r#   r%   monetarytypeN	r   r   r   r   r%   r	   r    r
   _inner_class_typesr"   r#   r$   AvailableBalancer      ?    <  x(( *%% #-h!7r#   r+   c                   P    e Zd ZU  G d de      Zee   ed<   	 ed   ed<   	 deiZy)*CreditBalanceSummary.Balance.LedgerBalancec                   $    e Zd ZU eed<   	 eed<   y)3CreditBalanceSummary.Balance.LedgerBalance.Monetaryr   r   Nr   r"   r#   r$   r%   r0   4   r&   r#   r%   r'   r(   Nr)   r"   r#   r$   LedgerBalancer.   3   r,   r#   r1   available_balanceledger_balance)r2   r3   N)r   r   r   r   r+   r1   r    r*   r"   r#   r$   Balancer      s6    	8| 	8*	8L 	8* ,+%%!1+
r#   r4   c                   <    e Zd ZU eed<   	 eee      ed<   	 ded<   y)#CreditBalanceSummary.RetrieveParamscustomerexpand)CreditBalanceSummary.RetrieveParamsFilterfilterN)r   r   r   r   r    r   r   r"   r#   r$   RetrieveParamsr6   O   s/    	 DI&&	 <;	r#   r;   c                   B    e Zd ZU ed   ed<   	 ee   ed<   	 ed   ed<   y)r9   ;CreditBalanceSummary.RetrieveParamsFilterApplicabilityScopeapplicability_scopecredit_grant)r>   r?   r(   N)r   r   r   r   r    r   r
   r"   r#   r$   RetrieveParamsFilterz)CreditBalanceSummary.RetrieveParamsFilter]   s<    (I
 	
	 "#&&	 ;<<	r#   r@   c                       e Zd ZU ed   ed<   y)r=   metered
price_typeN)r   r   r   r
   r    r"   r#   r$   &RetrieveParamsFilterApplicabilityScopez;CreditBalanceSummary.RetrieveParamsFilterApplicabilityScopem   s    I&&	r#   rD   balancesr   r7   livemodeobjectparamsr6   returnc                 6     | di |}|j                          |S )F
        Retrieves the credit balance summary for a customer.
        N)refreshclsrH   instances      r$   retrievezCreditBalanceSummary.retrieve   s"     &v&r#   c                 R   K    | di |}|j                          d{    |S 7 w)rK   NrL   )refresh_asyncrN   s      r$   retrieve_asyncz#CreditBalanceSummary.retrieve_async   s1      &v&$$&&& 	's   '%'c                      y)Nz"/v1/billing/credit_balance_summaryr"   )rO   s    r$   	class_urlzCreditBalanceSummary.class_url   s    3r#   N)r   r   r   __doc__r   r   r
   r    r   r4   r   r;   r   r@   rD   r   r   boolclassmethodr   rQ   rT   rV   r*   r"   r#   r$   r   r      s   
 	) '"BCD 0
, 0
d y    7m j)) N 455 CD	  CD	  4 4 %g.r#   r   N)stripe._expandable_fieldr   stripe._request_optionsr   stripe._singleton_api_resourcer   stripe._stripe_objectr   typingr   r   r	   typing_extensionsr
   r   r   r   r   stripe._customerr   r   r"   r#   r$   <module>ra      s@    5 2 ? . + +  )J//0FG J/r#   