
    AiS                         d dl mZ d dlmZ d dlmZmZ d dl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)    )StripeService)sanitize_id)Optionalcast)TYPE_CHECKING)
ListObject)RequestOptions)AccountOwner)AccountOwnerListParamsc            	       P    e Zd Z	 ddeddded   ddfd	Z	 ddeddded   ddfd
Zy)AccountOwnerServiceNaccountparamsr   optionsr	   returnListObject[AccountOwner]c                 t    t        d| j                  ddj                  t        |            d||            S )6
        Lists all owners for a given Account
        r   get3/v1/financial_connections/accounts/{account}/ownersr   apibase_addressr   r   )r   _requestformatr   selfr   r   r   s       f/var/www/html/immo/lib/python3.12/site-packages/stripe/financial_connections/_account_owner_service.pylistzAccountOwnerService.list   sO     &MMELL'0 M  #  
 	
    c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r   r   r   r   r   r   r   N)r   _request_asyncr   r   r   s       r   
list_asynczAccountOwnerService.list_async(   s_      &%%ELL'0 M  # &  
 	
s   9AA
	A)N)__name__
__module____qualname__strr   r    r$    r!   r   r   r      sn    
 /3	

 )
 *+	

 
$
4 /3	

 )
 *+	

 
$
r!   r   N)stripe._stripe_servicer   stripe._utilr   typingr   r   typing_extensionsr   stripe._list_objectr   stripe._request_optionsr	   +stripe.financial_connections._account_ownerr
   >stripe.params.financial_connections._account_owner_list_paramsr   r   r)   r!   r   <module>r2      s0    1 $ ! +.6H
+
- +
r!   