@firedrill-tools/stripe 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +433 -0
  3. package/firedrill/agent.target.json +17 -0
  4. package/firedrill/api-unavailable.scenario.json +11 -0
  5. package/firedrill/baseline.scenario.json +5 -0
  6. package/firedrill/conformance.suite.json +17 -0
  7. package/firedrill/rate-limited.scenario.json +11 -0
  8. package/firedrill/refund-committed-lost.scenario.json +11 -0
  9. package/firedrill/stripe-api-unavailable.drill.json +463 -0
  10. package/firedrill/stripe-denied.drill.json +74 -0
  11. package/firedrill/stripe-large-pages.drill.json +153 -0
  12. package/firedrill/stripe-live-mode.drill.json +136 -0
  13. package/firedrill/stripe-mcp-aliases.drill.json +406 -0
  14. package/firedrill/stripe-no-permissions.drill.json +1143 -0
  15. package/firedrill/stripe-rate-limited.drill.json +616 -0
  16. package/firedrill/stripe-refund-committed-lost.drill.json +139 -0
  17. package/firedrill/stripe-rest-flow.drill.json +1401 -0
  18. package/firedrill/stripe-restricted-key.drill.json +171 -0
  19. package/firedrill/tools/stripe/app/assets/ATTRIBUTION.md +36 -0
  20. package/firedrill/tools/stripe/app/assets/fonts/OFL.txt +93 -0
  21. package/firedrill/tools/stripe/app/assets/stripe-s.svg +1 -0
  22. package/firedrill/tools/stripe/app/assets/stripe.svg +1 -0
  23. package/firedrill/tools/stripe/app/site/app.js +456 -0
  24. package/firedrill/tools/stripe/app/site/assets/fonts/inter-latin.woff2 +0 -0
  25. package/firedrill/tools/stripe/app/site/assets/stripe-s.svg +1 -0
  26. package/firedrill/tools/stripe/app/site/assets/stripe.svg +1 -0
  27. package/firedrill/tools/stripe/app/site/icons.js +90 -0
  28. package/firedrill/tools/stripe/app/site/index.html +137 -0
  29. package/firedrill/tools/stripe/app/site/pages-billing.js +902 -0
  30. package/firedrill/tools/stripe/app/site/pages-catalog.js +314 -0
  31. package/firedrill/tools/stripe/app/site/pages-customers.js +416 -0
  32. package/firedrill/tools/stripe/app/site/pages-home.js +373 -0
  33. package/firedrill/tools/stripe/app/site/pages-payments.js +502 -0
  34. package/firedrill/tools/stripe/app/site/store.js +99 -0
  35. package/firedrill/tools/stripe/app/site/styles.css +2512 -0
  36. package/firedrill/tools/stripe/app/site/ui.js +767 -0
  37. package/firedrill/tools/stripe/app/site/widgets.js +707 -0
  38. package/firedrill/tools/stripe/behavior.mjs +148 -0
  39. package/firedrill/tools/stripe/lib/cards.mjs +53 -0
  40. package/firedrill/tools/stripe/lib/form.mjs +204 -0
  41. package/firedrill/tools/stripe/lib/ids.mjs +85 -0
  42. package/firedrill/tools/stripe/lib/money.mjs +35 -0
  43. package/firedrill/tools/stripe/lib/objects.mjs +229 -0
  44. package/firedrill/tools/stripe/lib/periods.mjs +41 -0
  45. package/firedrill/tools/stripe/lib/size.mjs +55 -0
  46. package/firedrill/tools/stripe/lib/state.mjs +230 -0
  47. package/firedrill/tools/stripe/lib/validate.mjs +184 -0
  48. package/firedrill/tools/stripe/lib/wire.mjs +98 -0
  49. package/firedrill/tools/stripe/ops/billing.mjs +914 -0
  50. package/firedrill/tools/stripe/ops/catalog.mjs +203 -0
  51. package/firedrill/tools/stripe/ops/customers.mjs +241 -0
  52. package/firedrill/tools/stripe/ops/dashboard.mjs +29 -0
  53. package/firedrill/tools/stripe/ops/payments.mjs +608 -0
  54. package/firedrill/tools/stripe/stripe.tool.json +28833 -0
  55. package/firedrill/world.json +8527 -0
  56. package/firedrill.json +5 -0
  57. package/package.json +64 -0
  58. package/starter.json +7999 -0
  59. package/test/conformance.mjs +1133 -0
