Ë
    ÑÕ¯i#  ã                   óf   — d dl mZ ddlmZ ddlZ G d„ deej                  ej
                  «      Zy)é   )ÚShopifyResourceé    )ÚmixinsNc                   ó   — e Zd Zd„ Zd„ Zd„ Zy)ÚCustomCollectionc                 óV   — t         j                  j                  | j                  ¬«      S )N)Úcollection_id)ÚshopifyÚProductÚfindÚid)Úselfs    úV/var/www/html/venv/lib/python3.12/site-packages/shopify/resources/custom_collection.pyÚproductszCustomCollection.products   s   € Ü�‰×#Ñ#°$·'±'Ð#Ó:Ð:ó    c                 ón   — t         j                  j                  | j                  |j                  dœ«      S ©N)r	   Ú
product_id)r
   ÚCollectÚcreater   )r   Úproducts     r   Úadd_productzCustomCollection.add_product
   s$   € Ü�‰×%Ñ%¸¿¹ÈwÏzÉzÑ&ZÓ[Ð[r   c                 ó”   — t         j                  j                  | j                  |j                  ¬«      }|r|j	                  «        y y r   )r
   r   Ú
find_firstr   Údestroy)r   r   Úcollects      r   Úremove_productzCustomCollection.remove_product   s5   € Ü—/‘/×,Ñ,¸4¿7¹7ÈwÏzÉzÐ,ÓZˆÙØ�O‰OÕð r   N)Ú__name__Ú
__module__Ú__qualname__r   r   r   © r   r   r   r      s   „ ò;ò\ór   r   )Úbaser   r
   r   Ú
MetafieldsÚEventsr   r!   r   r   Ú<module>r%      s(   ðÝ "Ý Û ô
�¨×(9Ñ(9¸6¿=¹=õ 
r   