
    Ch                         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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KJr  S SKJr  S SKJr  S SKJr  S SKJrJrJr  S SK J!r!J"r"J#r#   " S S\5      r$g)    )Customer)!CustomerBalanceTransactionService)CustomerCashBalanceService)%CustomerCashBalanceTransactionService)"CustomerFundingInstructionsService)CustomerPaymentMethodService)CustomerPaymentSourceService)CustomerTaxIdService)Discount)
ListObject)RequestOptions)SearchResultObject)StripeService)sanitize_id)DictListcast)LiteralNotRequired	TypedDictc            	       R  ^  \ rS rSrU 4S jr " S S\5      r " S S\5      r " S S\5      r " S	 S
\5      r	 " S S\5      r
 " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S \5      r " S! S"\5      r " S# S$\5      r " S% S&\5      r " S' S(\5      r " S) S*\5      r " S+ S,\5      r " S- S.\5      r " S/ S0\5      r " S1 S2\5      r " S3 S4\5      r " S5 S6\5      r " S7 S8\5      r 0 0 4S9\!S:S;S<\"S=\#4S> jjr$0 0 4S9\!S:S;S<\"S=\#4S? jjr%0 0 4S9\!S:S@S<\"S=\#4SA jjr&0 0 4S9\!S:S@S<\"S=\#4SB jjr'0 0 4S9\!S:SCS<\"S=\#4SD jjr(0 0 4S9\!S:SCS<\"S=\#4SE jjr)0 0 4S9\!S:SFS<\"S=\*4SG jjr+0 0 4S9\!S:SFS<\"S=\*4SH jjr,0 0 4S:SIS<\"S=\-\#   4SJ jjr.0 0 4S:SIS<\"S=\-\#   4SK jjr/0 0 4S:SLS<\"S=\#4SM jjr00 0 4S:SLS<\"S=\#4SN jjr10 4S:SOS<\"S=\2\#   4SP jjr30 4S:SOS<\"S=\2\#   4SQ jjr4SRr5U =r6$ )SCustomerService   c                   > [         TU ]  U5        [        U R                  5      U l        [        U R                  5      U l        [        U R                  5      U l        [        U R                  5      U l
        [        U R                  5      U l        [        U R                  5      U l        [        U R                  5      U l        g )N)super__init__r   
_requestorbalance_transactionsr   cash_balancer   cash_balance_transactionsr   funding_instructionsr   payment_methodsr	   payment_sourcesr
   tax_ids)self	requestor	__class__s     [/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/stripe/_customer_service.pyr   CustomerService.__init__    s    #$EOO%
! 7tG)NOO*
& %GOO%
!  <DOOL;DOOL+DOO<    c                      \ rS rSr% \S   \S'    \\   \S'    \S   \S'    \\   \S'    \\   \S'    \\\      \S	'    \\   \S
'    \S   \S'    \S   \S'    \\   \S'    \\   \S'    \\   \S'   \\   \S'    \\\      \S'    \S   \S'    \\   \S'   \S   \S'    \S   \S'    \\S      \S'    \\   \S'    \\	   \S'   Sr
g )!CustomerService.CreateParams0   z/Literal['']|CustomerService.CreateParamsAddressaddressbalance'CustomerService.CreateParamsCashBalancer   descriptionemailexpandinvoice_prefix+CustomerService.CreateParamsInvoiceSettingsinvoice_settingsLiteral['']|Dict[str, str]metadatanamenext_invoice_sequencepayment_methodphonepreferred_localesz0Literal['']|CustomerService.CreateParamsShippingshippingsourceCustomerService.CreateParamsTaxtax0Literal['']|Literal['exempt', 'none', 'reverse']
tax_exempt&CustomerService.CreateParamsTaxIdDatumtax_id_data
test_clockvalidate N__name__
__module____qualname____firstlineno__r   __annotations__intstrr   bool__static_attributes__rH   r*   r(   CreateParamsr,   0   s   NOO	 S!!	 ""KLL	 !%%	 3	 DI&&	 $C((	 &9
 	
	 :;;	 #	  +3//	 $C((3	 'tCy11	 >
 	
	 C  :;;	  >
 	
	 !9:
 	
	  $$	 d##r*   rS   c                       \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'   Srg	)
#CustomerService.CreateParamsAddress   citycountryline1line2postal_codestaterH   NrJ   rK   rL   rM   r   rP   rN   rR   rH   r*   r(   CreateParamsAddressrU      l    #	 S!!	 3	 3	 !%%	 3	r*   r^   c                   &    \ rS rSr% \S   \S'   Srg)r0      /CustomerService.CreateParamsCashBalanceSettingssettingsrH   NrJ   rK   rL   rM   r   rN   rR   rH   r*   r(   CreateParamsCashBalance'CustomerService.CreateParamsCashBalance       =
 	
	r*   re   c                   ,    \ rS rSr% \\S      \S'   Srg)rb      	automaticmanualmerchant_defaultreconciliation_moderH   NrJ   rK   rL   rM   r   r   rN   rR   rH   r*   r(   CreateParamsCashBalanceSettings/CustomerService.CreateParamsCashBalanceSettings       (=>
 	
	r*   rp   c                   \    \ rS rSr% \S   \S'    \\   \S'    \\   \S'    \S   \S'   Srg	)
r5      zHLiteral['']|List[CustomerService.CreateParamsInvoiceSettingsCustomField]custom_fieldsdefault_payment_methodfooterzGLiteral['']|CustomerService.CreateParamsInvoiceSettingsRenderingOptionsrendering_optionsrH   NrJ   rK   rL   rM   r   rN   rP   rR   rH   r*   r(   CreateParamsInvoiceSettings+CustomerService.CreateParamsInvoiceSettings   R    "V
 	
	 !,C 00	 C  	 'U
 	
	r*   rz   c                   ,    \ rS rSr% \\S'    \\S'   Srg)6CustomerService.CreateParamsInvoiceSettingsCustomField   r9   valuerH   NrJ   rK   rL   rM   rP   rN   rR   rH   r*   r(   &CreateParamsInvoiceSettingsCustomFieldr~          		 
	r*   r   c                   8    \ rS rSr% \S   \S'    \\   \S'   Srg);CustomerService.CreateParamsInvoiceSettingsRenderingOptions   ;Literal['']|Literal['exclude_tax', 'include_inclusive_tax']amount_tax_displaytemplaterH   Nry   rH   r*   r(   +CreateParamsInvoiceSettingsRenderingOptionsr      )    'I
 	
	 c""	r*   r   c                   >    \ rS rSr% S\S'    \\S'    \\   \S'   Srg)$CustomerService.CreateParamsShipping   +CustomerService.CreateParamsShippingAddressr.   r9   r<   rH   NrJ   rK   rL   rM   rN   rP   r   rR   rH   r*   r(   CreateParamsShippingr      +    >>	 		 3	r*   r   c                       \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'   Srg	)
r      rW   rX   rY   rZ   r[   r\   rH   Nr]   rH   r*   r(   CreateParamsShippingAddress+CustomerService.CreateParamsShippingAddress   r_   r*   r   c                   >    \ rS rSr% \S   \S'    \\S      \S'   Srg)r@   i  Literal['']|str
ip_address)deferredimmediatelyvalidate_locationrH   NrJ   rK   rL   rM   r   rN   r   rR   rH   r*   r(   CreateParamsTaxCustomerService.CreateParamsTax  s+     122	 'w/H'IJJ	r*   r   c                   2    \ rS rSr% \S   \S'    \\S'   Srg)rD   i  )nad_nrtae_trnal_tinam_tinao_tinar_cuitau_abnau_arnaw_tinaz_tinba_tinbb_tinbd_binbf_ifubg_uicbh_vatbj_ifubo_tinbr_cnpjbr_cpfbs_tinby_tinca_bn
ca_gst_hst	ca_pst_bc	ca_pst_mb	ca_pst_skca_qstcd_nifch_uidch_vatcl_tincm_niucn_tinco_nitcr_tincv_nifde_stndo_rcnec_ruceg_tines_cifet_tin
eu_oss_vateu_vatgb_vatge_vatgn_nifhk_brhr_oibhu_tinid_npwpil_vatin_gstis_vatjp_cnjp_rnjp_trnke_pinkg_tinkh_tinkr_brnkz_binla_tinli_uidli_vatma_vatmd_vatme_pibmk_vatmr_nifmx_rfcmy_frpmy_itnmy_sstng_tinno_vatno_voecnp_pannz_gstom_vatpe_rucph_tinro_tinrs_pibru_innru_kppsa_vatsg_gstsg_uensi_tinsn_nineasr_finsv_nitth_vattj_tintr_tintw_vattz_vatua_vatug_tinus_einuy_rucuz_tinuz_vatve_rifvn_tinza_vatzm_tinzw_tintyper   rH   N)rJ   rK   rL   rM   r   rN   rP   rR   rH   r*   r(   CreateParamsTaxIdDatum&CustomerService.CreateParamsTaxIdDatum  s)    mo
 o	
