Debian Codegraph @

stripe/params/_dispute_update_params.py

raw
1 # -*- coding: utf-8 -*-
2 # File generated from our OpenAPI spec
3 from typing import Dict, List
4 from typing_extensions import Literal, NotRequired, TypedDict
5
6
7 class DisputeUpdateParams(TypedDict):
8 evidence: NotRequired["DisputeUpdateParamsEvidence"]
9 """
10 Evidence to upload, to respond to a dispute. Updating any field in the hash will submit all fields in the hash for review. The combined character count of all fields is limited to 150,000.
11 """
12 expand: NotRequired[List[str]]
13 """
14 Specifies which fields in the response should be expanded.
15 """
16 metadata: NotRequired["Literal['']|Dict[str, str]"]
17 """
18 Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
19 """
20 submit: NotRequired[bool]
21 """
22 Whether to immediately submit evidence to the bank. If `false`, evidence is staged on the dispute. Staged evidence is visible in the API and Dashboard, and can be submitted to the bank by making another request with this attribute set to `true` (the default).
23 """
24
25
26 class DisputeUpdateParamsEvidence(TypedDict):
27 access_activity_log: NotRequired[str]
28 """
29 Any server or activity logs showing proof that the customer accessed or downloaded the purchased digital product. This information should include IP addresses, corresponding timestamps, and any detailed recorded activity. Has a maximum character count of 20,000.
30 """
31 billing_address: NotRequired[str]
32 """
33 The billing address provided by the customer.
34 """
35 cancellation_policy: NotRequired[str]
36 """
37 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Your subscription cancellation policy, as shown to the customer.
38 """
39 cancellation_policy_disclosure: NotRequired[str]
40 """
41 An explanation of how and when the customer was shown your refund policy prior to purchase. Has a maximum character count of 20,000.
42 """
43 cancellation_rebuttal: NotRequired[str]
44 """
45 A justification for why the customer's subscription was not canceled. Has a maximum character count of 20,000.
46 """
47 customer_communication: NotRequired[str]
48 """
49 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any communication with the customer that you feel is relevant to your case. Examples include emails proving that the customer received the product or service, or demonstrating their use of or satisfaction with the product or service.
50 """
51 customer_email_address: NotRequired[str]
52 """
53 The email address of the customer.
54 """
55 customer_name: NotRequired[str]
56 """
57 The name of the customer.
58 """
59 customer_purchase_ip: NotRequired[str]
60 """
61 The IP address that the customer used when making the purchase.
62 """
63 customer_signature: NotRequired[str]
64 """
65 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A relevant document or contract showing the customer's signature.
66 """
67 duplicate_charge_documentation: NotRequired[str]
68 """
69 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Documentation for the prior charge that can uniquely identify the charge, such as a receipt, shipping label, work order, etc. This document should be paired with a similar document from the disputed payment that proves the two payments are separate.
70 """
71 duplicate_charge_explanation: NotRequired[str]
72 """
73 An explanation of the difference between the disputed charge versus the prior charge that appears to be a duplicate. Has a maximum character count of 20,000.
74 """
75 duplicate_charge_id: NotRequired[str]
76 """
77 The Stripe ID for the prior charge which appears to be a duplicate of the disputed charge.
78 """
79 enhanced_evidence: NotRequired[
80 "Literal['']|DisputeUpdateParamsEvidenceEnhancedEvidence"
81 ]
82 """
83 Additional evidence for qualifying evidence programs.
84 """
85 product_description: NotRequired[str]
86 """
87 A description of the product or service that was sold. Has a maximum character count of 20,000.
88 """
89 receipt: NotRequired[str]
90 """
91 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any receipt or message sent to the customer notifying them of the charge.
92 """
93 refund_policy: NotRequired[str]
94 """
95 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Your refund policy, as shown to the customer.
96 """
97 refund_policy_disclosure: NotRequired[str]
98 """
99 Documentation demonstrating that the customer was shown your refund policy prior to purchase. Has a maximum character count of 20,000.
100 """
101 refund_refusal_explanation: NotRequired[str]
102 """
103 A justification for why the customer is not entitled to a refund. Has a maximum character count of 20,000.
104 """
105 service_date: NotRequired[str]
106 """
107 The date on which the customer received or began receiving the purchased service, in a clear human-readable format.
108 """
109 service_documentation: NotRequired[str]
110 """
111 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Documentation showing proof that a service was provided to the customer. This could include a copy of a signed contract, work order, or other form of written agreement.
112 """
113 shipping_address: NotRequired[str]
114 """
115 The address to which a physical product was shipped. You should try to include as complete address information as possible.
116 """
117 shipping_carrier: NotRequired[str]
118 """
119 The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc. If multiple carriers were used for this purchase, please separate them with commas.
120 """
121 shipping_date: NotRequired[str]
122 """
123 The date on which a physical product began its route to the shipping address, in a clear human-readable format.
124 """
125 shipping_documentation: NotRequired[str]
126 """
127 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Documentation showing proof that a product was shipped to the customer at the same address the customer provided to you. This could include a copy of the shipment receipt, shipping label, etc. It should show the customer's full shipping address, if possible.
128 """
129 shipping_tracking_number: NotRequired[str]
130 """
131 The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
132 """
133 uncategorized_file: NotRequired[str]
134 """
135 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any additional evidence or statements.
136 """
137 uncategorized_text: NotRequired[str]
138 """
139 Any additional evidence or statements. Has a maximum character count of 20,000.
140 """
141
142
143 class DisputeUpdateParamsEvidenceEnhancedEvidence(TypedDict):
144 visa_compelling_evidence_3: NotRequired[
145 "DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3"
146 ]
147 """
148 Evidence provided for Visa Compelling Evidence 3.0 evidence submission.
149 """
150 visa_compliance: NotRequired[
151 "DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompliance"
152 ]
153 """
154 Evidence provided for Visa compliance evidence submission.
155 """
156
157
158 class DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3(
159 TypedDict,
160 ):
161 disputed_transaction: NotRequired[
162 "DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransaction"
163 ]
164 """
165 Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission.
166 """
167 prior_undisputed_transactions: NotRequired[
168 List[
169 "DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransaction"
170 ]
171 ]
172 """
173 List of exactly two prior undisputed transaction objects for Visa Compelling Evidence 3.0 evidence submission.
174 """
175
176
177 class DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransaction(
178 TypedDict,
179 ):
180 customer_account_id: NotRequired["Literal['']|str"]
181 """
182 User Account ID used to log into business platform. Must be recognizable by the user.
183 """
184 customer_device_fingerprint: NotRequired["Literal['']|str"]
185 """
186 Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.
187 """
188 customer_device_id: NotRequired["Literal['']|str"]
189 """
190 Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.
191 """
192 customer_email_address: NotRequired["Literal['']|str"]
193 """
194 The email address of the customer.
195 """
196 customer_purchase_ip: NotRequired["Literal['']|str"]
197 """
198 The IP address that the customer used when making the purchase.
199 """
200 merchandise_or_services: NotRequired[Literal["merchandise", "services"]]
201 """
202 Categorization of disputed payment.
203 """
204 product_description: NotRequired["Literal['']|str"]
205 """
206 A description of the product or service that was sold.
207 """
208 shipping_address: NotRequired[
209 "DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddress"
210 ]
211 """
212 The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
213 """
214
215
216 class DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddress(
217 TypedDict,
218 ):
219 city: NotRequired["Literal['']|str"]
220 """
221 City, district, suburb, town, or village.
222 """
223 country: NotRequired["Literal['']|str"]
224 """
225 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
226 """
227 line1: NotRequired["Literal['']|str"]
228 """
229 Address line 1, such as the street, PO Box, or company name.
230 """
231 line2: NotRequired["Literal['']|str"]
232 """
233 Address line 2, such as the apartment, suite, unit, or building.
234 """
235 postal_code: NotRequired["Literal['']|str"]
236 """
237 ZIP or postal code.
238 """
239 state: NotRequired["Literal['']|str"]
240 """
241 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
242 """
243
244
245 class DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransaction(
246 TypedDict,
247 ):
248 charge: str
249 """
250 Stripe charge ID for the Visa Compelling Evidence 3.0 eligible prior charge.
251 """
252 customer_account_id: NotRequired["Literal['']|str"]
253 """
254 User Account ID used to log into business platform. Must be recognizable by the user.
255 """
256 customer_device_fingerprint: NotRequired["Literal['']|str"]
257 """
258 Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.
259 """
260 customer_device_id: NotRequired["Literal['']|str"]
261 """
262 Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.
263 """
264 customer_email_address: NotRequired["Literal['']|str"]
265 """
266 The email address of the customer.
267 """
268 customer_purchase_ip: NotRequired["Literal['']|str"]
269 """
270 The IP address that the customer used when making the purchase.
271 """
272 product_description: NotRequired["Literal['']|str"]
273 """
274 A description of the product or service that was sold.
275 """
276 shipping_address: NotRequired[
277 "DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransactionShippingAddress"
278 ]
279 """
280 The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
281 """
282
283
284 class DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransactionShippingAddress(
285 TypedDict,
286 ):
287 city: NotRequired["Literal['']|str"]
288 """
289 City, district, suburb, town, or village.
290 """
291 country: NotRequired["Literal['']|str"]
292 """
293 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
294 """
295 line1: NotRequired["Literal['']|str"]
296 """
297 Address line 1, such as the street, PO Box, or company name.
298 """
299 line2: NotRequired["Literal['']|str"]
300 """
301 Address line 2, such as the apartment, suite, unit, or building.
302 """
303 postal_code: NotRequired["Literal['']|str"]
304 """
305 ZIP or postal code.
306 """
307 state: NotRequired["Literal['']|str"]
308 """
309 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
310 """
311
312
313 class DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompliance(TypedDict):
314 fee_acknowledged: NotRequired[bool]
315 """
316 A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute.
317 """