Debian Codegraph @

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