
    _j=!                         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dS )    )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         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d#S )$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                   >    e Zd ZU ed         ed<   	 ed         ed<   dS )3CustomerCashBalanceTransaction.AdjustedForOverdraftr	   balance_transactionr   linked_transactionN__name__
__module____qualname__r   __annotations__     m/var/www/app.qaans.com/backend/venv/lib/python3.11/site-packages/stripe/_customer_cash_balance_transaction.pyAdjustedForOverdraftr      sA         ,-ABBBB	 ,,LMMMM	 	r   r   c                   &    e Zd ZU ed         ed<   dS )/CustomerCashBalanceTransaction.AppliedToPaymentr   payment_intentNr   r   r   r   AppliedToPaymentr   %   '         '8888	 	r   r!   c                   >    e Zd ZU  G d de          Zeed<   deiZdS )%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dS )2CustomerCashBalanceTransaction.Funded.BankTransferc                   V    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   dS )ACustomerCashBalanceTransaction.Funded.BankTransfer.EuBankTransferbic
iban_last4sender_nameNr   r   r   r   strr   r   r   r   EuBankTransferr(   -   sT         c]""" %SM))) &c]*** r   r.   c                   V    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   dS )ACustomerCashBalanceTransaction.Funded.BankTransfer.GbBankTransferaccount_number_last4r+   	sort_codeNr,   r   r   r   GbBankTransferr0   ;   sT         &.sm333 &c]*** $C=((( r   r3   c                   V    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   dS )ACustomerCashBalanceTransaction.Funded.BankTransfer.JpBankTransfersender_banksender_branchr+   Nr,   r   r   r   JpBankTransferr5   I   sT         %c]***  (},,, &c]*** r   r8   c                   J    e Zd ZU eed                  ed<   	 ee         ed<   dS )ACustomerCashBalanceTransaction.Funded.BankTransfer.UsBankTransfer)achdomestic_wire_usswiftnetworkr+   N)r   r   r   r   r   r   r-   r   r   r   UsBankTransferr:   W   sD         !'*L"MNN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&   ,   sS                                     '~6666&~6666&~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	 L	 L	 L	< L	 L	 L	\ $###-|<r   rJ   c                   &    e Zd ZU ed         ed<   dS )2CustomerCashBalanceTransaction.RefundedFromPaymentr   refundNr   r   r   r   RefundedFromPaymentrL   }   s'         ))))	 	r   rN   c                   &    e Zd ZU ed         ed<   dS )3CustomerCashBalanceTransaction.TransferredToBalancer	   r   Nr   r   r   r   TransferredToBalancerP      s(         ,-ABBBB	 	r   rQ   c                   &    e Zd ZU ed         ed<   dS )3CustomerCashBalanceTransaction.UnappliedFromPaymentr   r    Nr   r   r   r   UnappliedFromPaymentrS      r"   r   rT   adjusted_for_overdraftapplied_to_paymentcreatedcurrencyr
   customercustomer_accountending_balancefundedidlivemode
net_amountobjectrefunded_from_paymenttransferred_to_balance)	rU   rV   r\   funding_reversedra   return_canceledreturn_initiatedrb   unapplied_from_paymentrF   rf   )rU   rV   r\   ra   rb   rf   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      s          	, '"EFG       |       <   P= P= P= P= P= P= P= P=d    l       |       |    %%9:::: !12222LLL MMM j)))) sm###  VGGG NNN OOO 78888 $$788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>rr      s    5 4 4 4 4 4 . . . . . . % % % % % % % % 4 4 4 4 4 4 4 4 &>>>>>>))))))444444%%%%%%    \     r   