o
    Q?hm                     @   st   d dl 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
 eddG d	d
 d
eZeG dd dZdS )    N)	dataclass)Optional)db)DocumentData)UserT)kw_onlyc                   @   sH   e Zd ZU eed< eed< eed< dZeed< ededefdd	Zd
S )LocationnameapiKeyfromAddressIdz
US/EasterntimezoneenterpriseId
locationIdc                 C   s2   t d| d|  }|jr| | S d S )Nzenterprises/z/locations/)r   documentgetexists	from_dictto_dict)clsr   r   ref r   Q/var/www/html/riverr-enterprise-integrations-main/V2/functions/Printify/Params.pyr      s   zLocation.getN)__name__
__module____qualname__str__annotations__r   classmethodr   r   r   r   r   r   
   s   
 r   c                   @   sJ   e Zd ZU edB ed< eed< ee ed< eed< eed< e	dd Z
dS )	PrintifyParamsNcurrentUserhostnameidargslocationc                    s$   | di  fddt | jD S )Nc                    s   i | ]}|  |qS r   )r   ).0kdatar   r   
<dictcomp>!   s    z,PrintifyParams.from_dict.<locals>.<dictcomp>r   )inspect	signature
parameters)r   r'   r   r&   r   r      s   

zPrintifyParams.from_dict)r   r   r   r   r   r   r   dictr   r   r   r   r   r   r   r      s   
 r   )r)   dataclassesr   typingr   configs.firebaser   V2.functions.mainr   V2.functions.Users.mainr   r   r   r   r   r   r   <module>   s    