o
    Biw                     @   s\   d dl mZ d dlmZ d dlmZ d dlmZmZ d dl	m
Z
mZmZ G dd deZdS )	    )RequestOptions)StripeService)Settings)Listcast)LiteralNotRequired	TypedDictc                   @   s   e Zd ZG dd deZG dd deZG dd deZG dd deZG d	d
 d
eZi i fddde	de
fddZi i fddde	de
fddZi i fddde	de
fddZi i fddde	de
fddZdS )SettingsServicec                   @   s   e Zd ZU eee  ed< dS )SettingsService.RetrieveParamsexpandN)__name__
__module____qualname__r   r   str__annotations__ r   r   \/var/www/html/Trade-python/venv/lib/python3.10/site-packages/stripe/tax/_settings_service.pyRetrieveParams   s   
 r   c                   @   s:   e Zd ZU ed ed< 	 eee  ed< 	 ed ed< dS )SettingsService.UpdateParams$SettingsService.UpdateParamsDefaultsdefaultsr   &SettingsService.UpdateParamsHeadOfficehead_officeN)r   r   r   r   r   r   r   r   r   r   r   UpdateParams   s   
 r   c                   @   s,   e Zd ZU eed  ed< 	 ee ed< dS )r   )	exclusive	inclusiveinferred_by_currencytax_behaviortax_codeN)r   r   r   r   r   r   r   r   r   r   r   UpdateParamsDefaults   s   
 r    c                   @   s   e Zd ZU ded< dS )r   -SettingsService.UpdateParamsHeadOfficeAddressaddressN)r   r   r   r   r   r   r   r   UpdateParamsHeadOffice+   s   
 r#   c                   @   s`   e Zd ZU ee ed< 	 ee ed< 	 ee ed< 	 ee ed< 	 ee ed< 	 ee ed< dS )r!   citycountryline1line2postal_codestateN)r   r   r   r   r   r   r   r   r   r   UpdateParamsHeadOfficeAddress1   s   
 r*   paramsr   optionsreturnc              	   C      t t| jddd||dS )8
        Retrieves Tax Settings for a merchant.
        get/v1/tax/settingsapibase_addressr+   r,   r   r   _requestselfr+   r,   r   r   r   retrieveK      zSettingsService.retrievec              	      "   t t| jddd||dI dH S )r/   r0   r1   r2   r3   Nr   r   _request_asyncr7   r   r   r   retrieve_async^      
zSettingsService.retrieve_asyncr   c              	   C   r.   )
        Updates Tax Settings parameters used in tax calculations. All parameters are editable but none can be removed once set.
        postr1   r2   r3   r5   r7   r   r   r   updateq   r:   zSettingsService.updatec              	      r;   )r@   rA   r1   r2   r3   Nr<   r7   r   r   r   update_async   r?   zSettingsService.update_asyncN)r   r   r   r	   r   r   r    r#   r*   r   r   r9   r>   rB   rC   r   r   r   r   r
   
   sT    


r
   N)stripe._request_optionsr   stripe._stripe_servicer   stripe.tax._settingsr   typingr   r   typing_extensionsr   r   r	   r
   r   r   r   r   <module>   s   