`	 
	r*   r  c                       \ rS rSrSrg)$CustomerService.DeleteDiscountParamsi  rH   NrJ   rK   rL   rM   rR   rH   r*   r(   DeleteDiscountParamsr        r*   r  c                       \ rS rSrSrg)CustomerService.DeleteParamsi  rH   Nr  rH   r*   r(   DeleteParamsr    r  r*   r  c                       \ rS rSr% \S   \S'    \\   \S'    \\   \S'    \\\      \S'    \\   \S'    \\   \S'    \\   \S	'   S
r	g)CustomerService.ListParamsi  z%CustomerService.ListParamsCreated|intcreatedr2   ending_beforer3   limitstarting_afterrF   rH   N)
rJ   rK   rL   rM   r   rN   rP   r   rO   rR   rH   r*   r(   
ListParamsr    s    DEE	 3	 #3''	 DI&&	 3	 $C((	  $$	r*   r   c                   \    \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'   Srg)!CustomerService.ListParamsCreatedi  gtgteltlterH   N)rJ   rK   rL   rM   r   rO   rN   rR   rH   r*   r(   ListParamsCreatedr"    sH    	 	 	 	r*   r'  c                   ,    \ rS rSr% \\\      \S'   Srg)CustomerService.RetrieveParamsi  r3   rH   N)	rJ   rK   rL   rM   r   r   rP   rN   rR   rH   r*   r(   RetrieveParamsr)    s    DI&&	r*   r*  c                   \    \ rS rSr% \\\      \S'    \\   \S'    \\   \S'    \\S'   Sr	g)CustomerService.SearchParamsi  r3   r  pagequeryrH   N)
rJ   rK   rL   rM   r   r   rP   rN   rO   rR   rH   r*   r(   SearchParamsr,    sF    DI&&	 3	 #	 
	r*   r/  c                   t   \ rS rSr% \S   \S'    \\   \S'    \S   \S'    \\   \S'    \\   \S'    \\   \S	'    \\\      \S
'    \\   \S'    \S   \S'    \S   \S'    \\   \S'    \\   \S'    \\   \S'    \\\      \S'    \S   \S'    \\   \S'   \S   \S'    \S   \S'    \\	   \S'   Sr
g)CustomerService.UpdateParamsi  z/Literal['']|CustomerService.UpdateParamsAddressr.   r/   'CustomerService.UpdateParamsCashBalancer   default_sourcer1   r2   r3   r4   +CustomerService.UpdateParamsInvoiceSettingsr6   r7   r8   r9   r:   r<   r=   z0Literal['']|CustomerService.UpdateParamsShippingr>   r?   CustomerService.UpdateParamsTaxrA   rB   rC   rG   rH   NrI   rH   r*   r(   UpdateParamsr1    se   NOO	 S!!	 ""KLL	 $C((	 !%%	 3	 DI&&	 $C((	 &9
 	
	 :;;	 #	  +3//	 3	 'tCy11	 >
 	
	 C  :;;	  >
 	
	 d##r*   r6  c                       \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'   Srg	)
#CustomerService.UpdateParamsAddressi'  rW   rX   rY   rZ   r[   r\   rH   Nr]   rH   r*   r(   UpdateParamsAddressr8  '  r_   r*   r9  c                   &    \ rS rSr% \S   \S'   Srg)r2  iA  /CustomerService.UpdateParamsCashBalanceSettingsrc   rH   Nrd   rH   r*   r(   UpdateParamsCashBalance'CustomerService.UpdateParamsCashBalanceA  rg   r*   r<  c                   ,    \ rS rSr% \\S      \S'   Srg)r;  iJ  rj   rn   rH   Nro   rH   r*   r(   UpdateParamsCashBalanceSettings/CustomerService.UpdateParamsCashBalanceSettingsJ  rr   r*   r?  c                   \    \ rS rSr% \S   \S'    \\   \S'    \\   \S'    \S   \S'   Srg	)
r4  iR  zHLiteral['']|List[CustomerService.UpdateParamsInvoiceSettingsCustomField]ru   rv   rw   zGLiteral['']|CustomerService.UpdateParamsInvoiceSettingsRenderingOptionsrx   rH   Nry   rH   r*   r(   UpdateParamsInvoiceSettings+CustomerService.UpdateParamsInvoiceSettingsR  r|   r*   rB  c                   ,    \ rS rSr% \\S'    \\S'   Srg)6CustomerService.UpdateParamsInvoiceSettingsCustomFieldih  r9   r   rH   Nr   rH   r*   r(   &UpdateParamsInvoiceSettingsCustomFieldrE  h  r   r*   rF  c                   8    \ rS rSr% \S   \S'    \\   \S'   Srg);CustomerService.UpdateParamsInvoiceSettingsRenderingOptionsir  r   r   r   rH   Nry   rH   r*   r(   +UpdateParamsInvoiceSettingsRenderingOptionsrH  r  r   r*   rI  c                   >    \ rS rSr% S\S'    \\S'    \\   \S'   Srg)$CustomerService.UpdateParamsShippingi~  +CustomerService.UpdateParamsShippingAddressr.   r9   r<   rH   Nr   rH   r*   r(   UpdateParamsShippingrK  ~  r   r*   rM  c                       \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'   Srg	)
rL  i  rW   rX   rY   rZ   r[   r\   rH   Nr]   rH   r*   r(   UpdateParamsShippingAddress+CustomerService.UpdateParamsShippingAddress  r_   r*   rO  c                   >    \ rS rSr% \S   \S'    \\S      \S'   Srg)r5  i  r   r   )autor   r   r   rH   Nr   rH   r*   r(   UpdateParamsTaxCustomerService.UpdateParamsTax  s0     122	 '56
 	
	r*   rS  customerparamsr  optionsreturnc                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ )y
Permanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer.
delete/v1/customers/{customer}rU  apibase_addressrV  rW  r   r   _requestformatr   r%   rU  rV  rW  s       r(   r[  CustomerService.delete  sN     MM*11(2 2  #  
 	
r*   c                    #    [        [        U R                  SSR                  [	        U5      S9SUUS9I Sh  vN 5      $  N7f)rZ  r[  r\  r]  r^  r_  Nr   r   _request_asyncrc  r   rd  s       r(   delete_asyncCustomerService.delete_async  s]      %%*11(2 2  # &  
 	
   7AA
	Ar)  c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ )
Retrieves a Customer object.
getr\  r]  r^  r_  ra  rd  s       r(   retrieveCustomerService.retrieve  sN     MM*11(2 2  #  
 	
r*   c                    #    [        [        U R                  SSR                  [	        U5      S9SUUS9I Sh  vN 5      $  N7f)rm  rn  r\  r]  r^  r_  Nrg  rd  s       r(   retrieve_asyncCustomerService.retrieve_async  s]      %%*11(2 2  # &  
 	
rk  r1  c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ )_  
Updates the specified customer by setting the values of the parameters passed. Any parameters not provided will be left unchanged. For example, if you pass the source parameter, that becomes the customer's active source (e.g., a card) to be used for all charges in the future. When you update a customer to a new valid card source by passing the source parameter: for each of the customer's current subscriptions, if the subscription bills automatically and is in the past_due state, then the latest open invoice for the subscription with automatic collection enabled will be retried. This retry will not count as an automatic retry, and will not affect the next regularly scheduled payment for the invoice. Changing the default_source for a customer will not trigger this behavior.

This request accepts mostly the same arguments as the customer creation call.
postr\  r]  r^  r_  ra  rd  s       r(   updateCustomerService.update
  sN     MM*11(2 2  #  
 	
r*   c                    #    [        [        U R                  SSR                  [	        U5      S9SUUS9I Sh  vN 5      $  N7f)ru  rv  r\  r]  r^  r_  Nrg  rd  s       r(   update_asyncCustomerService.update_async"  s]      %%*11(2 2  # &  
 	
rk  r  c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ )7
Removes the currently applied discount on a customer.
r[  !/v1/customers/{customer}/discountr]  r^  r_  )r   r   rb  rc  r   rd  s       r(   delete_discountCustomerService.delete_discount:  sN     MM3::(2 ;  #  
 	
r*   c                    #    [        [        U R                  SSR                  [	        U5      S9SUUS9I Sh  vN 5      $  N7f)r}  r[  r~  r]  r^  r_  N)r   r   rh  rc  r   rd  s       r(   delete_discount_async%CustomerService.delete_discount_asyncP  s]      %%3::(2 ;  # &  
 	
rk  r  c                 R    [        [        [           U R                  SSSUUS95      $ )
Returns a list of your customers. The customers are returned sorted by creation date, with the most recent customers appearing first.
rn  /v1/customersr^  r_  )r   r   r   rb  r%   rV  rW  s      r(   listCustomerService.listf  s9     x MM"  	
 		
r*   c                 n   #    [        [        [           U R                  SSSUUS9I Sh  vN 5      $  N7f)r  rn  r  r^  r_  N)r   r   r   rh  r  s      r(   
list_asyncCustomerService.list_asyncy  sH      x %%" &  	
 		
   (53
	5r,   c                 D    [        [        U R                  SSSUUS95      $ ) 
Creates a new customer object.
rv  r  r^  r_  )r   r   rb  r  s      r(   createCustomerService.create  s4     MM"  	
 		
r*   c                 `   #    [        [        U R                  SSSUUS9I Sh  vN 5      $  N7f)r  rv  r  r^  r_  N)r   r   rh  r  s      r(   create_asyncCustomerService.create_async  sC      %%" &  	
 		