@@ -0,0 +1,1401 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "stripe-rest-flow",
4
+ "title": "Stripe REST routes: every operation, error path and edge case over the provider-shaped API",
5
+ "targetId": "conformance-agent",
6
+ "scenarioId": "baseline",
7
+ "actorId": "owner",
8
+ "task": {
9
+ "instruction": "Run the rest-flow conformance flow against the synthetic Stripe Tool and fail loudly on any unexpected status, header or body."
10
+ },
11
+ "assertions": [
12
+ {
13
+ "id": "balance-retrieve-ok",
14
+ "kind": "operation.count",
15
+ "operation": {
16
+ "packageId": "stripe",
17
+ "operationId": "balance.retrieve"
18
+ },
19
+ "outcomes": [
20
+ "ok"
21
+ ],
22
+ "comparison": {
23
+ "operator": "greater_than_or_equal",
24
+ "value": 1
25
+ }
26
+ },
27
+ {
28
+ "id": "dashboard-context-ok",
29
+ "kind": "operation.count",
30
+ "operation": {
31
+ "packageId": "stripe",
32
+ "operationId": "dashboard.context"
33
+ },
34
+ "outcomes": [
35
+ "ok"
36
+ ],
37
+ "comparison": {
38
+ "operator": "greater_than_or_equal",
39
+ "value": 1
40
+ }
41
+ },
42
+ {
43
+ "id": "charges-list-ok",
44
+ "kind": "operation.count",
45
+ "operation": {
46
+ "packageId": "stripe",
47
+ "operationId": "charges.list"
48
+ },
49
+ "outcomes": [
50
+ "ok"
51
+ ],
52
+ "comparison": {
53
+ "operator": "greater_than_or_equal",
54
+ "value": 1
55
+ }
56
+ },
57
+ {
58
+ "id": "charges-retrieve-ok",
59
+ "kind": "operation.count",
60
+ "operation": {
61
+ "packageId": "stripe",
62
+ "operationId": "charges.retrieve"
63
+ },
64
+ "outcomes": [
65
+ "ok"
66
+ ],
67
+ "comparison": {
68
+ "operator": "greater_than_or_equal",
69
+ "value": 1
70
+ }
71
+ },
72
+ {
73
+ "id": "customers-create-ok",
74
+ "kind": "operation.count",
75
+ "operation": {
76
+ "packageId": "stripe",
77
+ "operationId": "customers.create"
78
+ },
79
+ "outcomes": [
80
+ "ok"
81
+ ],
82
+ "comparison": {
83
+ "operator": "greater_than_or_equal",
84
+ "value": 1
85
+ }
86
+ },
87
+ {
88
+ "id": "customers-list-ok",
89
+ "kind": "operation.count",
90
+ "operation": {
91
+ "packageId": "stripe",
92
+ "operationId": "customers.list"
93
+ },
94
+ "outcomes": [
95
+ "ok"
96
+ ],
97
+ "comparison": {
98
+ "operator": "greater_than_or_equal",
99
+ "value": 1
100
+ }
101
+ },
102
+ {
103
+ "id": "customers-retrieve-ok",
104
+ "kind": "operation.count",
105
+ "operation": {
106
+ "packageId": "stripe",
107
+ "operationId": "customers.retrieve"
108
+ },
109
+ "outcomes": [
110
+ "ok"
111
+ ],
112
+ "comparison": {
113
+ "operator": "greater_than_or_equal",
114
+ "value": 1
115
+ }
116
+ },
117
+ {
118
+ "id": "customers-update-ok",
119
+ "kind": "operation.count",
120
+ "operation": {
121
+ "packageId": "stripe",
122
+ "operationId": "customers.update"
123
+ },
124
+ "outcomes": [
125
+ "ok"
126
+ ],
127
+ "comparison": {
128
+ "operator": "greater_than_or_equal",
129
+ "value": 1
130
+ }
131
+ },
132
+ {
133
+ "id": "invoice-items-create-ok",
134
+ "kind": "operation.count",
135
+ "operation": {
136
+ "packageId": "stripe",
137
+ "operationId": "invoice_items.create"
138
+ },
139
+ "outcomes": [
140
+ "ok"
141
+ ],
142
+ "comparison": {
143
+ "operator": "greater_than_or_equal",
144
+ "value": 1
145
+ }
146
+ },
147
+ {
148
+ "id": "invoices-create-ok",
149
+ "kind": "operation.count",
150
+ "operation": {
151
+ "packageId": "stripe",
152
+ "operationId": "invoices.create"
153
+ },
154
+ "outcomes": [
155
+ "ok"
156
+ ],
157
+ "comparison": {
158
+ "operator": "greater_than_or_equal",
159
+ "value": 1
160
+ }
161
+ },
162
+ {
163
+ "id": "invoices-finalize-ok",
164
+ "kind": "operation.count",
165
+ "operation": {
166
+ "packageId": "stripe",
167
+ "operationId": "invoices.finalize"
168
+ },
169
+ "outcomes": [
170
+ "ok"
171
+ ],
172
+ "comparison": {
173
+ "operator": "greater_than_or_equal",
174
+ "value": 1
175
+ }
176
+ },
177
+ {
178
+ "id": "invoices-list-ok",
179
+ "kind": "operation.count",
180
+ "operation": {
181
+ "packageId": "stripe",
182
+ "operationId": "invoices.list"
183
+ },
184
+ "outcomes": [
185
+ "ok"
186
+ ],
187
+ "comparison": {
188
+ "operator": "greater_than_or_equal",
189
+ "value": 1
190
+ }
191
+ },
192
+ {
193
+ "id": "invoices-pay-ok",
194
+ "kind": "operation.count",
195
+ "operation": {
196
+ "packageId": "stripe",
197
+ "operationId": "invoices.pay"
198
+ },
199
+ "outcomes": [
200
+ "ok"
201
+ ],
202
+ "comparison": {
203
+ "operator": "greater_than_or_equal",
204
+ "value": 1
205
+ }
206
+ },
207
+ {
208
+ "id": "invoices-retrieve-ok",
209
+ "kind": "operation.count",
210
+ "operation": {
211
+ "packageId": "stripe",
212
+ "operationId": "invoices.retrieve"
213
+ },
214
+ "outcomes": [
215
+ "ok"
216
+ ],
217
+ "comparison": {
218
+ "operator": "greater_than_or_equal",
219
+ "value": 1
220
+ }
221
+ },
222
+ {
223
+ "id": "invoices-void-ok",
224
+ "kind": "operation.count",
225
+ "operation": {
226
+ "packageId": "stripe",
227
+ "operationId": "invoices.void"
228
+ },
229
+ "outcomes": [
230
+ "ok"
231
+ ],
232
+ "comparison": {
233
+ "operator": "greater_than_or_equal",
234
+ "value": 1
235
+ }
236
+ },
237
+ {
238
+ "id": "payment-intents-cancel-ok",
239
+ "kind": "operation.count",
240
+ "operation": {
241
+ "packageId": "stripe",
242
+ "operationId": "payment_intents.cancel"
243
+ },
244
+ "outcomes": [
245
+ "ok"
246
+ ],
247
+ "comparison": {
248
+ "operator": "greater_than_or_equal",
249
+ "value": 1
250
+ }
251
+ },
252
+ {
253
+ "id": "payment-intents-capture-ok",
254
+ "kind": "operation.count",
255
+ "operation": {
256
+ "packageId": "stripe",
257
+ "operationId": "payment_intents.capture"
258
+ },
259
+ "outcomes": [
260
+ "ok"
261
+ ],
262
+ "comparison": {
263
+ "operator": "greater_than_or_equal",
264
+ "value": 1
265
+ }
266
+ },
267
+ {
268
+ "id": "payment-intents-confirm-ok",
269
+ "kind": "operation.count",
270
+ "operation": {
271
+ "packageId": "stripe",
272
+ "operationId": "payment_intents.confirm"
273
+ },
274
+ "outcomes": [
275
+ "ok"
276
+ ],
277
+ "comparison": {
278
+ "operator": "greater_than_or_equal",
279
+ "value": 1
280
+ }
281
+ },
282
+ {
283
+ "id": "payment-intents-create-ok",
284
+ "kind": "operation.count",
285
+ "operation": {
286
+ "packageId": "stripe",
287
+ "operationId": "payment_intents.create"
288
+ },
289
+ "outcomes": [
290
+ "ok"
291
+ ],
292
+ "comparison": {
293
+ "operator": "greater_than_or_equal",
294
+ "value": 1
295
+ }
296
+ },
297
+ {
298
+ "id": "payment-intents-list-ok",
299
+ "kind": "operation.count",
300
+ "operation": {
301
+ "packageId": "stripe",
302
+ "operationId": "payment_intents.list"
303
+ },
304
+ "outcomes": [
305
+ "ok"
306
+ ],
307
+ "comparison": {
308
+ "operator": "greater_than_or_equal",
309
+ "value": 1
310
+ }
311
+ },
312
+ {
313
+ "id": "payment-intents-retrieve-ok",
314
+ "kind": "operation.count",
315
+ "operation": {
316
+ "packageId": "stripe",
317
+ "operationId": "payment_intents.retrieve"
318
+ },
319
+ "outcomes": [
320
+ "ok"
321
+ ],
322
+ "comparison": {
323
+ "operator": "greater_than_or_equal",
324
+ "value": 1
325
+ }
326
+ },
327
+ {
328
+ "id": "payment-methods-attach-ok",
329
+ "kind": "operation.count",
330
+ "operation": {
331
+ "packageId": "stripe",
332
+ "operationId": "payment_methods.attach"
333
+ },
334
+ "outcomes": [
335
+ "ok"
336
+ ],
337
+ "comparison": {
338
+ "operator": "greater_than_or_equal",
339
+ "value": 1
340
+ }
341
+ },
342
+ {
343
+ "id": "payment-methods-detach-ok",
344
+ "kind": "operation.count",
345
+ "operation": {
346
+ "packageId": "stripe",
347
+ "operationId": "payment_methods.detach"
348
+ },
349
+ "outcomes": [
350
+ "ok"
351
+ ],
352
+ "comparison": {
353
+ "operator": "greater_than_or_equal",
354
+ "value": 1
355
+ }
356
+ },
357
+ {
358
+ "id": "payment-methods-list-ok",
359
+ "kind": "operation.count",
360
+ "operation": {
361
+ "packageId": "stripe",
362
+ "operationId": "payment_methods.list"
363
+ },
364
+ "outcomes": [
365
+ "ok"
366
+ ],
367
+ "comparison": {
368
+ "operator": "greater_than_or_equal",
369
+ "value": 1
370
+ }
371
+ },
372
+ {
373
+ "id": "prices-create-ok",
374
+ "kind": "operation.count",
375
+ "operation": {
376
+ "packageId": "stripe",
377
+ "operationId": "prices.create"
378
+ },
379
+ "outcomes": [
380
+ "ok"
381
+ ],
382
+ "comparison": {
383
+ "operator": "greater_than_or_equal",
384
+ "value": 1
385
+ }
386
+ },
387
+ {
388
+ "id": "prices-list-ok",
389
+ "kind": "operation.count",
390
+ "operation": {
391
+ "packageId": "stripe",
392
+ "operationId": "prices.list"
393
+ },
394
+ "outcomes": [
395
+ "ok"
396
+ ],
397
+ "comparison": {
398
+ "operator": "greater_than_or_equal",
399
+ "value": 1
400
+ }
401
+ },
402
+ {
403
+ "id": "prices-retrieve-ok",
404
+ "kind": "operation.count",
405
+ "operation": {
406
+ "packageId": "stripe",
407
+ "operationId": "prices.retrieve"
408
+ },
409
+ "outcomes": [
410
+ "ok"
411
+ ],
412
+ "comparison": {
413
+ "operator": "greater_than_or_equal",
414
+ "value": 1
415
+ }
416
+ },
417
+ {
418
+ "id": "products-create-ok",
419
+ "kind": "operation.count",
420
+ "operation": {
421
+ "packageId": "stripe",
422
+ "operationId": "products.create"
423
+ },
424
+ "outcomes": [
425
+ "ok"
426
+ ],
427
+ "comparison": {
428
+ "operator": "greater_than_or_equal",
429
+ "value": 1
430
+ }
431
+ },
432
+ {
433
+ "id": "products-list-ok",
434
+ "kind": "operation.count",
435
+ "operation": {
436
+ "packageId": "stripe",
437
+ "operationId": "products.list"
438
+ },
439
+ "outcomes": [
440
+ "ok"
441
+ ],
442
+ "comparison": {
443
+ "operator": "greater_than_or_equal",
444
+ "value": 1
445
+ }
446
+ },
447
+ {
448
+ "id": "products-retrieve-ok",
449
+ "kind": "operation.count",
450
+ "operation": {
451
+ "packageId": "stripe",
452
+ "operationId": "products.retrieve"
453
+ },
454
+ "outcomes": [
455
+ "ok"
456
+ ],
457
+ "comparison": {
458
+ "operator": "greater_than_or_equal",
459
+ "value": 1
460
+ }
461
+ },
462
+ {
463
+ "id": "products-update-ok",
464
+ "kind": "operation.count",
465
+ "operation": {
466
+ "packageId": "stripe",
467
+ "operationId": "products.update"
468
+ },
469
+ "outcomes": [
470
+ "ok"
471
+ ],
472
+ "comparison": {
473
+ "operator": "greater_than_or_equal",
474
+ "value": 1
475
+ }
476
+ },
477
+ {
478
+ "id": "refunds-create-ok",
479
+ "kind": "operation.count",
480
+ "operation": {
481
+ "packageId": "stripe",
482
+ "operationId": "refunds.create"
483
+ },
484
+ "outcomes": [
485
+ "ok"
486
+ ],
487
+ "comparison": {
488
+ "operator": "greater_than_or_equal",
489
+ "value": 1
490
+ }
491
+ },
492
+ {
493
+ "id": "refunds-list-ok",
494
+ "kind": "operation.count",
495
+ "operation": {
496
+ "packageId": "stripe",
497
+ "operationId": "refunds.list"
498
+ },
499
+ "outcomes": [
500
+ "ok"
501
+ ],
502
+ "comparison": {
503
+ "operator": "greater_than_or_equal",
504
+ "value": 1
505
+ }
506
+ },
507
+ {
508
+ "id": "subscriptions-cancel-ok",
509
+ "kind": "operation.count",
510
+ "operation": {
511
+ "packageId": "stripe",
512
+ "operationId": "subscriptions.cancel"
513
+ },
514
+ "outcomes": [
515
+ "ok"
516
+ ],
517
+ "comparison": {
518
+ "operator": "greater_than_or_equal",
519
+ "value": 1
520
+ }
521
+ },
522
+ {
523
+ "id": "subscriptions-create-ok",
524
+ "kind": "operation.count",
525
+ "operation": {
526
+ "packageId": "stripe",
527
+ "operationId": "subscriptions.create"
528
+ },
529
+ "outcomes": [
530
+ "ok"
531
+ ],
532
+ "comparison": {
533
+ "operator": "greater_than_or_equal",
534
+ "value": 1
535
+ }
536
+ },
537
+ {
538
+ "id": "subscriptions-list-ok",
539
+ "kind": "operation.count",
540
+ "operation": {
541
+ "packageId": "stripe",
542
+ "operationId": "subscriptions.list"
543
+ },
544
+ "outcomes": [
545
+ "ok"
546
+ ],
547
+ "comparison": {
548
+ "operator": "greater_than_or_equal",
549
+ "value": 1
550
+ }
551
+ },
552
+ {
553
+ "id": "subscriptions-retrieve-ok",
554
+ "kind": "operation.count",
555
+ "operation": {
556
+ "packageId": "stripe",
557
+ "operationId": "subscriptions.retrieve"
558
+ },
559
+ "outcomes": [
560
+ "ok"
561
+ ],
562
+ "comparison": {
563
+ "operator": "greater_than_or_equal",
564
+ "value": 1
565
+ }
566
+ },
567
+ {
568
+ "id": "subscriptions-update-ok",
569
+ "kind": "operation.count",
570
+ "operation": {
571
+ "packageId": "stripe",
572
+ "operationId": "subscriptions.update"
573
+ },
574
+ "outcomes": [
575
+ "ok"
576
+ ],
577
+ "comparison": {
578
+ "operator": "greater_than_or_equal",
579
+ "value": 1
580
+ }
581
+ },
582
+ {
583
+ "id": "customers-create-error",
584
+ "kind": "operation.count",
585
+ "operation": {
586
+ "packageId": "stripe",
587
+ "operationId": "customers.create"
588
+ },
589
+ "outcomes": [
590
+ "tool_error"
591
+ ],
592
+ "comparison": {
593
+ "operator": "greater_than_or_equal",
594
+ "value": 1
595
+ }
596
+ },
597
+ {
598
+ "id": "customers-retrieve-error",
599
+ "kind": "operation.count",
600
+ "operation": {
601
+ "packageId": "stripe",
602
+ "operationId": "customers.retrieve"
603
+ },
604
+ "outcomes": [
605
+ "tool_error"
606
+ ],
607
+ "comparison": {
608
+ "operator": "greater_than_or_equal",
609
+ "value": 1
610
+ }
611
+ },
612
+ {
613
+ "id": "customers-update-error",
614
+ "kind": "operation.count",
615
+ "operation": {
616
+ "packageId": "stripe",
617
+ "operationId": "customers.update"
618
+ },
619
+ "outcomes": [
620
+ "tool_error"
621
+ ],
622
+ "comparison": {
623
+ "operator": "greater_than_or_equal",
624
+ "value": 1
625
+ }
626
+ },
627
+ {
628
+ "id": "customers-list-error",
629
+ "kind": "operation.count",
630
+ "operation": {
631
+ "packageId": "stripe",
632
+ "operationId": "customers.list"
633
+ },
634
+ "outcomes": [
635
+ "tool_error"
636
+ ],
637
+ "comparison": {
638
+ "operator": "greater_than_or_equal",
639
+ "value": 1
640
+ }
641
+ },
642
+ {
643
+ "id": "payment-methods-list-error",
644
+ "kind": "operation.count",
645
+ "operation": {
646
+ "packageId": "stripe",
647
+ "operationId": "payment_methods.list"
648
+ },
649
+ "outcomes": [
650
+ "tool_error"
651
+ ],
652
+ "comparison": {
653
+ "operator": "greater_than_or_equal",
654
+ "value": 1
655
+ }
656
+ },
657
+ {
658
+ "id": "payment-methods-attach-error",
659
+ "kind": "operation.count",
660
+ "operation": {
661
+ "packageId": "stripe",
662
+ "operationId": "payment_methods.attach"
663
+ },
664
+ "outcomes": [
665
+ "tool_error"
666
+ ],
667
+ "comparison": {
668
+ "operator": "greater_than_or_equal",
669
+ "value": 1
670
+ }
671
+ },
672
+ {
673
+ "id": "payment-methods-detach-error",
674
+ "kind": "operation.count",
675
+ "operation": {
676
+ "packageId": "stripe",
677
+ "operationId": "payment_methods.detach"
678
+ },
679
+ "outcomes": [
680
+ "tool_error"
681
+ ],
682
+ "comparison": {
683
+ "operator": "greater_than_or_equal",
684
+ "value": 1
685
+ }
686
+ },
687
+ {
688
+ "id": "payment-intents-create-error",
689
+ "kind": "operation.count",
690
+ "operation": {
691
+ "packageId": "stripe",
692
+ "operationId": "payment_intents.create"
693
+ },
694
+ "outcomes": [
695
+ "tool_error"
696
+ ],
697
+ "comparison": {
698
+ "operator": "greater_than_or_equal",
699
+ "value": 1
700
+ }
701
+ },
702
+ {
703
+ "id": "payment-intents-retrieve-error",
704
+ "kind": "operation.count",
705
+ "operation": {
706
+ "packageId": "stripe",
707
+ "operationId": "payment_intents.retrieve"
708
+ },
709
+ "outcomes": [
710
+ "tool_error"
711
+ ],
712
+ "comparison": {
713
+ "operator": "greater_than_or_equal",
714
+ "value": 1
715
+ }
716
+ },
717
+ {
718
+ "id": "payment-intents-list-error",
719
+ "kind": "operation.count",
720
+ "operation": {
721
+ "packageId": "stripe",
722
+ "operationId": "payment_intents.list"
723
+ },
724
+ "outcomes": [
725
+ "tool_error"
726
+ ],
727
+ "comparison": {
728
+ "operator": "greater_than_or_equal",
729
+ "value": 1
730
+ }
731
+ },
732
+ {
733
+ "id": "payment-intents-confirm-error",
734
+ "kind": "operation.count",
735
+ "operation": {
736
+ "packageId": "stripe",
737
+ "operationId": "payment_intents.confirm"
738
+ },
739
+ "outcomes": [
740
+ "tool_error"
741
+ ],
742
+ "comparison": {
743
+ "operator": "greater_than_or_equal",
744
+ "value": 1
745
+ }
746
+ },
747
+ {
748
+ "id": "payment-intents-capture-error",
749
+ "kind": "operation.count",
750
+ "operation": {
751
+ "packageId": "stripe",
752
+ "operationId": "payment_intents.capture"
753
+ },
754
+ "outcomes": [
755
+ "tool_error"
756
+ ],
757
+ "comparison": {
758
+ "operator": "greater_than_or_equal",
759
+ "value": 1
760
+ }
761
+ },
762
+ {
763
+ "id": "payment-intents-cancel-error",
764
+ "kind": "operation.count",
765
+ "operation": {
766
+ "packageId": "stripe",
767
+ "operationId": "payment_intents.cancel"
768
+ },
769
+ "outcomes": [
770
+ "tool_error"
771
+ ],
772
+ "comparison": {
773
+ "operator": "greater_than_or_equal",
774
+ "value": 1
775
+ }
776
+ },
777
+ {
778
+ "id": "charges-retrieve-error",
779
+ "kind": "operation.count",
780
+ "operation": {
781
+ "packageId": "stripe",
782
+ "operationId": "charges.retrieve"
783
+ },
784
+ "outcomes": [
785
+ "tool_error"
786
+ ],
787
+ "comparison": {
788
+ "operator": "greater_than_or_equal",
789
+ "value": 1
790
+ }
791
+ },
792
+ {
793
+ "id": "charges-list-error",
794
+ "kind": "operation.count",
795
+ "operation": {
796
+ "packageId": "stripe",
797
+ "operationId": "charges.list"
798
+ },
799
+ "outcomes": [
800
+ "tool_error"
801
+ ],
802
+ "comparison": {
803
+ "operator": "greater_than_or_equal",
804
+ "value": 1
805
+ }
806
+ },
807
+ {
808
+ "id": "refunds-create-error",
809
+ "kind": "operation.count",
810
+ "operation": {
811
+ "packageId": "stripe",
812
+ "operationId": "refunds.create"
813
+ },
814
+ "outcomes": [
815
+ "tool_error"
816
+ ],
817
+ "comparison": {
818
+ "operator": "greater_than_or_equal",
819
+ "value": 1
820
+ }
821
+ },
822
+ {
823
+ "id": "refunds-list-error",
824
+ "kind": "operation.count",
825
+ "operation": {
826
+ "packageId": "stripe",
827
+ "operationId": "refunds.list"
828
+ },
829
+ "outcomes": [
830
+ "tool_error"
831
+ ],
832
+ "comparison": {
833
+ "operator": "greater_than_or_equal",
834
+ "value": 1
835
+ }
836
+ },
837
+ {
838
+ "id": "products-create-error",
839
+ "kind": "operation.count",
840
+ "operation": {
841
+ "packageId": "stripe",
842
+ "operationId": "products.create"
843
+ },
844
+ "outcomes": [
845
+ "tool_error"
846
+ ],
847
+ "comparison": {
848
+ "operator": "greater_than_or_equal",
849
+ "value": 1
850
+ }
851
+ },
852
+ {
853
+ "id": "products-retrieve-error",
854
+ "kind": "operation.count",
855
+ "operation": {
856
+ "packageId": "stripe",
857
+ "operationId": "products.retrieve"
858
+ },
859
+ "outcomes": [
860
+ "tool_error"
861
+ ],
862
+ "comparison": {
863
+ "operator": "greater_than_or_equal",
864
+ "value": 1
865
+ }
866
+ },
867
+ {
868
+ "id": "products-update-error",
869
+ "kind": "operation.count",
870
+ "operation": {
871
+ "packageId": "stripe",
872
+ "operationId": "products.update"
873
+ },
874
+ "outcomes": [
875
+ "tool_error"
876
+ ],
877
+ "comparison": {
878
+ "operator": "greater_than_or_equal",
879
+ "value": 1
880
+ }
881
+ },
882
+ {
883
+ "id": "products-list-error",
884
+ "kind": "operation.count",
885
+ "operation": {
886
+ "packageId": "stripe",
887
+ "operationId": "products.list"
888
+ },
889
+ "outcomes": [
890
+ "tool_error"
891
+ ],
892
+ "comparison": {
893
+ "operator": "greater_than_or_equal",
894
+ "value": 1
895
+ }
896
+ },
897
+ {
898
+ "id": "prices-create-error",
899
+ "kind": "operation.count",
900
+ "operation": {
901
+ "packageId": "stripe",
902
+ "operationId": "prices.create"
903
+ },
904
+ "outcomes": [
905
+ "tool_error"
906
+ ],
907
+ "comparison": {
908
+ "operator": "greater_than_or_equal",
909
+ "value": 1
910
+ }
911
+ },
912
+ {
913
+ "id": "prices-retrieve-error",
914
+ "kind": "operation.count",
915
+ "operation": {
916
+ "packageId": "stripe",
917
+ "operationId": "prices.retrieve"
918
+ },
919
+ "outcomes": [
920
+ "tool_error"
921
+ ],
922
+ "comparison": {
923
+ "operator": "greater_than_or_equal",
924
+ "value": 1
925
+ }
926
+ },
927
+ {
928
+ "id": "prices-list-error",
929
+ "kind": "operation.count",
930
+ "operation": {
931
+ "packageId": "stripe",
932
+ "operationId": "prices.list"
933
+ },
934
+ "outcomes": [
935
+ "tool_error"
936
+ ],
937
+ "comparison": {
938
+ "operator": "greater_than_or_equal",
939
+ "value": 1
940
+ }
941
+ },
942
+ {
943
+ "id": "invoice-items-create-error",
944
+ "kind": "operation.count",
945
+ "operation": {
946
+ "packageId": "stripe",
947
+ "operationId": "invoice_items.create"
948
+ },
949
+ "outcomes": [
950
+ "tool_error"
951
+ ],
952
+ "comparison": {
953
+ "operator": "greater_than_or_equal",
954
+ "value": 1
955
+ }
956
+ },
957
+ {
958
+ "id": "invoices-create-error",
959
+ "kind": "operation.count",
960
+ "operation": {
961
+ "packageId": "stripe",
962
+ "operationId": "invoices.create"
963
+ },
964
+ "outcomes": [
965
+ "tool_error"
966
+ ],
967
+ "comparison": {
968
+ "operator": "greater_than_or_equal",
969
+ "value": 1
970
+ }
971
+ },
972
+ {
973
+ "id": "invoices-retrieve-error",
974
+ "kind": "operation.count",
975
+ "operation": {
976
+ "packageId": "stripe",
977
+ "operationId": "invoices.retrieve"
978
+ },
979
+ "outcomes": [
980
+ "tool_error"
981
+ ],
982
+ "comparison": {
983
+ "operator": "greater_than_or_equal",
984
+ "value": 1
985
+ }
986
+ },
987
+ {
988
+ "id": "invoices-list-error",
989
+ "kind": "operation.count",
990
+ "operation": {
991
+ "packageId": "stripe",
992
+ "operationId": "invoices.list"
993
+ },
994
+ "outcomes": [
995
+ "tool_error"
996
+ ],
997
+ "comparison": {
998
+ "operator": "greater_than_or_equal",
999
+ "value": 1
1000
+ }
1001
+ },
1002
+ {
1003
+ "id": "invoices-finalize-error",
1004
+ "kind": "operation.count",
1005
+ "operation": {
1006
+ "packageId": "stripe",
1007
+ "operationId": "invoices.finalize"
1008
+ },
1009
+ "outcomes": [
1010
+ "tool_error"
1011
+ ],
1012
+ "comparison": {
1013
+ "operator": "greater_than_or_equal",
1014
+ "value": 1
1015
+ }
1016
+ },
1017
+ {
1018
+ "id": "invoices-pay-error",
1019
+ "kind": "operation.count",
1020
+ "operation": {
1021
+ "packageId": "stripe",
1022
+ "operationId": "invoices.pay"
1023
+ },
1024
+ "outcomes": [
1025
+ "tool_error"
1026
+ ],
1027
+ "comparison": {
1028
+ "operator": "greater_than_or_equal",
1029
+ "value": 1
1030
+ }
1031
+ },
1032
+ {
1033
+ "id": "invoices-void-error",
1034
+ "kind": "operation.count",
1035
+ "operation": {
1036
+ "packageId": "stripe",
1037
+ "operationId": "invoices.void"
1038
+ },
1039
+ "outcomes": [
1040
+ "tool_error"
1041
+ ],
1042
+ "comparison": {
1043
+ "operator": "greater_than_or_equal",
1044
+ "value": 1
1045
+ }
1046
+ },
1047
+ {
1048
+ "id": "subscriptions-create-error",
1049
+ "kind": "operation.count",
1050
+ "operation": {
1051
+ "packageId": "stripe",
1052
+ "operationId": "subscriptions.create"
1053
+ },
1054
+ "outcomes": [
1055
+ "tool_error"
1056
+ ],
1057
+ "comparison": {
1058
+ "operator": "greater_than_or_equal",
1059
+ "value": 1
1060
+ }
1061
+ },
1062
+ {
1063
+ "id": "subscriptions-retrieve-error",
1064
+ "kind": "operation.count",
1065
+ "operation": {
1066
+ "packageId": "stripe",
1067
+ "operationId": "subscriptions.retrieve"
1068
+ },
1069
+ "outcomes": [
1070
+ "tool_error"
1071
+ ],
1072
+ "comparison": {
1073
+ "operator": "greater_than_or_equal",
1074
+ "value": 1
1075
+ }
1076
+ },
1077
+ {
1078
+ "id": "subscriptions-list-error",
1079
+ "kind": "operation.count",
1080
+ "operation": {
1081
+ "packageId": "stripe",
1082
+ "operationId": "subscriptions.list"
1083
+ },
1084
+ "outcomes": [
1085
+ "tool_error"
1086
+ ],
1087
+ "comparison": {
1088
+ "operator": "greater_than_or_equal",
1089
+ "value": 1
1090
+ }
1091
+ },
1092
+ {
1093
+ "id": "subscriptions-update-error",
1094
+ "kind": "operation.count",
1095
+ "operation": {
1096
+ "packageId": "stripe",
1097
+ "operationId": "subscriptions.update"
1098
+ },
1099
+ "outcomes": [
1100
+ "tool_error"
1101
+ ],
1102
+ "comparison": {
1103
+ "operator": "greater_than_or_equal",
1104
+ "value": 1
1105
+ }
1106
+ },
1107
+ {
1108
+ "id": "subscriptions-cancel-error",
1109
+ "kind": "operation.count",
1110
+ "operation": {
1111
+ "packageId": "stripe",
1112
+ "operationId": "subscriptions.cancel"
1113
+ },
1114
+ "outcomes": [
1115
+ "tool_error"
1116
+ ],
1117
+ "comparison": {
1118
+ "operator": "greater_than_or_equal",
1119
+ "value": 1
1120
+ }
1121
+ },
1122
+ {
1123
+ "id": "balance-retrieve-error",
1124
+ "kind": "operation.count",
1125
+ "operation": {
1126
+ "packageId": "stripe",
1127
+ "operationId": "balance.retrieve"
1128
+ },
1129
+ "outcomes": [
1130
+ "tool_error"
1131
+ ],
1132
+ "comparison": {
1133
+ "operator": "greater_than_or_equal",
1134
+ "value": 1
1135
+ }
1136
+ },
1137
+ {
1138
+ "id": "payment_intent-succeeded-events",
1139
+ "kind": "event.count",
1140
+ "event": {
1141
+ "packageId": "stripe",
1142
+ "eventId": "payment_intent.succeeded"
1143
+ },
1144
+ "phase": "emitted",
1145
+ "comparison": {
1146
+ "operator": "greater_than_or_equal",
1147
+ "value": 5
1148
+ }
1149
+ },
1150
+ {
1151
+ "id": "payment_intent-declined-events",
1152
+ "kind": "event.count",
1153
+ "event": {
1154
+ "packageId": "stripe",
1155
+ "eventId": "payment_intent.declined"
1156
+ },
1157
+ "phase": "emitted",
1158
+ "comparison": {
1159
+ "operator": "greater_than_or_equal",
1160
+ "value": 1
1161
+ }
1162
+ },
1163
+ {
1164
+ "id": "invoice-paid-events",
1165
+ "kind": "event.count",
1166
+ "event": {
1167
+ "packageId": "stripe",
1168
+ "eventId": "invoice.paid"
1169
+ },
1170
+ "phase": "emitted",
1171
+ "comparison": {
1172
+ "operator": "greater_than_or_equal",
1173
+ "value": 4
1174
+ }
1175
+ },
1176
+ {
1177
+ "id": "charge-refunded-events",
1178
+ "kind": "event.count",
1179
+ "event": {
1180
+ "packageId": "stripe",
1181
+ "eventId": "charge.refunded"
1182
+ },
1183
+ "phase": "emitted",
1184
+ "comparison": {
1185
+ "operator": "equals",
1186
+ "value": 2
1187
+ }
1188
+ },
1189
+ {
1190
+ "id": "customer-subscription-deleted-events",
1191
+ "kind": "event.count",
1192
+ "event": {
1193
+ "packageId": "stripe",
1194
+ "eventId": "customer.subscription.deleted"
1195
+ },
1196
+ "phase": "emitted",
1197
+ "comparison": {
1198
+ "operator": "equals",
1199
+ "value": 1
1200
+ }
1201
+ },
1202
+ {
1203
+ "id": "voided-invoice",
1204
+ "kind": "state.value",
1205
+ "packageId": "stripe",
1206
+ "namespace": "invoices",
1207
+ "rowId": "in_0000B63PkHP23Q",
1208
+ "path": [
1209
+ "status"
1210
+ ],
1211
+ "comparison": {
1212
+ "operator": "equals",
1213
+ "value": "void"
1214
+ }
1215
+ },
1216
+ {
1217
+ "id": "voided-invoice-intent-canceled",
1218
+ "kind": "state.value",
1219
+ "packageId": "stripe",
1220
+ "namespace": "payment_intents",
1221
+ "rowId": "pi_0000360C67XQ0D",
1222
+ "path": [
1223
+ "status"
1224
+ ],
1225
+ "comparison": {
1226
+ "operator": "equals",
1227
+ "value": "canceled"
1228
+ }
1229
+ },
1230
+ {
1231
+ "id": "voided-invoice-intent-reason",
1232
+ "kind": "state.value",
1233
+ "packageId": "stripe",
1234
+ "namespace": "payment_intents",
1235
+ "rowId": "pi_0000360C67XQ0D",
1236
+ "path": [
1237
+ "cancellation_reason"
1238
+ ],
1239
+ "comparison": {
1240
+ "operator": "equals",
1241
+ "value": "void_invoice"
1242
+ }
1243
+ },
1244
+ {
1245
+ "id": "uncaptured-charge-untouched",
1246
+ "kind": "state.value",
1247
+ "packageId": "stripe",
1248
+ "namespace": "charges",
1249
+ "rowId": "ch_00005S1OuYvw1Q",
1250
+ "path": [
1251
+ "captured"
1252
+ ],
1253
+ "comparison": {
1254
+ "operator": "equals",
1255
+ "value": false
1256
+ }
1257
+ },
1258
+ {
1259
+ "id": "pending-items-customer-sequence",
1260
+ "kind": "state.value",
1261
+ "packageId": "stripe",
1262
+ "namespace": "customers",
1263
+ "rowId": "cus_00000A2c4gHd2a",
1264
+ "path": [
1265
+ "next_invoice_sequence"
1266
+ ],
1267
+ "comparison": {
1268
+ "operator": "equals",
1269
+ "value": 2
1270
+ }
1271
+ },
1272
+ {
1273
+ "id": "customers-count",
1274
+ "kind": "state.count",
1275
+ "packageId": "stripe",
1276
+ "namespace": "customers",
1277
+ "comparison": {
1278
+ "operator": "equals",
1279
+ "value": 14
1280
+ }
1281
+ },
1282
+ {
1283
+ "id": "products-count",
1284
+ "kind": "state.count",
1285
+ "packageId": "stripe",
1286
+ "namespace": "products",
1287
+ "comparison": {
1288
+ "operator": "equals",
1289
+ "value": 7
1290
+ }
1291
+ },
1292
+ {
1293
+ "id": "prices-count",
1294
+ "kind": "state.count",
1295
+ "packageId": "stripe",
1296
+ "namespace": "prices",
1297
+ "comparison": {
1298
+ "operator": "equals",
1299
+ "value": 12
1300
+ }
1301
+ },
1302
+ {
1303
+ "id": "refunds-count",
1304
+ "kind": "state.count",
1305
+ "packageId": "stripe",
1306
+ "namespace": "refunds",
1307
+ "comparison": {
1308
+ "operator": "equals",
1309
+ "value": 6
1310
+ }
1311
+ },
1312
+ {
1313
+ "id": "subscriptions-count",
1314
+ "kind": "state.count",
1315
+ "packageId": "stripe",
1316
+ "namespace": "subscriptions",
1317
+ "comparison": {
1318
+ "operator": "equals",
1319
+ "value": 11
1320
+ }
1321
+ },
1322
+ {
1323
+ "id": "order",
1324
+ "kind": "operation.order",
1325
+ "sequence": [
1326
+ {
1327
+ "anyOf": [
1328
+ {
1329
+ "packageId": "stripe",
1330
+ "operationId": "balance.retrieve"
1331
+ }
1332
+ ]
1333
+ },
1334
+ {
1335
+ "anyOf": [
1336
+ {
1337
+ "packageId": "stripe",
1338
+ "operationId": "customers.create"
1339
+ }
1340
+ ]
1341
+ },
1342
+ {
1343
+ "anyOf": [
1344
+ {
1345
+ "packageId": "stripe",
1346
+ "operationId": "payment_intents.create"
1347
+ }
1348
+ ]
1349
+ },
1350
+ {
1351
+ "anyOf": [
1352
+ {
1353
+ "packageId": "stripe",
1354
+ "operationId": "payment_intents.confirm"
1355
+ }
1356
+ ]
1357
+ },
1358
+ {
1359
+ "anyOf": [
1360
+ {
1361
+ "packageId": "stripe",
1362
+ "operationId": "refunds.create"
1363
+ }
1364
+ ]
1365
+ },
1366
+ {
1367
+ "anyOf": [
1368
+ {
1369
+ "packageId": "stripe",
1370
+ "operationId": "invoices.finalize"
1371
+ }
1372
+ ]
1373
+ },
1374
+ {
1375
+ "anyOf": [
1376
+ {
1377
+ "packageId": "stripe",
1378
+ "operationId": "invoices.pay"
1379
+ }
1380
+ ]
1381
+ },
1382
+ {
1383
+ "anyOf": [
1384
+ {
1385
+ "packageId": "stripe",
1386
+ "operationId": "subscriptions.create"
1387
+ }
1388
+ ]
1389
+ },
1390
+ {
1391
+ "anyOf": [
1392
+ {
1393
+ "packageId": "stripe",
1394
+ "operationId": "subscriptions.cancel"
1395
+ }
1396
+ ]
1397
+ }
1398
+ ]
1399
+ }
1400
+ ]
1401
+ }