o
    i2                     @   s   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	 d dl
mZ d dlmZmZmZmZ d dlmZmZmZ erTd d	lmZ d d
lmZ d dlmZ d dlmZ G dd ded ed e	d ZdS )    )CreateableAPIResource)
ListObject)ListableAPIResource)StripeObject)UpdateableAPIResource)sanitize_id)ClassVarListOptionalcast)LiteralUnpackTYPE_CHECKING)RegistrationCreateParams)RegistrationListParams)RegistrationModifyParams)RegistrationRetrieveParamsc                   @   s  e Zd ZU dZdZeed  ed< G dd deZ	e
ed< 	 eed< 	 e	ed< e
ed	< 	 ee
 ed
< 	 eed< 	 eed< 	 ed ed< 	 ed ed< 	 eded dd fddZeded dd fddZeded ded  fddZeded ded  fddZededed dd fddZededed dd fdd Zededed! dd fd"d#Zededed! dd fd$d%Zde	iZd&S )'Registrationa  
    A Tax `Registration` lets us know that your business is registered to collect tax on payments within a region, enabling you to [automatically collect tax](https://stripe.com/docs/tax).

    Stripe doesn't register on your behalf with the relevant authorities when you create a Tax `Registration` object. For more information on how to register to collect tax, see [our guide](https://stripe.com/docs/tax/registering).

    Related guide: [Using the Registrations API](https://stripe.com/docs/tax/registrations-api)
    ztax.registrationOBJECT_NAMEc                   @   s  e Zd ZU 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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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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G d)d* d*eZG d+d, d,eZG d-d. d.eZG d/d0 d0eZG d1d2 d2eZG d3d4 d4eZG d5d6 d6eZG d7d8 d8eZG d9d: d:eZ G d;d< d<eZ!G d=d> d>eZ"G d?d@ d@eZ#G dAdB dBeZ$G dCdD dDeZ%G dEdF dFeZ&G dGdH dHeZ'G dIdJ dJeZ(G dKdL dLeZ)G dMdN dNeZ*G dOdP dPeZ+G dQdR dReZ,G dSdT dTeZ-G dUdV dVeZ.G dWdX dXeZ/G dYdZ dZeZ0G d[d\ d\eZ1G d]d^ d^eZ2G d_d` d`eZ3G dadb dbeZ4G dcdd ddeZ5G dedf dfeZ6G dgdh dheZ7G didj djeZ8G dkdl dleZ9G dmdn dneZ:G dodp dpeZ;G dqdr dreZ<G dsdt dteZ=G dudv dveZ>G dwdx dxeZ?G dydz dzeZ@G d{d| d|eZAG d}d~ d~eZBG dd deZCG dd deZDG dd deZEG dd deZFG dd deZGG dd deZHG dd deZIG dd deZJG dd deZKG dd deZLG dd deZMG dd deZNG dd deZOG dd deZPG dd deZQG dd deZRG dd deZSG dd deZTG dd deZUG dd deZVG dd deZWG dd deZXG dd deZYG dd deZZG dd deZ[G dd deZ\G dd deZ]G dd deZ^G dd deZ_G dd deZ`G dd deZaG dd deZbG dd deZcG dd deZdG ddĄ deZeG ddƄ deZfG ddȄ deZgehe eid< ehe eid< ehe eid< ehe eid< ehe eid< ehe	 eid< ehe
 eid< ehe eid< ehe eid< ehe eid< ehe eid< ehe eid< ehe eid< ehe eid< ehe eid< ehe eid< ehe eid< ehe eid< ehe eid< ehe eid< ehe eid< ehe eid< ehe eid< ehe eid< ehe eid< ehe eid< ehe eid< ehe eid< ehe  eid< ehe! eid< ehe" eid< ehe# eid< ehe$ eid< ehe% eid< ehe& eid< ehe' eid< ehe( eid< ehe) eid< ehe* eid< ehe+ eid< ehe, eid< ehe- eid< ehe. eid< ehe/ eid< ehe0 eid< ehe1 eid< ehe2 eid< ehe3 eid< ehe4 eid< ehe5 eid< ehe6 eid< ehe7 eid< ehe8 eid< ehe9 eid< ehe: eid< ehe; eid < ehe< eid< ehe= eid< ehe> eid< ehe? eid< ehe@ eid< eheA eid< eheB eid< eheC eid< eheD eid	< eheE eid
< eheF eid< eheG eid< eheH eid< eheI eid< eheJ eid< eheK eid< eheL eid< eheM eid< eheN eid< eheO eid< eheP eid< eheQ eid< eheR eid< eheS eid< eheT eid< eheU eid< eheV eid< eheW eid< eheX eid< eheY eid< eheZ eid< ehe[ eid < ehe\ eid!< ehe] eid"< ehe^ eid#< ehe_ eid$< ehe` eid%< ehea eid&< eheb eid'< ehec eid(< ehed eid)< ehee eid*< ehef eid+< eheg eid,< i dededededede	de
dedededededededededei dededededededededededede de!de"de#de$de%i de&de'de(de)de*de+de,de-de.de/de0d-e1d.e2de3de4de5de6i de7de8de9de:d e;de<de=de>de?de@deAdeBdeCd	eDd
eEdeFdeGi deHdeIdeJdeKdeLdeMdeNdeOdePdeQdeRdeSdeTdeUdeVdeWdeXeYeZe[e\e]e^e_e`eaebecedeeefegd/Zjd-d.d0Zkd1S (2  zRegistration.CountryOptionsc                   @   @   e Zd ZU G dd deZee ed< ed ed< 	 deiZdS )zRegistration.CountryOptions.Aec                   @      e Zd ZU ed ed< dS )z'Registration.CountryOptions.Ae.Standardinbound_goodsstandardplace_of_supply_schemeN__name__
__module____qualname__r   __annotations__ r    r    x/var/www/snowflake_co_dev_github/snow_flake_back_end_deploy/env/lib/python3.10/site-packages/stripe/tax/_registration.pyStandard,      
 r"   r   typeN	r   r   r   r   r"   r
   r   r   _inner_class_typesr    r    r    r!   Ae+      
 r'   c                   @   r   )zRegistration.CountryOptions.Alr   r$   Nr   r    r    r    r!   Al9   r#   r)   c                   @   r   )zRegistration.CountryOptions.Am
simplifiedr$   Nr   r    r    r    r!   Am?   r#   r+   c                   @   r   )zRegistration.CountryOptions.Aor   r$   Nr   r    r    r    r!   AoE   r#   r,   c                   @   @   e Zd ZU G dd deZee ed< ed ed< 	 deiZdS )zRegistration.CountryOptions.Atc                   @   r   )z'Registration.CountryOptions.At.Standardr   small_sellerr   r   Nr   r    r    r    r!   r"   L   
   
 r"   r   iossoss_non_union	oss_unionr   r$   Nr%   r    r    r    r!   AtK      
 r5   c                   @   r   )zRegistration.CountryOptions.Auc                   @   r   )z'Registration.CountryOptions.Au.Standardr   r   Nr   r    r    r    r!   r"   \   r#   r"   r   r$   Nr%   r    r    r    r!   Au[   r(   r7   c                   @   r   )zRegistration.CountryOptions.Awr   r$   Nr   r    r    r    r!   Awi   r#   r8   c                   @   r   )zRegistration.CountryOptions.Azr*   r$   Nr   r    r    r    r!   Azo   r#   r9   c                   @   r   )zRegistration.CountryOptions.Bar   r$   Nr   r    r    r    r!   Bau   r#   r:   c                   @   r   )zRegistration.CountryOptions.Bbr   r$   Nr   r    r    r    r!   Bb{   r#   r;   c                   @   r   )zRegistration.CountryOptions.Bdr   r$   Nr   r    r    r    r!   Bd   r#   r<   c                   @   r-   )zRegistration.CountryOptions.Bec                   @   r   )z'Registration.CountryOptions.Be.Standardr.   r   Nr   r    r    r    r!   r"      r0   r"   r   r1   r$   Nr%   r    r    r    r!   Be   r6   r=   c                   @   r   )zRegistration.CountryOptions.Bfr   r$   Nr   r    r    r    r!   Bf   r#   r>   c                   @   r-   )zRegistration.CountryOptions.Bgc                   @   r   )z'Registration.CountryOptions.Bg.Standardr.   r   Nr   r    r    r    r!   r"      r0   r"   r   r1   r$   Nr%   r    r    r    r!   Bg   r6   r?   c                   @   r   )zRegistration.CountryOptions.Bhr   r$   Nr   r    r    r    r!   Bh   r#   r@   c                   @   r   )zRegistration.CountryOptions.Bjr*   r$   Nr   r    r    r    r!   Bj   r#   rA   c                   @   r   )zRegistration.CountryOptions.Bsr   r$   Nr   r    r    r    r!   Bs   r#   rB   c                   @   r   )zRegistration.CountryOptions.Byr*   r$   Nr   r    r    r    r!   By   r#   rC   c                   @   r-   )zRegistration.CountryOptions.Cac                   @      e Zd ZU eed< dS )z/Registration.CountryOptions.Ca.ProvinceStandardprovinceNr   r   r   strr   r    r    r    r!   ProvinceStandard      
 rH   province_standard)rJ   r*   r   r$   N)	r   r   r   r   rH   r
   r   r   r&   r    r    r    r!   Ca   r(   rK   c                   @   r   )zRegistration.CountryOptions.Cdr   r$   Nr   r    r    r    r!   Cd   r#   rL   c                   @   r   )zRegistration.CountryOptions.Chc                   @   r   )z'Registration.CountryOptions.Ch.Standardr   r   Nr   r    r    r    r!   r"      r#   r"   r   r$   Nr%   r    r    r    r!   Ch   r(   rM   c                   @   r   )zRegistration.CountryOptions.Clr*   r$   Nr   r    r    r    r!   Cl   r#   rN   c                   @   r   )zRegistration.CountryOptions.Cmr*   r$   Nr   r    r    r    r!   Cm   r#   rO   c                   @   r   )zRegistration.CountryOptions.Cor*   r$   Nr   r    r    r    r!   Co   r#   rP   c                   @   r   )zRegistration.CountryOptions.Crr*   r$   Nr   r    r    r    r!   Cr   r#   rQ   c                   @   r   )zRegistration.CountryOptions.Cvr*   r$   Nr   r    r    r    r!   Cv   r#   rR   c                   @   r-   )zRegistration.CountryOptions.Cyc                   @   r   )z'Registration.CountryOptions.Cy.Standardr.   r   Nr   r    r    r    r!   r"     r0   r"   r   r1   r$   Nr%   r    r    r    r!   Cy  r6   rS   c                   @   r-   )zRegistration.CountryOptions.Czc                   @   r   )z'Registration.CountryOptions.Cz.Standardr.   r   Nr   r    r    r    r!   r"     r0   r"   r   r1   r$   Nr%   r    r    r    r!   Cz  r6   rT   c                   @   r-   )zRegistration.CountryOptions.Dec                   @   r   )z'Registration.CountryOptions.De.Standardr.   r   Nr   r    r    r    r!   r"   &  r0   r"   r   r1   r$   Nr%   r    r    r    r!   De%  r6   rU   c                   @   r-   )zRegistration.CountryOptions.Dkc                   @   r   )z'Registration.CountryOptions.Dk.Standardr.   r   Nr   r    r    r    r!   r"   6  r0   r"   r   r1   r$   Nr%   r    r    r    r!   Dk5  r6   rV   c                   @   r   )zRegistration.CountryOptions.Ecr*   r$   Nr   r    r    r    r!   EcE  r#   rW   c                   @   r-   )zRegistration.CountryOptions.Eec                   @   r   )z'Registration.CountryOptions.Ee.Standardr.   r   Nr   r    r    r    r!   r"   L  r0   r"   r   r1   r$   Nr%   r    r    r    r!   EeK  r6   rX   c                   @   r   )zRegistration.CountryOptions.Egr*   r$   Nr   r    r    r    r!   Eg[  r#   rY   c                   @   r-   )zRegistration.CountryOptions.Esc                   @   r   )z'Registration.CountryOptions.Es.Standardr.   r   Nr   r    r    r    r!   r"   b  r0   r"   r   r1   r$   Nr%   r    r    r    r!   Esa  r6   rZ   c                   @   r   )zRegistration.CountryOptions.Etr   r$   Nr   r    r    r    r!   Etq  r#   r[   c                   @   r-   )zRegistration.CountryOptions.Fic                   @   r   )z'Registration.CountryOptions.Fi.Standardr.   r   Nr   r    r    r    r!   r"   x  r0   r"   r   r1   r$   Nr%   r    r    r    r!   Fiw  r6   r\   c                   @   r-   )zRegistration.CountryOptions.Frc                   @   r   )z'Registration.CountryOptions.Fr.Standardr.   r   Nr   r    r    r    r!   r"     r0   r"   r   r1   r$   Nr%   r    r    r    r!   Fr  r6   r]   c                   @   r   )zRegistration.CountryOptions.Gbc                   @   r   )z'Registration.CountryOptions.Gb.Standardr   r   Nr   r    r    r    r!   r"     r#   r"   r   r$   Nr%   r    r    r    r!   Gb  r(   r^   c                   @   r   )zRegistration.CountryOptions.Ger*   r$   Nr   r    r    r    r!   Ge  r#   r_   c                   @   r   )zRegistration.CountryOptions.Gnr   r$   Nr   r    r    r    r!   Gn  r#   r`   c                   @   r-   )zRegistration.CountryOptions.Grc                   @   r   )z'Registration.CountryOptions.Gr.Standardr.   r   Nr   r    r    r    r!   r"     r0   r"   r   r1   r$   Nr%   r    r    r    r!   Gr  r6   ra   c                   @   r-   )zRegistration.CountryOptions.Hrc                   @   r   )z'Registration.CountryOptions.Hr.Standardr.   r   Nr   r    r    r    r!   r"     r0   r"   r   r1   r$   Nr%   r    r    r    r!   Hr  r6   rb   c                   @   r-   )zRegistration.CountryOptions.Huc                   @   r   )z'Registration.CountryOptions.Hu.Standardr.   r   Nr   r    r    r    r!   r"     r0   r"   r   r1   r$   Nr%   r    r    r    r!   Hu  r6   rc   c                   @   r   )zRegistration.CountryOptions.Idr*   r$   Nr   r    r    r    r!   Id  r#   rd   c                   @   r-   )zRegistration.CountryOptions.Iec                   @   r   )z'Registration.CountryOptions.Ie.Standardr.   r   Nr   r    r    r    r!   r"     r0   r"   r   r1   r$   Nr%   r    r    r    r!   Ie  r6   re   c                   @   r   )zRegistration.CountryOptions.Inr*   r$   Nr   r    r    r    r!   In  r#   rf   c                   @   r   )zRegistration.CountryOptions.Isr   r$   Nr   r    r    r    r!   Is  r#   rg   c                   @   r-   )zRegistration.CountryOptions.Itc                   @   r   )z'Registration.CountryOptions.It.Standardr.   r   Nr   r    r    r    r!   r"     r0   r"   r   r1   r$   Nr%   r    r    r    r!   It  r6   rh   c                   @   r   )zRegistration.CountryOptions.Jpc                   @   r   )z'Registration.CountryOptions.Jp.Standardr   r   Nr   r    r    r    r!   r"     r#   r"   r   r$   Nr%   r    r    r    r!   Jp  r(   ri   c                   @   r   )zRegistration.CountryOptions.Ker*   r$   Nr   r    r    r    r!   Ke!  r#   rj   c                   @   r   )zRegistration.CountryOptions.Kgr*   r$   Nr   r    r    r    r!   Kg'  r#   rk   c                   @   r   )zRegistration.CountryOptions.Khr*   r$   Nr   r    r    r    r!   Kh-  r#   rl   c                   @   r   )zRegistration.CountryOptions.Krr*   r$   Nr   r    r    r    r!   Kr3  r#   rm   c                   @   r   )zRegistration.CountryOptions.Kzr*   r$   Nr   r    r    r    r!   Kz9  r#   rn   c                   @   r   )zRegistration.CountryOptions.Lar*   r$   Nr   r    r    r    r!   La?  r#   ro   c                   @   r-   )zRegistration.CountryOptions.Ltc                   @   r   )z'Registration.CountryOptions.Lt.Standardr.   r   Nr   r    r    r    r!   r"   F  r0   r"   r   r1   r$   Nr%   r    r    r    r!   LtE  r6   rp   c                   @   r-   )zRegistration.CountryOptions.Luc                   @   r   )z'Registration.CountryOptions.Lu.Standardr.   r   Nr   r    r    r    r!   r"   V  r0   r"   r   r1   r$   Nr%   r    r    r    r!   LuU  r6   rq   c                   @   r-   )zRegistration.CountryOptions.Lvc                   @   r   )z'Registration.CountryOptions.Lv.Standardr.   r   Nr   r    r    r    r!   r"   f  r0   r"   r   r1   r$   Nr%   r    r    r    r!   Lve  r6   rr   c                   @   r   )zRegistration.CountryOptions.Mar*   r$   Nr   r    r    r    r!   Mau  r#   rs   c                   @   r   )zRegistration.CountryOptions.Mdr*   r$   Nr   r    r    r    r!   Md{  r#   rt   c                   @   r   )zRegistration.CountryOptions.Mer   r$   Nr   r    r    r    r!   Me  r#   ru   c                   @   r   )zRegistration.CountryOptions.Mkr   r$   Nr   r    r    r    r!   Mk  r#   rv   c                   @   r   )zRegistration.CountryOptions.Mrr   r$   Nr   r    r    r    r!   Mr  r#   rw   c                   @   r-   )zRegistration.CountryOptions.Mtc                   @   r   )z'Registration.CountryOptions.Mt.Standardr.   r   Nr   r    r    r    r!   r"     r0   r"   r   r1   r$   Nr%   r    r    r    r!   Mt  r6   rx   c                   @   r   )zRegistration.CountryOptions.Mxr*   r$   Nr   r    r    r    r!   Mx  r#   ry   c                   @   r   )zRegistration.CountryOptions.Myr*   r$   Nr   r    r    r    r!   My  r#   rz   c                   @   r   )zRegistration.CountryOptions.Ngr*   r$   Nr   r    r    r    r!   Ng  r#   r{   c                   @   r-   )zRegistration.CountryOptions.Nlc                   @   r   )z'Registration.CountryOptions.Nl.Standardr.   r   Nr   r    r    r    r!   r"     r0   r"   r   r1   r$   Nr%   r    r    r    r!   Nl  r6   r|   c                   @   r   )zRegistration.CountryOptions.Noc                   @   r   )z'Registration.CountryOptions.No.Standardr   r   Nr   r    r    r    r!   r"     r#   r"   r   r$   Nr%   r    r    r    r!   No  r(   r}   c                   @   r   )zRegistration.CountryOptions.Npr*   r$   Nr   r    r    r    r!   Np  r#   r~   c                   @   r   )zRegistration.CountryOptions.Nzc                   @   r   )z'Registration.CountryOptions.Nz.Standardr   r   Nr   r    r    r    r!   r"     r#   r"   r   r$   Nr%   r    r    r    r!   Nz  r(   r   c                   @   r   )zRegistration.CountryOptions.Omr   r$   Nr   r    r    r    r!   Om  r#   r   c                   @   r   )zRegistration.CountryOptions.Per*   r$   Nr   r    r    r    r!   Pe  r#   r   c                   @   r   )zRegistration.CountryOptions.Phr*   r$   Nr   r    r    r    r!   Ph  r#   r   c                   @   r-   )zRegistration.CountryOptions.Plc                   @   r   )z'Registration.CountryOptions.Pl.Standardr.   r   Nr   r    r    r    r!   r"     r0   r"   r   r1   r$   Nr%   r    r    r    r!   Pl  r6   r   c                   @   r-   )zRegistration.CountryOptions.Ptc                   @   r   )z'Registration.CountryOptions.Pt.Standardr.   r   Nr   r    r    r    r!   r"   
  r0   r"   r   r1   r$   Nr%   r    r    r    r!   Pt	  r6   r   c                   @   r-   )zRegistration.CountryOptions.Roc                   @   r   )z'Registration.CountryOptions.Ro.Standardr.   r   Nr   r    r    r    r!   r"     r0   r"   r   r1   r$   Nr%   r    r    r    r!   Ro  r6   r   c                   @   r   )zRegistration.CountryOptions.Rsr   r$   Nr   r    r    r    r!   Rs)  r#   r   c                   @   r   )zRegistration.CountryOptions.Rur*   r$   Nr   r    r    r    r!   Ru/  r#   r   c                   @   r   )zRegistration.CountryOptions.Sar*   r$   Nr   r    r    r    r!   Sa5  r#   r   c                   @   r-   )zRegistration.CountryOptions.Sec                   @   r   )z'Registration.CountryOptions.Se.Standardr.   r   Nr   r    r    r    r!   r"   <  r0   r"   r   r1   r$   Nr%   r    r    r    r!   Se;  r6   r   c                   @   r   )zRegistration.CountryOptions.Sgc                   @   r   )z'Registration.CountryOptions.Sg.Standardr   r   Nr   r    r    r    r!   r"   L  r#   r"   r   r$   Nr%   r    r    r    r!   SgK  r(   r   c                   @   r-   )zRegistration.CountryOptions.Sic                   @   r   )z'Registration.CountryOptions.Si.Standardr.   r   Nr   r    r    r    r!   r"   Z  r0   r"   r   r1   r$   Nr%   r    r    r    r!   SiY  r6   r   c                   @   r-   )zRegistration.CountryOptions.Skc                   @   r   )z'Registration.CountryOptions.Sk.Standardr.   r   Nr   r    r    r    r!   r"   j  r0   r"   r   r1   r$   Nr%   r    r    r    r!   Ski  r6   r   c                   @   r   )zRegistration.CountryOptions.Snr*   r$   Nr   r    r    r    r!   Sny  r#   r   c                   @   r   )zRegistration.CountryOptions.Srr   r$   Nr   r    r    r    r!   Sr  r#   r   c                   @   r   )zRegistration.CountryOptions.Thr*   r$   Nr   r    r    r    r!   Th  r#   r   c                   @   r   )zRegistration.CountryOptions.Tjr*   r$   Nr   r    r    r    r!   Tj  r#   r   c                   @   r   )zRegistration.CountryOptions.Trr*   r$   Nr   r    r    r    r!   Tr  r#   r   c                   @   r   )zRegistration.CountryOptions.Twr*   r$   Nr   r    r    r    r!   Tw  r#   r   c                   @   r   )zRegistration.CountryOptions.Tzr*   r$   Nr   r    r    r    r!   Tz  r#   r   c                   @   r   )zRegistration.CountryOptions.Uar*   r$   Nr   r    r    r    r!   Ua  r#   r   c                   @   r   )zRegistration.CountryOptions.Ugr*   r$   Nr   r    r    r    r!   Ug  r#   r   c                   @   s   e Zd ZU G dd deZG dd deZG dd deZee ed< ee ed< e	ed	< 	 ee ed
