B
    `]                 @   st   d 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	 G dd deZ
G d	d
 d
e	ZG dd deZdS )za
This code was generated by
\ / _    _  _|   _  _
 | (_)\/(_)(_|\/| |(/_  v1.0.0
      /       /
    )deserialize)values)InstanceResource)ListResource)Pagec                   s>   e Zd Z fddZejejejejfddZdd Z  ZS )VerificationCheckListc                s.   t t| | d|i| _djf | j| _dS )a  
        Initialize the VerificationCheckList

        :param Version version: Version that contains the resource
        :param service_sid: The SID of the Service that the resource is associated with

        :returns: twilio.rest.verify.v2.service.verification_check.VerificationCheckList
        :rtype: twilio.rest.verify.v2.service.verification_check.VerificationCheckList
        service_sidz)/Services/{service_sid}/VerificationCheckN)superr   __init__	_solutionformat_uri)selfversionr   )	__class__ _/home/dcms/DCMS/lib/python3.7/site-packages/twilio/rest/verify/v2/service/verification_check.pyr
      s    

zVerificationCheckList.__init__c             C   s@   t |||||d}| jjd| j|d}t| j|| jd dS )aK  
        Create the VerificationCheckInstance

        :param unicode code: The verification string
        :param unicode to: The phone number or email to verify
        :param unicode verification_sid: A SID that uniquely identifies the Verification Check
        :param unicode amount: The amount of the associated PSD2 compliant transaction.
        :param unicode payee: The payee of the associated PSD2 compliant transaction

        :returns: The created VerificationCheckInstance
        :rtype: twilio.rest.verify.v2.service.verification_check.VerificationCheckInstance
        )ZCodeToZVerificationSidZAmountZPayeePOST)methoduridatar   )r   )r   Zof_versioncreater   VerificationCheckInstancer   )r   codetoZverification_sidamountpayeer   payloadr   r   r   r   "   s    
zVerificationCheckList.createc             C   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z(<Twilio.Verify.V2.VerificationCheckList>r   )r   r   r   r   __repr__<   s    zVerificationCheckList.__repr__)	__name__
__module____qualname__r
   r   Zunsetr   r    __classcell__r   r   )r   r   r      s   r   c                   s,   e Zd Z fddZdd Zdd Z  ZS )VerificationCheckPagec                s   t t| || || _dS )a  
        Initialize the VerificationCheckPage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API
        :param service_sid: The SID of the Service that the resource is associated with

        :returns: twilio.rest.verify.v2.service.verification_check.VerificationCheckPage
        :rtype: twilio.rest.verify.v2.service.verification_check.VerificationCheckPage
        N)r	   r%   r
   r   )r   r   responseZsolution)r   r   r   r
   H   s    zVerificationCheckPage.__init__c             C   s   t | j|| jd dS )a5  
        Build an instance of VerificationCheckInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.verify.v2.service.verification_check.VerificationCheckInstance
        :rtype: twilio.rest.verify.v2.service.verification_check.VerificationCheckInstance
        r   )r   )r   r   r   )r   r   r   r   r   get_instanceX   s    	z"VerificationCheckPage.get_instancec             C   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z(<Twilio.Verify.V2.VerificationCheckPage>r   )r   r   r   r   r    c   s    zVerificationCheckPage.__repr__)r!   r"   r#   r
   r'   r    r$   r   r   )r   r   r%   F   s   r%   c                   s   e Zd ZG dd deZ fddZedd Zedd Zed	d
 Z	edd Z
edd Zedd Zedd Zedd Zedd Zedd Zedd Zdd Z  ZS )r   c               @   s   e Zd ZdZdZdZdS )z!VerificationCheckInstance.ChannelZsmscallemailN)r!   r"   r#   ZSMSCALLZEMAILr   r   r   r   Channelo   s   r+   c                s   t t| | |d|d|d|d|d|d|d|d|d	t|d
t|dd| _d| _d|i| _dS )z
        Initialize the VerificationCheckInstance

        :returns: twilio.rest.verify.v2.service.verification_check.VerificationCheckInstance
        :rtype: twilio.rest.verify.v2.service.verification_check.VerificationCheckInstance
        sidr   account_sidr   channelstatusvalidr   r   date_createddate_updated)r,   r   r-   r   r.   r/   r0   r   r   r1   r2   N)	r	   r   r
   getr   iso8601_datetime_properties_contextr   )r   r   r   r   )r   r   r   r
   t   s    z"VerificationCheckInstance.__init__c             C   s
   | j d S )zb
        :returns: The unique string that identifies the resource
        :rtype: unicode
        r,   )r5   )r   r   r   r   r,      s    zVerificationCheckInstance.sidc             C   s
   | j d S )zo
        :returns: The SID of the Service that the resource is associated with
        :rtype: unicode
        r   )r5   )r   r   r   r   r      s    z%VerificationCheckInstance.service_sidc             C   s
   | j d S )zd
        :returns: The SID of the Account that created the resource
        :rtype: unicode
        r-   )r5   )r   r   r   r   r-      s    z%VerificationCheckInstance.account_sidc             C   s
   | j d S )z\
        :returns: The phone number or email being verified
        :rtype: unicode
        r   )r5   )r   r   r   r   r      s    zVerificationCheckInstance.toc             C   s
   | j d S )zl
        :returns: The verification method to use
        :rtype: VerificationCheckInstance.Channel
        r.   )r5   )r   r   r   r   r.      s    z!VerificationCheckInstance.channelc             C   s
   | j d S )z[
        :returns: The status of the verification resource
        :rtype: unicode
        r/   )r5   )r   r   r   r   r/      s    z VerificationCheckInstance.statusc             C   s
   | j d S )zX
        :returns: Whether the verification was successful
        :rtype: bool
        r0   )r5   )r   r   r   r   r0      s    zVerificationCheckInstance.validc             C   s
   | j d S )zl
        :returns: The amount of the associated PSD2 compliant transaction.
        :rtype: unicode
        r   )r5   )r   r   r   r   r      s    z VerificationCheckInstance.amountc             C   s
   | j d S )zj
        :returns: The payee of the associated PSD2 compliant transaction
        :rtype: unicode
        r   )r5   )r   r   r   r   r      s    zVerificationCheckInstance.payeec             C   s
   | j d S )z
        :returns: The ISO 8601 date and time in GMT when the Verification Check resource was created
        :rtype: datetime
        r1   )r5   )r   r   r   r   r1      s    z&VerificationCheckInstance.date_createdc             C   s
   | j d S )z
        :returns: The ISO 8601 date and time in GMT when the Verification Check resource was last updated
        :rtype: datetime
        r2   )r5   )r   r   r   r   r2      s    z&VerificationCheckInstance.date_updatedc             C   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z,<Twilio.Verify.V2.VerificationCheckInstance>r   )r   r   r   r   r       s    z"VerificationCheckInstance.__repr__)r!   r"   r#   objectr+   r
   propertyr,   r   r-   r   r.   r/   r0   r   r   r1   r2   r    r$   r   r   )r   r   r   m   s   r   N)__doc__Ztwilio.baser   r   Ztwilio.base.instance_resourcer   Ztwilio.base.list_resourcer   Ztwilio.base.pager   r   r%   r   r   r   r   r   <module>   s   6'