Ë
    [üàgË  ã                   ó€   — d Z ddlmZmZmZmZ ddlmZmZ ddl	m
Z
 ddlmZ ddlmZ  G d„ de
«      Z G d	„ d
e«      Zy)aë  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Accounts
    This is the public Twilio REST API.

    NOTE: This class is auto generated by OpenAPI Generator.
    https://openapi-generator.tech
    Do not edit the class manually.
é    )ÚAnyÚDictÚListÚOptional)Ú	serializeÚvalues)ÚInstanceResource)ÚListResource)ÚVersionc                   óB   ‡ — e Zd ZdZdedeeef   fˆ fd„Zdefd„Z	ˆ xZ
S )ÚBulkConsentsInstanceaü  
    :ivar items: A list of objects where each object represents the result of processing a `correlation_id`. Each object contains the following fields: `correlation_id`, a unique 32-character UUID that maps the response to the original request; `error_code`, an integer where 0 indicates success and any non-zero value represents an error; and `error_messages`, an array of strings describing specific validation errors encountered. If the request is successful, the error_messages array will be empty.
    ÚversionÚpayloadc                 óP   •— t         ‰| �  |«       |j                  d«      | _        y )NÚitems)ÚsuperÚ__init__Úgetr   )Úselfr   r   Ú	__class__s      €úc/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/accounts/v1/bulk_consents.pyr   zBulkConsentsInstance.__init__   s    ø€ Ü‰Ñ˜Ô!à29·+±+¸gÓ2Fˆ�
ó    Úreturnc                  ó   — y)úf
        Provide a friendly representation

        :returns: Machine friendly representation
        z)<Twilio.Accounts.V1.BulkConsentsInstance>© ©r   s    r   Ú__repr__zBulkConsentsInstance.__repr__!   s   € ð ;r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r   r   Ú__classcell__©r   s   @r   r   r      s2   ø„ ñðG ð G°$°s¸C°x±.õ Gð
;˜#÷ ;r   r   c                   ó\   ‡ — e Zd Zdefˆ fd„Zdee   defd„Zdee   defd„Z	de
fd„Zˆ xZS )ÚBulkConsentsListr   c                 ó2   •— t         ‰| �  |«       d| _        y)zn
        Initialize the BulkConsentsList

        :param version: Version that contains the resource

        z/Consents/BulkN)r   r   Ú_uri)r   r   r   s     €r   r   zBulkConsentsList.__init__-   s   ø€ ô 	‰Ñ˜Ô!à$ˆ�	r   r   r   c                 ó  — t        j                  dt        j                  |d„ «      i«      }t        j                  ddi«      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  |«      S )	a3  
        Create the BulkConsentsInstance

        :param items: This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; and `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`].

        :returns: The created BulkConsentsInstance
        ÚItemsc                 ó,   — t        j                  | «      S ©N©r   Úobject©Úes    r   ú<lambda>z)BulkConsentsList.create.<locals>.<lambda>C   ó   € ¼	×8HÑ8HÈÓ8K€ r   úContent-Typeú!application/x-www-form-urlencodedúapplication/jsonÚAcceptÚPOST©ÚmethodÚuriÚdataÚheaders)r   Úofr   ÚmapÚ_versionÚcreater)   r   ©r   r   r<   r=   r   s        r   rA   zBulkConsentsList.create8   s‹   € ô �y‰yàœŸ™ uÑ.KÓLðó
ˆô
 —)‘)˜^Ð-PÐQÓRˆà"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô $ D§M¡M°7Ó;Ð;r   c              ƒ   ó6  K  — t        j                  dt        j                  |d„ «      i«      }t        j                  ddi«      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      ƒ d	{  –—† }t        | j                  |«      S 7 Œ­w)
aB  
        Asynchronously create the BulkConsentsInstance

        :param items: This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; and `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`].

        :returns: The created BulkConsentsInstance
        r+   c                 ó,   — t        j                  | «      S r-   r.   r0   s    r   r2   z/BulkConsentsList.create_async.<locals>.<lambda>]   r3   r   r4   r5   r6   r7   r8   r9   N)r   r>   r   r?   r@   Úcreate_asyncr)   r   rB   s        r   rE   zBulkConsentsList.create_asyncR   s™   è ø€ ô �y‰yàœŸ™ uÑ.KÓLðó
ˆô
 —)‘)˜^Ð-PÐQÓRˆà"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô $ D§M¡M°7Ó;Ð;ð	
ús   ‚A:BÁ<BÁ=Bc                  ó   — y)r   z%<Twilio.Accounts.V1.BulkConsentsList>r   r   s    r   r   zBulkConsentsList.__repr__l   s   € ð 7r   )r   r    r!   r   r   r   r/   r   rA   rE   r#   r   r$   r%   s   @r   r'   r'   +   sK   ø„ ð	% õ 	%ð<˜D ™Lð <Ð-Aó <ð4<¨¨V©ð <Ð9Mó <ð47˜#÷ 7r   r'   N)r"   Útypingr   r   r   r   Útwilio.baser   r   Útwilio.base.instance_resourcer	   Útwilio.base.list_resourcer
   Útwilio.base.versionr   r   r'   r   r   r   ú<module>rL      s9   ðñ÷ -Ó ,ß )å :Ý 2Ý 'ô;Ð+ô ;ô(G7�|õ G7r   