o
    tBh                     @   sH   d dl mZ ddlmZ ddlmZ ddlmZ G dd deejZ	d	S )
   )ShopifyResource    )mixins   )CustomerInvite)Orderc                   @   s.   e Zd Zedd Ze fddZdd ZdS )Customerc                 K   s   |  | jdi |S )a  
        Search for customers matching supplied query

        Args:
           order: Field and direction to order results by (default: last_order_date DESC)
           query: Text to search for customers
           page: Page to show (default: 1)
           limit: Amount of results (default: 50) (maximum: 250)
           fields: comma-separated list of fields to include in the response
        Returns:
           A Collection of customers.
        searchN)r	   )_build_collectionget)clskwargs r   q/var/www/html/riverr-enterprise-integrations-main/venv/lib/python3.10/site-packages/shopify/resources/customer.pyr	      s   zCustomer.searchc                 C   s"   |  d| }ttj|jS )Nsend_invite)postencoder   r   formatdecodebody)selfcustomer_inviteresourcer   r   r   r      s   zCustomer.send_invitec                 C   s   t j| jdS )N)customer_id)r   findid)r   r   r   r   orders   s   zCustomer.ordersN)__name__
__module____qualname__classmethodr	   r   r   r   r   r   r   r   r      s
    
r   N)
baser   shopifyr   r   r   orderr   
Metafieldsr   r   r   r   r   <module>   s
    