Debian Codegraph @

stripe/params/issuing/_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 amount: NotRequired[int]
10 """
11 The dispute amount in the card's currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
12 """
13 evidence: NotRequired["DisputeModifyParamsEvidence"]
14 """
15 Evidence provided for the dispute.
16 """
17 expand: NotRequired[List[str]]
18 """
19 Specifies which fields in the response should be expanded.
20 """
21 metadata: NotRequired["Literal['']|Dict[str, str]"]
22 """
23 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`.
24 """
25
26
27 class DisputeModifyParamsEvidence(TypedDict):
28 canceled: NotRequired["Literal['']|DisputeModifyParamsEvidenceCanceled"]
29 """
30 Evidence provided when `reason` is 'canceled'.
31 """
32 duplicate: NotRequired["Literal['']|DisputeModifyParamsEvidenceDuplicate"]
33 """
34 Evidence provided when `reason` is 'duplicate'.
35 """
36 fraudulent: NotRequired[
37 "Literal['']|DisputeModifyParamsEvidenceFraudulent"
38 ]
39 """
40 Evidence provided when `reason` is 'fraudulent'.
41 """
42 merchandise_not_as_described: NotRequired[
43 "Literal['']|DisputeModifyParamsEvidenceMerchandiseNotAsDescribed"
44 ]
45 """
46 Evidence provided when `reason` is 'merchandise_not_as_described'.
47 """
48 no_valid_authorization: NotRequired[
49 "Literal['']|DisputeModifyParamsEvidenceNoValidAuthorization"
50 ]
51 """
52 Evidence provided when `reason` is 'no_valid_authorization'.
53 """
54 not_received: NotRequired[
55 "Literal['']|DisputeModifyParamsEvidenceNotReceived"
56 ]
57 """
58 Evidence provided when `reason` is 'not_received'.
59 """
60 other: NotRequired["Literal['']|DisputeModifyParamsEvidenceOther"]
61 """
62 Evidence provided when `reason` is 'other'.
63 """
64 reason: NotRequired[
65 Literal[
66 "canceled",
67 "duplicate",
68 "fraudulent",
69 "merchandise_not_as_described",
70 "no_valid_authorization",
71 "not_received",
72 "other",
73 "service_not_as_described",
74 ]
75 ]
76 """
77 The reason for filing the dispute. The evidence should be submitted in the field of the same name.
78 """
79 service_not_as_described: NotRequired[
80 "Literal['']|DisputeModifyParamsEvidenceServiceNotAsDescribed"
81 ]
82 """
83 Evidence provided when `reason` is 'service_not_as_described'.
84 """
85
86
87 class DisputeModifyParamsEvidenceCanceled(TypedDict):
88 additional_documentation: NotRequired["Literal['']|str"]
89 """
90 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
91 """
92 canceled_at: NotRequired["Literal['']|int"]
93 """
94 Date when order was canceled.
95 """
96 cancellation_policy_provided: NotRequired["Literal['']|bool"]
97 """
98 Whether the cardholder was provided with a cancellation policy.
99 """
100 cancellation_reason: NotRequired["Literal['']|str"]
101 """
102 Reason for canceling the order.
103 """
104 expected_at: NotRequired["Literal['']|int"]
105 """
106 Date when the cardholder expected to receive the product.
107 """
108 explanation: NotRequired["Literal['']|str"]
109 """
110 Explanation of why the cardholder is disputing this transaction.
111 """
112 product_description: NotRequired["Literal['']|str"]
113 """
114 Description of the merchandise or service that was purchased.
115 """
116 product_type: NotRequired["Literal['']|Literal['merchandise', 'service']"]
117 """
118 Whether the product was a merchandise or service.
119 """
120 return_status: NotRequired[
121 "Literal['']|Literal['merchant_rejected', 'successful']"
122 ]
123 """
124 Result of cardholder's attempt to return the product.
125 """
126 returned_at: NotRequired["Literal['']|int"]
127 """
128 Date when the product was returned or attempted to be returned.
129 """
130
131
132 class DisputeModifyParamsEvidenceDuplicate(TypedDict):
133 additional_documentation: NotRequired["Literal['']|str"]
134 """
135 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
136 """
137 card_statement: NotRequired["Literal['']|str"]
138 """
139 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the card statement showing that the product had already been paid for.
140 """
141 cash_receipt: NotRequired["Literal['']|str"]
142 """
143 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the receipt showing that the product had been paid for in cash.
144 """
145 check_image: NotRequired["Literal['']|str"]
146 """
147 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Image of the front and back of the check that was used to pay for the product.
148 """
149 explanation: NotRequired["Literal['']|str"]
150 """
151 Explanation of why the cardholder is disputing this transaction.
152 """
153 original_transaction: NotRequired[str]
154 """
155 Transaction (e.g., ipi_...) that the disputed transaction is a duplicate of. Of the two or more transactions that are copies of each other, this is original undisputed one.
156 """
157
158
159 class DisputeModifyParamsEvidenceFraudulent(TypedDict):
160 additional_documentation: NotRequired["Literal['']|str"]
161 """
162 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
163 """
164 explanation: NotRequired["Literal['']|str"]
165 """
166 Explanation of why the cardholder is disputing this transaction.
167 """
168
169
170 class DisputeModifyParamsEvidenceMerchandiseNotAsDescribed(TypedDict):
171 additional_documentation: NotRequired["Literal['']|str"]
172 """
173 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
174 """
175 explanation: NotRequired["Literal['']|str"]
176 """
177 Explanation of why the cardholder is disputing this transaction.
178 """
179 received_at: NotRequired["Literal['']|int"]
180 """
181 Date when the product was received.
182 """
183 return_description: NotRequired["Literal['']|str"]
184 """
185 Description of the cardholder's attempt to return the product.
186 """
187 return_status: NotRequired[
188 "Literal['']|Literal['merchant_rejected', 'successful']"
189 ]
190 """
191 Result of cardholder's attempt to return the product.
192 """
193 returned_at: NotRequired["Literal['']|int"]
194 """
195 Date when the product was returned or attempted to be returned.
196 """
197
198
199 class DisputeModifyParamsEvidenceNoValidAuthorization(TypedDict):
200 additional_documentation: NotRequired["Literal['']|str"]
201 """
202 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
203 """
204 explanation: NotRequired["Literal['']|str"]
205 """
206 Explanation of why the cardholder is disputing this transaction.
207 """
208
209
210 class DisputeModifyParamsEvidenceNotReceived(TypedDict):
211 additional_documentation: NotRequired["Literal['']|str"]
212 """
213 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
214 """
215 expected_at: NotRequired["Literal['']|int"]
216 """
217 Date when the cardholder expected to receive the product.
218 """
219 explanation: NotRequired["Literal['']|str"]
220 """
221 Explanation of why the cardholder is disputing this transaction.
222 """
223 product_description: NotRequired["Literal['']|str"]
224 """
225 Description of the merchandise or service that was purchased.
226 """
227 product_type: NotRequired["Literal['']|Literal['merchandise', 'service']"]
228 """
229 Whether the product was a merchandise or service.
230 """
231
232
233 class DisputeModifyParamsEvidenceOther(TypedDict):
234 additional_documentation: NotRequired["Literal['']|str"]
235 """
236 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
237 """
238 explanation: NotRequired["Literal['']|str"]
239 """
240 Explanation of why the cardholder is disputing this transaction.
241 """
242 product_description: NotRequired["Literal['']|str"]
243 """
244 Description of the merchandise or service that was purchased.
245 """
246 product_type: NotRequired["Literal['']|Literal['merchandise', 'service']"]
247 """
248 Whether the product was a merchandise or service.
249 """
250
251
252 class DisputeModifyParamsEvidenceServiceNotAsDescribed(TypedDict):
253 additional_documentation: NotRequired["Literal['']|str"]
254 """
255 (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
256 """
257 canceled_at: NotRequired["Literal['']|int"]
258 """
259 Date when order was canceled.
260 """
261 cancellation_reason: NotRequired["Literal['']|str"]
262 """
263 Reason for canceling the order.
264 """
265 explanation: NotRequired["Literal['']|str"]
266 """
267 Explanation of why the cardholder is disputing this transaction.
268 """
269 received_at: NotRequired["Literal['']|int"]
270 """
271 Date when the product was received.
272 """