
    Ch-Z                     ~    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
)    )Dispute)
ListObject)RequestOptions)StripeService)sanitize_id)DictListcast)LiteralNotRequired	TypedDictc            	       F   \ rS rS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0 0 4SSS\S\\   4S  jjr0 0 4SSS\S\\   4S! jjr0 0 4S"\SS#S\S\4S$ jjr0 0 4S"\SS#S\S\4S% jjr0 0 4S"\SS&S\S\4S' jjr0 0 4S"\SS&S\S\4S( jjr0 0 4S"\SS)S\S\4S* jjr0 0 4S"\SS)S\S\4S+ jjrS,rg-).DisputeService   c                   ,    \ rS rSr% \\\      \S'   Srg)DisputeService.CloseParams   expand N	__name__
__module____qualname____firstlineno__r   r	   str__annotations____static_attributes__r       Z/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/stripe/_dispute_service.pyCloseParamsr          DI&&	r   r    c                       \ rS rSr% \\   \S'    \S   \S'    \\   \S'    \\\      \S'    \\   \S'    \\   \S'    \\   \S	'   S
r	g)DisputeService.ListParams   chargez$DisputeService.ListParamsCreated|intcreatedending_beforer   limitpayment_intentstarting_afterr   N)
r   r   r   r   r   r   r   r	   intr   r   r   r   
ListParamsr#      s    C  	 CDD	 #3''	 DI&&	 3	 $C((	 $C((	r   r,   c                   \    \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'   Srg) DisputeService.ListParamsCreated1   gtgteltlter   N)r   r   r   r   r   r+   r   r   r   r   r   ListParamsCreatedr.   1   sH    	 	 	 	r   r4   c                   ,    \ rS rSr% \\\      \S'   Srg)DisputeService.RetrieveParamsC   r   r   Nr   r   r   r   RetrieveParamsr6   C   r!   r   r8   c                   b    \ rS rSr% \S   \S'    \\\      \S'    \S   \S'    \\   \S'   Sr	g	)
DisputeService.UpdateParamsI   #DisputeService.UpdateParamsEvidenceevidencer   zLiteral['']|Dict[str, str]metadatasubmitr   N)
r   r   r   r   r   r   r	   r   boolr   r   r   r   UpdateParamsr:   I   sN    CDD	 DI&&	 :;;	 D!!	r   rA   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 )!r<   [   access_activity_logbilling_addresscancellation_policycancellation_policy_disclosurecancellation_rebuttalcustomer_communicationcustomer_email_addresscustomer_namecustomer_purchase_ipcustomer_signatureduplicate_charge_documentationduplicate_charge_explanationduplicate_charge_idz?Literal['']|DisputeService.UpdateParamsEvidenceEnhancedEvidenceenhanced_evidenceproduct_descriptionreceiptrefund_policyrefund_policy_disclosurerefund_refusal_explanationservice_dateservice_documentationshipping_addressshipping_carriershipping_dateshipping_documentationshipping_tracking_numberuncategorized_fileuncategorized_textr   N)r   r   r   r   r   r   r   r   r   r   r   UpdateParamsEvidence#DisputeService.UpdateParamsEvidence[   s   (--	 %S))	 )--	 )4C(88	  +3//	 !,C 00	 !,C 00	 #3''	 *#..	 (,,	 )4C(88	 '2#&66	 )--	 'M
 	
	 )--	 S!!	 #3''	 #.c"22	 %0$44	 "#&&	  +3//	 &c**	 &c**	 #3''	 !,C 00	 #.c"22	 (,,	 (,,	r   r`   c                   8    \ rS rSr% \S   \S'    \S   \S'   Srg)3DisputeService.UpdateParamsEvidenceEnhancedEvidence   JDisputeService.UpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3visa_compelling_evidence_3ADisputeService.UpdateParamsEvidenceEnhancedEvidenceVisaCompliancevisa_compliancer   Nr   r   r   r   r   r   r   r   r   r   $UpdateParamsEvidenceEnhancedEvidencerc      s.    $/X%
 	
	 %O
 	
	r   rj   c                   >    \ rS rSr% \S   \S'    \\S      \S'   Srg)re      ]DisputeService.UpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactiondisputed_transactiondDisputeService.UpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransactionprior_undisputed_transactionsr   N)r   r   r   r   r   r   r	   r   r   r   r   ;UpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3JDisputeService.UpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3   s8     *k
 	
	 (3v(
 	

	r   rq   c                       \ rS rSr% \S   \S'    \S   \S'    \S   \S'    \S   \S'    \S   \S'    \\S      \S	'    \S   \S
'    \S   \S'   Srg)rm      Literal['']|strcustomer_account_idcustomer_device_fingerprintcustomer_device_idrJ   rL   )merchandiseservicesmerchandise_or_servicesrR   lDisputeService.UpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddressrY   r   N)r   r   r   r   r   r   r   r   r   r   r   NUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransaction]DisputeService.UpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransaction   s     )):;;	 &11B%CC	 ((9::	 !,,= >>	 **;<<	 "--."
 	
	 )):;;	 &z
 	
	r   r}   c                       \ rS rSr% \S   \S'    \S   \S'    \S   \S'    \S   \S'    \S   \S'    \S   \S'   S	rg
)r|   i  ru   citycountryline1line2postal_codestater   Nri   r   r   r   ]UpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddresslDisputeService.UpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddress  t     +,,	 .//	 ,--	 ,--	 !!233	 ,--	r   r   c                       \ rS rSr% \\S'    \S   \S'    \S   \S'    \S   \S'    \S   \S'    \S   \S'    \S   \S	'    \S
   \S'   Srg)ro   i3  r%   ru   rv   rw   rx   rJ   rL   rR   sDisputeService.UpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransactionShippingAddressrY   r   N)r   r   r   r   r   r   r   r   r   r   r   UUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransactiondDisputeService.UpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransaction3  s     	 )):;;	 &11B%CC	 ((9::	 !,,= >>	 **;<<	 )):;;	 & B
 	
	r   r   c                       \ rS rSr% \S   \S'    \S   \S'    \S   \S'    \S   \S'    \S   \S'    \S   \S'   S	rg
)r   iY  ru   r   r   r   r   r   r   r   Nri   r   r   r   dUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransactionShippingAddresssDisputeService.UpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransactionShippingAddressY  r   r   r   c                   &    \ rS rSr% \\   \S'   Srg)rg   iu  fee_acknowledgedr   N)r   r   r   r   r   r@   r   r   r   r   r   2UpdateParamsEvidenceEnhancedEvidenceVisaComplianceADisputeService.UpdateParamsEvidenceEnhancedEvidenceVisaComplianceu  s    %d++	r   r   paramsr#   optionsreturnc                 R    [        [        [           U R                  SSSUUS95      $ )"
Returns a list of your disputes.
get/v1/disputesapibase_addressr   r   )r
   r   r   _requestselfr   r   s      r   listDisputeService.list{  s9     wMM"  	
 		
r   c                 n   #    [        [        [           U R                  SSSUUS9I Sh  vN 5      $  N7f)r   r   r   r   r   N)r
   r   r   _request_asyncr   s      r   
list_asyncDisputeService.list_async  sH      w%%" &  	
 		
s   (53
	5disputer6   c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ )*
Retrieves the dispute with the given ID.
r   /v1/disputes/{dispute}r   r   r   r
   r   r   formatr   r   r   r   r   s       r   retrieveDisputeService.retrieve  sG     MM(//G8L/M"  	
 		
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   r   r   r   r   s       r   retrieve_asyncDisputeService.retrieve_async  sV      %%(//G8L/M" &  	
 		
   7AA
	Ar:   c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ );  
When you get a dispute, contacting your customer is always the best first step. If that doesn't work, you can submit evidence to help us resolve the dispute in your favor. You can do this in your [dashboard](https://dashboard.stripe.com/disputes), but if you prefer, you can use the API to submit evidence programmatically.

Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our [guide to dispute types](https://docs.stripe.com/docs/disputes/categories).
postr   r   r   r   r   r   s       r   updateDisputeService.update  sG     MM(//G8L/M"  	
 		
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   Nr   r   s       r   update_asyncDisputeService.update_async  sV      %%(//G8L/M" &  	
 		
r   r   c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ )  
Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute, acknowledging it as lost.

The status of the dispute will change from needs_response to lost. Closing a dispute is irreversible.
r   /v1/disputes/{dispute}/closer   r   r   r   r   s       r   closeDisputeService.close  sN     MM.55'0 6  #  
 	
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   Nr   r   s       r   close_asyncDisputeService.close_async  s]      %%.55'0 6  # &  
 	
r   r   N)r   r   r   r   r   r    r,   r4   r8   rA   r`   rj   rq   r}   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r      s;   i Y <I $ y $ry rhy $&&P8$$L8Y  /1"$
+
  
 
G		
* /1"$
+
  
 
G		
, 35"$	

 0
  	

 

. 35"$	

 0
  	

 

. 13"$	

 .
  	

 

2 13"$	

 .
  	

 

2 02"$	

 -
  	

 

6 02"$	

 -
  	

 

 
r   r   N)stripe._disputer   stripe._list_objectr   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr   typingr   r	   r
   typing_extensionsr   r   r   r   r   r   r   <module>r      s0    $ * 2 0 $ # # = =W
] W
r   