
    <@g                          d dl mZ d dlmZ d dlmZmZ d dlmZm	Z	 e	r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)    )ExpandableField)StripeObject)ClassVarOptional)LiteralTYPE_CHECKING)BalanceTransaction)Customer)PaymentIntent)Refundc                      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 G d de      Z G d de      Zee	   ed<   ee
   ed<   eed<   	 eed<   	 ed   ed<   	 eed<   	 ee   ed<   eed<   	 eed<   	 eed<   	 ed   ed<   	 ee   ed<   ee   ed<   ed   ed<   	 ee   ed <   e	e
eeeed!Zy")#CustomerCashBalanceTransactionas  
    Customers with certain payments enabled have a cash balance, representing funds that were paid
    by the customer to a merchant, but have not yet been allocated to a payment. Cash Balance Transactions
    represent when funds are moved into or out of this balance. This includes funding by the customer, allocation
    to payments, and refunds to the customer.
    !customer_cash_balance_transactionOBJECT_NAMEc                   0    e Zd ZU ed   ed<   	 ed   ed<   y)3CustomerCashBalanceTransaction.AdjustedForOverdraftr	   balance_transactionr   linked_transactionN__name__
__module____qualname__r   __annotations__     h/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/stripe/_customer_cash_balance_transaction.pyAdjustedForOverdraftr      s&    ,-ABB	 ,,LMM	r   r   c                       e Zd ZU ed   ed<   y)/CustomerCashBalanceTransaction.AppliedToPaymentr   payment_intentNr   r   r   r   AppliedToPaymentr   %       '88	r   r!   c                   6    e Zd ZU  G d de      Zeed<   deiZy)%CustomerCashBalanceTransaction.Fundedc                       e Zd ZU  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e   e	d
<   ee   e	d<   ee
   e	d<   	 ed   e	d<   	 ee   e	d<   eeeedZy)2CustomerCashBalanceTransaction.Funded.BankTransferc                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)ACustomerCashBalanceTransaction.Funded.BankTransfer.EuBankTransferbic
iban_last4sender_nameNr   r   r   r   strr   r   r   r   EuBankTransferr(   -   s3    c]" %SM) &c]*r   r.   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)ACustomerCashBalanceTransaction.Funded.BankTransfer.GbBankTransferaccount_number_last4r+   	sort_codeNr,   r   r   r   GbBankTransferr0   ;   s3    &.sm3 &c]* $C=(r   r3   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)ACustomerCashBalanceTransaction.Funded.BankTransfer.JpBankTransfersender_banksender_branchr+   Nr,   r   r   r   JpBankTransferr5   I   s3    %c]*  (}, &c]*r   r8   c                   6    e Zd ZU eed      ed<   	 ee   ed<   y)ACustomerCashBalanceTransaction.Funded.BankTransfer.UsBankTransfer)achdomestic_wire_usswiftnetworkr+   N)r   r   r   r   r   r   r-   r   r   r   UsBankTransferr:   W   s)    !'*L"MNN &c]*r   r?   eu_bank_transfergb_bank_transferjp_bank_transfer	reference)r@   rA   rB   mx_bank_transferus_bank_transfertyperE   )r@   rA   rB   rE   N)r   r   r   r   r.   r3   r8   r?   r   r   r-   r   _inner_class_typesr   r   r   BankTransferr&   ,   s         '~66&~66&~66}$ $  '~66$2$2$2$2	"r   rH   bank_transferN)r   r   r   r   rH   r   rG   r   r   r   Fundedr$   +   s$    L	< L	\ $#-|<r   rJ   c                       e Zd ZU ed   ed<   y)2CustomerCashBalanceTransaction.RefundedFromPaymentr   refundNr   r   r   r   RefundedFromPaymentrL   }   s    ))	r   rN   c                       e Zd ZU ed   ed<   y)3CustomerCashBalanceTransaction.TransferredToBalancer	   r   Nr   r   r   r   TransferredToBalancerP      s    ,-ABB	r   rQ   c                       e Zd ZU ed   ed<   y)3CustomerCashBalanceTransaction.UnappliedFromPaymentr   r    Nr   r   r   r   UnappliedFromPaymentrS      r"   r   rT   adjusted_for_overdraftapplied_to_paymentcreatedcurrencyr
   customerending_balancefundedidlivemode
net_amountobjectrefunded_from_paymenttransferred_to_balance)	rU   rV   r[   funding_reversedr`   return_canceledreturn_initiatedra   unapplied_from_paymentrF   re   )rU   rV   r[   r`   ra   re   N)r   r   r   __doc__r   r   r   r   r   r   r!   rJ   rN   rQ   rT   r   intr-   r   boolrG   r   r   r   r   r      sX    	, '"EFG | < P= P=dl | |  %%9:: !122L M j))  VG N O 788 $$788$%9::
	"
 
 %%9::"6.!4"6"6r   r   N)stripe._expandable_fieldr   stripe._stripe_objectr   typingr   r   typing_extensionsr   r   stripe._balance_transactionr	   stripe._customerr
   stripe._payment_intentr   stripe._refundr   r   r   r   r   <module>rq      s0    5 . % 4>)4%{\ {r   