
    pin                         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 ddlmZ  G d d	e      Z G d
 de
      Z G d de      Zy)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Trusthub
    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OptionalUnion)	serializevalues)InstanceContext)InstanceResource)ListResource)Versionc                   d    e Zd Z G d de      Z G d de      Z G d de      Z G d de      Z	 	 dd	ed
e	e
ef   dee
   f fdZedd       Zej"                  ej"                  fdeeef   dee
ef   dd fdZej"                  ej"                  fdeeef   dee
ef   dd fdZde
fdZ xZS )'ComplianceRegistrationInquiriesInstancec                       e Zd ZdZdZdZy)<ComplianceRegistrationInquiriesInstance.BusinessIdentityTypedirect_customerisv_reseller_or_partnerunknownN)__name__
__module____qualname__DIRECT_CUSTOMERISV_RESELLER_OR_PARTNERUNKNOWN     {/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/twilio/rest/trusthub/v1/compliance_registration_inquiries.pyBusinessIdentityTyper      s    +";r   r   c                        e Zd ZdZdZdZdZdZy)EComplianceRegistrationInquiriesInstance.BusinessRegistrationAuthorityzUK:CRNzUS:EINzCA:CBNzAU:ACNOtherN)r   r   r   UK_CRNUS_EINCA_CBNAU_ACNOTHERr   r   r   BusinessRegistrationAuthorityr      s    r   r&   c                       e Zd ZdZdZy)3ComplianceRegistrationInquiriesInstance.EndUserType
IndividualBusinessN)r   r   r   
INDIVIDUALBUSINESSr   r   r   EndUserTyper(   %   s    !
r   r-   c                       e Zd ZdZdZdZdZy)7ComplianceRegistrationInquiriesInstance.PhoneNumberTypelocalnationalmobilez	toll-freeN)r   r   r   LOCALNATIONALMOBILE	TOLL_FREEr   r   r   PhoneNumberTyper/   )   s    	r   r7   versionpayloadregistration_idc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        d|xs | j
                  i| _        d | _        y )N
inquiry_idinquiry_session_tokenr:   url)	super__init__getr<   r=   r:   r>   	_solution_context)selfr8   r9   r:   	__class__s       r   r@   z0ComplianceRegistrationInquiriesInstance.__init__6   s|     	!)0\)B4;KK@W4X".5kk:K.L")++e"4 F$2F2F
 KOr   returnc                     | j                   )t        | j                  | j                  d         | _         | j                   S )a  
        Generate an instance context for the instance, the context is capable of
        performing various actions. All instance actions are proxied to the context

        :returns: ComplianceRegistrationInquiriesContext for this ComplianceRegistrationInquiriesInstance
        r:   r:   )rC   &ComplianceRegistrationInquiriesContext_versionrB   rD   s    r   _proxyz.ComplianceRegistrationInquiriesInstance._proxyH   s:     == B $/@ ADM }}r   is_isv_embedtheme_set_idc                 <    | j                   j                  ||      S )7  
        Update the ComplianceRegistrationInquiriesInstance

        :param is_isv_embed: Indicates if the inquiry is being started from an ISV embedded component.
        :param theme_set_id: Theme id for styling the inquiry form.

        :returns: The updated ComplianceRegistrationInquiriesInstance
        rM   rN   )rL   updaterD   rM   rN   s      r   rR   z.ComplianceRegistrationInquiriesInstance.updateW   s&     {{!!%% " 
 	
r   c                 X   K   | j                   j                  ||       d{   S 7 w)Q  
        Asynchronous coroutine to update the ComplianceRegistrationInquiriesInstance

        :param is_isv_embed: Indicates if the inquiry is being started from an ISV embedded component.
        :param theme_set_id: Theme id for styling the inquiry form.

        :returns: The updated ComplianceRegistrationInquiriesInstance
        rQ   N)rL   update_asyncrS   s      r   rV   z4ComplianceRegistrationInquiriesInstance.update_asynci   s4      [[--%% . 
 
 	
 
s   !*(*c                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        ywz{}={}Nformat.0kvs      r   	<genexpr>zCComplianceRegistrationInquiriesInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z?<Twilio.Trusthub.V1.ComplianceRegistrationInquiriesInstance {}>joinrB   itemsr]   rD   contexts     r   __repr__z0ComplianceRegistrationInquiriesInstance.__repr__{   s;     ((SDNN<P<P<RSSPWW
 	
r   )N)rF   rI   )r   r   r   objectr   r&   r-   r7   r   r   strr   r   r@   propertyrL   r   unsetr   boolrR   rV   rj   __classcell__rE   s   @r   r   r      s   v 
 f  &   *.	OO c3hO "#	O$    -3LL+1<<
D&L)
 CK(
 
3	
( -3LL+1<<
D&L)
 CK(
 
3	
$	
# 	
r   r   c                        e Zd Zdedef fdZej                  ej                  fdee	e
f   deee
f   defdZej                  ej                  fdee	e
f   deee
f   defdZdefd	Z xZS )
rI   r8   r:   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)an  
        Initialize the ComplianceRegistrationInquiriesContext

        :param version: Version that contains the resource
        :param registration_id: The unique RegistrationId matching the Regulatory Compliance Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Regulatory Compliance Inquiry creation call.
        r:   zV/ComplianceInquiries/Registration/{registration_id}/RegulatoryCompliance/GB/InitializeNr   )r?   r@   rB   r]   _uri)rD   r8   r:   rE   s      r   r@   z/ComplianceRegistrationInquiriesContext.__init__   sF     	! 
 tlss 
