@facto-to/card 0.0.0-stage → 0.0.1-beta.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 (67) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/LICENSE +202 -0
  3. package/NOTICE +5 -0
  4. package/README.md +63 -2
  5. package/dist/card-inbox-DzsHFRPT.d.cts +312 -0
  6. package/dist/card-inbox-DzsHFRPT.d.ts +312 -0
  7. package/dist/chunk-52SWPAJL.js +2 -0
  8. package/dist/cli/index.js +6 -0
  9. package/dist/docs/README.md +9 -0
  10. package/dist/docs/authentication.md +96 -0
  11. package/dist/docs/authorizations.md +182 -0
  12. package/dist/docs/concepts.md +35 -0
  13. package/dist/docs/deliveries.md +170 -0
  14. package/dist/docs/errors.md +100 -0
  15. package/dist/docs/getting-access.md +56 -0
  16. package/dist/docs/idempotency.md +78 -0
  17. package/dist/docs/integration-checklist.md +15 -0
  18. package/dist/docs/integration.zh.md +59 -0
  19. package/dist/docs/interlace-adapter-v1.md +87 -0
  20. package/dist/docs/interlace-adapter-v1.zh.md +87 -0
  21. package/dist/docs/not-yet-available.md +13 -0
  22. package/dist/docs/quickstart.md +126 -0
  23. package/dist/docs/reconciliation.md +86 -0
  24. package/dist/docs/reference/api.md +1728 -0
  25. package/dist/docs/reference/events.md +639 -0
  26. package/dist/docs/reference/schemas.json +5000 -0
  27. package/dist/docs/reference/schemas.md +865 -0
  28. package/dist/docs/simulator.md +235 -0
  29. package/dist/docs/versioning.md +9 -0
  30. package/dist/index.cjs +3 -0
  31. package/dist/index.d.cts +840 -0
  32. package/dist/index.d.ts +840 -0
  33. package/dist/index.js +2 -0
  34. package/dist/source/build.mjs +5 -0
  35. package/dist/source/package.json +16 -0
  36. package/dist/source/src/connect/cli/deliveries.ts +48 -0
  37. package/dist/source/src/connect/cli/index.ts +57 -0
  38. package/dist/source/src/connect/server/card-client.ts +834 -0
  39. package/dist/source/src/connect/server/card-delivery.ts +301 -0
  40. package/dist/source/src/connect/server/card-events.ts +473 -0
  41. package/dist/source/src/connect/server/card-idempotency.ts +27 -0
  42. package/dist/source/src/connect/server/card-inbox.ts +82 -0
  43. package/dist/source/src/connect/server/card-intent-token.ts +588 -0
  44. package/dist/source/src/connect/server/card-polling.ts +69 -0
  45. package/dist/source/src/connect/server/card-signing.ts +115 -0
  46. package/dist/source/src/connect/server/card-transport.ts +282 -0
  47. package/dist/source/src/connect/server/errors.ts +280 -0
  48. package/dist/source/src/connect/server/fixtures/engine/card-events.synthetic.ts +84 -0
  49. package/dist/source/src/connect/server/retry-after.ts +12 -0
  50. package/dist/source/src/connect/testing/card-inbox.ts +124 -0
  51. package/dist/source/src/connect/testing/card-scenarios.ts +243 -0
  52. package/dist/source/src/connect/testing/card-simulator-vectors.ts +262 -0
  53. package/dist/source/src/connect/testing/card-simulator.ts +531 -0
  54. package/dist/source/src/connect/testing/interlace-card-transactions.ts +704 -0
  55. package/dist/source/src/connect/testing/pure-sha256.ts +123 -0
  56. package/dist/source/src/connect/wire.d.ts +472 -0
  57. package/dist/source/src/index.ts +135 -0
  58. package/dist/source/src/testing-browser.ts +24 -0
  59. package/dist/source/src/testing.ts +26 -0
  60. package/dist/source/tsconfig.json +20 -0
  61. package/dist/testing-browser.d.ts +220 -0
  62. package/dist/testing-browser.js +5 -0
  63. package/dist/testing.cjs +6 -0
  64. package/dist/testing.d.cts +199 -0
  65. package/dist/testing.d.ts +199 -0
  66. package/dist/testing.js +5 -0
  67. package/package.json +60 -4