< e
d ed< 	 eeedZdS )zRegistration.CountryOptions.Usc                   @   rD   )z0Registration.CountryOptions.Us.LocalAmusementTaxjurisdictionNrF   r    r    r    r!   LocalAmusementTax  rI   r   c                   @   rD   )z,Registration.CountryOptions.Us.LocalLeaseTaxr   NrF   r    r    r    r!   LocalLeaseTax  rI   r   c                   @   s8   e Zd ZU G dd deZeee  ed< 	 deiZdS )z,Registration.CountryOptions.Us.StateSalesTaxc                   @   s(   e Zd ZU ee ed< 	 ed ed< dS )z5Registration.CountryOptions.Us.StateSalesTax.Electionr   )local_use_taxsimplified_sellers_use_taxsingle_local_use_taxr$   N)r   r   r   r
   rG   r   r   r    r    r    r!   Election  s   
 r   	electionsN)	r   r   r   r   r   r
   r	   r   r&   r    r    r    r!   StateSalesTax  s
   
 r   local_amusement_taxlocal_lease_taxstatestate_sales_tax)r   r   state_communications_taxstate_retail_delivery_feer   r$   )r   r   r   N)r   r   r   r   r   r   r   r
   r   rG   r   r&   r    r    r    r!   Us  s"   
 