nn
	r   rM   rN   rF   c                 2   t        j                  t        j                  |      |d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||      }t        | j                  || j                  d   	      S )
rP   
IsIsvEmbed
ThemeSetId!application/x-www-form-urlencodedContent-Typeapplication/jsonAcceptPOSTmethoduridataheadersr:   rH   )	r   ofr   boolean_to_stringrJ   rR   rt   r   rB   rD   rM   rN   r   r   r9   s         r   rR   z-ComplianceRegistrationInquiriesContext.update   s     yy'99,G*
 ))B-"E.--&&tyytW ' 
 7MM7DNNCT4U
 	
r   c                 N  K   t        j                  t        j                  |      |d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  || j                  d	   
      S 7 )w)rU   rv   ry   rz   r{   r|   r}   r~   Nr:   rH   )	r   r   r   r   rJ   rV   rt   r   rB   r   s         r   rV   z3ComplianceRegistrationInquiriesContext.update_async   s      yy'99,G*
 ))B-"E.22tyytW 3 
 
 7MM7DNNCT4U
 	
	
s   A7B%9B#:*B%c                     dj                  d | j                  j                         D              }dj                  |      S )rX   rY   c              3   F   K   | ]  \  }}d j                  ||        ywr[   r\   r^   s      r   rb   zBComplianceRegistrationInquiriesContext.__repr__.<locals>.<genexpr>   rc   rd   z><Twilio.Trusthub.V1.ComplianceRegistrationInquiriesContext {}>re   rh   s     r   rj   z/ComplianceRegistrationInquiriesContext.__repr__   s;     ((SDNN<P<P<RSSOVV
 	
r   )r   r   r   r   rl   r@   r   rn   r   ro   rk   r   rR   rV   rj   rp   rq   s   @r   rI   rI      s    
 