@@ -0,0 +1,5000 @@
1
+ {
2
+ "paths": {
3
+ "/api/card/authorizations": {
4
+ "post": {
5
+ "operationId": "createAuthorization",
6
+ "parameters": [
7
+ {
8
+ "in": "header",
9
+ "name": "Idempotency-Key",
10
+ "required": true,
11
+ "schema": {
12
+ "maxLength": 255,
13
+ "minLength": 16,
14
+ "type": "string"
15
+ }
16
+ }
17
+ ],
18
+ "requestBody": {
19
+ "content": {
20
+ "application/json": {
21
+ "schema": {
22
+ "$ref": "#/components/schemas/AuthorizationCreateInput"
23
+ }
24
+ }
25
+ },
26
+ "required": true
27
+ },
28
+ "responses": {
29
+ "200": {
30
+ "content": {
31
+ "application/json": {
32
+ "schema": {
33
+ "oneOf": [
34
+ {
35
+ "$ref": "#/components/schemas/AuthorizationAccepted"
36
+ },
37
+ {
38
+ "$ref": "#/components/schemas/SynchronousAuthorizationApproved"
39
+ }
40
+ ]
41
+ }
42
+ }
43
+ },
44
+ "headers": {
45
+ "Cache-Control": {
46
+ "schema": {
47
+ "$ref": "#/components/schemas/CardNoStoreHeader"
48
+ }
49
+ }
50
+ }
51
+ },
52
+ "400": {
53
+ "content": {
54
+ "application/json": {
55
+ "schema": {
56
+ "$ref": "#/components/schemas/CardError"
57
+ }
58
+ }
59
+ },
60
+ "headers": {
61
+ "Cache-Control": {
62
+ "schema": {
63
+ "$ref": "#/components/schemas/CardNoStoreHeader"
64
+ }
65
+ }
66
+ }
67
+ },
68
+ "401": {
69
+ "content": {
70
+ "application/json": {
71
+ "schema": {
72
+ "$ref": "#/components/schemas/CardError"
73
+ }
74
+ }
75
+ },
76
+ "headers": {
77
+ "Cache-Control": {
78
+ "schema": {
79
+ "$ref": "#/components/schemas/CardNoStoreHeader"
80
+ }
81
+ }
82
+ }
83
+ },
84
+ "402": {
85
+ "content": {
86
+ "application/json": {
87
+ "schema": {
88
+ "$ref": "#/components/schemas/AuthorizationError"
89
+ }
90
+ }
91
+ },
92
+ "headers": {
93
+ "Cache-Control": {
94
+ "schema": {
95
+ "$ref": "#/components/schemas/CardNoStoreHeader"
96
+ }
97
+ }
98
+ }
99
+ },
100
+ "403": {
101
+ "content": {
102
+ "application/json": {
103
+ "schema": {
104
+ "$ref": "#/components/schemas/AuthorizationError"
105
+ }
106
+ }
107
+ },
108
+ "headers": {
109
+ "Cache-Control": {
110
+ "schema": {
111
+ "$ref": "#/components/schemas/CardNoStoreHeader"
112
+ }
113
+ }
114
+ }
115
+ },
116
+ "404": {
117
+ "content": {
118
+ "application/json": {
119
+ "schema": {
120
+ "$ref": "#/components/schemas/CardError"
121
+ }
122
+ }
123
+ },
124
+ "headers": {
125
+ "Cache-Control": {
126
+ "schema": {
127
+ "$ref": "#/components/schemas/CardNoStoreHeader"
128
+ }
129
+ }
130
+ }
131
+ },
132
+ "408": {
133
+ "content": {
134
+ "application/json": {
135
+ "schema": {
136
+ "oneOf": [
137
+ {
138
+ "$ref": "#/components/schemas/SynchronousAuthorizationDeclined"
139
+ },
140
+ {
141
+ "$ref": "#/components/schemas/AuthorizationDeadlineExceeded"
142
+ }
143
+ ]
144
+ }
145
+ }
146
+ },
147
+ "headers": {
148
+ "Cache-Control": {
149
+ "schema": {
150
+ "$ref": "#/components/schemas/CardNoStoreHeader"
151
+ }
152
+ }
153
+ }
154
+ },
155
+ "409": {
156
+ "content": {
157
+ "application/json": {
158
+ "schema": {
159
+ "$ref": "#/components/schemas/AuthorizationError"
160
+ }
161
+ }
162
+ },
163
+ "headers": {
164
+ "Cache-Control": {
165
+ "schema": {
166
+ "$ref": "#/components/schemas/CardNoStoreHeader"
167
+ }
168
+ }
169
+ }
170
+ },
171
+ "422": {
172
+ "content": {
173
+ "application/json": {
174
+ "schema": {
175
+ "oneOf": [
176
+ {
177
+ "$ref": "#/components/schemas/AuthorizationError"
178
+ },
179
+ {
180
+ "$ref": "#/components/schemas/SynchronousAuthorizationDeclined"
181
+ }
182
+ ]
183
+ }
184
+ }
185
+ },
186
+ "headers": {
187
+ "Cache-Control": {
188
+ "schema": {
189
+ "$ref": "#/components/schemas/CardNoStoreHeader"
190
+ }
191
+ }
192
+ }
193
+ },
194
+ "423": {
195
+ "content": {
196
+ "application/json": {
197
+ "schema": {
198
+ "$ref": "#/components/schemas/AuthorizationError"
199
+ }
200
+ }
201
+ },
202
+ "headers": {
203
+ "Cache-Control": {
204
+ "schema": {
205
+ "$ref": "#/components/schemas/CardNoStoreHeader"
206
+ }
207
+ }
208
+ }
209
+ },
210
+ "429": {
211
+ "content": {
212
+ "application/json": {
213
+ "schema": {
214
+ "$ref": "#/components/schemas/AuthorizationError"
215
+ }
216
+ }
217
+ },
218
+ "headers": {
219
+ "Cache-Control": {
220
+ "schema": {
221
+ "$ref": "#/components/schemas/CardNoStoreHeader"
222
+ }
223
+ }
224
+ }
225
+ },
226
+ "500": {
227
+ "content": {
228
+ "application/json": {
229
+ "schema": {
230
+ "$ref": "#/components/schemas/AuthorizationError"
231
+ }
232
+ }
233
+ },
234
+ "headers": {
235
+ "Cache-Control": {
236
+ "schema": {
237
+ "$ref": "#/components/schemas/CardNoStoreHeader"
238
+ }
239
+ }
240
+ }
241
+ },
242
+ "503": {
243
+ "content": {
244
+ "application/json": {
245
+ "schema": {
246
+ "$ref": "#/components/schemas/CardError"
247
+ }
248
+ }
249
+ },
250
+ "headers": {
251
+ "Cache-Control": {
252
+ "schema": {
253
+ "$ref": "#/components/schemas/CardNoStoreHeader"
254
+ }
255
+ }
256
+ }
257
+ }
258
+ },
259
+ "security": [
260
+ {
261
+ "ProviderKey": [],
262
+ "ProviderNonce": [],
263
+ "ProviderSignature": [],
264
+ "ProviderTimestamp": []
265
+ }
266
+ ]
267
+ }
268
+ },
269
+ "/api/card/authorizations/lookup": {
270
+ "post": {
271
+ "operationId": "lookupAuthorization",
272
+ "requestBody": {
273
+ "content": {
274
+ "application/json": {
275
+ "schema": {
276
+ "$ref": "#/components/schemas/AuthorizationLookupInput"
277
+ }
278
+ }
279
+ },
280
+ "required": true
281
+ },
282
+ "responses": {
283
+ "200": {
284
+ "content": {
285
+ "application/json": {
286
+ "schema": {
287
+ "$ref": "#/components/schemas/AuthorizationLookupResult"
288
+ }
289
+ }
290
+ },
291
+ "headers": {
292
+ "Cache-Control": {
293
+ "schema": {
294
+ "$ref": "#/components/schemas/CardNoStoreHeader"
295
+ }
296
+ }
297
+ }
298
+ },
299
+ "400": {
300
+ "content": {
301
+ "application/json": {
302
+ "schema": {
303
+ "$ref": "#/components/schemas/CardError"
304
+ }
305
+ }
306
+ },
307
+ "headers": {
308
+ "Cache-Control": {
309
+ "schema": {
310
+ "$ref": "#/components/schemas/CardNoStoreHeader"
311
+ }
312
+ }
313
+ }
314
+ },
315
+ "401": {
316
+ "content": {
317
+ "application/json": {
318
+ "schema": {
319
+ "$ref": "#/components/schemas/CardError"
320
+ }
321
+ }
322
+ },
323
+ "headers": {
324
+ "Cache-Control": {
325
+ "schema": {
326
+ "$ref": "#/components/schemas/CardNoStoreHeader"
327
+ }
328
+ }
329
+ }
330
+ },
331
+ "403": {
332
+ "content": {
333
+ "application/json": {
334
+ "schema": {
335
+ "$ref": "#/components/schemas/CardError"
336
+ }
337
+ }
338
+ },
339
+ "headers": {
340
+ "Cache-Control": {
341
+ "schema": {
342
+ "$ref": "#/components/schemas/CardNoStoreHeader"
343
+ }
344
+ }
345
+ }
346
+ },
347
+ "404": {
348
+ "content": {
349
+ "application/json": {
350
+ "schema": {
351
+ "$ref": "#/components/schemas/CardError"
352
+ }
353
+ }
354
+ },
355
+ "headers": {
356
+ "Cache-Control": {
357
+ "schema": {
358
+ "$ref": "#/components/schemas/CardNoStoreHeader"
359
+ }
360
+ }
361
+ }
362
+ },
363
+ "409": {
364
+ "content": {
365
+ "application/json": {
366
+ "schema": {
367
+ "$ref": "#/components/schemas/CardError"
368
+ }
369
+ }
370
+ },
371
+ "headers": {
372
+ "Cache-Control": {
373
+ "schema": {
374
+ "$ref": "#/components/schemas/CardNoStoreHeader"
375
+ }
376
+ }
377
+ }
378
+ },
379
+ "503": {
380
+ "content": {
381
+ "application/json": {
382
+ "schema": {
383
+ "$ref": "#/components/schemas/CardError"
384
+ }
385
+ }
386
+ },
387
+ "headers": {
388
+ "Cache-Control": {
389
+ "schema": {
390
+ "$ref": "#/components/schemas/CardNoStoreHeader"
391
+ }
392
+ }
393
+ }
394
+ }
395
+ },
396
+ "security": [
397
+ {
398
+ "ProviderKey": [],
399
+ "ProviderNonce": [],
400
+ "ProviderSignature": [],
401
+ "ProviderTimestamp": []
402
+ }
403
+ ]
404
+ }
405
+ },
406
+ "/api/card/authorizations/{external_id}/facts": {
407
+ "post": {
408
+ "operationId": "recordAuthorizationFact",
409
+ "parameters": [
410
+ {
411
+ "in": "path",
412
+ "name": "external_id",
413
+ "required": true,
414
+ "schema": {
415
+ "maxLength": 256,
416
+ "minLength": 1,
417
+ "type": "string"
418
+ }
419
+ },
420
+ {
421
+ "in": "header",
422
+ "name": "Idempotency-Key",
423
+ "required": true,
424
+ "schema": {
425
+ "maxLength": 255,
426
+ "minLength": 16,
427
+ "type": "string"
428
+ }
429
+ }
430
+ ],
431
+ "requestBody": {
432
+ "content": {
433
+ "application/json": {
434
+ "schema": {
435
+ "$ref": "#/components/schemas/AuthorizationFactInput"
436
+ }
437
+ }
438
+ },
439
+ "required": true
440
+ },
441
+ "responses": {
442
+ "200": {
443
+ "content": {
444
+ "application/json": {
445
+ "schema": {
446
+ "$ref": "#/components/schemas/AuthorizationFactReceipt"
447
+ }
448
+ }
449
+ },
450
+ "headers": {
451
+ "Cache-Control": {
452
+ "schema": {
453
+ "$ref": "#/components/schemas/CardNoStoreHeader"
454
+ }
455
+ }
456
+ }
457
+ },
458
+ "400": {
459
+ "content": {
460
+ "application/json": {
461
+ "schema": {
462
+ "$ref": "#/components/schemas/CardError"
463
+ }
464
+ }
465
+ },
466
+ "headers": {
467
+ "Cache-Control": {
468
+ "schema": {
469
+ "$ref": "#/components/schemas/CardNoStoreHeader"
470
+ }
471
+ }
472
+ }
473
+ },
474
+ "401": {
475
+ "content": {
476
+ "application/json": {
477
+ "schema": {
478
+ "$ref": "#/components/schemas/CardError"
479
+ }
480
+ }
481
+ },
482
+ "headers": {
483
+ "Cache-Control": {
484
+ "schema": {
485
+ "$ref": "#/components/schemas/CardNoStoreHeader"
486
+ }
487
+ }
488
+ }
489
+ },
490
+ "403": {
491
+ "content": {
492
+ "application/json": {
493
+ "schema": {
494
+ "$ref": "#/components/schemas/CardError"
495
+ }
496
+ }
497
+ },
498
+ "headers": {
499
+ "Cache-Control": {
500
+ "schema": {
501
+ "$ref": "#/components/schemas/CardNoStoreHeader"
502
+ }
503
+ }
504
+ }
505
+ },
506
+ "404": {
507
+ "content": {
508
+ "application/json": {
509
+ "schema": {
510
+ "$ref": "#/components/schemas/CardError"
511
+ }
512
+ }
513
+ },
514
+ "headers": {
515
+ "Cache-Control": {
516
+ "schema": {
517
+ "$ref": "#/components/schemas/CardNoStoreHeader"
518
+ }
519
+ }
520
+ }
521
+ },
522
+ "409": {
523
+ "content": {
524
+ "application/json": {
525
+ "schema": {
526
+ "$ref": "#/components/schemas/AuthorizationError"
527
+ }
528
+ }
529
+ },
530
+ "headers": {
531
+ "Cache-Control": {
532
+ "schema": {
533
+ "$ref": "#/components/schemas/CardNoStoreHeader"
534
+ }
535
+ }
536
+ }
537
+ },
538
+ "429": {
539
+ "content": {
540
+ "application/json": {
541
+ "schema": {
542
+ "$ref": "#/components/schemas/AuthorizationError"
543
+ }
544
+ }
545
+ },
546
+ "headers": {
547
+ "Cache-Control": {
548
+ "schema": {
549
+ "$ref": "#/components/schemas/CardNoStoreHeader"
550
+ }
551
+ }
552
+ }
553
+ },
554
+ "500": {
555
+ "content": {
556
+ "application/json": {
557
+ "schema": {
558
+ "$ref": "#/components/schemas/CardError"
559
+ }
560
+ }
561
+ },
562
+ "headers": {
563
+ "Cache-Control": {
564
+ "schema": {
565
+ "$ref": "#/components/schemas/CardNoStoreHeader"
566
+ }
567
+ }
568
+ }
569
+ },
570
+ "503": {
571
+ "content": {
572
+ "application/json": {
573
+ "schema": {
574
+ "$ref": "#/components/schemas/CardError"
575
+ }
576
+ }
577
+ },
578
+ "headers": {
579
+ "Cache-Control": {
580
+ "schema": {
581
+ "$ref": "#/components/schemas/CardNoStoreHeader"
582
+ }
583
+ }
584
+ }
585
+ }
586
+ },
587
+ "security": [
588
+ {
589
+ "ProviderKey": [],
590
+ "ProviderNonce": [],
591
+ "ProviderSignature": [],
592
+ "ProviderTimestamp": []
593
+ }
594
+ ]
595
+ }
596
+ },
597
+ "/api/card/bindings/lookup": {
598
+ "post": {
599
+ "operationId": "lookupBinding",
600
+ "parameters": [],
601
+ "requestBody": {
602
+ "content": {
603
+ "application/json": {
604
+ "schema": {
605
+ "$ref": "#/components/schemas/BindingLookupInput"
606
+ }
607
+ }
608
+ },
609
+ "required": true
610
+ },
611
+ "responses": {
612
+ "200": {
613
+ "content": {
614
+ "application/json": {
615
+ "schema": {
616
+ "$ref": "#/components/schemas/BindingLookupResult"
617
+ }
618
+ }
619
+ },
620
+ "headers": {
621
+ "Cache-Control": {
622
+ "schema": {
623
+ "$ref": "#/components/schemas/CardNoStoreHeader"
624
+ }
625
+ }
626
+ }
627
+ },
628
+ "400": {
629
+ "content": {
630
+ "application/json": {
631
+ "schema": {
632
+ "$ref": "#/components/schemas/CardMachineError"
633
+ }
634
+ }
635
+ },
636
+ "headers": {
637
+ "Cache-Control": {
638
+ "schema": {
639
+ "$ref": "#/components/schemas/CardNoStoreHeader"
640
+ }
641
+ }
642
+ }
643
+ },
644
+ "401": {
645
+ "content": {
646
+ "application/json": {
647
+ "schema": {
648
+ "$ref": "#/components/schemas/CardMachineError"
649
+ }
650
+ }
651
+ },
652
+ "headers": {
653
+ "Cache-Control": {
654
+ "schema": {
655
+ "$ref": "#/components/schemas/CardNoStoreHeader"
656
+ }
657
+ }
658
+ }
659
+ },
660
+ "403": {
661
+ "content": {
662
+ "application/json": {
663
+ "schema": {
664
+ "$ref": "#/components/schemas/CardMachineError"
665
+ }
666
+ }
667
+ },
668
+ "headers": {
669
+ "Cache-Control": {
670
+ "schema": {
671
+ "$ref": "#/components/schemas/CardNoStoreHeader"
672
+ }
673
+ }
674
+ }
675
+ },
676
+ "404": {
677
+ "content": {
678
+ "application/json": {
679
+ "schema": {
680
+ "$ref": "#/components/schemas/CardMachineError"
681
+ }
682
+ }
683
+ },
684
+ "headers": {
685
+ "Cache-Control": {
686
+ "schema": {
687
+ "$ref": "#/components/schemas/CardNoStoreHeader"
688
+ }
689
+ }
690
+ }
691
+ },
692
+ "409": {
693
+ "content": {
694
+ "application/json": {
695
+ "schema": {
696
+ "$ref": "#/components/schemas/CardMachineError"
697
+ }
698
+ }
699
+ },
700
+ "headers": {
701
+ "Cache-Control": {
702
+ "schema": {
703
+ "$ref": "#/components/schemas/CardNoStoreHeader"
704
+ }
705
+ }
706
+ }
707
+ },
708
+ "410": {
709
+ "content": {
710
+ "application/json": {
711
+ "schema": {
712
+ "$ref": "#/components/schemas/CardMachineError"
713
+ }
714
+ }
715
+ },
716
+ "headers": {
717
+ "Cache-Control": {
718
+ "schema": {
719
+ "$ref": "#/components/schemas/CardNoStoreHeader"
720
+ }
721
+ }
722
+ }
723
+ },
724
+ "412": {
725
+ "content": {
726
+ "application/json": {
727
+ "schema": {
728
+ "$ref": "#/components/schemas/CardMachineError"
729
+ }
730
+ }
731
+ },
732
+ "headers": {
733
+ "Cache-Control": {
734
+ "schema": {
735
+ "$ref": "#/components/schemas/CardNoStoreHeader"
736
+ }
737
+ }
738
+ }
739
+ },
740
+ "422": {
741
+ "content": {
742
+ "application/json": {
743
+ "schema": {
744
+ "$ref": "#/components/schemas/CardMachineError"
745
+ }
746
+ }
747
+ },
748
+ "headers": {
749
+ "Cache-Control": {
750
+ "schema": {
751
+ "$ref": "#/components/schemas/CardNoStoreHeader"
752
+ }
753
+ }
754
+ }
755
+ },
756
+ "423": {
757
+ "content": {
758
+ "application/json": {
759
+ "schema": {
760
+ "$ref": "#/components/schemas/CardMachineError"
761
+ }
762
+ }
763
+ },
764
+ "headers": {
765
+ "Cache-Control": {
766
+ "schema": {
767
+ "$ref": "#/components/schemas/CardNoStoreHeader"
768
+ }
769
+ }
770
+ }
771
+ },
772
+ "428": {
773
+ "content": {
774
+ "application/json": {
775
+ "schema": {
776
+ "$ref": "#/components/schemas/CardMachineError"
777
+ }
778
+ }
779
+ },
780
+ "headers": {
781
+ "Cache-Control": {
782
+ "schema": {
783
+ "$ref": "#/components/schemas/CardNoStoreHeader"
784
+ }
785
+ }
786
+ }
787
+ },
788
+ "429": {
789
+ "content": {
790
+ "application/json": {
791
+ "schema": {
792
+ "$ref": "#/components/schemas/CardMachineError"
793
+ }
794
+ }
795
+ },
796
+ "headers": {
797
+ "Cache-Control": {
798
+ "schema": {
799
+ "$ref": "#/components/schemas/CardNoStoreHeader"
800
+ }
801
+ }
802
+ }
803
+ },
804
+ "500": {
805
+ "content": {
806
+ "application/json": {
807
+ "schema": {
808
+ "$ref": "#/components/schemas/CardMachineError"
809
+ }
810
+ }
811
+ },
812
+ "headers": {
813
+ "Cache-Control": {
814
+ "schema": {
815
+ "$ref": "#/components/schemas/CardNoStoreHeader"
816
+ }
817
+ }
818
+ }
819
+ }
820
+ },
821
+ "security": [
822
+ {
823
+ "ProviderKey": [],
824
+ "ProviderNonce": [],
825
+ "ProviderSignature": [],
826
+ "ProviderTimestamp": []
827
+ }
828
+ ],
829
+ "tags": [
830
+ "Card"
831
+ ]
832
+ }
833
+ },
834
+ "/api/card/connect/intents/{id}/cancel": {
835
+ "post": {
836
+ "operationId": "cancelIntent",
837
+ "parameters": [
838
+ {
839
+ "in": "path",
840
+ "name": "id",
841
+ "required": true,
842
+ "schema": {
843
+ "$ref": "#/components/schemas/ConnectIntentId"
844
+ }
845
+ }
846
+ ],
847
+ "requestBody": {
848
+ "content": {
849
+ "application/json": {
850
+ "schema": {
851
+ "$ref": "#/components/schemas/IntentCancelInput"
852
+ }
853
+ }
854
+ },
855
+ "required": true
856
+ },
857
+ "responses": {
858
+ "200": {
859
+ "content": {
860
+ "application/json": {
861
+ "schema": {
862
+ "$ref": "#/components/schemas/IntentCancelled"
863
+ }
864
+ }
865
+ }
866
+ },
867
+ "400": {
868
+ "content": {
869
+ "application/json": {
870
+ "schema": {
871
+ "$ref": "#/components/schemas/CardMachineError"
872
+ }
873
+ }
874
+ },
875
+ "headers": {
876
+ "Cache-Control": {
877
+ "schema": {
878
+ "$ref": "#/components/schemas/CardNoStoreHeader"
879
+ }
880
+ }
881
+ }
882
+ },
883
+ "401": {
884
+ "content": {
885
+ "application/json": {
886
+ "schema": {
887
+ "$ref": "#/components/schemas/CardMachineError"
888
+ }
889
+ }
890
+ },
891
+ "headers": {
892
+ "Cache-Control": {
893
+ "schema": {
894
+ "$ref": "#/components/schemas/CardNoStoreHeader"
895
+ }
896
+ }
897
+ }
898
+ },
899
+ "403": {
900
+ "content": {
901
+ "application/json": {
902
+ "schema": {
903
+ "$ref": "#/components/schemas/CardMachineError"
904
+ }
905
+ }
906
+ },
907
+ "headers": {
908
+ "Cache-Control": {
909
+ "schema": {
910
+ "$ref": "#/components/schemas/CardNoStoreHeader"
911
+ }
912
+ }
913
+ }
914
+ },
915
+ "404": {
916
+ "content": {
917
+ "application/json": {
918
+ "schema": {
919
+ "$ref": "#/components/schemas/CardMachineError"
920
+ }
921
+ }
922
+ },
923
+ "headers": {
924
+ "Cache-Control": {
925
+ "schema": {
926
+ "$ref": "#/components/schemas/CardNoStoreHeader"
927
+ }
928
+ }
929
+ }
930
+ },
931
+ "409": {
932
+ "content": {
933
+ "application/json": {
934
+ "schema": {
935
+ "$ref": "#/components/schemas/CardMachineError"
936
+ }
937
+ }
938
+ },
939
+ "headers": {
940
+ "Cache-Control": {
941
+ "schema": {
942
+ "$ref": "#/components/schemas/CardNoStoreHeader"
943
+ }
944
+ }
945
+ }
946
+ },
947
+ "410": {
948
+ "content": {
949
+ "application/json": {
950
+ "schema": {
951
+ "$ref": "#/components/schemas/CardMachineError"
952
+ }
953
+ }
954
+ },
955
+ "headers": {
956
+ "Cache-Control": {
957
+ "schema": {
958
+ "$ref": "#/components/schemas/CardNoStoreHeader"
959
+ }
960
+ }
961
+ }
962
+ },
963
+ "412": {
964
+ "content": {
965
+ "application/json": {
966
+ "schema": {
967
+ "$ref": "#/components/schemas/CardMachineError"
968
+ }
969
+ }
970
+ },
971
+ "headers": {
972
+ "Cache-Control": {
973
+ "schema": {
974
+ "$ref": "#/components/schemas/CardNoStoreHeader"
975
+ }
976
+ }
977
+ }
978
+ },
979
+ "422": {
980
+ "content": {
981
+ "application/json": {
982
+ "schema": {
983
+ "$ref": "#/components/schemas/CardMachineError"
984
+ }
985
+ }
986
+ },
987
+ "headers": {
988
+ "Cache-Control": {
989
+ "schema": {
990
+ "$ref": "#/components/schemas/CardNoStoreHeader"
991
+ }
992
+ }
993
+ }
994
+ },
995
+ "423": {
996
+ "content": {
997
+ "application/json": {
998
+ "schema": {
999
+ "$ref": "#/components/schemas/CardMachineError"
1000
+ }
1001
+ }
1002
+ },
1003
+ "headers": {
1004
+ "Cache-Control": {
1005
+ "schema": {
1006
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1007
+ }
1008
+ }
1009
+ }
1010
+ },
1011
+ "428": {
1012
+ "content": {
1013
+ "application/json": {
1014
+ "schema": {
1015
+ "$ref": "#/components/schemas/CardMachineError"
1016
+ }
1017
+ }
1018
+ },
1019
+ "headers": {
1020
+ "Cache-Control": {
1021
+ "schema": {
1022
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1023
+ }
1024
+ }
1025
+ }
1026
+ },
1027
+ "429": {
1028
+ "content": {
1029
+ "application/json": {
1030
+ "schema": {
1031
+ "$ref": "#/components/schemas/CardMachineError"
1032
+ }
1033
+ }
1034
+ },
1035
+ "headers": {
1036
+ "Cache-Control": {
1037
+ "schema": {
1038
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1039
+ }
1040
+ }
1041
+ }
1042
+ },
1043
+ "500": {
1044
+ "content": {
1045
+ "application/json": {
1046
+ "schema": {
1047
+ "$ref": "#/components/schemas/CardMachineError"
1048
+ }
1049
+ }
1050
+ },
1051
+ "headers": {
1052
+ "Cache-Control": {
1053
+ "schema": {
1054
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1055
+ }
1056
+ }
1057
+ }
1058
+ }
1059
+ },
1060
+ "security": [
1061
+ {
1062
+ "ProviderKey": [],
1063
+ "ProviderNonce": [],
1064
+ "ProviderSignature": [],
1065
+ "ProviderTimestamp": []
1066
+ }
1067
+ ],
1068
+ "tags": [
1069
+ "Card"
1070
+ ]
1071
+ }
1072
+ },
1073
+ "/api/card/connect/intents/{id}/cards": {
1074
+ "get": {
1075
+ "operationId": "listIntentCards",
1076
+ "parameters": [
1077
+ {
1078
+ "in": "path",
1079
+ "name": "id",
1080
+ "required": true,
1081
+ "schema": {
1082
+ "$ref": "#/components/schemas/ConnectIntentId"
1083
+ }
1084
+ },
1085
+ {
1086
+ "in": "header",
1087
+ "name": "x-facto-intent-token",
1088
+ "required": true,
1089
+ "schema": {
1090
+ "maxLength": 8192,
1091
+ "minLength": 32,
1092
+ "type": "string"
1093
+ }
1094
+ }
1095
+ ],
1096
+ "responses": {
1097
+ "200": {
1098
+ "content": {
1099
+ "application/json": {
1100
+ "schema": {
1101
+ "$ref": "#/components/schemas/IntentCardList"
1102
+ }
1103
+ }
1104
+ }
1105
+ },
1106
+ "400": {
1107
+ "content": {
1108
+ "application/json": {
1109
+ "schema": {
1110
+ "$ref": "#/components/schemas/CardMachineError"
1111
+ }
1112
+ }
1113
+ },
1114
+ "headers": {
1115
+ "Cache-Control": {
1116
+ "schema": {
1117
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1118
+ }
1119
+ }
1120
+ }
1121
+ },
1122
+ "401": {
1123
+ "content": {
1124
+ "application/json": {
1125
+ "schema": {
1126
+ "$ref": "#/components/schemas/CardMachineError"
1127
+ }
1128
+ }
1129
+ },
1130
+ "headers": {
1131
+ "Cache-Control": {
1132
+ "schema": {
1133
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1134
+ }
1135
+ }
1136
+ }
1137
+ },
1138
+ "403": {
1139
+ "content": {
1140
+ "application/json": {
1141
+ "schema": {
1142
+ "$ref": "#/components/schemas/CardMachineError"
1143
+ }
1144
+ }
1145
+ },
1146
+ "headers": {
1147
+ "Cache-Control": {
1148
+ "schema": {
1149
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1150
+ }
1151
+ }
1152
+ }
1153
+ },
1154
+ "404": {
1155
+ "content": {
1156
+ "application/json": {
1157
+ "schema": {
1158
+ "$ref": "#/components/schemas/CardMachineError"
1159
+ }
1160
+ }
1161
+ },
1162
+ "headers": {
1163
+ "Cache-Control": {
1164
+ "schema": {
1165
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1166
+ }
1167
+ }
1168
+ }
1169
+ },
1170
+ "409": {
1171
+ "content": {
1172
+ "application/json": {
1173
+ "schema": {
1174
+ "$ref": "#/components/schemas/CardMachineError"
1175
+ }
1176
+ }
1177
+ },
1178
+ "headers": {
1179
+ "Cache-Control": {
1180
+ "schema": {
1181
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1182
+ }
1183
+ }
1184
+ }
1185
+ },
1186
+ "410": {
1187
+ "content": {
1188
+ "application/json": {
1189
+ "schema": {
1190
+ "$ref": "#/components/schemas/CardMachineError"
1191
+ }
1192
+ }
1193
+ },
1194
+ "headers": {
1195
+ "Cache-Control": {
1196
+ "schema": {
1197
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1198
+ }
1199
+ }
1200
+ }
1201
+ },
1202
+ "412": {
1203
+ "content": {
1204
+ "application/json": {
1205
+ "schema": {
1206
+ "$ref": "#/components/schemas/CardMachineError"
1207
+ }
1208
+ }
1209
+ },
1210
+ "headers": {
1211
+ "Cache-Control": {
1212
+ "schema": {
1213
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1214
+ }
1215
+ }
1216
+ }
1217
+ },
1218
+ "422": {
1219
+ "content": {
1220
+ "application/json": {
1221
+ "schema": {
1222
+ "$ref": "#/components/schemas/CardMachineError"
1223
+ }
1224
+ }
1225
+ },
1226
+ "headers": {
1227
+ "Cache-Control": {
1228
+ "schema": {
1229
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1230
+ }
1231
+ }
1232
+ }
1233
+ },
1234
+ "423": {
1235
+ "content": {
1236
+ "application/json": {
1237
+ "schema": {
1238
+ "$ref": "#/components/schemas/CardMachineError"
1239
+ }
1240
+ }
1241
+ },
1242
+ "headers": {
1243
+ "Cache-Control": {
1244
+ "schema": {
1245
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1246
+ }
1247
+ }
1248
+ }
1249
+ },
1250
+ "428": {
1251
+ "content": {
1252
+ "application/json": {
1253
+ "schema": {
1254
+ "$ref": "#/components/schemas/CardMachineError"
1255
+ }
1256
+ }
1257
+ },
1258
+ "headers": {
1259
+ "Cache-Control": {
1260
+ "schema": {
1261
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1262
+ }
1263
+ }
1264
+ }
1265
+ },
1266
+ "429": {
1267
+ "content": {
1268
+ "application/json": {
1269
+ "schema": {
1270
+ "$ref": "#/components/schemas/CardMachineError"
1271
+ }
1272
+ }
1273
+ },
1274
+ "headers": {
1275
+ "Cache-Control": {
1276
+ "schema": {
1277
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1278
+ }
1279
+ }
1280
+ }
1281
+ },
1282
+ "500": {
1283
+ "content": {
1284
+ "application/json": {
1285
+ "schema": {
1286
+ "$ref": "#/components/schemas/CardMachineError"
1287
+ }
1288
+ }
1289
+ },
1290
+ "headers": {
1291
+ "Cache-Control": {
1292
+ "schema": {
1293
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1294
+ }
1295
+ }
1296
+ }
1297
+ }
1298
+ },
1299
+ "security": [
1300
+ {
1301
+ "ProviderKey": [],
1302
+ "ProviderNonce": [],
1303
+ "ProviderSignature": [],
1304
+ "ProviderTimestamp": []
1305
+ }
1306
+ ],
1307
+ "tags": [
1308
+ "Card"
1309
+ ]
1310
+ },
1311
+ "put": {
1312
+ "operationId": "replaceIntentCards",
1313
+ "parameters": [
1314
+ {
1315
+ "in": "path",
1316
+ "name": "id",
1317
+ "required": true,
1318
+ "schema": {
1319
+ "$ref": "#/components/schemas/ConnectIntentId"
1320
+ }
1321
+ },
1322
+ {
1323
+ "in": "header",
1324
+ "name": "Idempotency-Key",
1325
+ "required": true,
1326
+ "schema": {
1327
+ "maxLength": 255,
1328
+ "minLength": 16,
1329
+ "type": "string"
1330
+ }
1331
+ }
1332
+ ],
1333
+ "requestBody": {
1334
+ "content": {
1335
+ "application/json": {
1336
+ "schema": {
1337
+ "$ref": "#/components/schemas/IntentCardsReplaceInput"
1338
+ }
1339
+ }
1340
+ },
1341
+ "required": true
1342
+ },
1343
+ "responses": {
1344
+ "200": {
1345
+ "content": {
1346
+ "application/json": {
1347
+ "schema": {
1348
+ "$ref": "#/components/schemas/IntentCardsReplaced"
1349
+ }
1350
+ }
1351
+ }
1352
+ },
1353
+ "400": {
1354
+ "content": {
1355
+ "application/json": {
1356
+ "schema": {
1357
+ "$ref": "#/components/schemas/CardMachineError"
1358
+ }
1359
+ }
1360
+ },
1361
+ "headers": {
1362
+ "Cache-Control": {
1363
+ "schema": {
1364
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1365
+ }
1366
+ }
1367
+ }
1368
+ },
1369
+ "401": {
1370
+ "content": {
1371
+ "application/json": {
1372
+ "schema": {
1373
+ "$ref": "#/components/schemas/CardMachineError"
1374
+ }
1375
+ }
1376
+ },
1377
+ "headers": {
1378
+ "Cache-Control": {
1379
+ "schema": {
1380
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1381
+ }
1382
+ }
1383
+ }
1384
+ },
1385
+ "403": {
1386
+ "content": {
1387
+ "application/json": {
1388
+ "schema": {
1389
+ "$ref": "#/components/schemas/CardMachineError"
1390
+ }
1391
+ }
1392
+ },
1393
+ "headers": {
1394
+ "Cache-Control": {
1395
+ "schema": {
1396
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1397
+ }
1398
+ }
1399
+ }
1400
+ },
1401
+ "404": {
1402
+ "content": {
1403
+ "application/json": {
1404
+ "schema": {
1405
+ "$ref": "#/components/schemas/CardMachineError"
1406
+ }
1407
+ }
1408
+ },
1409
+ "headers": {
1410
+ "Cache-Control": {
1411
+ "schema": {
1412
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1413
+ }
1414
+ }
1415
+ }
1416
+ },
1417
+ "409": {
1418
+ "content": {
1419
+ "application/json": {
1420
+ "schema": {
1421
+ "$ref": "#/components/schemas/CardMachineError"
1422
+ }
1423
+ }
1424
+ },
1425
+ "headers": {
1426
+ "Cache-Control": {
1427
+ "schema": {
1428
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1429
+ }
1430
+ }
1431
+ }
1432
+ },
1433
+ "410": {
1434
+ "content": {
1435
+ "application/json": {
1436
+ "schema": {
1437
+ "$ref": "#/components/schemas/CardMachineError"
1438
+ }
1439
+ }
1440
+ },
1441
+ "headers": {
1442
+ "Cache-Control": {
1443
+ "schema": {
1444
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1445
+ }
1446
+ }
1447
+ }
1448
+ },
1449
+ "412": {
1450
+ "content": {
1451
+ "application/json": {
1452
+ "schema": {
1453
+ "$ref": "#/components/schemas/CardMachineError"
1454
+ }
1455
+ }
1456
+ },
1457
+ "headers": {
1458
+ "Cache-Control": {
1459
+ "schema": {
1460
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1461
+ }
1462
+ }
1463
+ }
1464
+ },
1465
+ "422": {
1466
+ "content": {
1467
+ "application/json": {
1468
+ "schema": {
1469
+ "$ref": "#/components/schemas/CardMachineError"
1470
+ }
1471
+ }
1472
+ },
1473
+ "headers": {
1474
+ "Cache-Control": {
1475
+ "schema": {
1476
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1477
+ }
1478
+ }
1479
+ }
1480
+ },
1481
+ "423": {
1482
+ "content": {
1483
+ "application/json": {
1484
+ "schema": {
1485
+ "$ref": "#/components/schemas/CardMachineError"
1486
+ }
1487
+ }
1488
+ },
1489
+ "headers": {
1490
+ "Cache-Control": {
1491
+ "schema": {
1492
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1493
+ }
1494
+ }
1495
+ }
1496
+ },
1497
+ "428": {
1498
+ "content": {
1499
+ "application/json": {
1500
+ "schema": {
1501
+ "$ref": "#/components/schemas/CardMachineError"
1502
+ }
1503
+ }
1504
+ },
1505
+ "headers": {
1506
+ "Cache-Control": {
1507
+ "schema": {
1508
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1509
+ }
1510
+ }
1511
+ }
1512
+ },
1513
+ "429": {
1514
+ "content": {
1515
+ "application/json": {
1516
+ "schema": {
1517
+ "$ref": "#/components/schemas/CardMachineError"
1518
+ }
1519
+ }
1520
+ },
1521
+ "headers": {
1522
+ "Cache-Control": {
1523
+ "schema": {
1524
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1525
+ }
1526
+ }
1527
+ }
1528
+ },
1529
+ "500": {
1530
+ "content": {
1531
+ "application/json": {
1532
+ "schema": {
1533
+ "$ref": "#/components/schemas/CardMachineError"
1534
+ }
1535
+ }
1536
+ },
1537
+ "headers": {
1538
+ "Cache-Control": {
1539
+ "schema": {
1540
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1541
+ }
1542
+ }
1543
+ }
1544
+ }
1545
+ },
1546
+ "security": [
1547
+ {
1548
+ "ProviderKey": [],
1549
+ "ProviderNonce": [],
1550
+ "ProviderSignature": [],
1551
+ "ProviderTimestamp": []
1552
+ }
1553
+ ],
1554
+ "tags": [
1555
+ "Card"
1556
+ ]
1557
+ }
1558
+ },
1559
+ "/api/card/deliveries/dead-letters": {
1560
+ "get": {
1561
+ "operationId": "listDeadLetters",
1562
+ "parameters": [
1563
+ {
1564
+ "in": "query",
1565
+ "name": "limit",
1566
+ "required": false,
1567
+ "schema": {
1568
+ "default": 50,
1569
+ "maximum": 100,
1570
+ "minimum": 1,
1571
+ "type": "integer"
1572
+ }
1573
+ }
1574
+ ],
1575
+ "responses": {
1576
+ "200": {
1577
+ "content": {
1578
+ "application/json": {
1579
+ "schema": {
1580
+ "$ref": "#/components/schemas/DeadLetterPage"
1581
+ }
1582
+ }
1583
+ },
1584
+ "headers": {
1585
+ "Cache-Control": {
1586
+ "schema": {
1587
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1588
+ }
1589
+ }
1590
+ }
1591
+ },
1592
+ "400": {
1593
+ "content": {
1594
+ "application/json": {
1595
+ "schema": {
1596
+ "$ref": "#/components/schemas/CardMachineError"
1597
+ }
1598
+ }
1599
+ },
1600
+ "headers": {
1601
+ "Cache-Control": {
1602
+ "schema": {
1603
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1604
+ }
1605
+ }
1606
+ }
1607
+ },
1608
+ "401": {
1609
+ "content": {
1610
+ "application/json": {
1611
+ "schema": {
1612
+ "$ref": "#/components/schemas/CardMachineError"
1613
+ }
1614
+ }
1615
+ },
1616
+ "headers": {
1617
+ "Cache-Control": {
1618
+ "schema": {
1619
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1620
+ }
1621
+ }
1622
+ }
1623
+ },
1624
+ "403": {
1625
+ "content": {
1626
+ "application/json": {
1627
+ "schema": {
1628
+ "$ref": "#/components/schemas/CardMachineError"
1629
+ }
1630
+ }
1631
+ },
1632
+ "headers": {
1633
+ "Cache-Control": {
1634
+ "schema": {
1635
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1636
+ }
1637
+ }
1638
+ }
1639
+ },
1640
+ "404": {
1641
+ "content": {
1642
+ "application/json": {
1643
+ "schema": {
1644
+ "$ref": "#/components/schemas/CardMachineError"
1645
+ }
1646
+ }
1647
+ },
1648
+ "headers": {
1649
+ "Cache-Control": {
1650
+ "schema": {
1651
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1652
+ }
1653
+ }
1654
+ }
1655
+ },
1656
+ "409": {
1657
+ "content": {
1658
+ "application/json": {
1659
+ "schema": {
1660
+ "$ref": "#/components/schemas/CardMachineError"
1661
+ }
1662
+ }
1663
+ },
1664
+ "headers": {
1665
+ "Cache-Control": {
1666
+ "schema": {
1667
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1668
+ }
1669
+ }
1670
+ }
1671
+ },
1672
+ "410": {
1673
+ "content": {
1674
+ "application/json": {
1675
+ "schema": {
1676
+ "$ref": "#/components/schemas/CardMachineError"
1677
+ }
1678
+ }
1679
+ },
1680
+ "headers": {
1681
+ "Cache-Control": {
1682
+ "schema": {
1683
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1684
+ }
1685
+ }
1686
+ }
1687
+ },
1688
+ "412": {
1689
+ "content": {
1690
+ "application/json": {
1691
+ "schema": {
1692
+ "$ref": "#/components/schemas/CardMachineError"
1693
+ }
1694
+ }
1695
+ },
1696
+ "headers": {
1697
+ "Cache-Control": {
1698
+ "schema": {
1699
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1700
+ }
1701
+ }
1702
+ }
1703
+ },
1704
+ "422": {
1705
+ "content": {
1706
+ "application/json": {
1707
+ "schema": {
1708
+ "$ref": "#/components/schemas/CardMachineError"
1709
+ }
1710
+ }
1711
+ },
1712
+ "headers": {
1713
+ "Cache-Control": {
1714
+ "schema": {
1715
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1716
+ }
1717
+ }
1718
+ }
1719
+ },
1720
+ "423": {
1721
+ "content": {
1722
+ "application/json": {
1723
+ "schema": {
1724
+ "$ref": "#/components/schemas/CardMachineError"
1725
+ }
1726
+ }
1727
+ },
1728
+ "headers": {
1729
+ "Cache-Control": {
1730
+ "schema": {
1731
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1732
+ }
1733
+ }
1734
+ }
1735
+ },
1736
+ "428": {
1737
+ "content": {
1738
+ "application/json": {
1739
+ "schema": {
1740
+ "$ref": "#/components/schemas/CardMachineError"
1741
+ }
1742
+ }
1743
+ },
1744
+ "headers": {
1745
+ "Cache-Control": {
1746
+ "schema": {
1747
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1748
+ }
1749
+ }
1750
+ }
1751
+ },
1752
+ "429": {
1753
+ "content": {
1754
+ "application/json": {
1755
+ "schema": {
1756
+ "$ref": "#/components/schemas/CardMachineError"
1757
+ }
1758
+ }
1759
+ },
1760
+ "headers": {
1761
+ "Cache-Control": {
1762
+ "schema": {
1763
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1764
+ }
1765
+ }
1766
+ }
1767
+ },
1768
+ "500": {
1769
+ "content": {
1770
+ "application/json": {
1771
+ "schema": {
1772
+ "$ref": "#/components/schemas/CardMachineError"
1773
+ }
1774
+ }
1775
+ },
1776
+ "headers": {
1777
+ "Cache-Control": {
1778
+ "schema": {
1779
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1780
+ }
1781
+ }
1782
+ }
1783
+ }
1784
+ },
1785
+ "security": [
1786
+ {
1787
+ "ProviderKey": [],
1788
+ "ProviderNonce": [],
1789
+ "ProviderSignature": [],
1790
+ "ProviderTimestamp": []
1791
+ }
1792
+ ],
1793
+ "tags": [
1794
+ "Card"
1795
+ ]
1796
+ }
1797
+ },
1798
+ "/api/card/deliveries/dead-letters/{id}/replay": {
1799
+ "post": {
1800
+ "operationId": "replayDeadLetter",
1801
+ "parameters": [
1802
+ {
1803
+ "in": "path",
1804
+ "name": "id",
1805
+ "required": true,
1806
+ "schema": {
1807
+ "$ref": "#/components/schemas/CardUuid"
1808
+ }
1809
+ }
1810
+ ],
1811
+ "responses": {
1812
+ "202": {
1813
+ "content": {
1814
+ "application/json": {
1815
+ "schema": {
1816
+ "$ref": "#/components/schemas/DeadLetterReplayAccepted"
1817
+ }
1818
+ }
1819
+ },
1820
+ "headers": {
1821
+ "Cache-Control": {
1822
+ "schema": {
1823
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1824
+ }
1825
+ }
1826
+ }
1827
+ },
1828
+ "400": {
1829
+ "content": {
1830
+ "application/json": {
1831
+ "schema": {
1832
+ "$ref": "#/components/schemas/CardMachineError"
1833
+ }
1834
+ }
1835
+ },
1836
+ "headers": {
1837
+ "Cache-Control": {
1838
+ "schema": {
1839
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1840
+ }
1841
+ }
1842
+ }
1843
+ },
1844
+ "401": {
1845
+ "content": {
1846
+ "application/json": {
1847
+ "schema": {
1848
+ "$ref": "#/components/schemas/CardMachineError"
1849
+ }
1850
+ }
1851
+ },
1852
+ "headers": {
1853
+ "Cache-Control": {
1854
+ "schema": {
1855
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1856
+ }
1857
+ }
1858
+ }
1859
+ },
1860
+ "403": {
1861
+ "content": {
1862
+ "application/json": {
1863
+ "schema": {
1864
+ "$ref": "#/components/schemas/CardMachineError"
1865
+ }
1866
+ }
1867
+ },
1868
+ "headers": {
1869
+ "Cache-Control": {
1870
+ "schema": {
1871
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1872
+ }
1873
+ }
1874
+ }
1875
+ },
1876
+ "404": {
1877
+ "content": {
1878
+ "application/json": {
1879
+ "schema": {
1880
+ "$ref": "#/components/schemas/CardMachineError"
1881
+ }
1882
+ }
1883
+ },
1884
+ "headers": {
1885
+ "Cache-Control": {
1886
+ "schema": {
1887
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1888
+ }
1889
+ }
1890
+ }
1891
+ },
1892
+ "409": {
1893
+ "content": {
1894
+ "application/json": {
1895
+ "schema": {
1896
+ "$ref": "#/components/schemas/CardMachineError"
1897
+ }
1898
+ }
1899
+ },
1900
+ "headers": {
1901
+ "Cache-Control": {
1902
+ "schema": {
1903
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1904
+ }
1905
+ }
1906
+ }
1907
+ },
1908
+ "410": {
1909
+ "content": {
1910
+ "application/json": {
1911
+ "schema": {
1912
+ "$ref": "#/components/schemas/CardMachineError"
1913
+ }
1914
+ }
1915
+ },
1916
+ "headers": {
1917
+ "Cache-Control": {
1918
+ "schema": {
1919
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1920
+ }
1921
+ }
1922
+ }
1923
+ },
1924
+ "412": {
1925
+ "content": {
1926
+ "application/json": {
1927
+ "schema": {
1928
+ "$ref": "#/components/schemas/CardMachineError"
1929
+ }
1930
+ }
1931
+ },
1932
+ "headers": {
1933
+ "Cache-Control": {
1934
+ "schema": {
1935
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1936
+ }
1937
+ }
1938
+ }
1939
+ },
1940
+ "422": {
1941
+ "content": {
1942
+ "application/json": {
1943
+ "schema": {
1944
+ "$ref": "#/components/schemas/CardMachineError"
1945
+ }
1946
+ }
1947
+ },
1948
+ "headers": {
1949
+ "Cache-Control": {
1950
+ "schema": {
1951
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1952
+ }
1953
+ }
1954
+ }
1955
+ },
1956
+ "423": {
1957
+ "content": {
1958
+ "application/json": {
1959
+ "schema": {
1960
+ "$ref": "#/components/schemas/CardMachineError"
1961
+ }
1962
+ }
1963
+ },
1964
+ "headers": {
1965
+ "Cache-Control": {
1966
+ "schema": {
1967
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1968
+ }
1969
+ }
1970
+ }
1971
+ },
1972
+ "428": {
1973
+ "content": {
1974
+ "application/json": {
1975
+ "schema": {
1976
+ "$ref": "#/components/schemas/CardMachineError"
1977
+ }
1978
+ }
1979
+ },
1980
+ "headers": {
1981
+ "Cache-Control": {
1982
+ "schema": {
1983
+ "$ref": "#/components/schemas/CardNoStoreHeader"
1984
+ }
1985
+ }
1986
+ }
1987
+ },
1988
+ "429": {
1989
+ "content": {
1990
+ "application/json": {
1991
+ "schema": {
1992
+ "$ref": "#/components/schemas/CardMachineError"
1993
+ }
1994
+ }
1995
+ },
1996
+ "headers": {
1997
+ "Cache-Control": {
1998
+ "schema": {
1999
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2000
+ }
2001
+ }
2002
+ }
2003
+ },
2004
+ "500": {
2005
+ "content": {
2006
+ "application/json": {
2007
+ "schema": {
2008
+ "$ref": "#/components/schemas/CardMachineError"
2009
+ }
2010
+ }
2011
+ },
2012
+ "headers": {
2013
+ "Cache-Control": {
2014
+ "schema": {
2015
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2016
+ }
2017
+ }
2018
+ }
2019
+ }
2020
+ },
2021
+ "security": [
2022
+ {
2023
+ "ProviderKey": [],
2024
+ "ProviderNonce": [],
2025
+ "ProviderSignature": [],
2026
+ "ProviderTimestamp": []
2027
+ }
2028
+ ],
2029
+ "tags": [
2030
+ "Card"
2031
+ ]
2032
+ }
2033
+ },
2034
+ "/api/card/deliveries/reconciliations/list": {
2035
+ "post": {
2036
+ "operationId": "listDeliveryReconciliations",
2037
+ "requestBody": {
2038
+ "content": {
2039
+ "application/json": {
2040
+ "schema": {
2041
+ "$ref": "#/components/schemas/DeliveryReconciliationListInput"
2042
+ }
2043
+ }
2044
+ },
2045
+ "required": true
2046
+ },
2047
+ "responses": {
2048
+ "200": {
2049
+ "content": {
2050
+ "application/json": {
2051
+ "schema": {
2052
+ "$ref": "#/components/schemas/DeliveryPage"
2053
+ }
2054
+ }
2055
+ },
2056
+ "headers": {
2057
+ "Cache-Control": {
2058
+ "schema": {
2059
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2060
+ }
2061
+ }
2062
+ }
2063
+ },
2064
+ "400": {
2065
+ "content": {
2066
+ "application/json": {
2067
+ "schema": {
2068
+ "$ref": "#/components/schemas/CardError"
2069
+ }
2070
+ }
2071
+ },
2072
+ "headers": {
2073
+ "Cache-Control": {
2074
+ "schema": {
2075
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2076
+ }
2077
+ }
2078
+ }
2079
+ },
2080
+ "401": {
2081
+ "content": {
2082
+ "application/json": {
2083
+ "schema": {
2084
+ "$ref": "#/components/schemas/CardError"
2085
+ }
2086
+ }
2087
+ },
2088
+ "headers": {
2089
+ "Cache-Control": {
2090
+ "schema": {
2091
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2092
+ }
2093
+ }
2094
+ }
2095
+ },
2096
+ "403": {
2097
+ "content": {
2098
+ "application/json": {
2099
+ "schema": {
2100
+ "$ref": "#/components/schemas/CardError"
2101
+ }
2102
+ }
2103
+ },
2104
+ "headers": {
2105
+ "Cache-Control": {
2106
+ "schema": {
2107
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2108
+ }
2109
+ }
2110
+ }
2111
+ },
2112
+ "404": {
2113
+ "content": {
2114
+ "application/json": {
2115
+ "schema": {
2116
+ "$ref": "#/components/schemas/CardError"
2117
+ }
2118
+ }
2119
+ },
2120
+ "headers": {
2121
+ "Cache-Control": {
2122
+ "schema": {
2123
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2124
+ }
2125
+ }
2126
+ }
2127
+ },
2128
+ "409": {
2129
+ "content": {
2130
+ "application/json": {
2131
+ "schema": {
2132
+ "$ref": "#/components/schemas/CardError"
2133
+ }
2134
+ }
2135
+ },
2136
+ "headers": {
2137
+ "Cache-Control": {
2138
+ "schema": {
2139
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2140
+ }
2141
+ }
2142
+ }
2143
+ },
2144
+ "500": {
2145
+ "content": {
2146
+ "application/json": {
2147
+ "schema": {
2148
+ "$ref": "#/components/schemas/CardError"
2149
+ }
2150
+ }
2151
+ },
2152
+ "headers": {
2153
+ "Cache-Control": {
2154
+ "schema": {
2155
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2156
+ }
2157
+ }
2158
+ }
2159
+ },
2160
+ "503": {
2161
+ "content": {
2162
+ "application/json": {
2163
+ "schema": {
2164
+ "$ref": "#/components/schemas/CardError"
2165
+ }
2166
+ }
2167
+ },
2168
+ "headers": {
2169
+ "Cache-Control": {
2170
+ "schema": {
2171
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2172
+ }
2173
+ }
2174
+ }
2175
+ }
2176
+ },
2177
+ "security": [
2178
+ {
2179
+ "ProviderKey": [],
2180
+ "ProviderNonce": [],
2181
+ "ProviderSignature": [],
2182
+ "ProviderTimestamp": []
2183
+ }
2184
+ ]
2185
+ }
2186
+ },
2187
+ "/api/card/deliveries/replays": {
2188
+ "post": {
2189
+ "operationId": "createDeliveryReplay",
2190
+ "parameters": [
2191
+ {
2192
+ "in": "header",
2193
+ "name": "Idempotency-Key",
2194
+ "required": true,
2195
+ "schema": {
2196
+ "maxLength": 255,
2197
+ "minLength": 16,
2198
+ "type": "string"
2199
+ }
2200
+ }
2201
+ ],
2202
+ "requestBody": {
2203
+ "content": {
2204
+ "application/json": {
2205
+ "schema": {
2206
+ "$ref": "#/components/schemas/DeliveryReplayCreateInput"
2207
+ }
2208
+ }
2209
+ },
2210
+ "required": true
2211
+ },
2212
+ "responses": {
2213
+ "202": {
2214
+ "content": {
2215
+ "application/json": {
2216
+ "schema": {
2217
+ "$ref": "#/components/schemas/DeliveryReplayAccepted"
2218
+ }
2219
+ }
2220
+ },
2221
+ "headers": {
2222
+ "Cache-Control": {
2223
+ "schema": {
2224
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2225
+ }
2226
+ }
2227
+ }
2228
+ },
2229
+ "400": {
2230
+ "content": {
2231
+ "application/json": {
2232
+ "schema": {
2233
+ "$ref": "#/components/schemas/CardError"
2234
+ }
2235
+ }
2236
+ },
2237
+ "headers": {
2238
+ "Cache-Control": {
2239
+ "schema": {
2240
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2241
+ }
2242
+ }
2243
+ }
2244
+ },
2245
+ "401": {
2246
+ "content": {
2247
+ "application/json": {
2248
+ "schema": {
2249
+ "$ref": "#/components/schemas/CardError"
2250
+ }
2251
+ }
2252
+ },
2253
+ "headers": {
2254
+ "Cache-Control": {
2255
+ "schema": {
2256
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2257
+ }
2258
+ }
2259
+ }
2260
+ },
2261
+ "403": {
2262
+ "content": {
2263
+ "application/json": {
2264
+ "schema": {
2265
+ "$ref": "#/components/schemas/CardError"
2266
+ }
2267
+ }
2268
+ },
2269
+ "headers": {
2270
+ "Cache-Control": {
2271
+ "schema": {
2272
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2273
+ }
2274
+ }
2275
+ }
2276
+ },
2277
+ "404": {
2278
+ "content": {
2279
+ "application/json": {
2280
+ "schema": {
2281
+ "$ref": "#/components/schemas/CardError"
2282
+ }
2283
+ }
2284
+ },
2285
+ "headers": {
2286
+ "Cache-Control": {
2287
+ "schema": {
2288
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2289
+ }
2290
+ }
2291
+ }
2292
+ },
2293
+ "409": {
2294
+ "content": {
2295
+ "application/json": {
2296
+ "schema": {
2297
+ "$ref": "#/components/schemas/CardError"
2298
+ }
2299
+ }
2300
+ },
2301
+ "headers": {
2302
+ "Cache-Control": {
2303
+ "schema": {
2304
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2305
+ }
2306
+ }
2307
+ }
2308
+ },
2309
+ "500": {
2310
+ "content": {
2311
+ "application/json": {
2312
+ "schema": {
2313
+ "$ref": "#/components/schemas/CardError"
2314
+ }
2315
+ }
2316
+ },
2317
+ "headers": {
2318
+ "Cache-Control": {
2319
+ "schema": {
2320
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2321
+ }
2322
+ }
2323
+ }
2324
+ },
2325
+ "503": {
2326
+ "content": {
2327
+ "application/json": {
2328
+ "schema": {
2329
+ "$ref": "#/components/schemas/CardError"
2330
+ }
2331
+ }
2332
+ },
2333
+ "headers": {
2334
+ "Cache-Control": {
2335
+ "schema": {
2336
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2337
+ }
2338
+ }
2339
+ }
2340
+ }
2341
+ },
2342
+ "security": [
2343
+ {
2344
+ "ProviderKey": [],
2345
+ "ProviderNonce": [],
2346
+ "ProviderSignature": [],
2347
+ "ProviderTimestamp": []
2348
+ }
2349
+ ]
2350
+ }
2351
+ },
2352
+ "/api/card/events": {
2353
+ "post": {
2354
+ "operationId": "recordCardEvent",
2355
+ "parameters": [],
2356
+ "requestBody": {
2357
+ "content": {
2358
+ "application/json": {
2359
+ "schema": {
2360
+ "$ref": "#/components/schemas/CardInboundEventInput"
2361
+ }
2362
+ }
2363
+ },
2364
+ "required": true
2365
+ },
2366
+ "responses": {
2367
+ "200": {
2368
+ "content": {
2369
+ "application/json": {
2370
+ "schema": {
2371
+ "$ref": "#/components/schemas/CardInboundEventReceipt"
2372
+ }
2373
+ }
2374
+ },
2375
+ "headers": {
2376
+ "Cache-Control": {
2377
+ "schema": {
2378
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2379
+ }
2380
+ }
2381
+ }
2382
+ },
2383
+ "400": {
2384
+ "content": {
2385
+ "application/json": {
2386
+ "schema": {
2387
+ "$ref": "#/components/schemas/CardMachineError"
2388
+ }
2389
+ }
2390
+ },
2391
+ "headers": {
2392
+ "Cache-Control": {
2393
+ "schema": {
2394
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2395
+ }
2396
+ }
2397
+ }
2398
+ },
2399
+ "401": {
2400
+ "content": {
2401
+ "application/json": {
2402
+ "schema": {
2403
+ "$ref": "#/components/schemas/CardMachineError"
2404
+ }
2405
+ }
2406
+ },
2407
+ "headers": {
2408
+ "Cache-Control": {
2409
+ "schema": {
2410
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2411
+ }
2412
+ }
2413
+ }
2414
+ },
2415
+ "403": {
2416
+ "content": {
2417
+ "application/json": {
2418
+ "schema": {
2419
+ "$ref": "#/components/schemas/CardMachineError"
2420
+ }
2421
+ }
2422
+ },
2423
+ "headers": {
2424
+ "Cache-Control": {
2425
+ "schema": {
2426
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2427
+ }
2428
+ }
2429
+ }
2430
+ },
2431
+ "404": {
2432
+ "content": {
2433
+ "application/json": {
2434
+ "schema": {
2435
+ "$ref": "#/components/schemas/CardMachineError"
2436
+ }
2437
+ }
2438
+ },
2439
+ "headers": {
2440
+ "Cache-Control": {
2441
+ "schema": {
2442
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2443
+ }
2444
+ }
2445
+ }
2446
+ },
2447
+ "409": {
2448
+ "content": {
2449
+ "application/json": {
2450
+ "schema": {
2451
+ "$ref": "#/components/schemas/CardMachineError"
2452
+ }
2453
+ }
2454
+ },
2455
+ "headers": {
2456
+ "Cache-Control": {
2457
+ "schema": {
2458
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2459
+ }
2460
+ }
2461
+ }
2462
+ },
2463
+ "410": {
2464
+ "content": {
2465
+ "application/json": {
2466
+ "schema": {
2467
+ "$ref": "#/components/schemas/CardMachineError"
2468
+ }
2469
+ }
2470
+ },
2471
+ "headers": {
2472
+ "Cache-Control": {
2473
+ "schema": {
2474
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2475
+ }
2476
+ }
2477
+ }
2478
+ },
2479
+ "412": {
2480
+ "content": {
2481
+ "application/json": {
2482
+ "schema": {
2483
+ "$ref": "#/components/schemas/CardMachineError"
2484
+ }
2485
+ }
2486
+ },
2487
+ "headers": {
2488
+ "Cache-Control": {
2489
+ "schema": {
2490
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2491
+ }
2492
+ }
2493
+ }
2494
+ },
2495
+ "422": {
2496
+ "content": {
2497
+ "application/json": {
2498
+ "schema": {
2499
+ "$ref": "#/components/schemas/CardMachineError"
2500
+ }
2501
+ }
2502
+ },
2503
+ "headers": {
2504
+ "Cache-Control": {
2505
+ "schema": {
2506
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2507
+ }
2508
+ }
2509
+ }
2510
+ },
2511
+ "423": {
2512
+ "content": {
2513
+ "application/json": {
2514
+ "schema": {
2515
+ "$ref": "#/components/schemas/CardMachineError"
2516
+ }
2517
+ }
2518
+ },
2519
+ "headers": {
2520
+ "Cache-Control": {
2521
+ "schema": {
2522
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2523
+ }
2524
+ }
2525
+ }
2526
+ },
2527
+ "428": {
2528
+ "content": {
2529
+ "application/json": {
2530
+ "schema": {
2531
+ "$ref": "#/components/schemas/CardMachineError"
2532
+ }
2533
+ }
2534
+ },
2535
+ "headers": {
2536
+ "Cache-Control": {
2537
+ "schema": {
2538
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2539
+ }
2540
+ }
2541
+ }
2542
+ },
2543
+ "429": {
2544
+ "content": {
2545
+ "application/json": {
2546
+ "schema": {
2547
+ "$ref": "#/components/schemas/CardMachineError"
2548
+ }
2549
+ }
2550
+ },
2551
+ "headers": {
2552
+ "Cache-Control": {
2553
+ "schema": {
2554
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2555
+ }
2556
+ }
2557
+ }
2558
+ },
2559
+ "500": {
2560
+ "content": {
2561
+ "application/json": {
2562
+ "schema": {
2563
+ "$ref": "#/components/schemas/CardMachineError"
2564
+ }
2565
+ }
2566
+ },
2567
+ "headers": {
2568
+ "Cache-Control": {
2569
+ "schema": {
2570
+ "$ref": "#/components/schemas/CardNoStoreHeader"
2571
+ }
2572
+ }
2573
+ }
2574
+ }
2575
+ },
2576
+ "security": [
2577
+ {
2578
+ "ProviderKey": [],
2579
+ "ProviderNonce": [],
2580
+ "ProviderSignature": [],
2581
+ "ProviderTimestamp": []
2582
+ }
2583
+ ],
2584
+ "tags": [
2585
+ "Card"
2586
+ ]
2587
+ }
2588
+ }
2589
+ },
2590
+ "components": {
2591
+ "schemas": {
2592
+ "AuthorizationAccepted": {
2593
+ "additionalProperties": false,
2594
+ "properties": {
2595
+ "charge_id": {
2596
+ "maxLength": 255,
2597
+ "minLength": 1,
2598
+ "type": "string"
2599
+ },
2600
+ "status": {
2601
+ "const": "processing"
2602
+ }
2603
+ },
2604
+ "required": [
2605
+ "charge_id",
2606
+ "status"
2607
+ ],
2608
+ "type": "object"
2609
+ },
2610
+ "AuthorizationChargeIdLookup": {
2611
+ "additionalProperties": false,
2612
+ "properties": {
2613
+ "by": {
2614
+ "const": "charge_id"
2615
+ },
2616
+ "charge_id": {
2617
+ "maxLength": 255,
2618
+ "minLength": 1,
2619
+ "type": "string"
2620
+ }
2621
+ },
2622
+ "required": [
2623
+ "by",
2624
+ "charge_id"
2625
+ ],
2626
+ "type": "object"
2627
+ },
2628
+ "AuthorizationCreateInput": {
2629
+ "additionalProperties": false,
2630
+ "properties": {
2631
+ "amount": {
2632
+ "maxLength": 64,
2633
+ "minLength": 1,
2634
+ "type": "string"
2635
+ },
2636
+ "cardholder_verification": {
2637
+ "$ref": "#/components/schemas/CardholderVerification"
2638
+ },
2639
+ "client_transaction_id": {
2640
+ "maxLength": 256,
2641
+ "minLength": 1,
2642
+ "type": "string"
2643
+ },
2644
+ "currency": {
2645
+ "enum": [
2646
+ "USD",
2647
+ "USDC"
2648
+ ],
2649
+ "type": "string"
2650
+ },
2651
+ "deadline_at": {
2652
+ "format": "date-time",
2653
+ "type": "string"
2654
+ },
2655
+ "decision_mode": {
2656
+ "enum": [
2657
+ "asynchronous",
2658
+ "synchronous"
2659
+ ],
2660
+ "type": "string"
2661
+ },
2662
+ "decision_timeout_ms": {
2663
+ "maximum": 5000,
2664
+ "minimum": 50,
2665
+ "type": "integer"
2666
+ },
2667
+ "external_authorization_id": {
2668
+ "maxLength": 256,
2669
+ "minLength": 1,
2670
+ "type": "string"
2671
+ },
2672
+ "external_card_id": {
2673
+ "maxLength": 512,
2674
+ "minLength": 1,
2675
+ "type": "string"
2676
+ },
2677
+ "mapping_revision": {
2678
+ "maxLength": 255,
2679
+ "minLength": 1,
2680
+ "type": "string"
2681
+ },
2682
+ "merchant_country": {
2683
+ "maxLength": 8,
2684
+ "minLength": 1,
2685
+ "type": "string"
2686
+ },
2687
+ "merchant_mcc": {
2688
+ "maxLength": 16,
2689
+ "minLength": 0,
2690
+ "type": "string"
2691
+ },
2692
+ "merchant_name": {
2693
+ "maxLength": 256,
2694
+ "minLength": 0,
2695
+ "type": "string"
2696
+ },
2697
+ "occurred_at": {
2698
+ "format": "date-time",
2699
+ "type": "string"
2700
+ },
2701
+ "program_id": {
2702
+ "maxLength": 512,
2703
+ "minLength": 1,
2704
+ "type": "string"
2705
+ },
2706
+ "resource_version": {
2707
+ "maxLength": 255,
2708
+ "minLength": 1,
2709
+ "type": "string"
2710
+ },
2711
+ "supplier_transaction_id": {
2712
+ "maxLength": 256,
2713
+ "minLength": 1,
2714
+ "type": "string"
2715
+ }
2716
+ },
2717
+ "required": [
2718
+ "program_id",
2719
+ "external_card_id",
2720
+ "external_authorization_id",
2721
+ "amount",
2722
+ "currency",
2723
+ "resource_version",
2724
+ "mapping_revision",
2725
+ "cardholder_verification"
2726
+ ],
2727
+ "type": "object"
2728
+ },
2729
+ "AuthorizationDeadlineExceeded": {
2730
+ "additionalProperties": false,
2731
+ "properties": {
2732
+ "deadline_at": {
2733
+ "format": "date-time",
2734
+ "type": "string"
2735
+ },
2736
+ "decision_id": {
2737
+ "format": "uuid",
2738
+ "type": "string"
2739
+ },
2740
+ "error": {
2741
+ "const": "decision_deadline_exceeded"
2742
+ },
2743
+ "message": {
2744
+ "type": "string"
2745
+ },
2746
+ "request_id": {
2747
+ "type": "string"
2748
+ }
2749
+ },
2750
+ "required": [
2751
+ "error",
2752
+ "message",
2753
+ "request_id",
2754
+ "decision_id",
2755
+ "deadline_at"
2756
+ ],
2757
+ "type": "object"
2758
+ },
2759
+ "AuthorizationError": {
2760
+ "additionalProperties": false,
2761
+ "properties": {
2762
+ "error": {
2763
+ "maxLength": 128,
2764
+ "minLength": 1,
2765
+ "pattern": "^[a-z][a-z0-9_]*$",
2766
+ "type": "string"
2767
+ },
2768
+ "message": {
2769
+ "maxLength": 512,
2770
+ "minLength": 1,
2771
+ "type": "string"
2772
+ },
2773
+ "request_id": {
2774
+ "maxLength": 128,
2775
+ "minLength": 1,
2776
+ "type": "string"
2777
+ }
2778
+ },
2779
+ "required": [
2780
+ "error",
2781
+ "message",
2782
+ "request_id"
2783
+ ],
2784
+ "type": "object"
2785
+ },
2786
+ "AuthorizationFact": {
2787
+ "additionalProperties": false,
2788
+ "allOf": [
2789
+ {
2790
+ "if": {
2791
+ "properties": {
2792
+ "state": {
2793
+ "const": "confirmed"
2794
+ }
2795
+ }
2796
+ },
2797
+ "then": {
2798
+ "required": [
2799
+ "observed_at"
2800
+ ]
2801
+ }
2802
+ },
2803
+ {
2804
+ "if": {
2805
+ "properties": {
2806
+ "state": {
2807
+ "const": "unobserved"
2808
+ }
2809
+ }
2810
+ },
2811
+ "then": {
2812
+ "not": {
2813
+ "required": [
2814
+ "observed_at"
2815
+ ]
2816
+ }
2817
+ }
2818
+ }
2819
+ ],
2820
+ "properties": {
2821
+ "kind": {
2822
+ "$ref": "#/components/schemas/AuthorizationFactKind"
2823
+ },
2824
+ "observed_at": {
2825
+ "$ref": "#/components/schemas/AuthorizationTimestamp"
2826
+ },
2827
+ "recorded_at": {
2828
+ "$ref": "#/components/schemas/AuthorizationTimestamp"
2829
+ },
2830
+ "safe_code": {
2831
+ "maxLength": 64,
2832
+ "minLength": 1,
2833
+ "type": "string"
2834
+ },
2835
+ "source_system": {
2836
+ "enum": [
2837
+ "facto",
2838
+ "provider",
2839
+ "chain"
2840
+ ],
2841
+ "type": "string"
2842
+ },
2843
+ "state": {
2844
+ "enum": [
2845
+ "unobserved",
2846
+ "pending",
2847
+ "confirmed",
2848
+ "rejected",
2849
+ "indeterminate"
2850
+ ],
2851
+ "type": "string"
2852
+ }
2853
+ },
2854
+ "required": [
2855
+ "kind",
2856
+ "state",
2857
+ "recorded_at",
2858
+ "source_system"
2859
+ ],
2860
+ "type": "object"
2861
+ },
2862
+ "AuthorizationFactInput": {
2863
+ "additionalProperties": false,
2864
+ "properties": {
2865
+ "amount": {
2866
+ "maxLength": 64,
2867
+ "minLength": 1,
2868
+ "type": "string"
2869
+ },
2870
+ "client_transaction_id": {
2871
+ "maxLength": 256,
2872
+ "minLength": 1,
2873
+ "type": "string"
2874
+ },
2875
+ "currency": {
2876
+ "enum": [
2877
+ "USD",
2878
+ "USDC"
2879
+ ],
2880
+ "type": "string"
2881
+ },
2882
+ "fact_type": {
2883
+ "enum": [
2884
+ "authorization_updated",
2885
+ "clearing",
2886
+ "reversal",
2887
+ "refund",
2888
+ "chargeback",
2889
+ "settlement"
2890
+ ],
2891
+ "type": "string"
2892
+ },
2893
+ "mapping_revision": {
2894
+ "maxLength": 255,
2895
+ "minLength": 1,
2896
+ "type": "string"
2897
+ },
2898
+ "merchant_country": {
2899
+ "maxLength": 8,
2900
+ "minLength": 1,
2901
+ "type": "string"
2902
+ },
2903
+ "merchant_mcc": {
2904
+ "maxLength": 16,
2905
+ "minLength": 0,
2906
+ "type": "string"
2907
+ },
2908
+ "merchant_name": {
2909
+ "maxLength": 256,
2910
+ "minLength": 0,
2911
+ "type": "string"
2912
+ },
2913
+ "parent_supplier_transaction_id": {
2914
+ "maxLength": 256,
2915
+ "minLength": 1,
2916
+ "type": "string"
2917
+ },
2918
+ "predecessor_version": {
2919
+ "maxLength": 255,
2920
+ "minLength": 1,
2921
+ "type": "string"
2922
+ },
2923
+ "program_id": {
2924
+ "maxLength": 512,
2925
+ "minLength": 1,
2926
+ "type": "string"
2927
+ },
2928
+ "recorded_at": {
2929
+ "format": "date-time",
2930
+ "type": "string"
2931
+ },
2932
+ "resource_version": {
2933
+ "maxLength": 255,
2934
+ "minLength": 1,
2935
+ "type": "string"
2936
+ },
2937
+ "supplier_transaction_id": {
2938
+ "maxLength": 256,
2939
+ "minLength": 1,
2940
+ "type": "string"
2941
+ }
2942
+ },
2943
+ "required": [
2944
+ "program_id",
2945
+ "fact_type",
2946
+ "amount",
2947
+ "currency",
2948
+ "resource_version",
2949
+ "predecessor_version",
2950
+ "mapping_revision",
2951
+ "recorded_at"
2952
+ ],
2953
+ "type": "object"
2954
+ },
2955
+ "AuthorizationFactKind": {
2956
+ "enum": [
2957
+ "facto_admission",
2958
+ "durable_commit",
2959
+ "provider_authorization",
2960
+ "chain_finality",
2961
+ "provider_settlement"
2962
+ ],
2963
+ "type": "string"
2964
+ },
2965
+ "AuthorizationFactReceipt": {
2966
+ "additionalProperties": false,
2967
+ "properties": {
2968
+ "operation_id": {
2969
+ "format": "uuid",
2970
+ "type": "string"
2971
+ },
2972
+ "status": {
2973
+ "const": "recorded"
2974
+ }
2975
+ },
2976
+ "required": [
2977
+ "operation_id",
2978
+ "status"
2979
+ ],
2980
+ "type": "object"
2981
+ },
2982
+ "AuthorizationFacts": {
2983
+ "items": false,
2984
+ "maxItems": 5,
2985
+ "minItems": 5,
2986
+ "prefixItems": [
2987
+ {
2988
+ "allOf": [
2989
+ {
2990
+ "$ref": "#/components/schemas/AuthorizationFact"
2991
+ },
2992
+ {
2993
+ "properties": {
2994
+ "kind": {
2995
+ "const": "facto_admission"
2996
+ }
2997
+ }
2998
+ }
2999
+ ]
3000
+ },
3001
+ {
3002
+ "allOf": [
3003
+ {
3004
+ "$ref": "#/components/schemas/AuthorizationFact"
3005
+ },
3006
+ {
3007
+ "properties": {
3008
+ "kind": {
3009
+ "const": "durable_commit"
3010
+ }
3011
+ }
3012
+ }
3013
+ ]
3014
+ },
3015
+ {
3016
+ "allOf": [
3017
+ {
3018
+ "$ref": "#/components/schemas/AuthorizationFact"
3019
+ },
3020
+ {
3021
+ "properties": {
3022
+ "kind": {
3023
+ "const": "provider_authorization"
3024
+ }
3025
+ }
3026
+ }
3027
+ ]
3028
+ },
3029
+ {
3030
+ "allOf": [
3031
+ {
3032
+ "$ref": "#/components/schemas/AuthorizationFact"
3033
+ },
3034
+ {
3035
+ "properties": {
3036
+ "kind": {
3037
+ "const": "chain_finality"
3038
+ }
3039
+ }
3040
+ }
3041
+ ]
3042
+ },
3043
+ {
3044
+ "allOf": [
3045
+ {
3046
+ "$ref": "#/components/schemas/AuthorizationFact"
3047
+ },
3048
+ {
3049
+ "properties": {
3050
+ "kind": {
3051
+ "const": "provider_settlement"
3052
+ }
3053
+ }
3054
+ }
3055
+ ]
3056
+ }
3057
+ ],
3058
+ "type": "array"
3059
+ },
3060
+ "AuthorizationIdempotencyLookup": {
3061
+ "additionalProperties": false,
3062
+ "properties": {
3063
+ "by": {
3064
+ "const": "idempotency_key"
3065
+ },
3066
+ "idempotency_key": {
3067
+ "maxLength": 255,
3068
+ "minLength": 16,
3069
+ "type": "string"
3070
+ },
3071
+ "operation": {
3072
+ "const": "create_authorization"
3073
+ },
3074
+ "original_credential_key_id": {
3075
+ "maxLength": 255,
3076
+ "minLength": 1,
3077
+ "type": "string"
3078
+ }
3079
+ },
3080
+ "required": [
3081
+ "by",
3082
+ "idempotency_key",
3083
+ "original_credential_key_id"
3084
+ ],
3085
+ "type": "object"
3086
+ },
3087
+ "AuthorizationLifecycle": {
3088
+ "additionalProperties": false,
3089
+ "properties": {
3090
+ "issuer": {
3091
+ "$ref": "#/components/schemas/AuthorizationSupplierSummary"
3092
+ },
3093
+ "refund_cases": {
3094
+ "items": {
3095
+ "$ref": "#/components/schemas/AuthorizationRefundCase"
3096
+ },
3097
+ "type": "array"
3098
+ }
3099
+ },
3100
+ "required": [
3101
+ "issuer",
3102
+ "refund_cases"
3103
+ ],
3104
+ "type": "object"
3105
+ },
3106
+ "AuthorizationLifecycleEntry": {
3107
+ "additionalProperties": false,
3108
+ "properties": {
3109
+ "amount": {
3110
+ "$ref": "#/components/schemas/AuthorizationUsdcAmount"
3111
+ },
3112
+ "currency": {
3113
+ "enum": [
3114
+ "USDC"
3115
+ ],
3116
+ "type": "string"
3117
+ },
3118
+ "link_status": {
3119
+ "enum": [
3120
+ "linked",
3121
+ "unlinked"
3122
+ ],
3123
+ "type": "string"
3124
+ },
3125
+ "operation_type": {
3126
+ "$ref": "#/components/schemas/AuthorizationOperationType"
3127
+ },
3128
+ "recorded_at": {
3129
+ "format": "date-time",
3130
+ "type": "string"
3131
+ },
3132
+ "resource_version": {
3133
+ "maxLength": 255,
3134
+ "minLength": 1,
3135
+ "type": "string"
3136
+ },
3137
+ "unlinked_reason": {
3138
+ "type": "string"
3139
+ }
3140
+ },
3141
+ "required": [
3142
+ "operation_type",
3143
+ "resource_version",
3144
+ "amount",
3145
+ "currency",
3146
+ "recorded_at",
3147
+ "link_status"
3148
+ ],
3149
+ "type": "object"
3150
+ },
3151
+ "AuthorizationLookupInput": {
3152
+ "additionalProperties": false,
3153
+ "properties": {
3154
+ "criteria": {
3155
+ "oneOf": [
3156
+ {
3157
+ "$ref": "#/components/schemas/AuthorizationRefLookup"
3158
+ },
3159
+ {
3160
+ "$ref": "#/components/schemas/SupplierTransactionRefLookup"
3161
+ },
3162
+ {
3163
+ "$ref": "#/components/schemas/AuthorizationIdempotencyLookup"
3164
+ },
3165
+ {
3166
+ "$ref": "#/components/schemas/AuthorizationChargeIdLookup"
3167
+ }
3168
+ ]
3169
+ },
3170
+ "program_id": {
3171
+ "maxLength": 512,
3172
+ "minLength": 1,
3173
+ "type": "string"
3174
+ }
3175
+ },
3176
+ "required": [
3177
+ "program_id",
3178
+ "criteria"
3179
+ ],
3180
+ "type": "object"
3181
+ },
3182
+ "AuthorizationLookupResult": {
3183
+ "additionalProperties": false,
3184
+ "allOf": [
3185
+ {
3186
+ "if": {
3187
+ "properties": {
3188
+ "resolution": {
3189
+ "const": "not_observed"
3190
+ }
3191
+ }
3192
+ },
3193
+ "then": {
3194
+ "not": {
3195
+ "required": [
3196
+ "authorization"
3197
+ ]
3198
+ }
3199
+ }
3200
+ },
3201
+ {
3202
+ "if": {
3203
+ "properties": {
3204
+ "resolution": {
3205
+ "const": "resolved"
3206
+ }
3207
+ }
3208
+ },
3209
+ "then": {
3210
+ "properties": {
3211
+ "authorization": {
3212
+ "properties": {
3213
+ "processing_status": {
3214
+ "enum": [
3215
+ "succeeded",
3216
+ "failed"
3217
+ ]
3218
+ }
3219
+ }
3220
+ }
3221
+ },
3222
+ "required": [
3223
+ "authorization"
3224
+ ]
3225
+ }
3226
+ },
3227
+ {
3228
+ "if": {
3229
+ "properties": {
3230
+ "resolution": {
3231
+ "const": "pending"
3232
+ }
3233
+ }
3234
+ },
3235
+ "then": {
3236
+ "properties": {
3237
+ "authorization": {
3238
+ "properties": {
3239
+ "processing_status": {
3240
+ "enum": [
3241
+ "processing"
3242
+ ]
3243
+ }
3244
+ }
3245
+ }
3246
+ },
3247
+ "required": [
3248
+ "authorization"
3249
+ ]
3250
+ }
3251
+ },
3252
+ {
3253
+ "if": {
3254
+ "properties": {
3255
+ "resolution": {
3256
+ "const": "unknown"
3257
+ }
3258
+ }
3259
+ },
3260
+ "then": {
3261
+ "properties": {
3262
+ "authorization": {
3263
+ "properties": {
3264
+ "processing_status": {
3265
+ "enum": [
3266
+ "indeterminate"
3267
+ ]
3268
+ }
3269
+ }
3270
+ }
3271
+ },
3272
+ "required": [
3273
+ "authorization"
3274
+ ]
3275
+ }
3276
+ }
3277
+ ],
3278
+ "properties": {
3279
+ "authorization": {
3280
+ "$ref": "#/components/schemas/AuthorizationProjection"
3281
+ },
3282
+ "observed_at": {
3283
+ "$ref": "#/components/schemas/AuthorizationTimestamp"
3284
+ },
3285
+ "resolution": {
3286
+ "enum": [
3287
+ "resolved",
3288
+ "pending",
3289
+ "unknown",
3290
+ "not_observed"
3291
+ ],
3292
+ "type": "string"
3293
+ }
3294
+ },
3295
+ "required": [
3296
+ "resolution",
3297
+ "observed_at"
3298
+ ],
3299
+ "type": "object"
3300
+ },
3301
+ "AuthorizationOperationType": {
3302
+ "enum": [
3303
+ "authorization_requested",
3304
+ "authorization_updated",
3305
+ "clearing",
3306
+ "reversal",
3307
+ "refund",
3308
+ "chargeback",
3309
+ "settlement"
3310
+ ],
3311
+ "type": "string"
3312
+ },
3313
+ "AuthorizationPaymentDetails": {
3314
+ "additionalProperties": false,
3315
+ "properties": {
3316
+ "fee_breakdown": {
3317
+ "additionalProperties": false,
3318
+ "properties": {
3319
+ "base_fee": {
3320
+ "$ref": "#/components/schemas/AuthorizationUsdcAmount"
3321
+ },
3322
+ "fast_pay_fee": {
3323
+ "$ref": "#/components/schemas/AuthorizationUsdcAmount"
3324
+ },
3325
+ "pooled_surcharge": {
3326
+ "$ref": "#/components/schemas/AuthorizationUsdcAmount"
3327
+ }
3328
+ },
3329
+ "required": [
3330
+ "base_fee",
3331
+ "fast_pay_fee",
3332
+ "pooled_surcharge"
3333
+ ],
3334
+ "type": "object"
3335
+ },
3336
+ "fee_total": {
3337
+ "$ref": "#/components/schemas/AuthorizationUsdcAmount"
3338
+ },
3339
+ "refund_payments": {
3340
+ "items": {
3341
+ "additionalProperties": false,
3342
+ "properties": {
3343
+ "case_id": {
3344
+ "maxLength": 36,
3345
+ "type": "string"
3346
+ },
3347
+ "chain_id": {
3348
+ "format": "int64",
3349
+ "type": "integer"
3350
+ },
3351
+ "paid_amount": {
3352
+ "$ref": "#/components/schemas/AuthorizationUsdcAmount"
3353
+ },
3354
+ "recorded_by": {
3355
+ "type": "string"
3356
+ },
3357
+ "tx_hash": {
3358
+ "pattern": "^0x[0-9a-fA-F]{64}$",
3359
+ "type": "string"
3360
+ }
3361
+ },
3362
+ "required": [
3363
+ "case_id",
3364
+ "chain_id",
3365
+ "tx_hash",
3366
+ "paid_amount",
3367
+ "recorded_by"
3368
+ ],
3369
+ "type": "object"
3370
+ },
3371
+ "type": "array"
3372
+ },
3373
+ "user_payment": {
3374
+ "additionalProperties": false,
3375
+ "properties": {
3376
+ "asset_symbol": {
3377
+ "maxLength": 32,
3378
+ "type": "string"
3379
+ },
3380
+ "chain_id": {
3381
+ "format": "int64",
3382
+ "type": "integer"
3383
+ },
3384
+ "tx_hash": {
3385
+ "pattern": "^0x[0-9a-fA-F]{64}$",
3386
+ "type": "string"
3387
+ }
3388
+ },
3389
+ "required": [
3390
+ "chain_id",
3391
+ "tx_hash"
3392
+ ],
3393
+ "type": "object"
3394
+ }
3395
+ },
3396
+ "required": [
3397
+ "fee_total",
3398
+ "fee_breakdown"
3399
+ ],
3400
+ "type": "object"
3401
+ },
3402
+ "AuthorizationProgramConnectionId": {
3403
+ "pattern": "^pconn_[A-Za-z0-9_-]{16,}$",
3404
+ "type": "string"
3405
+ },
3406
+ "AuthorizationProjection": {
3407
+ "additionalProperties": false,
3408
+ "allOf": [
3409
+ {
3410
+ "else": {
3411
+ "not": {
3412
+ "required": [
3413
+ "final_receipt"
3414
+ ]
3415
+ }
3416
+ },
3417
+ "if": {
3418
+ "properties": {
3419
+ "processing_status": {
3420
+ "const": "succeeded"
3421
+ }
3422
+ }
3423
+ },
3424
+ "then": {
3425
+ "required": [
3426
+ "charge_id"
3427
+ ]
3428
+ }
3429
+ },
3430
+ {
3431
+ "if": {
3432
+ "properties": {
3433
+ "processing_status": {
3434
+ "const": "succeeded"
3435
+ }
3436
+ }
3437
+ },
3438
+ "then": {
3439
+ "required": [
3440
+ "final_receipt"
3441
+ ]
3442
+ }
3443
+ },
3444
+ {
3445
+ "if": {
3446
+ "required": [
3447
+ "final_receipt"
3448
+ ]
3449
+ },
3450
+ "then": {
3451
+ "not": {
3452
+ "required": [
3453
+ "decline_reason_code"
3454
+ ]
3455
+ }
3456
+ }
3457
+ },
3458
+ {
3459
+ "if": {
3460
+ "required": [
3461
+ "decline_reason_code"
3462
+ ]
3463
+ },
3464
+ "then": {
3465
+ "properties": {
3466
+ "processing_status": {
3467
+ "const": "failed"
3468
+ }
3469
+ }
3470
+ }
3471
+ },
3472
+ {
3473
+ "if": {
3474
+ "required": [
3475
+ "charge_id"
3476
+ ]
3477
+ },
3478
+ "then": {
3479
+ "properties": {
3480
+ "processing_status": {
3481
+ "enum": [
3482
+ "processing",
3483
+ "succeeded",
3484
+ "failed"
3485
+ ]
3486
+ }
3487
+ }
3488
+ }
3489
+ },
3490
+ {
3491
+ "if": {
3492
+ "properties": {
3493
+ "processing_status": {
3494
+ "const": "succeeded"
3495
+ }
3496
+ }
3497
+ },
3498
+ "then": {
3499
+ "properties": {
3500
+ "final_receipt": {
3501
+ "properties": {
3502
+ "execution_outcome": {
3503
+ "const": "succeeded"
3504
+ }
3505
+ }
3506
+ }
3507
+ }
3508
+ }
3509
+ },
3510
+ {
3511
+ "if": {
3512
+ "properties": {
3513
+ "processing_status": {
3514
+ "const": "failed"
3515
+ }
3516
+ }
3517
+ },
3518
+ "then": {
3519
+ "properties": {
3520
+ "final_receipt": {
3521
+ "properties": {
3522
+ "execution_outcome": {
3523
+ "const": "failed"
3524
+ }
3525
+ }
3526
+ }
3527
+ }
3528
+ }
3529
+ }
3530
+ ],
3531
+ "properties": {
3532
+ "charge_id": {
3533
+ "maxLength": 255,
3534
+ "minLength": 1,
3535
+ "type": "string"
3536
+ },
3537
+ "decision": {
3538
+ "enum": [
3539
+ "approved",
3540
+ "declined",
3541
+ "self_reversed_timeout"
3542
+ ],
3543
+ "type": "string"
3544
+ },
3545
+ "decline_reason_code": {
3546
+ "maxLength": 64,
3547
+ "minLength": 1,
3548
+ "pattern": "^[A-Za-z0-9_.:-]+$",
3549
+ "type": "string"
3550
+ },
3551
+ "external_authorization_id": {
3552
+ "maxLength": 256,
3553
+ "minLength": 1,
3554
+ "type": "string"
3555
+ },
3556
+ "facts": {
3557
+ "$ref": "#/components/schemas/AuthorizationFacts"
3558
+ },
3559
+ "final_receipt": {
3560
+ "$ref": "#/components/schemas/ChargeFinalReceipt"
3561
+ },
3562
+ "lifecycle": {
3563
+ "$ref": "#/components/schemas/AuthorizationLifecycle"
3564
+ },
3565
+ "mapping_revision": {
3566
+ "maxLength": 255,
3567
+ "minLength": 1,
3568
+ "type": "string"
3569
+ },
3570
+ "operation_type": {
3571
+ "$ref": "#/components/schemas/AuthorizationOperationType"
3572
+ },
3573
+ "origin_connection_id": {
3574
+ "$ref": "#/components/schemas/AuthorizationProgramConnectionId"
3575
+ },
3576
+ "payment_details": {
3577
+ "$ref": "#/components/schemas/AuthorizationPaymentDetails"
3578
+ },
3579
+ "processing_status": {
3580
+ "enum": [
3581
+ "processing",
3582
+ "succeeded",
3583
+ "failed",
3584
+ "indeterminate"
3585
+ ],
3586
+ "type": "string"
3587
+ },
3588
+ "resource_version": {
3589
+ "maxLength": 255,
3590
+ "minLength": 1,
3591
+ "type": "string"
3592
+ },
3593
+ "revision": {
3594
+ "$ref": "#/components/schemas/AuthorizationRevision"
3595
+ },
3596
+ "supplier_transaction_id": {
3597
+ "maxLength": 256,
3598
+ "minLength": 1,
3599
+ "type": "string"
3600
+ }
3601
+ },
3602
+ "required": [
3603
+ "origin_connection_id",
3604
+ "processing_status",
3605
+ "facts",
3606
+ "revision",
3607
+ "operation_type",
3608
+ "resource_version",
3609
+ "mapping_revision",
3610
+ "external_authorization_id"
3611
+ ],
3612
+ "type": "object"
3613
+ },
3614
+ "AuthorizationRefLookup": {
3615
+ "additionalProperties": false,
3616
+ "properties": {
3617
+ "by": {
3618
+ "const": "external_authorization_id"
3619
+ },
3620
+ "external_authorization_id": {
3621
+ "maxLength": 256,
3622
+ "minLength": 1,
3623
+ "type": "string"
3624
+ },
3625
+ "fact_type": {
3626
+ "$ref": "#/components/schemas/AuthorizationOperationType"
3627
+ },
3628
+ "mapping_revision": {
3629
+ "maxLength": 255,
3630
+ "minLength": 1,
3631
+ "type": "string"
3632
+ },
3633
+ "resource_version": {
3634
+ "maxLength": 255,
3635
+ "minLength": 1,
3636
+ "type": "string"
3637
+ }
3638
+ },
3639
+ "required": [
3640
+ "by",
3641
+ "external_authorization_id",
3642
+ "resource_version",
3643
+ "mapping_revision"
3644
+ ],
3645
+ "type": "object"
3646
+ },
3647
+ "AuthorizationRefundCase": {
3648
+ "additionalProperties": false,
3649
+ "properties": {
3650
+ "amount": {
3651
+ "$ref": "#/components/schemas/AuthorizationUsdcAmount"
3652
+ },
3653
+ "case_id": {
3654
+ "pattern": "^rfc_[0-9a-f]{32}$",
3655
+ "type": "string"
3656
+ },
3657
+ "excess_amount": {
3658
+ "$ref": "#/components/schemas/AuthorizationUsdcAmount"
3659
+ },
3660
+ "not_payable_reason": {
3661
+ "type": "string"
3662
+ },
3663
+ "paid_amount": {
3664
+ "$ref": "#/components/schemas/AuthorizationUsdcAmount"
3665
+ },
3666
+ "source_operation_type": {
3667
+ "$ref": "#/components/schemas/AuthorizationOperationType"
3668
+ },
3669
+ "source_resource_version": {
3670
+ "maxLength": 255,
3671
+ "minLength": 1,
3672
+ "type": "string"
3673
+ },
3674
+ "status": {
3675
+ "type": "string"
3676
+ },
3677
+ "updated_at": {
3678
+ "format": "date-time",
3679
+ "type": "string"
3680
+ }
3681
+ },
3682
+ "required": [
3683
+ "case_id",
3684
+ "source_operation_type",
3685
+ "source_resource_version",
3686
+ "status",
3687
+ "amount",
3688
+ "excess_amount",
3689
+ "updated_at"
3690
+ ],
3691
+ "type": "object"
3692
+ },
3693
+ "AuthorizationRevision": {
3694
+ "maximum": 2147483647,
3695
+ "minimum": 1,
3696
+ "type": "integer"
3697
+ },
3698
+ "AuthorizationSupplierSummary": {
3699
+ "additionalProperties": false,
3700
+ "properties": {
3701
+ "cleared_amount": {
3702
+ "$ref": "#/components/schemas/AuthorizationUsdcAmount"
3703
+ },
3704
+ "entries": {
3705
+ "items": {
3706
+ "$ref": "#/components/schemas/AuthorizationLifecycleEntry"
3707
+ },
3708
+ "type": "array"
3709
+ },
3710
+ "refunded_amount": {
3711
+ "$ref": "#/components/schemas/AuthorizationUsdcAmount"
3712
+ },
3713
+ "reversed_amount": {
3714
+ "$ref": "#/components/schemas/AuthorizationUsdcAmount"
3715
+ },
3716
+ "state": {
3717
+ "type": "string"
3718
+ }
3719
+ },
3720
+ "required": [
3721
+ "state",
3722
+ "cleared_amount",
3723
+ "reversed_amount",
3724
+ "refunded_amount",
3725
+ "entries"
3726
+ ],
3727
+ "type": "object"
3728
+ },
3729
+ "AuthorizationTimestamp": {
3730
+ "format": "date-time",
3731
+ "type": "string"
3732
+ },
3733
+ "AuthorizationUsdcAmount": {
3734
+ "pattern": "^-?[0-9]+\\.[0-9]{6}$",
3735
+ "type": "string"
3736
+ },
3737
+ "AuthorizationUuid": {
3738
+ "format": "uuid",
3739
+ "type": "string"
3740
+ },
3741
+ "BindingFundingProjection": {
3742
+ "additionalProperties": false,
3743
+ "properties": {
3744
+ "configured": {
3745
+ "type": "boolean"
3746
+ },
3747
+ "reason": {
3748
+ "type": "string"
3749
+ },
3750
+ "state": {
3751
+ "enum": [
3752
+ "ready",
3753
+ "not_configured",
3754
+ "unavailable"
3755
+ ],
3756
+ "type": "string"
3757
+ }
3758
+ },
3759
+ "required": [
3760
+ "configured",
3761
+ "state"
3762
+ ],
3763
+ "type": "object"
3764
+ },
3765
+ "BindingLookupInput": {
3766
+ "additionalProperties": false,
3767
+ "properties": {
3768
+ "external_card_id": {
3769
+ "maxLength": 255,
3770
+ "minLength": 1,
3771
+ "not": {
3772
+ "pattern": "[0-9]{13}"
3773
+ },
3774
+ "type": "string"
3775
+ }
3776
+ },
3777
+ "required": [
3778
+ "external_card_id"
3779
+ ],
3780
+ "type": "object"
3781
+ },
3782
+ "BindingLookupResult": {
3783
+ "additionalProperties": false,
3784
+ "properties": {
3785
+ "binding": {
3786
+ "anyOf": [
3787
+ {
3788
+ "$ref": "#/components/schemas/BindingSummary"
3789
+ },
3790
+ {
3791
+ "type": "null"
3792
+ }
3793
+ ]
3794
+ },
3795
+ "found": {
3796
+ "type": "boolean"
3797
+ }
3798
+ },
3799
+ "required": [
3800
+ "found",
3801
+ "binding"
3802
+ ],
3803
+ "type": "object"
3804
+ },
3805
+ "BindingSummary": {
3806
+ "additionalProperties": false,
3807
+ "properties": {
3808
+ "card": {
3809
+ "$ref": "#/components/schemas/CardDisplayFacts"
3810
+ },
3811
+ "funding": {
3812
+ "$ref": "#/components/schemas/BindingFundingProjection"
3813
+ },
3814
+ "id": {
3815
+ "$ref": "#/components/schemas/CardBindingId"
3816
+ },
3817
+ "revision": {
3818
+ "format": "int32",
3819
+ "minimum": 1,
3820
+ "type": "integer"
3821
+ },
3822
+ "status": {
3823
+ "enum": [
3824
+ "active",
3825
+ "revoked"
3826
+ ],
3827
+ "type": "string"
3828
+ }
3829
+ },
3830
+ "required": [
3831
+ "id",
3832
+ "status",
3833
+ "revision",
3834
+ "card"
3835
+ ],
3836
+ "type": "object"
3837
+ },
3838
+ "CardBindingId": {
3839
+ "pattern": "^cb_[A-Za-z0-9_-]{16,}$",
3840
+ "type": "string"
3841
+ },
3842
+ "CardDisplayFacts": {
3843
+ "additionalProperties": false,
3844
+ "properties": {
3845
+ "last4": {
3846
+ "anyOf": [
3847
+ {
3848
+ "pattern": "^[0-9]{4}$",
3849
+ "type": "string"
3850
+ },
3851
+ {
3852
+ "type": "null"
3853
+ }
3854
+ ]
3855
+ },
3856
+ "network": {
3857
+ "anyOf": [
3858
+ {
3859
+ "maxLength": 40,
3860
+ "type": "string"
3861
+ },
3862
+ {
3863
+ "type": "null"
3864
+ }
3865
+ ]
3866
+ },
3867
+ "type": {
3868
+ "anyOf": [
3869
+ {
3870
+ "enum": [
3871
+ "virtual",
3872
+ "physical",
3873
+ "unknown"
3874
+ ],
3875
+ "type": "string"
3876
+ },
3877
+ {
3878
+ "type": "null"
3879
+ }
3880
+ ]
3881
+ }
3882
+ },
3883
+ "required": [
3884
+ "network",
3885
+ "type",
3886
+ "last4"
3887
+ ],
3888
+ "type": "object"
3889
+ },
3890
+ "CardError": {
3891
+ "additionalProperties": false,
3892
+ "properties": {
3893
+ "error": {
3894
+ "enum": [
3895
+ "invalid_request",
3896
+ "authentication_failed",
3897
+ "program_grant_denied",
3898
+ "not_found",
3899
+ "integrity_conflict",
3900
+ "query_unavailable",
3901
+ "history_selection_mismatch",
3902
+ "read_snapshot_stale",
3903
+ "read_snapshot_expired",
3904
+ "internal_error"
3905
+ ],
3906
+ "type": "string"
3907
+ },
3908
+ "message": {
3909
+ "maxLength": 512,
3910
+ "minLength": 1,
3911
+ "type": "string"
3912
+ },
3913
+ "request_id": {
3914
+ "maxLength": 128,
3915
+ "minLength": 1,
3916
+ "type": "string"
3917
+ }
3918
+ },
3919
+ "required": [
3920
+ "error",
3921
+ "message",
3922
+ "request_id"
3923
+ ],
3924
+ "type": "object"
3925
+ },
3926
+ "CardholderVerification": {
3927
+ "additionalProperties": false,
3928
+ "properties": {
3929
+ "evidence_id": {
3930
+ "maxLength": 256,
3931
+ "minLength": 1,
3932
+ "type": "string"
3933
+ },
3934
+ "method": {
3935
+ "enum": [
3936
+ "pin",
3937
+ "biometric",
3938
+ "cdcvm",
3939
+ "signature",
3940
+ "no_cvm",
3941
+ "provider_attested"
3942
+ ],
3943
+ "type": "string"
3944
+ },
3945
+ "verified_at": {
3946
+ "$ref": "#/components/schemas/AuthorizationTimestamp"
3947
+ }
3948
+ },
3949
+ "required": [
3950
+ "method",
3951
+ "verified_at",
3952
+ "evidence_id"
3953
+ ],
3954
+ "type": "object"
3955
+ },
3956
+ "CardInboundEventInput": {
3957
+ "oneOf": [
3958
+ {
3959
+ "additionalProperties": false,
3960
+ "properties": {
3961
+ "assertion_jws": {
3962
+ "minLength": 1,
3963
+ "pattern": "\\S",
3964
+ "type": "string",
3965
+ "writeOnly": true
3966
+ },
3967
+ "delivery_id": {
3968
+ "maxLength": 255,
3969
+ "minLength": 1,
3970
+ "type": "string"
3971
+ },
3972
+ "external_account_id": {
3973
+ "type": "null"
3974
+ },
3975
+ "external_card_id": {
3976
+ "maxLength": 255,
3977
+ "minLength": 1,
3978
+ "not": {
3979
+ "pattern": "[0-9]{13}"
3980
+ },
3981
+ "type": "string"
3982
+ },
3983
+ "kind": {
3984
+ "const": "card.unbound",
3985
+ "type": "string"
3986
+ },
3987
+ "lifecycle_status": {
3988
+ "type": "null"
3989
+ }
3990
+ },
3991
+ "required": [
3992
+ "kind",
3993
+ "delivery_id",
3994
+ "assertion_jws",
3995
+ "external_card_id"
3996
+ ],
3997
+ "type": "object"
3998
+ },
3999
+ {
4000
+ "additionalProperties": false,
4001
+ "properties": {
4002
+ "assertion_jws": {
4003
+ "minLength": 1,
4004
+ "pattern": "\\S",
4005
+ "type": "string",
4006
+ "writeOnly": true
4007
+ },
4008
+ "delivery_id": {
4009
+ "maxLength": 255,
4010
+ "minLength": 1,
4011
+ "type": "string"
4012
+ },
4013
+ "external_account_id": {
4014
+ "type": "null"
4015
+ },
4016
+ "external_card_id": {
4017
+ "maxLength": 255,
4018
+ "minLength": 1,
4019
+ "not": {
4020
+ "pattern": "[0-9]{13}"
4021
+ },
4022
+ "type": "string"
4023
+ },
4024
+ "kind": {
4025
+ "const": "card.lifecycle_changed",
4026
+ "type": "string"
4027
+ },
4028
+ "lifecycle_status": {
4029
+ "enum": [
4030
+ "pending",
4031
+ "active",
4032
+ "frozen",
4033
+ "closed",
4034
+ "replaced",
4035
+ "unknown"
4036
+ ],
4037
+ "type": "string"
4038
+ }
4039
+ },
4040
+ "required": [
4041
+ "kind",
4042
+ "delivery_id",
4043
+ "assertion_jws",
4044
+ "external_card_id",
4045
+ "lifecycle_status"
4046
+ ],
4047
+ "type": "object"
4048
+ },
4049
+ {
4050
+ "additionalProperties": false,
4051
+ "properties": {
4052
+ "assertion_jws": {
4053
+ "minLength": 1,
4054
+ "pattern": "\\S",
4055
+ "type": "string",
4056
+ "writeOnly": true
4057
+ },
4058
+ "delivery_id": {
4059
+ "maxLength": 255,
4060
+ "minLength": 1,
4061
+ "type": "string"
4062
+ },
4063
+ "external_account_id": {
4064
+ "maxLength": 512,
4065
+ "minLength": 1,
4066
+ "type": "string"
4067
+ },
4068
+ "external_card_id": {
4069
+ "type": "null"
4070
+ },
4071
+ "kind": {
4072
+ "const": "account.released",
4073
+ "type": "string"
4074
+ },
4075
+ "lifecycle_status": {
4076
+ "type": "null"
4077
+ }
4078
+ },
4079
+ "required": [
4080
+ "kind",
4081
+ "delivery_id",
4082
+ "assertion_jws",
4083
+ "external_account_id"
4084
+ ],
4085
+ "type": "object"
4086
+ }
4087
+ ]
4088
+ },
4089
+ "CardInboundEventReceipt": {
4090
+ "oneOf": [
4091
+ {
4092
+ "additionalProperties": false,
4093
+ "properties": {
4094
+ "delivery_id": {
4095
+ "maxLength": 255,
4096
+ "minLength": 1,
4097
+ "type": "string"
4098
+ },
4099
+ "disposition": {
4100
+ "const": "applied",
4101
+ "type": "string"
4102
+ },
4103
+ "effect": {
4104
+ "enum": [
4105
+ "revoked",
4106
+ "status_updated",
4107
+ "released",
4108
+ "none"
4109
+ ],
4110
+ "type": "string"
4111
+ }
4112
+ },
4113
+ "required": [
4114
+ "delivery_id",
4115
+ "disposition",
4116
+ "effect"
4117
+ ],
4118
+ "type": "object"
4119
+ },
4120
+ {
4121
+ "additionalProperties": false,
4122
+ "properties": {
4123
+ "delivery_id": {
4124
+ "maxLength": 255,
4125
+ "minLength": 1,
4126
+ "type": "string"
4127
+ },
4128
+ "disposition": {
4129
+ "const": "duplicate",
4130
+ "type": "string"
4131
+ },
4132
+ "effect": {
4133
+ "type": "null"
4134
+ }
4135
+ },
4136
+ "required": [
4137
+ "delivery_id",
4138
+ "disposition",
4139
+ "effect"
4140
+ ],
4141
+ "type": "object"
4142
+ }
4143
+ ]
4144
+ },
4145
+ "CardMachineError": {
4146
+ "additionalProperties": false,
4147
+ "properties": {
4148
+ "error": {
4149
+ "enum": [
4150
+ "invalid_request",
4151
+ "authentication_failed",
4152
+ "program_grant_denied",
4153
+ "assertion_rejected",
4154
+ "assertion_replayed",
4155
+ "tenant_scope_mismatch",
4156
+ "integrity_conflict",
4157
+ "provider_proof_required",
4158
+ "proof_mode_denied",
4159
+ "binding_admission_closed",
4160
+ "prohibited_data",
4161
+ "return_uri_not_registered",
4162
+ "not_found",
4163
+ "rate_limited",
4164
+ "intent_token_rejected",
4165
+ "intent_sealed",
4166
+ "intent_expired",
4167
+ "stale_revision",
4168
+ "internal_error"
4169
+ ],
4170
+ "type": "string"
4171
+ },
4172
+ "message": {
4173
+ "type": "string"
4174
+ },
4175
+ "request_id": {
4176
+ "type": "string"
4177
+ }
4178
+ },
4179
+ "required": [
4180
+ "error",
4181
+ "message",
4182
+ "request_id"
4183
+ ],
4184
+ "type": "object"
4185
+ },
4186
+ "CardNoStoreHeader": {
4187
+ "const": "no-store",
4188
+ "type": "string"
4189
+ },
4190
+ "CardTimestamp": {
4191
+ "format": "date-time",
4192
+ "type": "string"
4193
+ },
4194
+ "CardUuid": {
4195
+ "format": "uuid",
4196
+ "type": "string"
4197
+ },
4198
+ "ChargeFinalReceipt": {
4199
+ "additionalProperties": false,
4200
+ "allOf": [
4201
+ {
4202
+ "properties": {
4203
+ "facts_at_finality": {
4204
+ "prefixItems": [
4205
+ {},
4206
+ {},
4207
+ {},
4208
+ {
4209
+ "properties": {
4210
+ "state": {
4211
+ "const": "confirmed"
4212
+ }
4213
+ }
4214
+ }
4215
+ ]
4216
+ }
4217
+ }
4218
+ },
4219
+ {
4220
+ "else": {
4221
+ "properties": {
4222
+ "execution_outcome": {
4223
+ "const": "failed"
4224
+ }
4225
+ }
4226
+ },
4227
+ "if": {
4228
+ "properties": {
4229
+ "terminal_action": {
4230
+ "const": "releaseFor"
4231
+ }
4232
+ }
4233
+ },
4234
+ "then": {
4235
+ "properties": {
4236
+ "execution_outcome": {
4237
+ "const": "succeeded"
4238
+ },
4239
+ "facts_at_finality": {
4240
+ "prefixItems": [
4241
+ {
4242
+ "properties": {
4243
+ "state": {
4244
+ "const": "confirmed"
4245
+ }
4246
+ }
4247
+ },
4248
+ {
4249
+ "properties": {
4250
+ "state": {
4251
+ "const": "confirmed"
4252
+ }
4253
+ }
4254
+ }
4255
+ ]
4256
+ }
4257
+ }
4258
+ }
4259
+ }
4260
+ ],
4261
+ "properties": {
4262
+ "charge_id": {
4263
+ "maxLength": 255,
4264
+ "minLength": 1,
4265
+ "type": "string"
4266
+ },
4267
+ "execution_outcome": {
4268
+ "enum": [
4269
+ "succeeded",
4270
+ "failed"
4271
+ ]
4272
+ },
4273
+ "external_authorization_id": {
4274
+ "maxLength": 256,
4275
+ "minLength": 1,
4276
+ "type": "string"
4277
+ },
4278
+ "facts_at_finality": {
4279
+ "$ref": "#/components/schemas/AuthorizationFacts"
4280
+ },
4281
+ "finalized_at": {
4282
+ "$ref": "#/components/schemas/AuthorizationTimestamp"
4283
+ },
4284
+ "mapping_revision": {
4285
+ "maxLength": 255,
4286
+ "minLength": 1,
4287
+ "type": "string"
4288
+ },
4289
+ "operation_type": {
4290
+ "$ref": "#/components/schemas/AuthorizationOperationType"
4291
+ },
4292
+ "receipt_event_id": {
4293
+ "$ref": "#/components/schemas/AuthorizationUuid"
4294
+ },
4295
+ "resource_version": {
4296
+ "maxLength": 255,
4297
+ "minLength": 1,
4298
+ "type": "string"
4299
+ },
4300
+ "terminal_action": {
4301
+ "enum": [
4302
+ "releaseFor",
4303
+ "cancelReservation"
4304
+ ]
4305
+ }
4306
+ },
4307
+ "required": [
4308
+ "receipt_event_id",
4309
+ "charge_id",
4310
+ "external_authorization_id",
4311
+ "mapping_revision",
4312
+ "operation_type",
4313
+ "resource_version",
4314
+ "execution_outcome",
4315
+ "terminal_action",
4316
+ "finalized_at",
4317
+ "facts_at_finality"
4318
+ ],
4319
+ "type": "object"
4320
+ },
4321
+ "ConnectIntentDigest": {
4322
+ "pattern": "^sha256:[a-fA-F0-9]{64}$",
4323
+ "type": "string"
4324
+ },
4325
+ "ConnectIntentId": {
4326
+ "pattern": "^cint_[A-Za-z0-9_-]{16,}$",
4327
+ "type": "string"
4328
+ },
4329
+ "DeadLetterItem": {
4330
+ "additionalProperties": false,
4331
+ "properties": {
4332
+ "binding_id": {
4333
+ "$ref": "#/components/schemas/CardBindingId"
4334
+ },
4335
+ "binding_revision": {
4336
+ "format": "int32",
4337
+ "type": "integer"
4338
+ },
4339
+ "connection_sequence": {
4340
+ "anyOf": [
4341
+ {
4342
+ "format": "int64",
4343
+ "type": "integer"
4344
+ },
4345
+ {
4346
+ "type": "null"
4347
+ }
4348
+ ]
4349
+ },
4350
+ "dead_lettered_at": {
4351
+ "anyOf": [
4352
+ {
4353
+ "$ref": "#/components/schemas/CardTimestamp"
4354
+ },
4355
+ {
4356
+ "type": "null"
4357
+ }
4358
+ ]
4359
+ },
4360
+ "delivery_attempts": {
4361
+ "format": "int32",
4362
+ "type": "integer"
4363
+ },
4364
+ "event_kind": {
4365
+ "type": "string"
4366
+ },
4367
+ "id": {
4368
+ "$ref": "#/components/schemas/CardUuid"
4369
+ },
4370
+ "last_delivery_error": {
4371
+ "anyOf": [
4372
+ {
4373
+ "type": "string"
4374
+ },
4375
+ {
4376
+ "type": "null"
4377
+ }
4378
+ ]
4379
+ },
4380
+ "replay_count": {
4381
+ "format": "int32",
4382
+ "type": "integer"
4383
+ }
4384
+ },
4385
+ "required": [
4386
+ "id",
4387
+ "event_kind",
4388
+ "binding_id",
4389
+ "binding_revision",
4390
+ "connection_sequence",
4391
+ "delivery_attempts",
4392
+ "last_delivery_error",
4393
+ "dead_lettered_at",
4394
+ "replay_count"
4395
+ ],
4396
+ "type": "object"
4397
+ },
4398
+ "DeadLetterPage": {
4399
+ "additionalProperties": false,
4400
+ "properties": {
4401
+ "items": {
4402
+ "items": {
4403
+ "$ref": "#/components/schemas/DeadLetterItem"
4404
+ },
4405
+ "type": "array"
4406
+ }
4407
+ },
4408
+ "required": [
4409
+ "items"
4410
+ ],
4411
+ "type": "object"
4412
+ },
4413
+ "DeadLetterReplayAccepted": {
4414
+ "additionalProperties": false,
4415
+ "properties": {
4416
+ "id": {
4417
+ "$ref": "#/components/schemas/CardUuid"
4418
+ },
4419
+ "status": {
4420
+ "const": "accepted",
4421
+ "type": "string"
4422
+ }
4423
+ },
4424
+ "required": [
4425
+ "id",
4426
+ "status"
4427
+ ],
4428
+ "type": "object"
4429
+ },
4430
+ "DeliveryItem": {
4431
+ "additionalProperties": false,
4432
+ "properties": {
4433
+ "accepted_at": {
4434
+ "$ref": "#/components/schemas/CardTimestamp"
4435
+ },
4436
+ "connection_sequence": {
4437
+ "minimum": 1,
4438
+ "type": [
4439
+ "integer",
4440
+ "null"
4441
+ ]
4442
+ },
4443
+ "delivery_state": {
4444
+ "enum": [
4445
+ "pending",
4446
+ "held",
4447
+ "accepted",
4448
+ "failed",
4449
+ "dead_lettered",
4450
+ "indeterminate"
4451
+ ],
4452
+ "type": "string"
4453
+ },
4454
+ "event_id": {
4455
+ "$ref": "#/components/schemas/CardUuid"
4456
+ },
4457
+ "event_sha256": {
4458
+ "pattern": "^[a-f0-9]{64}$",
4459
+ "type": "string"
4460
+ },
4461
+ "origin_connection_id": {
4462
+ "$ref": "#/components/schemas/ProgramConnectionId"
4463
+ },
4464
+ "target_revision": {
4465
+ "$ref": "#/components/schemas/CardUuid"
4466
+ }
4467
+ },
4468
+ "required": [
4469
+ "event_id",
4470
+ "origin_connection_id",
4471
+ "connection_sequence",
4472
+ "event_sha256",
4473
+ "target_revision",
4474
+ "delivery_state"
4475
+ ],
4476
+ "type": "object"
4477
+ },
4478
+ "DeliveryPage": {
4479
+ "additionalProperties": false,
4480
+ "allOf": [
4481
+ {
4482
+ "if": {
4483
+ "properties": {
4484
+ "complete": {
4485
+ "const": true
4486
+ }
4487
+ }
4488
+ },
4489
+ "then": {
4490
+ "properties": {
4491
+ "next_cursor": {
4492
+ "type": "null"
4493
+ }
4494
+ }
4495
+ }
4496
+ }
4497
+ ],
4498
+ "properties": {
4499
+ "complete": {
4500
+ "type": "boolean"
4501
+ },
4502
+ "items": {
4503
+ "items": {
4504
+ "$ref": "#/components/schemas/DeliveryItem"
4505
+ },
4506
+ "maxItems": 100,
4507
+ "minItems": 0,
4508
+ "type": "array"
4509
+ },
4510
+ "next_cursor": {
4511
+ "maxLength": 4096,
4512
+ "type": [
4513
+ "string",
4514
+ "null"
4515
+ ]
4516
+ },
4517
+ "snapshot_at": {
4518
+ "$ref": "#/components/schemas/CardTimestamp"
4519
+ },
4520
+ "snapshot_token": {
4521
+ "maxLength": 4096,
4522
+ "minLength": 16,
4523
+ "type": "string"
4524
+ },
4525
+ "to_at": {
4526
+ "$ref": "#/components/schemas/CardTimestamp"
4527
+ }
4528
+ },
4529
+ "required": [
4530
+ "snapshot_token",
4531
+ "snapshot_at",
4532
+ "to_at",
4533
+ "items",
4534
+ "next_cursor",
4535
+ "complete"
4536
+ ],
4537
+ "type": "object"
4538
+ },
4539
+ "DeliveryReconciliationListInput": {
4540
+ "additionalProperties": false,
4541
+ "oneOf": [
4542
+ {
4543
+ "not": {
4544
+ "anyOf": [
4545
+ {
4546
+ "required": [
4547
+ "from_at"
4548
+ ]
4549
+ },
4550
+ {
4551
+ "required": [
4552
+ "to_at"
4553
+ ]
4554
+ }
4555
+ ]
4556
+ },
4557
+ "required": [
4558
+ "selection_id"
4559
+ ]
4560
+ },
4561
+ {
4562
+ "not": {
4563
+ "required": [
4564
+ "selection_id"
4565
+ ]
4566
+ },
4567
+ "required": [
4568
+ "from_at",
4569
+ "to_at"
4570
+ ]
4571
+ }
4572
+ ],
4573
+ "properties": {
4574
+ "cursor": {
4575
+ "maxLength": 4096,
4576
+ "minLength": 16,
4577
+ "type": "string"
4578
+ },
4579
+ "from_at": {
4580
+ "$ref": "#/components/schemas/CardTimestamp"
4581
+ },
4582
+ "page_size": {
4583
+ "maximum": 100,
4584
+ "minimum": 1,
4585
+ "type": "integer"
4586
+ },
4587
+ "program_id": {
4588
+ "maxLength": 512,
4589
+ "minLength": 1,
4590
+ "type": "string"
4591
+ },
4592
+ "selection_id": {
4593
+ "$ref": "#/components/schemas/CardUuid"
4594
+ },
4595
+ "snapshot_token": {
4596
+ "maxLength": 4096,
4597
+ "minLength": 16,
4598
+ "type": "string"
4599
+ },
4600
+ "target_revision": {
4601
+ "$ref": "#/components/schemas/CardUuid"
4602
+ },
4603
+ "to_at": {
4604
+ "$ref": "#/components/schemas/CardTimestamp"
4605
+ }
4606
+ },
4607
+ "required": [
4608
+ "program_id",
4609
+ "target_revision",
4610
+ "page_size"
4611
+ ],
4612
+ "type": "object"
4613
+ },
4614
+ "DeliveryReplayAccepted": {
4615
+ "additionalProperties": false,
4616
+ "properties": {
4617
+ "replay_id": {
4618
+ "$ref": "#/components/schemas/CardUuid"
4619
+ },
4620
+ "selection_id": {
4621
+ "$ref": "#/components/schemas/CardUuid"
4622
+ },
4623
+ "status": {
4624
+ "const": "accepted"
4625
+ },
4626
+ "target_revision": {
4627
+ "$ref": "#/components/schemas/CardUuid"
4628
+ }
4629
+ },
4630
+ "required": [
4631
+ "replay_id",
4632
+ "selection_id",
4633
+ "target_revision",
4634
+ "status"
4635
+ ],
4636
+ "type": "object"
4637
+ },
4638
+ "DeliveryReplayCreateInput": {
4639
+ "additionalProperties": false,
4640
+ "properties": {
4641
+ "program_id": {
4642
+ "maxLength": 512,
4643
+ "minLength": 1,
4644
+ "type": "string"
4645
+ },
4646
+ "selection_id": {
4647
+ "$ref": "#/components/schemas/CardUuid"
4648
+ }
4649
+ },
4650
+ "required": [
4651
+ "program_id",
4652
+ "selection_id"
4653
+ ],
4654
+ "type": "object"
4655
+ },
4656
+ "IntentCancelInput": {
4657
+ "additionalProperties": false,
4658
+ "properties": {
4659
+ "intent_token": {
4660
+ "type": "string",
4661
+ "writeOnly": true
4662
+ }
4663
+ },
4664
+ "required": [
4665
+ "intent_token"
4666
+ ],
4667
+ "type": "object"
4668
+ },
4669
+ "IntentCancelled": {
4670
+ "additionalProperties": false,
4671
+ "properties": {
4672
+ "id": {
4673
+ "$ref": "#/components/schemas/ConnectIntentId"
4674
+ },
4675
+ "status": {
4676
+ "const": "cancelled",
4677
+ "type": "string"
4678
+ }
4679
+ },
4680
+ "required": [
4681
+ "id",
4682
+ "status"
4683
+ ],
4684
+ "type": "object"
4685
+ },
4686
+ "IntentCardItem": {
4687
+ "additionalProperties": false,
4688
+ "properties": {
4689
+ "binding_id": {
4690
+ "$ref": "#/components/schemas/CardBindingId"
4691
+ },
4692
+ "card": {
4693
+ "$ref": "#/components/schemas/CardDisplayFacts"
4694
+ },
4695
+ "status": {
4696
+ "enum": [
4697
+ "active",
4698
+ "revoked"
4699
+ ],
4700
+ "type": "string"
4701
+ }
4702
+ },
4703
+ "required": [
4704
+ "binding_id",
4705
+ "status",
4706
+ "card"
4707
+ ],
4708
+ "type": "object"
4709
+ },
4710
+ "IntentCardList": {
4711
+ "additionalProperties": false,
4712
+ "properties": {
4713
+ "cards": {
4714
+ "items": {
4715
+ "$ref": "#/components/schemas/IntentCardItem"
4716
+ },
4717
+ "type": "array"
4718
+ },
4719
+ "id": {
4720
+ "$ref": "#/components/schemas/ConnectIntentId"
4721
+ },
4722
+ "revision": {
4723
+ "$ref": "#/components/schemas/ConnectIntentDigest"
4724
+ }
4725
+ },
4726
+ "required": [
4727
+ "id",
4728
+ "revision",
4729
+ "cards"
4730
+ ],
4731
+ "type": "object"
4732
+ },
4733
+ "IntentCardsReplaced": {
4734
+ "additionalProperties": false,
4735
+ "properties": {
4736
+ "added_binding_ids": {
4737
+ "items": {
4738
+ "$ref": "#/components/schemas/CardBindingId"
4739
+ },
4740
+ "type": "array"
4741
+ },
4742
+ "id": {
4743
+ "$ref": "#/components/schemas/ConnectIntentId"
4744
+ },
4745
+ "kept_binding_ids": {
4746
+ "items": {
4747
+ "$ref": "#/components/schemas/CardBindingId"
4748
+ },
4749
+ "type": "array"
4750
+ },
4751
+ "removed_binding_ids": {
4752
+ "items": {
4753
+ "$ref": "#/components/schemas/CardBindingId"
4754
+ },
4755
+ "type": "array"
4756
+ },
4757
+ "revision": {
4758
+ "$ref": "#/components/schemas/ConnectIntentDigest"
4759
+ },
4760
+ "status": {
4761
+ "enum": [
4762
+ "applied",
4763
+ "no_change"
4764
+ ],
4765
+ "type": "string"
4766
+ }
4767
+ },
4768
+ "required": [
4769
+ "id",
4770
+ "status",
4771
+ "revision",
4772
+ "added_binding_ids",
4773
+ "removed_binding_ids",
4774
+ "kept_binding_ids"
4775
+ ],
4776
+ "type": "object"
4777
+ },
4778
+ "IntentCardsReplaceInput": {
4779
+ "additionalProperties": false,
4780
+ "properties": {
4781
+ "approval_id": {
4782
+ "maxLength": 255,
4783
+ "minLength": 1,
4784
+ "type": "string"
4785
+ },
4786
+ "approval_sha256": {
4787
+ "pattern": "^[a-f0-9]{64}$",
4788
+ "type": "string"
4789
+ },
4790
+ "cards": {
4791
+ "items": {
4792
+ "$ref": "#/components/schemas/TargetCardInput"
4793
+ },
4794
+ "maxItems": 50,
4795
+ "type": "array"
4796
+ },
4797
+ "external_account_id": {
4798
+ "anyOf": [
4799
+ {
4800
+ "maxLength": 512,
4801
+ "minLength": 1,
4802
+ "type": "string"
4803
+ },
4804
+ {
4805
+ "type": "null"
4806
+ }
4807
+ ]
4808
+ },
4809
+ "intent_token": {
4810
+ "type": "string",
4811
+ "writeOnly": true
4812
+ },
4813
+ "revision": {
4814
+ "$ref": "#/components/schemas/ConnectIntentDigest"
4815
+ }
4816
+ },
4817
+ "required": [
4818
+ "intent_token",
4819
+ "approval_id",
4820
+ "approval_sha256",
4821
+ "revision",
4822
+ "cards"
4823
+ ],
4824
+ "type": "object"
4825
+ },
4826
+ "ProgramConnectionId": {
4827
+ "pattern": "^pconn_[A-Za-z0-9_-]{16,}$",
4828
+ "type": "string"
4829
+ },
4830
+ "SupplierTransactionRefLookup": {
4831
+ "additionalProperties": false,
4832
+ "properties": {
4833
+ "by": {
4834
+ "const": "supplier_transaction_id"
4835
+ },
4836
+ "fact_type": {
4837
+ "$ref": "#/components/schemas/AuthorizationOperationType"
4838
+ },
4839
+ "mapping_revision": {
4840
+ "maxLength": 255,
4841
+ "minLength": 1,
4842
+ "type": "string"
4843
+ },
4844
+ "resource_version": {
4845
+ "maxLength": 255,
4846
+ "minLength": 1,
4847
+ "type": "string"
4848
+ },
4849
+ "supplier_transaction_id": {
4850
+ "maxLength": 256,
4851
+ "minLength": 1,
4852
+ "type": "string"
4853
+ }
4854
+ },
4855
+ "required": [
4856
+ "by",
4857
+ "supplier_transaction_id",
4858
+ "resource_version",
4859
+ "mapping_revision"
4860
+ ],
4861
+ "type": "object"
4862
+ },
4863
+ "SynchronousAuthorizationApproved": {
4864
+ "additionalProperties": false,
4865
+ "properties": {
4866
+ "charge_id": {
4867
+ "type": "string"
4868
+ },
4869
+ "deadline_at": {
4870
+ "format": "date-time",
4871
+ "type": "string"
4872
+ },
4873
+ "decided_at": {
4874
+ "format": "date-time",
4875
+ "type": "string"
4876
+ },
4877
+ "decision": {
4878
+ "const": "approved"
4879
+ },
4880
+ "decision_id": {
4881
+ "format": "uuid",
4882
+ "type": "string"
4883
+ },
4884
+ "status": {
4885
+ "const": "approved"
4886
+ }
4887
+ },
4888
+ "required": [
4889
+ "charge_id",
4890
+ "status",
4891
+ "decision",
4892
+ "decision_id",
4893
+ "decided_at",
4894
+ "deadline_at"
4895
+ ],
4896
+ "type": "object"
4897
+ },
4898
+ "SynchronousAuthorizationDeclined": {
4899
+ "additionalProperties": false,
4900
+ "properties": {
4901
+ "deadline_at": {
4902
+ "format": "date-time",
4903
+ "type": "string"
4904
+ },
4905
+ "decided_at": {
4906
+ "format": "date-time",
4907
+ "type": "string"
4908
+ },
4909
+ "decision": {
4910
+ "enum": [
4911
+ "declined",
4912
+ "self_reversed_timeout"
4913
+ ]
4914
+ },
4915
+ "decision_id": {
4916
+ "format": "uuid",
4917
+ "type": "string"
4918
+ },
4919
+ "error": {
4920
+ "type": "string"
4921
+ },
4922
+ "message": {
4923
+ "type": "string"
4924
+ },
4925
+ "request_id": {
4926
+ "type": "string"
4927
+ }
4928
+ },
4929
+ "required": [
4930
+ "error",
4931
+ "message",
4932
+ "request_id",
4933
+ "decision",
4934
+ "decision_id",
4935
+ "decided_at",
4936
+ "deadline_at"
4937
+ ],
4938
+ "type": "object"
4939
+ },
4940
+ "TargetCardInput": {
4941
+ "additionalProperties": false,
4942
+ "properties": {
4943
+ "external_card_id": {
4944
+ "maxLength": 255,
4945
+ "minLength": 1,
4946
+ "not": {
4947
+ "pattern": "[0-9]{13}"
4948
+ },
4949
+ "type": "string"
4950
+ },
4951
+ "last4": {
4952
+ "anyOf": [
4953
+ {
4954
+ "pattern": "^[0-9]{4}$",
4955
+ "type": "string"
4956
+ },
4957
+ {
4958
+ "type": "null"
4959
+ }
4960
+ ]
4961
+ },
4962
+ "network": {
4963
+ "anyOf": [
4964
+ {
4965
+ "maxLength": 40,
4966
+ "minLength": 1,
4967
+ "not": {
4968
+ "pattern": "[0-9]{13}"
4969
+ },
4970
+ "type": "string"
4971
+ },
4972
+ {
4973
+ "type": "null"
4974
+ }
4975
+ ]
4976
+ },
4977
+ "type": {
4978
+ "anyOf": [
4979
+ {
4980
+ "enum": [
4981
+ "virtual",
4982
+ "physical",
4983
+ "unknown"
4984
+ ],
4985
+ "type": "string"
4986
+ },
4987
+ {
4988
+ "type": "null"
4989
+ }
4990
+ ]
4991
+ }
4992
+ },
4993
+ "required": [
4994
+ "external_card_id"
4995
+ ],
4996
+ "type": "object"
4997
+ }
4998
+ }
4999
+ }
5000
+ }