Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/usage/pkg/apiv1/fixtures/stripe_on_charge_dispute.yaml
2500 views
1
# Copyright (c) 2023 Gitpod GmbH. All rights reserved.
2
# Licensed under the GNU Affero General Public License (AGPL).
3
# See License.AGPL.txt in the project root for license information.
4
5
---
6
version: 2
7
interactions:
8
- id: 0
9
request:
10
proto: HTTP/1.1
11
proto_major: 1
12
proto_minor: 1
13
content_length: 0
14
transfer_encoding: []
15
trailer: {}
16
host: api.stripe.com
17
remote_addr: ""
18
request_uri: ""
19
body: ""
20
form: {}
21
headers:
22
Content-Type:
23
- application/x-www-form-urlencoded
24
Stripe-Version:
25
- "2020-08-27"
26
User-Agent:
27
- Stripe/v1 GoBindings/72.114.0
28
X-Stripe-Client-User-Agent:
29
- '{"application":null,"bindings_version":"72.114.0","lang":"go","lang_version":"go1.19.5","publisher":"stripe","uname":"Linux gitpodio-gitpod-tojg8kfndm8 6.1.20-060120-generic #202303171032-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 17 11:30:51 UTC x86_64 x86_64 x86_64 GNU/Linux\n"}'
30
url: https://api.stripe.com/v1/disputes/dp_1MrLJpAyBDPbWrhawbWHEIDL?expand[0]=payment_intent.customer
31
method: GET
32
response:
33
proto: HTTP/2.0
34
proto_major: 2
35
proto_minor: 0
36
transfer_encoding: []
37
trailer: {}
38
content_length: 9692
39
uncompressed: false
40
body: |-
41
{
42
"id": "dp_1MrLJpAyBDPbWrhawbWHEIDL",
43
"object": "dispute",
44
"amount": 100,
45
"balance_transaction": "txn_1MrLJpAyBDPbWrhaoqkdM6Pg",
46
"balance_transactions": [
47
{
48
"id": "txn_1MrLJpAyBDPbWrhaoqkdM6Pg",
49
"object": "balance_transaction",
50
"amount": -100,
51
"available_on": 1680566400,
52
"created": 1680182109,
53
"currency": "eur",
54
"description": "Chargeback withdrawal for ch_3MrLJoAyBDPbWrha4K2JqJ2G",
55
"exchange_rate": null,
56
"fee": 1500,
57
"fee_details": [
58
{
59
"amount": 1500,
60
"application": null,
61
"currency": "eur",
62
"description": "Dispute fee",
63
"type": "stripe_fee"
64
}
65
],
66
"net": -1600,
67
"reporting_category": "dispute",
68
"source": "dp_1MrLJpAyBDPbWrhawbWHEIDL",
69
"status": "pending",
70
"type": "adjustment"
71
}
72
],
73
"charge": "ch_3MrLJoAyBDPbWrha4K2JqJ2G",
74
"created": 1680182109,
75
"currency": "eur",
76
"evidence": {
77
"access_activity_log": null,
78
"billing_address": "39111",
79
"cancellation_policy": null,
80
"cancellation_policy_disclosure": null,
81
"cancellation_rebuttal": null,
82
"customer_communication": null,
83
"customer_email_address": "[email protected]",
84
"customer_name": "Milan Test Dispute",
85
"customer_purchase_ip": null,
86
"customer_signature": null,
87
"duplicate_charge_documentation": null,
88
"duplicate_charge_explanation": null,
89
"duplicate_charge_id": null,
90
"product_description": null,
91
"receipt": null,
92
"refund_policy": null,
93
"refund_policy_disclosure": null,
94
"refund_refusal_explanation": null,
95
"service_date": null,
96
"service_documentation": null,
97
"shipping_address": null,
98
"shipping_carrier": null,
99
"shipping_date": null,
100
"shipping_documentation": null,
101
"shipping_tracking_number": null,
102
"uncategorized_file": null,
103
"uncategorized_text": null
104
},
105
"evidence_details": {
106
"due_by": 1680998399,
107
"has_evidence": false,
108
"past_due": false,
109
"submission_count": 0
110
},
111
"is_charge_refundable": false,
112
"livemode": false,
113
"metadata": {},
114
"payment_intent": {
115
"id": "pi_3MrLJoAyBDPbWrha4geRUptb",
116
"object": "payment_intent",
117
"amount": 100,
118
"amount_capturable": 0,
119
"amount_details": {
120
"tip": {}
121
},
122
"amount_received": 100,
123
"application": null,
124
"application_fee_amount": null,
125
"automatic_payment_methods": null,
126
"canceled_at": null,
127
"cancellation_reason": null,
128
"capture_method": "automatic",
129
"charges": {
130
"object": "list",
131
"data": [
132
{
133
"id": "ch_3MrLJoAyBDPbWrha4K2JqJ2G",
134
"object": "charge",
135
"amount": 100,
136
"amount_captured": 100,
137
"amount_refunded": 0,
138
"application": null,
139
"application_fee": null,
140
"application_fee_amount": null,
141
"balance_transaction": "txn_3MrLJoAyBDPbWrha460gRh0F",
142
"billing_details": {
143
"address": {
144
"city": null,
145
"country": null,
146
"line1": null,
147
"line2": null,
148
"postal_code": "39111",
149
"state": null
150
},
151
"email": null,
152
"name": null,
153
"phone": null
154
},
155
"calculated_statement_descriptor": "GITPOD.IO",
156
"captured": true,
157
"created": 1680182108,
158
"currency": "eur",
159
"customer": "cus_NcaUPpUY7gFAs7",
160
"description": "asdasd",
161
"destination": null,
162
"dispute": "dp_1MrLJpAyBDPbWrhawbWHEIDL",
163
"disputed": true,
164
"failure_balance_transaction": null,
165
"failure_code": null,
166
"failure_message": null,
167
"fraud_details": {},
168
"invoice": null,
169
"livemode": false,
170
"metadata": {},
171
"on_behalf_of": null,
172
"order": null,
173
"outcome": {
174
"network_status": "approved_by_network",
175
"reason": null,
176
"risk_level": "normal",
177
"risk_score": 3,
178
"seller_message": "Payment complete.",
179
"type": "authorized"
180
},
181
"paid": true,
182
"payment_intent": "pi_3MrLJoAyBDPbWrha4geRUptb",
183
"payment_method": "src_1MrLJnAyBDPbWrha6IRSXAZT",
184
"payment_method_details": {
185
"card": {
186
"brand": "visa",
187
"checks": {
188
"address_line1_check": null,
189
"address_postal_code_check": "pass",
190
"cvc_check": "pass"
191
},
192
"country": "US",
193
"exp_month": 4,
194
"exp_year": 2024,
195
"fingerprint": "Ktjcyilms0eJhW5S",
196
"funding": "credit",
197
"installments": null,
198
"last4": "0259",
199
"mandate": null,
200
"network": "visa",
201
"three_d_secure": null,
202
"wallet": null
203
},
204
"type": "card"
205
},
206
"receipt_email": "[email protected]",
207
"receipt_number": null,
208
"receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xTEZGcHVBeUJEUGJXcmhhKKSdlqEGMgZvJWSZi6U6LBYd0Eabq05S6pQL_NkuA_kGSaSdM7zqvEKt79RhBL6zW1pIdIHm9O38-2Ly",
209
"refunded": false,
210
"refunds": {
211
"object": "list",
212
"data": [],
213
"has_more": false,
214
"total_count": 0,
215
"url": "/v1/charges/ch_3MrLJoAyBDPbWrha4K2JqJ2G/refunds"
216
},
217
"review": null,
218
"shipping": null,
219
"source": {
220
"id": "src_1MrLJnAyBDPbWrha6IRSXAZT",
221
"object": "source",
222
"amount": null,
223
"card": {
224
"address_line1_check": null,
225
"address_zip_check": "pass",
226
"brand": "Visa",
227
"country": "US",
228
"cvc_check": "pass",
229
"dynamic_last4": null,
230
"exp_month": 4,
231
"exp_year": 2024,
232
"fingerprint": "Ktjcyilms0eJhW5S",
233
"funding": "credit",
234
"last4": "0259",
235
"name": null,
236
"three_d_secure": "optional",
237
"tokenization_method": null
238
},
239
"created": 1680182108,
240
"currency": null,
241
"flow": "none",
242
"livemode": false,
243
"metadata": {},
244
"owner": {
245
"address": {
246
"city": null,
247
"country": null,
248
"line1": null,
249
"line2": null,
250
"postal_code": "39111",
251
"state": null
252
},
253
"email": null,
254
"name": null,
255
"phone": null,
256
"verified_address": null,
257
"verified_email": null,
258
"verified_name": null,
259
"verified_phone": null
260
},
261
"statement_descriptor": null,
262
"status": "chargeable",
263
"type": "card",
264
"usage": "reusable"
265
},
266
"source_transfer": null,
267
"statement_descriptor": "Gitpod.io",
268
"statement_descriptor_suffix": null,
269
"status": "succeeded",
270
"transfer_data": null,
271
"transfer_group": null
272
}
273
],
274
"has_more": false,
275
"total_count": 1,
276
"url": "/v1/charges?payment_intent=pi_3MrLJoAyBDPbWrha4geRUptb"
277
},
278
"confirmation_method": "automatic",
279
"created": 1680182108,
280
"currency": "eur",
281
"customer": {
282
"id": "cus_NcaUPpUY7gFAs7",
283
"object": "customer",
284
"address": {
285
"city": "",
286
"country": "CZ",
287
"line1": "",
288
"line2": "",
289
"postal_code": "",
290
"state": ""
291
},
292
"balance": 0,
293
"created": 1680182072,
294
"currency": null,
295
"default_currency": null,
296
"default_source": "src_1MrLJnAyBDPbWrha6IRSXAZT",
297
"delinquent": false,
298
"description": null,
299
"discount": null,
300
"email": "[email protected]",
301
"invoice_prefix": "9B6F1202",
302
"invoice_settings": {
303
"custom_fields": null,
304
"default_payment_method": null,
305
"footer": null,
306
"rendering_options": null
307
},
308
"livemode": false,
309
"metadata": {
310
"attributionId": "team:479efa39-6937-4ee7-ac61-6b4b623d049f"
311
},
312
"name": "Milan Test Dispute",
313
"phone": null,
314
"preferred_locales": [],
315
"shipping": null,
316
"tax_exempt": "none",
317
"test_clock": null
318
},
319
"description": "asdasd",
320
"invoice": null,
321
"last_payment_error": null,
322
"latest_charge": "ch_3MrLJoAyBDPbWrha4K2JqJ2G",
323
"livemode": false,
324
"metadata": {},
325
"next_action": null,
326
"on_behalf_of": null,
327
"payment_method": null,
328
"payment_method_options": {
329
"card": {
330
"installments": null,
331
"mandate_options": null,
332
"network": null,
333
"request_three_d_secure": "automatic"
334
}
335
},
336
"payment_method_types": [
337
"card"
338
],
339
"processing": null,
340
"receipt_email": "[email protected]",
341
"review": null,
342
"setup_future_usage": "off_session",
343
"shipping": null,
344
"source": "src_1MrLJnAyBDPbWrha6IRSXAZT",
345
"statement_descriptor": "Gitpod.io",
346
"statement_descriptor_suffix": null,
347
"status": "succeeded",
348
"transfer_data": null,
349
"transfer_group": null
350
},
351
"reason": "fraudulent",
352
"status": "needs_response"
353
}
354
headers:
355
Access-Control-Allow-Credentials:
356
- "true"
357
Access-Control-Allow-Methods:
358
- GET, POST, HEAD, OPTIONS, DELETE
359
Access-Control-Allow-Origin:
360
- '*'
361
Access-Control-Expose-Headers:
362
- Request-Id, Stripe-Manage-Version, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required
363
Access-Control-Max-Age:
364
- "300"
365
Cache-Control:
366
- no-cache, no-store
367
Content-Length:
368
- "9692"
369
Content-Type:
370
- application/json
371
Date:
372
- Thu, 30 Mar 2023 13:29:08 GMT
373
Request-Id:
374
- req_N0hol0KcKDB8Pt
375
Server:
376
- nginx
377
Strict-Transport-Security:
378
- max-age=63072000; includeSubDomains; preload
379
Stripe-Version:
380
- "2020-08-27"
381
status: 200 OK
382
code: 200
383
duration: 396.974908ms
384
385