r   c                   @   r   )zRegistration.CountryOptions.Uyr   r$   Nr   r    r    r    r!   Uy  r#   r   c                   @   r   )zRegistration.CountryOptions.Uzr*   r$   Nr   r    r    r    r!   Uz  r#   r   c                   @   r   )zRegistration.CountryOptions.Vnr*   r$   Nr   r    r    r    r!   Vn  r#   r   c                   @   r   )zRegistration.CountryOptions.Zar   r$   Nr   r    r    r    r!   Za  r#   r   c                   @   r   )zRegistration.CountryOptions.Zmr*   r$   Nr   r    r    r    r!   Zm   r#   r   c                   @   r   )zRegistration.CountryOptions.Zwr   r$   Nr   r    r    r    r!   Zw  r#   r   aealamaoatauawazbabbbdbebfbgbhbjbsbycacdchclcmcocrcvcyczdedkeceeegesetfifrgbgegngrhrhuidiein_is_itjpkekgkhkrkzlaltlulvmamdmemkmrmtmxmyngnlnonpnzompephplptrorsrusasesgsisksnsrthtjtrtwtzuaugusuyuzvnzazmzwinis)r  r  r  r  r  r  r  r  r	  r
  r  r  r  r  r  )r   r   N)lr   r   r   r   r'   r)   r+   r,   r5   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rb   rc   rd   re   rf   rg   rh   ri   rj   rk   rl   rm   rn   ro   rp   rq   rr   rs   rt   ru   rv   rw   rx   ry   rz   r{   r|   r}   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r
   r   r&   _field_remappingsr    r    r    r!   CountryOptions*   s
  
 9	
 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUV
