
    gg                         S r SSKJrJrJrJrJr  SSKJr  SSK	J
r
  SSKJr  SSKJr  SSKJr   " S S	\5      r " S
 S\
5      r " S S\5      rg)a  
 This code was generated by
___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

 Twilio - Lookups
 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Union)values)InstanceContext)InstanceResource)ListResource)Versionc            !         ^  \ rS rSr " S S\5      r  SS\S\\\	4   S\
\   4U 4S jjjr\SS	 j5       r\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4S
\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   SS 4 S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4S
\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   SS 4 S jjrS\4S jrSrU =r$ )PhoneNumberInstance   c                   ,    \ rS rSrSrSrSrSrSrSr	Sr
g	)
#PhoneNumberInstance.ValidationError   	TOO_SHORTTOO_LONGINVALID_BUT_POSSIBLEINVALID_COUNTRY_CODEINVALID_LENGTHNOT_A_NUMBER N)__name__
__module____qualname____firstlineno__r   r   r   r   r   r   __static_attributes__r       k/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/lookups/v2/phone_number.pyValidationErrorr      s"    	55)%r   r!   versionpayloadphone_numberc                 V  > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l	        UR                  S5      U l
        UR                  S	5      U l        UR                  S
5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        SU=(       d    U R
                  0U l        S U l        g )Ncalling_country_codecountry_coder$   national_formatvalidvalidation_errorscaller_namesim_swapcall_forwardingline_statusline_type_intelligenceidentity_matchreassigned_numbersms_pumping_riskphone_number_quality_scorepre_fillurl)super__init__getr&   r'   r$   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   	_solution_context)selfr"   r#   r$   	__class__s       r    r7   PhoneNumberInstance.__init__5   s    	!3:;;?U3V!+2;;~+F+2;;~+F.5kk:K.L%,[[%9
 KK+, 	 9@M8R5<[[5L<CKK=
 9@M8RCJ;;$D
# <C;;GW;X>Ekk?
 >E[[>
 HO{{(H
' 6=[[5L")++e"4 L=D,=,=
 7;r   returnc                     U R                   c&  [        U R                  U R                  S   S9U l         U R                   $ )z
Generate an instance context for the instance, the context is capable of
performing various actions. All instance actions are proxied to the context

:returns: PhoneNumberContext for this PhoneNumberInstance
r$   r$   )r:   PhoneNumberContext_versionr9   r;   s    r    _proxyPhoneNumberInstance._proxy`   s9     == .!^^N;DM }}r   fieldsr'   
first_name	last_nameaddress_line1address_line2citystatepostal_codeaddress_country_codenational_iddate_of_birthlast_verified_dateverification_sidpartner_sub_idc                 P    U R                   R                  UUUUUUUUU	U
UUUUUS9$ )	  
Fetch the PhoneNumberInstance

:param fields: A comma-separated list of fields to return. Possible values are validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score, pre_fill.
:param country_code: The [country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) used if the phone number provided is in national format.
:param first_name: User’s first name. This query parameter is only used (optionally) for identity_match package requests.
:param last_name: User’s last name. This query parameter is only used (optionally) for identity_match package requests.
:param address_line1: User’s first address line. This query parameter is only used (optionally) for identity_match package requests.
:param address_line2: User’s second address line. This query parameter is only used (optionally) for identity_match package requests.
:param city: User’s city. This query parameter is only used (optionally) for identity_match package requests.
:param state: User’s country subdivision, such as state, province, or locality. This query parameter is only used (optionally) for identity_match package requests.
:param postal_code: User’s postal zip code. This query parameter is only used (optionally) for identity_match package requests.
:param address_country_code: User’s country, up to two characters. This query parameter is only used (optionally) for identity_match package requests.
:param national_id: User’s national ID, such as SSN or Passport ID. This query parameter is only used (optionally) for identity_match package requests.
:param date_of_birth: User’s date of birth, in YYYYMMDD format. This query parameter is only used (optionally) for identity_match package requests.
:param last_verified_date: The date you obtained consent to call or text the end-user of the phone number or a date on which you are reasonably certain that the end-user could still be reached at that number. This query parameter is only used (optionally) for reassigned_number package requests.
:param verification_sid: The unique identifier associated with a verification process through verify API. This query parameter is only used (optionally) for pre_fill package requests.
:param partner_sub_id: The optional partnerSubId parameter to provide context for your sub-accounts, tenantIDs, sender IDs or other segmentation, enhancing the accuracy of the risk analysis.

:returns: The fetched PhoneNumberInstance
rF   r'   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   )rD   fetchr;   rF   r'   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   s                   r    rW   PhoneNumberInstance.fetcho   sN    N {{  %!''#!5#'1-) ! 
 	
r   c                 l   #    U R                   R                  UUUUUUUUU	U
UUUUUS9I Sh  vN $  N7f) 
  
Asynchronous coroutine to fetch the PhoneNumberInstance

:param fields: A comma-separated list of fields to return. Possible values are validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score, pre_fill.
:param country_code: The [country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) used if the phone number provided is in national format.
:param first_name: User’s first name. This query parameter is only used (optionally) for identity_match package requests.
:param last_name: User’s last name. This query parameter is only used (optionally) for identity_match package requests.
:param address_line1: User’s first address line. This query parameter is only used (optionally) for identity_match package requests.
:param address_line2: User’s second address line. This query parameter is only used (optionally) for identity_match package requests.
:param city: User’s city. This query parameter is only used (optionally) for identity_match package requests.
:param state: User’s country subdivision, such as state, province, or locality. This query parameter is only used (optionally) for identity_match package requests.
:param postal_code: User’s postal zip code. This query parameter is only used (optionally) for identity_match package requests.
:param address_country_code: User’s country, up to two characters. This query parameter is only used (optionally) for identity_match package requests.
:param national_id: User’s national ID, such as SSN or Passport ID. This query parameter is only used (optionally) for identity_match package requests.
:param date_of_birth: User’s date of birth, in YYYYMMDD format. This query parameter is only used (optionally) for identity_match package requests.
:param last_verified_date: The date you obtained consent to call or text the end-user of the phone number or a date on which you are reasonably certain that the end-user could still be reached at that number. This query parameter is only used (optionally) for reassigned_number package requests.
:param verification_sid: The unique identifier associated with a verification process through verify API. This query parameter is only used (optionally) for pre_fill package requests.
:param partner_sub_id: The optional partnerSubId parameter to provide context for your sub-accounts, tenantIDs, sender IDs or other segmentation, enhancing the accuracy of the risk analysis.

:returns: The fetched PhoneNumberInstance
rV   N)rD   fetch_asyncrX   s                   r    r\   PhoneNumberInstance.fetch_async   s[     N [[,,%!''#!5#'1-) - 
 
 	
 
s   +424c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )N
Provide a friendly representation

:returns: Machine friendly representation
 c              3   H   #    U  H  u  pS R                  X5      v   M     g7fz{}={}Nformat.0kvs      r    	<genexpr>/PhoneNumberInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z*<Twilio.Lookups.V2.PhoneNumberInstance {}>joinr9   itemsrd   r;   contexts     r    __repr__PhoneNumberInstance.__repr__   s6     ((SDNN<P<P<RSS;BB7KKr   )r:   r9   r-   r+   r&   r'   r0   r.   r/   r(   r$   r3   r4   r1   r,   r2   r5   r)   r*   )N)r>   rA   )r   r   r   r   objectr!   r   r   strr   r   r7   propertyrD   r   unsetr   rW   r\   rr   r   __classcell__r<   s   @r    r   r      s   && &0 '+	);); c3h); sm	); );V    &,\\+1<<)/(.,2LL,2LL#)<<$*LL*0,,39<<*0,,,2LL17/5||-3\\!7
c6k"7
 CK(7
 #v+&	7

 f%7
 S&[)7
 S&[)7
 CK 7
 S&[!7
 3;'7
 $CK07
 3;'7
 S&[)7
 "#v+.7
  V,7
  c6k*!7
" 
#7
v &,\\+1<<)/(.,2LL,2LL#)<<$*LL*0,,39<<*0,,,2LL17/5||-3\\!7
c6k"7
 CK(7
 #v+&	7

 f%7
 S&[)7
 S&[)7
 CK 7
 S&[!7
 3;'7
 $CK07
 3;'7
 S&[)7
 "#v+.7
  V,7
  c6k*!7
" 
#7
rL# L Lr   r   c            !         ^  \ rS rSrS\S\4U 4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S	\	\\
4   S
\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\4 S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S	\	\\
4   S
\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\4 S jjrS\4S jrSrU =r$ )rA      r"   r$   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)z
Initialize the PhoneNumberContext

:param version: Version that contains the resource
:param phone_number: The phone number to lookup in E.164 or national format. Default country code is +1 (North America).
r$   z/PhoneNumbers/{phone_number}Nr   )r6   r7   r9   rd   _uri)r;   r"   r$   r<   s      r    r7   PhoneNumberContext.__init__   s=     	! L
 399KDNNK	r   rF   r'   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   r>   c                    [         R                  " UUUUUUUUU	U
UUUUUS.5      n[         R                  " 0 5      nSUS'   U R                  R                  SU R                  UUS9n[        U R                  UU R                  S   S9$ )rU   FieldsCountryCode	FirstNameLastNameAddressLine1AddressLine2CityState
PostalCodeAddressCountryCode
NationalIdDateOfBirthLastVerifiedDateVerificationSidPartnerSubIdapplication/jsonAcceptGETmethoduriparamsheadersr$   r@   )r   ofrB   rW   r}   r   r9   r;   rF   r'   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   datar   r#   s                      r    rW   PhoneNumberContext.fetch   s    P yy +'% - -)&:),$6#3 .
( ))B-.--%%diig & 
 #MM7
 	
r   c                 0  #    [         R                  " UUUUUUUUU	U
UUUUUS.5      n[         R                  " 0 5      nSUS'   U R                  R                  SU R                  UUS9I Sh  vN n[        U R                  UU R                  S   S9$  N&7f)	r[   r   r   r   r   r   Nr$   r@   )r   r   rB   r\   r}   r   r9   r   s                      r    r\   PhoneNumberContext.fetch_asyncF  s     P yy +'% - -)&:),$6#3 .
( ))B-.11diig 2 
 
 #MM7
 	
	
s   A+B-B.'Bc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )r_   r`   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frb   rc   re   s      r    ri   .PhoneNumberContext.__repr__.<locals>.<genexpr>  rk   rl   z)<Twilio.Lookups.V2.PhoneNumberContext {}>rm   rp   s     r    rr   PhoneNumberContext.__repr__  s6     ((SDNN<P<P<RSS:AA'JJr   )r9   r}   )r   r   r   r   r   ru   r7   r   rw   r   rt   r   rW   r\   rr   r   rx   ry   s   @r    rA   rA      s{   L Ls L" &,\\+1<<)/(.,2LL,2LL#)<<$*LL*0,,39<<*0,,,2LL17/5||-3\\!H
c6k"H
 CK(H
 #v+&	H

 f%H
 S&[)H
 S&[)H
 CK H
 S&[!H
 3;'H
 $CK0H
 3;'H
 S&[)H
 "#v+.H
  V,H
  c6k*!H
" 
#H
X &,\\+1<<)/(.,2LL,2LL#)<<$*LL*0,,39<<*0,,,2LL17/5||-3\\!H
c6k"H
 CK(H
 #v+&	H

 f%H
 S&[)H
 S&[)H
 CK H
 S&[!H
 3;'H
 $CK0H
 3;'H
 S&[)H
 "#v+.H
  V,H
  c6k*!H
" 
#H
TK# K Kr   rA   c                   b   ^  \ rS rSrS\4U 4S jjrS\S\4S jrS\S\4S jr	S\4S jr
S	rU =r$ )
PhoneNumberListi  r"   c                 $   > [         TU ]  U5        g)zU
Initialize the PhoneNumberList

:param version: Version that contains the resource

N)r6   r7   )r;   r"   r<   s     r    r7   PhoneNumberList.__init__  s     	!r   r$   r>   c                 *    [        U R                  US9$ z
Constructs a PhoneNumberContext

:param phone_number: The phone number to lookup in E.164 or national format. Default country code is +1 (North America).
r@   rA   rB   r;   r$   s     r    r8   PhoneNumberList.get       "$--lKKr   c                 *    [        U R                  US9$ r   r   r   s     r    __call__PhoneNumberList.__call__  r   r   c                     g)r_   z#<Twilio.Lookups.V2.PhoneNumberList>r   rC   s    r    rr   PhoneNumberList.__repr__  s     5r   r   )r   r   r   r   r   r7   ru   rA   r8   r   rr   r   rx   ry   s   @r    r   r     sN    " "L L(: LLS L-? L5# 5 5r   r   N)__doc__typingr   r   r   r   r   twilio.baser   twilio.base.instance_contextr	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   rA   r   r   r   r    <module>r      sP    4 3  8 : 2 'QL* QLhlK lK^!5l !5r   