Debian Codegraph @

stripe/params/_dispute_modify_params.py

raw
1 # -*- coding: utf-8 -*-
2 # File generated from our OpenAPI spec
3 from stripe._request_options import RequestOptions
4 from typing import Dict, List
5 from typing_extensions import Literal, NotRequired, TypedDict
6
7
8 class DisputeModifyParams(RequestOptions):
9 evidence: NotRequired["DisputeModifyParamsEvidence"]
10 """
11 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.
12 """
13 expand: NotRequired[List[str]]
14 """
15 Specifies which fields in the response should be expanded.
16 """
17 metadata: NotRequired["Literal['']|Dict[str, str]"]
18 """
19 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`.
20 """
21 submit: NotRequired[bool]
22 """
23 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).
24 """
25
26
27 class DisputeModifyParamsEvidence(TypedDict):
28 access_activity_log: NotRequired[str]
29 """
30 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.
31 """
32 billing_address: NotRequired[str]
33 """
34 The billing address provided by the customer.
35 """
36 cancellation_policy: NotRequired[str]
37 """
38 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Your subscription cancellation policy, as shown to the customer.
39 """
40 cancellation_policy_disclosure: NotRequired[str]
41 """
42 An explanation of how and when the customer was shown your refund policy prior to purchase. Has a maximum character count of 20,000.
43 """
44 cancellation_rebuttal: NotRequired[str]
45 """
46 A justification for why the customer's subscription was not canceled. Has a maximum character count of 20,000.
47 """
48 customer_communication: NotRequired[str]
49 """
50 (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.
51 """
52 customer_email_address: NotRequired[str]
53 """
54 The email address of the customer.
55 """
56 customer_name: NotRequired[str]
57 """
58 The name of the customer.
59 """
60 customer_purchase_ip: NotRequired[str]
61 """
62 The IP address that the customer used when making the purchase.
63 """
64 customer_signature: NotRequired[str]
65 """
66 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A relevant document or contract showing the customer's signature.
67 """
68 duplicate_charge_documentation: NotRequired[str]
69 """
70 (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.
71 """
72 duplicate_charge_explanation: NotRequired[str]
73 """
74 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.
75 """
76 duplicate_charge_id: NotRequired[str]
77 """
78 The Stripe ID for the prior charge which appears to be a duplicate of the disputed charge.
79 """
80 enhanced_evidence: NotRequired[
81 "Literal['']|DisputeModifyParamsEvidenceEnhancedEvidence"
82 ]
83 """
84 Additional evidence for qualifying evidence programs.
85 """
86 product_description: NotRequired[str]
87 """
88 A description of the product or service that was sold. Has a maximum character count of 20,000.
89 """
90 receipt: NotRequired[str]
91 """
92 (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.
93 """
94 refund_policy: NotRequired[str]
95 """
96 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Your refund policy, as shown to the customer.
97 """
98 refund_policy_disclosure: NotRequired[str]
99 """
100 Documentation demonstrating that the customer was shown your refund policy prior to purchase. Has a maximum character count of 20,000.
101 """
102 refund_refusal_explanation: NotRequired[str]
103 """
104 A justification for why the customer is not entitled to a refund. Has a maximum character count of 20,000.
105 """
106 service_date: NotRequired[str]
107 """
108 The date on which the customer received or began receiving the purchased service, in a clear human-readable format.
109 """
110 service_documentation: NotRequired[str]
111 """
112 (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.
113 """
114 shipping_address: NotRequired[str]
115 """
116 The address to which a physical product was shipped. You should try to include as complete address information as possible.
117 """
118 shipping_carrier: NotRequired[str]
119 """
120 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.
121 """
122 shipping_date: NotRequired[str]
123 """
124 The date on which a physical product began its route to the shipping address, in a clear human-readable format.
125 """
126 shipping_documentation: NotRequired[str]
127 """
128 (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.
129 """
130 shipping_tracking_number: NotRequired[str]
131 """
132 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.
133 """
134 uncategorized_file: NotRequired[str]
135 """
136 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any additional evidence or statements.
137 """
138 uncategorized_text: NotRequired[str]
139 """
140 Any additional evidence or statements. Has a maximum character count of 20,000.
141 """
142
143
144 class DisputeModifyParamsEvidenceEnhancedEvidence(TypedDict):
145 visa_compelling_evidence_3: NotRequired[
146 "DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3"
147 ]
148 """
149 Evidence provided for Visa Compelling Evidence 3.0 evidence submission.
150 """
151 visa_compliance: NotRequired[
152 "DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompliance"
153 ]
154 """
155 Evidence provided for Visa compliance evidence submission.
156 """
157
158
159 class DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3(
160 TypedDict,
161 ):
162 disputed_transaction: NotRequired[
163 "DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransaction"
164 ]
165 """
166 Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission.
167 """
168 prior_undisputed_transactions: NotRequired[
169 List[
170 "DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransaction"
171 ]
172 ]
173 """
174 List of exactly two prior undisputed transaction objects for Visa Compelling Evidence 3.0 evidence submission.
175 """
176
177
178 class DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransaction(
179 TypedDict,
180 ):
181 customer_account_id: NotRequired["Literal['']|str"]
182 """
183 User Account ID used to log into business platform. Must be recognizable by the user.
184 """
185 customer_device_fingerprint: NotRequired["Literal['']|str"]
186 """
187 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.
188 """
189 customer_device_id: NotRequired["Literal['']|str"]
190 """
191 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.
192 """
193 customer_email_address: NotRequired["Literal['']|str"]
194 """
195 The email address of the customer.
196 """
197 customer_purchase_ip: NotRequired["Literal['']|str"]
198 """
199 The IP address that the customer used when making the purchase.
200 """
201 merchandise_or_services: NotRequired[Literal["merchandise", "services"]]
202 """
203 Categorization of disputed payment.
204 """
205 product_description: NotRequired["Literal['']|str"]
206 """
207 A description of the product or service that was sold.
208 """
209 shipping_address: NotRequired[
210 "DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddress"
211 ]
212 """
213 The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
214 """
215
216
217 class DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddress(
218 TypedDict,
219 ):
220 city: NotRequired["Literal['']|str"]
221 """
222 City, district, suburb, town, or village.
223 """
224 country: NotRequired["Literal['']|str"]
225 """
226 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
227 """
228 line1: NotRequired["Literal['']|str"]
229 """
230 Address line 1, such as the street, PO Box, or company name.
231 """
232 line2: NotRequired["Literal['']|str"]
233 """
234 Address line 2, such as the apartment, suite, unit, or building.
235 """
236 postal_code: NotRequired["Literal['']|str"]
237 """
238 ZIP or postal code.
239 """
240 state: NotRequired["Literal['']|str"]
241 """
242 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
243 """
244
245
246 class DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransaction(
247 TypedDict,
248 ):
249 charge: str
250 """
251 Stripe charge ID for the Visa Compelling Evidence 3.0 eligible prior charge.
252 """
253 customer_account_id: NotRequired["Literal['']|str"]
254 """
255 User Account ID used to log into business platform. Must be recognizable by the user.
256 """
257 customer_device_fingerprint: NotRequired["Literal['']|str"]
258 """
259 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.
260 """
261 customer_device_id: NotRequired["Literal['']|str"]
262 """
263 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.
264 """
265 customer_email_address: NotRequired["Literal['']|str"]
266 """
267 The email address of the customer.
268 """
269 customer_purchase_ip: NotRequired["Literal['']|str"]
270 """
271 The IP address that the customer used when making the purchase.
272 """
273 product_description: NotRequired["Literal['']|str"]
274 """
275 A description of the product or service that was sold.
276 """
277 shipping_address: NotRequired[
278 "DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransactionShippingAddress"
279 ]
280 """
281 The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
282 """
283
284
285 class DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransactionShippingAddress(
286 TypedDict,
287 ):
288 city: NotRequired["Literal['']|str"]
289 """
290 City, district, suburb, town, or village.
291 """
292 country: NotRequired["Literal['']|str"]
293 """
294 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
295 """
296 line1: NotRequired["Literal['']|str"]
297 """
298 Address line 1, such as the street, PO Box, or company name.
299 """
300 line2: NotRequired["Literal['']|str"]
301 """
302 Address line 2, such as the apartment, suite, unit, or building.
303 """
304 postal_code: NotRequired["Literal['']|str"]
305 """
306 ZIP or postal code.
307 """
308 state: NotRequired["Literal['']|str"]
309 """
310 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
311 """
312
313
314 class DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompliance(TypedDict):
315 fee_acknowledged: NotRequired[bool]
316 """
317 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.
318 """