Debian Codegraph @

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