s   !.,
	.r,  c                 R    [        [        [           U R                  SSSUUS95      $ )  
Search for customers you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
to an hour behind during outages. Search functionality is not available to merchants in India.
rn  /v1/customers/searchr^  r_  )r   r   r   rb  r  s      r(   searchCustomerService.search  s9     x(MM&"  	
 		
r*   c                 n   #    [        [        [           U R                  SSSUUS9I Sh  vN 5      $  N7f)r  rn  r  r^  r_  N)r   r   r   rh  r  s      r(   search_asyncCustomerService.search_async  sH      x(%%&" &  	
 		
r  )r   r   r    r!   r"   r#   r$   )7rJ   rK   rL   rM   r   r   rS   r^   re   rp   rz   r   r   r   r   r   r  r  r  r   r'  r*  r/  r6  r9  r<  r?  rB  rF  rI  rM  rO  rS  rP   r   r   r[  ri  ro  rr  rw  rz  r   r  r  r   r  r  r  r  r   r  r  rR   __classcell__)r'   s   @r(   r   r      s   = S$y S$ji 4) ) i , 
i 
y i 4) w wry y Y <I $ y $P$y P$di 4) ) i , 
i 
y i 4
) 
 24"$	

 /
  	

 

2 24"$	

 /
  	

 

2 46"$	

 1
  	

 

2 46"$	

 1
  	

 

2 24"$	

 /
  	

 

6 24"$	

 /
  	

 

6 :<"$	

 7
  	

 

2 :<"$	

 7
  	

 

0 02"$
,
  
 
H		
* 02"$
,
  
 
H		
* 24"$
.
  
 
	
* 24"$
.
  
 
	
, #%
.
  
 
H	%	
2 #%
.
  
 
H	%	
 
r*   r   N)%stripe._customerr   ,stripe._customer_balance_transaction_servicer   %stripe._customer_cash_balance_servicer   1stripe._customer_cash_balance_transaction_servicer   -stripe._customer_funding_instructions_servicer   'stripe._customer_payment_method_servicer   'stripe._customer_payment_source_servicer	   stripe._customer_tax_id_servicer
   stripe._discountr   stripe._list_objectr   stripe._request_optionsr   stripe._search_result_objectr   stripe._stripe_servicer   stripe._utilr   typingr   r   r   typing_extensionsr   r   r   r   rH   r*   r(   <module>r     s[    & M A % * 2 ; 0 $ # # = =}
m }
r*   