# 
& -3LL+1<< 
D&L) 
 CK( 
 
1	 
H -3LL+1<< 
D&L) 
 CK( 
 
1	 
D	
# 	
r   rI   c            Q       
    e Zd Zdef fdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  f%dddddedef   d	ed
ef   dee	ef   dee	ef   dee
ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   d ee	ef   d!ee	ef   d"ee
ef   d#ee	ef   d$ee	ef   d%ee	ef   d&ee	ef   d'ee	ef   d(ee	ef   d)ee	ef   d*ee
ef   d+ee	ef   d,ee	ef   d-ee	ef   d.efPd/Zej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  f%dddddedef   d	ed
ef   dee	ef   dee	ef   dee
ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   dee	ef   d ee	ef   d!ee	ef   d"ee
ef   d#ee	ef   d$ee	ef   d%ee	ef   d&ee	ef   d'ee	ef   d(ee	ef   d)ee	ef   d*ee
ef   d+ee	ef   d,ee	ef   d-ee	ef   d.efPd0Zd1e	d.efd2Zd1e	d.efd3Zd.e	fd4Z xZS )5#ComplianceRegistrationInquiriesListr8   c                 2    t         |   |       d| _        y)z
        Initialize the ComplianceRegistrationInquiriesList

        :param version: Version that contains the resource

        zD/ComplianceInquiries/Registration/RegulatoryCompliance/GB/InitializeN)r?   r@   rt   )rD   r8   rE   s     r   r@   z,ComplianceRegistrationInquiriesList.__init__   s     	! S 		r   end_user_typer(   phone_number_typer/   business_identity_typer   business_registration_authorityr   business_legal_namenotification_emailaccepted_notification_receiptbusiness_registration_numberbusiness_website_urlfriendly_name%authorized_representative1_first_name$authorized_representative1_last_name authorized_representative1_phone authorized_representative1_email(authorized_representative1_date_of_birthaddress_streetaddress_street_secondaryaddress_cityaddress_subdivisionaddress_postal_codeaddress_country_codeemergency_address_street"emergency_address_street_secondaryemergency_address_cityemergency_address_subdivisionemergency_address_postal_codeemergency_address_country_code use_address_as_emergency_address	file_namefile
first_name	last_namedate_of_birthindividual_emailindividual_phonerM   "isv_registering_for_self_or_tenantstatus_callback_urlrN   rF   c(           	      >   t        j                  i d|d|d|d|d|d|dt        j                  |      d|d	|	d
|
d|d|d|d|d|d|d|i d|d|d|d|d|d|d|d|d|d|dt        j                  |      d|d|d|d | d!|!d"|"|#t        j                  |$      |%|&|'d#      }(t        j                  d$d%i      })d%|)d$<   d&|)d'<   | j                  j                  d(| j                  |(|))      }*t        | j                  |*      S )*a+  
        Create the ComplianceRegistrationInquiriesInstance

        :param end_user_type:
        :param phone_number_type:
        :param business_identity_type:
        :param business_registration_authority:
        :param business_legal_name: he name of the business or organization using the Tollfree number.
        :param notification_email: he email address to receive the notification about the verification result.
        :param accepted_notification_receipt: The email address to receive the notification about the verification result.
        :param business_registration_number: Business registration number of the business
        :param business_website_url: The URL of the business website
        :param friendly_name: Friendly name for your business information
        :param authorized_representative1_first_name: First name of the authorized representative
        :param authorized_representative1_last_name: Last name of the authorized representative
        :param authorized_representative1_phone: Phone number of the authorized representative
        :param authorized_representative1_email: Email address of the authorized representative
        :param authorized_representative1_date_of_birth: Birthdate of the authorized representative
        :param address_street: Street address of the business
        :param address_street_secondary: Street address of the business
        :param address_city: City of the business
        :param address_subdivision: State or province of the business
        :param address_postal_code: Postal code of the business
        :param address_country_code: Country code of the business
        :param emergency_address_street: Street address of the business
        :param emergency_address_street_secondary: Street address of the business
        :param emergency_address_city: City of the business
        :param emergency_address_subdivision: State or province of the business
        :param emergency_address_postal_code: Postal code of the business
        :param emergency_address_country_code: Country code of the business
        :param use_address_as_emergency_address: Use the business address as the emergency address
        :param file_name: The name of the verification document to upload
        :param file: The verification document to upload
        :param first_name: The first name of the Individual User.
        :param last_name: The last name of the Individual User.
        :param date_of_birth: The date of birth of the Individual User.
        :param individual_email: The email address of the Individual User.
        :param individual_phone: The phone number of the Individual User.
        :param is_isv_embed: Indicates if the inquiry is being started from an ISV embedded component.
        :param isv_registering_for_self_or_tenant: Indicates if the isv registering for self or tenant.
        :param status_callback_url: The url we call to inform you of bundle changes.
        :param theme_set_id: Theme id for styling the inquiry form.

        :returns: The created ComplianceRegistrationInquiriesInstance
        r-   r7   r   r&   BusinessLegalNameNotificationEmailAcceptedNotificationReceiptBusinessRegistrationNumberBusinessWebsiteUrlFriendlyName"AuthorizedRepresentative1FirstName!AuthorizedRepresentative1LastNameAuthorizedRepresentative1PhoneAuthorizedRepresentative1Email$AuthorizedRepresentative1DateOfBirthAddressStreetAddressStreetSecondaryAddressCityAddressSubdivisionAddressPostalCodeAddressCountryCodeEmergencyAddressStreetEmergencyAddressStreetSecondaryEmergencyAddressCityEmergencyAddressSubdivisionEmergencyAddressPostalCodeEmergencyAddressCountryCodeUseAddressAsEmergencyAddressFileNameFile	FirstNameLastNameDateOfBirthIndividualEmailIndividualPhonerw   IsvRegisteringForSelfOrTenantStatusCallbackUrlrx   rz   ry   r{   r|   r}   r~   )r   r   r   r   rJ   creatert   r   +rD   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rM   r   r   rN   r   r   r9   s+                                              r   r   z*ComplianceRegistrationInquiriesList.create   sr   z yy,},!#4, '(>, 01P	,
 $%8, $%7, .y/J/J10, -.J, %&:, , 56[, 45Y, 12R,  12R!," 78`#,$  %,& )*B',( |),* %&9+,, $%8-,. %&:/,0 )*B1,2 23U3,4 '(>5,6 ./L7,8 -.K9,: ./M;,< /	0K0K41=,B IC,D E,F ZG,H II,J }K,L "#3M,N $4'99,G1S%8*W,.
^ ))^-PQR"E.--&&tyytW ' 
 7t}}gNNr   c(           	      Z  K   t        j                  i d|d|d|d|d|d|dt        j                  |      d|d	|	d
|
d|d|d|d|d|d|d|i d|d|d|d|d|d|d|d|d|d|dt        j                  |      d|d|d|d | d!|!d"|"|#t        j                  |$      |%|&|'d#      }(t        j                  d$d%i      })d%|)d$<   d&|)d'<   | j                  j                  d(| j                  |(|))       d*{   }*t        | j                  |*      S 7 w)+a:  
        Asynchronously create the ComplianceRegistrationInquiriesInstance

        :param end_user_type:
        :param phone_number_type:
        :param business_identity_type:
        :param business_registration_authority:
        :param business_legal_name: he name of the business or organization using the Tollfree number.
        :param notification_email: he email address to receive the notification about the verification result.
        :param accepted_notification_receipt: The email address to receive the notification about the verification result.
        :param business_registration_number: Business registration number of the business
        :param business_website_url: The URL of the business website
        :param friendly_name: Friendly name for your business information
        :param authorized_representative1_first_name: First name of the authorized representative
        :param authorized_representative1_last_name: Last name of the authorized representative
        :param authorized_representative1_phone: Phone number of the authorized representative
        :param authorized_representative1_email: Email address of the authorized representative
        :param authorized_representative1_date_of_birth: Birthdate of the authorized representative
        :param address_street: Street address of the business
        :param address_street_secondary: Street address of the business
        :param address_city: City of the business
        :param address_subdivision: State or province of the business
        :param address_postal_code: Postal code of the business
        :param address_country_code: Country code of the business
        :param emergency_address_street: Street address of the business
        :param emergency_address_street_secondary: Street address of the business
        :param emergency_address_city: City of the business
        :param emergency_address_subdivision: State or province of the business
        :param emergency_address_postal_code: Postal code of the business
        :param emergency_address_country_code: Country code of the business
        :param use_address_as_emergency_address: Use the business address as the emergency address
        :param file_name: The name of the verification document to upload
        :param file: The verification document to upload
        :param first_name: The first name of the Individual User.
        :param last_name: The last name of the Individual User.
        :param date_of_birth: The date of birth of the Individual User.
        :param individual_email: The email address of the Individual User.
        :param individual_phone: The phone number of the Individual User.
        :param is_isv_embed: Indicates if the inquiry is being started from an ISV embedded component.
        :param isv_registering_for_self_or_tenant: Indicates if the isv registering for self or tenant.
        :param status_callback_url: The url we call to inform you of bundle changes.
        :param theme_set_id: Theme id for styling the inquiry form.

        :returns: The created ComplianceRegistrationInquiriesInstance
        r-   r7   r   r&   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rz   ry   r{   r|   r}   r~   N)r   r   r   r   rJ   create_asyncrt   r   r   s+                                              r   r   z0ComplianceRegistrationInquiriesList.create_async  s    z yy,},!#4, '(>, 01P	,
 $%8, $%7, .y/J/J10, -.J, %&:, , 56[, 45Y, 12R,  12R!," 78`#,$  %,& )*B',( |),* %&9+,, $%8-,. %&:/,0 )*B1,2 23U3,4 '(>5,6 ./L7,8 -.K9,: ./M;,< /	0K0K41=,B IC,D E,F ZG,H II,J }K,L "#3M,N $4'99,G1S%8*W,.
^ ))^-PQR"E.22tyytW 3 
 
 7t}}gNN	