fr  active_fromcountrycountry_optionscreated
expires_atr   livemodeobject)activeexpired	scheduledstatusparamsr   returnc                 K   s   t d| jd|  |dS )8
        Creates a new Tax Registration object.
        r   postr  )r   _static_request	class_urlclsr  r    r    r!   create  s   zRegistration.createc                    s"   t d| jd|  |dI dH S )r!  r   r"  r#  N)r   _static_request_asyncr%  r&  r    r    r!   create_async
  s   
zRegistration.create_asyncr   c                 K   s4   | j d|  |d}t|tstdt|j |S )=
        Returns a list of Tax Registration objects.
        getr#  %Expected list object from API, got %s)r$  r%  
isinstancer   	TypeErrorr$   r   r'  r  resultr    r    r!   list  s   
zRegistration.listc                    s<   | j d|  |dI dH }t|tstdt|j |S )r+  r,  r#  Nr-  )r)  r%  r.  r   r/  r$   r   r0  r    r    r!   
list_async.  s   
zRegistration.list_asyncr   c                 K   s*   d|   t|f }td| jd||dS )
        Updates an existing Tax Registration object.

        A registration cannot be deleted after it has been created. If you wish to end a registration you may do so by setting expires_at.
        %s/%sr   r"  r#  )r%  r   r   r$  r'  r   r  urlr    r    r!   modifyB  s   	zRegistration.modifyc                    s2   d|   t|f }td| jd||dI dH S )r4  r5  r   r"  r#  N)r%  r   r   r)  r6  r    r    r!   modify_asyncU  s   	
zRegistration.modify_asyncr   c                 K   s   | |fi |}|   |S )4
        Returns a Tax Registration object.
        )refreshr'  r   r  instancer    r    r!   retrieveh  s   zRegistration.retrievec                    s$   | |fi |}|  I dH  |S )r:  N)refresh_asyncr<  r    r    r!   retrieve_asyncs  s   zRegistration.retrieve_asyncN)r   r   r   __doc__r   r   r   r   r   r  intrG   r
   boolclassmethodr   r(  r*  r   r2  r3  r8  r9  r>  r@  r&   r    r    r    r!   r      s   
          7

r   N)stripe._createable_api_resourcer   stripe._list_objectr   stripe._listable_api_resourcer   stripe._stripe_objectr   stripe._updateable_api_resourcer   stripe._utilr   typingr   r	   r
   r   typing_extensionsr   r   r   -stripe.params.tax._registration_create_paramsr   +stripe.params.tax._registration_list_paramsr   -stripe.params.tax._registration_modify_paramsr   /stripe.params.tax._registration_retrieve_paramsr   r   r    r    r    r!   <module>   s$   