s   DD+D)D+r:   c                 0    t        | j                  |      S a1  
        Constructs a ComplianceRegistrationInquiriesContext

        :param registration_id: The unique RegistrationId matching the Regulatory Compliance Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Regulatory Compliance Inquiry creation call.
        rH   rI   rJ   rD   r:   s     r   rA   z'ComplianceRegistrationInquiriesList.get)       6MM?
 	
r   c                 0    t        | j                  |      S r   r   r   s     r   __call__z,ComplianceRegistrationInquiriesList.__call__3  r   r   c                      y)rX   z8<Twilio.Trusthub.V1.ComplianceRegistrationInquiriesList>r   rK   s    r   rj   z,ComplianceRegistrationInquiriesList.__repr__=  s     Jr   )r   r   r   r   r@   r   rn   r   rk   rl   ro   r   r   r   rI   rA   r   rj   rp   rq   s   @r   r   r      s	   
 
& LL LL28,,17=C\\;A<<39<<,2LLDJLLCI<<?E||?E||GM||-3\\7=||+1<<28,,28,,39<<7=||AG5;\\<BLL<BLL=C\\@F(.#)<<)/(.,2LL/5||/5||,2LLAG28,,+1<<[VOLVO UVO !&JFR!
	VO */S*
VO #3;/VO "#v+.VO (-T6\':VO ',CK&8VO $CK0VO  S&[)!VO" 05S&[/A#VO$ /4CK.@%VO& +0V*<'VO( +0V*<)VO* 38V2D+VO, c6k*-VO. #(V"4/VO0 CK(1VO2 #3;/3VO4 #3;/5VO6 $CK07VO8 #(V"49VO: -2#v+,>;VO< !&c6k 2=VO> (-S&['9?VO@ (-S&['9AVOB ).c6k(:CVOD +0f*=EVOF f%GVOH CK IVOJ #v+&KVOL f%MVON S&[)OVOP  V,QVOR  V,SVOT D&L)UVOV -2#v+,>WVOX #3;/YVOZ CK([VO\ 
1]VO| LL LL28,,17=C\\;A<<39<<,2LLDJLLCI<<?E||?E||GM||-3\\7=||+1<<28,,28,,39<<7=||AG5;\\<BLL<BLL=C\\@F(.#)<<)/(.,2LL/5||/5||,2LLAG28,,+1<<[VOLVO UVO !&JFR!
	VO */S*
VO #3;/VO "#v+.VO (-T6\':VO ',CK&8VO $CK0VO  S&[)!VO" 05S&[/A#VO$ /4CK.@%VO& +0V*<'VO( +0V*<)VO* 38V2D+VO, c6k*-VO. #(V"4/VO0 CK(1VO2 #3;/3VO4 #3;/5VO6 $CK07VO8 #(V"49VO: -2#v+,>;VO< !&c6k 2=VO> (-S&['9?VO@ (-S&['9AVOB ).c6k(:CVOD +0f*=EVOF f%GVOH CK IVOJ #v+&KVOL f%MVON S&[)OVOP  V,QVOR  V,SVOT D&L)UVOV -2#v+,>WVOX #3;/YVOZ CK([VO\ 
1]VOp
3 
+Q 

 
0V 
J# Jr   r   N)__doc__typingr   r   r   r   twilio.baser   r   twilio.base.instance_contextr	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   rI   r   r   r   r   <module>r      sP    . - ) 8 : 2 'm
.> m
``
_ `
FYJ, YJr   