@checkdigit/eslint-plugin 7.18.0-PR.143-b064 → 7.18.0-PR.143-b6d4

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 (40) hide show
  1. package/dist-mjs/athena/athena.mjs +82 -36
  2. package/dist-mjs/athena/visitor.mjs +27 -1
  3. package/dist-mjs/openapi/service-schema-generator.mjs +26 -64
  4. package/dist-types/athena/visitor.d.ts +4 -0
  5. package/package.json +1 -1
  6. package/src/athena/athena.ts +93 -43
  7. package/src/athena/visitor.ts +28 -0
  8. package/src/openapi/service-schema-generator.ts +26 -74
  9. package/src/services/interchange/v1/swagger.schema.deref.json +16 -15
  10. package/src/services/ledger/v1/swagger.schema.deref.json +81 -81
  11. package/src/services/ledger/v2/swagger.schema.deref.json +4119 -0
  12. package/src/services/link/v1/swagger.schema.deref.json +13 -12
  13. package/src/services/link/{v1/swagger.schema.json → v2/swagger.schema.deref.json} +98 -28
  14. package/src/services/message/v1/swagger.schema.deref.json +731 -731
  15. package/src/services/message/v2/swagger.schema.deref.json +1017 -1017
  16. package/src/services/paymentCard/v1/swagger.schema.deref.json +248 -238
  17. package/src/services/paymentCard/v2/swagger.schema.deref.json +257 -274
  18. package/src/services/paymentCard/v3/swagger.schema.deref.json +2843 -0
  19. package/src/services/person/v1/swagger.schema.deref.json +111 -96
  20. package/src/services/person/v2/swagger.schema.deref.json +4931 -0
  21. package/src/services/teampayApproval/v1/swagger.schema.deref.json +2 -165
  22. package/src/services/teampayCardManagement/v1/swagger.schema.deref.json +220 -1768
  23. package/src/services/teampayClientManagement/v1/swagger.schema.deref.json +217 -217
  24. package/src/services/interchange/v1/swagger.schema.json +0 -423
  25. package/src/services/interchange/v1/swagger.yml +0 -414
  26. package/src/services/ledger/v1/swagger.schema.json +0 -1048
  27. package/src/services/ledger/v1/swagger.yml +0 -1094
  28. package/src/services/link/v1/swagger.yml +0 -343
  29. package/src/services/message/v1/swagger.schema.json +0 -2944
  30. package/src/services/message/v1/swagger.yml +0 -2798
  31. package/src/services/message/v2/swagger.schema.json +0 -3040
  32. package/src/services/message/v2/swagger.yml +0 -3009
  33. package/src/services/paymentCard/v1/swagger.schema.json +0 -1687
  34. package/src/services/paymentCard/v1/swagger.yml +0 -1161
  35. package/src/services/paymentCard/v2/swagger.schema.json +0 -1649
  36. package/src/services/paymentCard/v2/swagger.yml +0 -1149
  37. package/src/services/person/v1/swagger.schema.json +0 -979
  38. package/src/services/person/v1/swagger.yml +0 -1157
  39. package/src/services/teampayClientManagement/v1/swagger.schema.json +0 -1598
  40. package/src/services/teampayClientManagement/v1/swagger.yml +0 -1376
@@ -1,1048 +0,0 @@
1
- {
2
- "apis": {
3
- "/ledger/v1/ping": {},
4
- "/ledger/v1/account/:accountId": {
5
- "put": {
6
- "request": {
7
- "$schema": "https://json-schema.org/draft/2020-12/schema",
8
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutRequestContext",
9
- "type": "object",
10
- "properties": {
11
- "params": {
12
- "type": "object",
13
- "additionalProperties": false,
14
- "properties": {
15
- "accountId": {
16
- "type": "string"
17
- }
18
- },
19
- "required": ["accountId"]
20
- },
21
- "headers": {
22
- "type": "object",
23
- "additionalProperties": true,
24
- "properties": {
25
- "created-on": {
26
- "type": "string",
27
- "format": "date-time"
28
- },
29
- "last-modified": {
30
- "type": "string",
31
- "format": "date-time"
32
- }
33
- }
34
- },
35
- "body": {
36
- "$ref": "/ledger/v1/schemas/definitions/NewAccount"
37
- }
38
- },
39
- "required": ["params", "body"],
40
- "additionalProperties": false
41
- },
42
- "responses": {
43
- "204": {
44
- "$schema": "https://json-schema.org/draft/2020-12/schema",
45
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutResponseNoContent",
46
- "type": "object",
47
- "properties": {
48
- "headers": {
49
- "type": "object",
50
- "properties": {
51
- "created-on": {
52
- "type": "string",
53
- "format": "date-time"
54
- },
55
- "updated-on": {
56
- "type": "string",
57
- "format": "date-time"
58
- },
59
- "last-modified": {
60
- "type": "string",
61
- "format": "date-time"
62
- }
63
- },
64
- "required": ["created-on", "updated-on", "last-modified"]
65
- }
66
- },
67
- "required": ["headers"],
68
- "additionalProperties": false
69
- },
70
- "409": {
71
- "$schema": "https://json-schema.org/draft/2020-12/schema",
72
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutResponseConflict",
73
- "type": "object",
74
- "properties": {
75
- "headers": {
76
- "type": "object",
77
- "additionalProperties": true
78
- }
79
- },
80
- "required": [],
81
- "additionalProperties": false
82
- },
83
- "default": {
84
- "$schema": "https://json-schema.org/draft/2020-12/schema",
85
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutResponseDefault",
86
- "type": "object",
87
- "properties": {
88
- "headers": {
89
- "type": "object",
90
- "additionalProperties": true
91
- },
92
- "body": {
93
- "$ref": "/ledger/v1/schemas/definitions/Error"
94
- }
95
- },
96
- "required": ["body"],
97
- "additionalProperties": false
98
- }
99
- }
100
- }
101
- },
102
- "/ledger/v1/account/:accountId/:idFragment1": {
103
- "put": {
104
- "request": {
105
- "$schema": "https://json-schema.org/draft/2020-12/schema",
106
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment1RequestContext",
107
- "type": "object",
108
- "properties": {
109
- "params": {
110
- "type": "object",
111
- "additionalProperties": false,
112
- "properties": {
113
- "accountId": {
114
- "type": "string"
115
- },
116
- "idFragment1": {
117
- "type": "string"
118
- }
119
- },
120
- "required": ["accountId", "idFragment1"]
121
- },
122
- "headers": {
123
- "type": "object",
124
- "additionalProperties": true,
125
- "properties": {
126
- "created-on": {
127
- "type": "string",
128
- "format": "date-time"
129
- },
130
- "last-modified": {
131
- "type": "string",
132
- "format": "date-time"
133
- }
134
- }
135
- },
136
- "body": {
137
- "$ref": "/ledger/v1/schemas/definitions/NewAccount"
138
- }
139
- },
140
- "required": ["params", "body"],
141
- "additionalProperties": false
142
- },
143
- "responses": {
144
- "204": {
145
- "$schema": "https://json-schema.org/draft/2020-12/schema",
146
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment1ResponseNoContent",
147
- "type": "object",
148
- "properties": {
149
- "headers": {
150
- "type": "object",
151
- "properties": {
152
- "created-on": {
153
- "type": "string",
154
- "format": "date-time"
155
- },
156
- "updated-on": {
157
- "type": "string",
158
- "format": "date-time"
159
- },
160
- "last-modified": {
161
- "type": "string",
162
- "format": "date-time"
163
- }
164
- },
165
- "required": ["created-on", "updated-on", "last-modified"]
166
- }
167
- },
168
- "required": ["headers"],
169
- "additionalProperties": false
170
- },
171
- "409": {
172
- "$schema": "https://json-schema.org/draft/2020-12/schema",
173
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment1ResponseConflict",
174
- "type": "object",
175
- "properties": {
176
- "headers": {
177
- "type": "object",
178
- "additionalProperties": true
179
- }
180
- },
181
- "required": [],
182
- "additionalProperties": false
183
- },
184
- "default": {
185
- "$schema": "https://json-schema.org/draft/2020-12/schema",
186
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment1ResponseDefault",
187
- "type": "object",
188
- "properties": {
189
- "headers": {
190
- "type": "object",
191
- "additionalProperties": true
192
- },
193
- "body": {
194
- "$ref": "/ledger/v1/schemas/definitions/Error"
195
- }
196
- },
197
- "required": ["body"],
198
- "additionalProperties": false
199
- }
200
- }
201
- }
202
- },
203
- "/ledger/v1/account/:accountId/:idFragment1/:idFragment2": {
204
- "put": {
205
- "request": {
206
- "$schema": "https://json-schema.org/draft/2020-12/schema",
207
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment2RequestContext",
208
- "type": "object",
209
- "properties": {
210
- "params": {
211
- "type": "object",
212
- "additionalProperties": false,
213
- "properties": {
214
- "accountId": {
215
- "type": "string"
216
- },
217
- "idFragment1": {
218
- "type": "string"
219
- },
220
- "idFragment2": {
221
- "type": "string"
222
- }
223
- },
224
- "required": ["accountId", "idFragment1", "idFragment2"]
225
- },
226
- "headers": {
227
- "type": "object",
228
- "additionalProperties": true,
229
- "properties": {
230
- "created-on": {
231
- "type": "string",
232
- "format": "date-time"
233
- },
234
- "last-modified": {
235
- "type": "string",
236
- "format": "date-time"
237
- }
238
- }
239
- },
240
- "body": {
241
- "$ref": "/ledger/v1/schemas/definitions/NewAccount"
242
- }
243
- },
244
- "required": ["params", "body"],
245
- "additionalProperties": false
246
- },
247
- "responses": {
248
- "204": {
249
- "$schema": "https://json-schema.org/draft/2020-12/schema",
250
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment2ResponseNoContent",
251
- "type": "object",
252
- "properties": {
253
- "headers": {
254
- "type": "object",
255
- "properties": {
256
- "created-on": {
257
- "type": "string",
258
- "format": "date-time"
259
- },
260
- "updated-on": {
261
- "type": "string",
262
- "format": "date-time"
263
- },
264
- "last-modified": {
265
- "type": "string",
266
- "format": "date-time"
267
- }
268
- },
269
- "required": ["created-on", "updated-on", "last-modified"]
270
- }
271
- },
272
- "required": ["headers"],
273
- "additionalProperties": false
274
- },
275
- "409": {
276
- "$schema": "https://json-schema.org/draft/2020-12/schema",
277
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment2ResponseConflict",
278
- "type": "object",
279
- "properties": {
280
- "headers": {
281
- "type": "object",
282
- "additionalProperties": true
283
- }
284
- },
285
- "required": [],
286
- "additionalProperties": false
287
- },
288
- "default": {
289
- "$schema": "https://json-schema.org/draft/2020-12/schema",
290
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment2ResponseDefault",
291
- "type": "object",
292
- "properties": {
293
- "headers": {
294
- "type": "object",
295
- "additionalProperties": true
296
- },
297
- "body": {
298
- "$ref": "/ledger/v1/schemas/definitions/Error"
299
- }
300
- },
301
- "required": ["body"],
302
- "additionalProperties": false
303
- }
304
- }
305
- }
306
- },
307
- "/ledger/v1/account/:accountId/:idFragment1/:idFragment2/:idFragment3": {
308
- "put": {
309
- "request": {
310
- "$schema": "https://json-schema.org/draft/2020-12/schema",
311
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment3RequestContext",
312
- "type": "object",
313
- "properties": {
314
- "params": {
315
- "type": "object",
316
- "additionalProperties": false,
317
- "properties": {
318
- "accountId": {
319
- "type": "string"
320
- },
321
- "idFragment1": {
322
- "type": "string"
323
- },
324
- "idFragment2": {
325
- "type": "string"
326
- },
327
- "idFragment3": {
328
- "type": "string"
329
- }
330
- },
331
- "required": ["accountId", "idFragment1", "idFragment2", "idFragment3"]
332
- },
333
- "headers": {
334
- "type": "object",
335
- "additionalProperties": true,
336
- "properties": {
337
- "created-on": {
338
- "type": "string",
339
- "format": "date-time"
340
- },
341
- "last-modified": {
342
- "type": "string",
343
- "format": "date-time"
344
- }
345
- }
346
- },
347
- "body": {
348
- "$ref": "/ledger/v1/schemas/definitions/NewAccount"
349
- }
350
- },
351
- "required": ["params", "body"],
352
- "additionalProperties": false
353
- },
354
- "responses": {
355
- "204": {
356
- "$schema": "https://json-schema.org/draft/2020-12/schema",
357
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment3ResponseNoContent",
358
- "type": "object",
359
- "properties": {
360
- "headers": {
361
- "type": "object",
362
- "properties": {
363
- "created-on": {
364
- "type": "string",
365
- "format": "date-time"
366
- },
367
- "updated-on": {
368
- "type": "string",
369
- "format": "date-time"
370
- },
371
- "last-modified": {
372
- "type": "string",
373
- "format": "date-time"
374
- }
375
- },
376
- "required": ["created-on", "updated-on", "last-modified"]
377
- }
378
- },
379
- "required": ["headers"],
380
- "additionalProperties": false
381
- },
382
- "409": {
383
- "$schema": "https://json-schema.org/draft/2020-12/schema",
384
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment3ResponseConflict",
385
- "type": "object",
386
- "properties": {
387
- "headers": {
388
- "type": "object",
389
- "additionalProperties": true
390
- }
391
- },
392
- "required": [],
393
- "additionalProperties": false
394
- },
395
- "default": {
396
- "$schema": "https://json-schema.org/draft/2020-12/schema",
397
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment3ResponseDefault",
398
- "type": "object",
399
- "properties": {
400
- "headers": {
401
- "type": "object",
402
- "additionalProperties": true
403
- },
404
- "body": {
405
- "$ref": "/ledger/v1/schemas/definitions/Error"
406
- }
407
- },
408
- "required": ["body"],
409
- "additionalProperties": false
410
- }
411
- }
412
- }
413
- },
414
- "/ledger/v1/account-entries": {},
415
- "/ledger/v1/entry/:entryId": {
416
- "put": {
417
- "request": {
418
- "$schema": "https://json-schema.org/draft/2020-12/schema",
419
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/EntryPutRequestContext",
420
- "type": "object",
421
- "properties": {
422
- "params": {
423
- "type": "object",
424
- "additionalProperties": false,
425
- "properties": {
426
- "entryId": {
427
- "type": "string"
428
- }
429
- },
430
- "required": ["entryId"]
431
- },
432
- "headers": {
433
- "type": "object",
434
- "additionalProperties": true,
435
- "properties": {
436
- "if-match": {
437
- "type": "string"
438
- },
439
- "created-on": {
440
- "type": "string",
441
- "format": "date-time"
442
- },
443
- "last-modified": {
444
- "type": "string",
445
- "format": "date-time"
446
- }
447
- }
448
- },
449
- "body": {
450
- "$ref": "/ledger/v1/schemas/definitions/NewEntry"
451
- }
452
- },
453
- "required": ["params", "body"],
454
- "additionalProperties": false
455
- },
456
- "responses": {
457
- "204": {
458
- "$schema": "https://json-schema.org/draft/2020-12/schema",
459
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/EntryPutResponseNoContent",
460
- "type": "object",
461
- "properties": {
462
- "headers": {
463
- "type": "object",
464
- "properties": {
465
- "created-on": {
466
- "type": "string",
467
- "format": "date-time"
468
- },
469
- "updated-on": {
470
- "type": "string",
471
- "format": "date-time"
472
- },
473
- "last-modified": {
474
- "type": "string",
475
- "format": "date-time"
476
- }
477
- },
478
- "required": ["created-on", "updated-on", "last-modified"]
479
- }
480
- },
481
- "required": ["headers"],
482
- "additionalProperties": false
483
- },
484
- "409": {
485
- "$schema": "https://json-schema.org/draft/2020-12/schema",
486
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/EntryPutResponseConflict",
487
- "type": "object",
488
- "properties": {
489
- "headers": {
490
- "type": "object",
491
- "additionalProperties": true
492
- }
493
- },
494
- "required": [],
495
- "additionalProperties": false
496
- },
497
- "412": {
498
- "$schema": "https://json-schema.org/draft/2020-12/schema",
499
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/EntryPutResponsePreconditionFailed",
500
- "type": "object",
501
- "properties": {
502
- "headers": {
503
- "type": "object",
504
- "additionalProperties": true
505
- }
506
- },
507
- "required": [],
508
- "additionalProperties": false
509
- },
510
- "default": {
511
- "$schema": "https://json-schema.org/draft/2020-12/schema",
512
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/EntryPutResponseDefault",
513
- "type": "object",
514
- "properties": {
515
- "headers": {
516
- "type": "object",
517
- "additionalProperties": true
518
- },
519
- "body": {
520
- "$ref": "/ledger/v1/schemas/definitions/Error"
521
- }
522
- },
523
- "required": ["body"],
524
- "additionalProperties": false
525
- }
526
- }
527
- }
528
- },
529
- "/ledger/v1/balance": {},
530
- "/ledger/v1/total": {}
531
- },
532
- "definitions": {
533
- "Ping": {
534
- "$schema": "https://json-schema.org/draft/2020-12/schema",
535
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/definitions/Ping",
536
- "type": "object",
537
- "additionalProperties": false,
538
- "required": ["serverTime"],
539
- "properties": {
540
- "serverTime": {
541
- "type": "string",
542
- "format": "date-time",
543
- "description": "Current server time."
544
- }
545
- }
546
- },
547
- "Error": {
548
- "$schema": "https://json-schema.org/draft/2020-12/schema",
549
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/definitions/Error",
550
- "type": "object",
551
- "additionalProperties": false,
552
- "description": "Error message.",
553
- "required": ["code"],
554
- "properties": {
555
- "message": {
556
- "type": "string"
557
- },
558
- "code": {
559
- "type": "string",
560
- "enum": [
561
- "INVALID_AT",
562
- "INVALID_FROM",
563
- "INVALID_TO",
564
- "INVALID_CREATED_ON",
565
- "INVALID_LAST_MODIFIED",
566
- "INVALID_IF_MATCH",
567
- "FROM_GREATER_THAN_TO",
568
- "ACCOUNT_NOT_FOUND",
569
- "POSTING_AMOUNT_NOT_AN_INTEGER",
570
- "ACCOUNT_MULTIPLE_POSTINGS",
571
- "LAST_MODIFIED_BEFORE_ACCOUNT_CREATED_ON",
572
- "POSTING_WITH_ZERO_AMOUNT",
573
- "POSTING_WITH_NEGATIVE_AMOUNT",
574
- "VERSION_SUPPLIED_FOR_UNVERSIONED_ACCOUNT",
575
- "NO_POSTINGS",
576
- "INSUFFICIENT_POSTINGS",
577
- "UNEQUAL_CREDIT_DEBIT",
578
- "VERSION_BALANCE_MISMATCH",
579
- "VERSION_MISMATCH",
580
- "CURRENCY_MISMATCH",
581
- "UNHANDLED_ERROR"
582
- ]
583
- }
584
- }
585
- },
586
- "Currency": {
587
- "$schema": "https://json-schema.org/draft/2020-12/schema",
588
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/definitions/Currency",
589
- "type": "string",
590
- "enum": [
591
- "AED",
592
- "AFN",
593
- "ALL",
594
- "AMD",
595
- "ANG",
596
- "AOA",
597
- "ARS",
598
- "AUD",
599
- "AWG",
600
- "AZN",
601
- "BAM",
602
- "BBD",
603
- "BDT",
604
- "BGN",
605
- "BHD",
606
- "BIF",
607
- "BMD",
608
- "BND",
609
- "BOB",
610
- "BOV",
611
- "BRL",
612
- "BSD",
613
- "BTN",
614
- "BWP",
615
- "BYN",
616
- "BZD",
617
- "CAD",
618
- "CDF",
619
- "CHE",
620
- "CHF",
621
- "CHW",
622
- "CLF",
623
- "CLP",
624
- "CNY",
625
- "COP",
626
- "COU",
627
- "CRC",
628
- "CUC",
629
- "CUP",
630
- "CVE",
631
- "CZK",
632
- "DJF",
633
- "DKK",
634
- "DOP",
635
- "DZD",
636
- "EGP",
637
- "ERN",
638
- "ETB",
639
- "EUR",
640
- "FJD",
641
- "FKP",
642
- "GBP",
643
- "GEL",
644
- "GHS",
645
- "GIP",
646
- "GMD",
647
- "GNF",
648
- "GTQ",
649
- "GYD",
650
- "HKD",
651
- "HNL",
652
- "HRK",
653
- "HTG",
654
- "HUF",
655
- "IDR",
656
- "ILS",
657
- "INR",
658
- "IQD",
659
- "IRR",
660
- "ISK",
661
- "JMD",
662
- "JOD",
663
- "JPY",
664
- "KES",
665
- "KGS",
666
- "KHR",
667
- "KMF",
668
- "KPW",
669
- "KRW",
670
- "KWD",
671
- "KYD",
672
- "KZT",
673
- "LAK",
674
- "LBP",
675
- "LKR",
676
- "LRD",
677
- "LSL",
678
- "LYD",
679
- "MAD",
680
- "MDL",
681
- "MGA",
682
- "MKD",
683
- "MMK",
684
- "MNT",
685
- "MOP",
686
- "MRU",
687
- "MUR",
688
- "MVR",
689
- "MWK",
690
- "MXN",
691
- "MXV",
692
- "MYR",
693
- "MZN",
694
- "NAD",
695
- "NGN",
696
- "NIO",
697
- "NOK",
698
- "NPR",
699
- "NZD",
700
- "OMR",
701
- "PAB",
702
- "PEN",
703
- "PGK",
704
- "PHP",
705
- "PKR",
706
- "PLN",
707
- "PYG",
708
- "QAR",
709
- "RON",
710
- "RSD",
711
- "RUB",
712
- "RWF",
713
- "SAR",
714
- "SBD",
715
- "SCR",
716
- "SDG",
717
- "SEK",
718
- "SGD",
719
- "SHP",
720
- "SLL",
721
- "SOS",
722
- "SRD",
723
- "SSP",
724
- "STN",
725
- "SVC",
726
- "SYP",
727
- "SZL",
728
- "THB",
729
- "TJS",
730
- "TMT",
731
- "TND",
732
- "TOP",
733
- "TRY",
734
- "TTD",
735
- "TWD",
736
- "TZS",
737
- "UAH",
738
- "UGX",
739
- "USD",
740
- "USN",
741
- "UYI",
742
- "UYU",
743
- "UYW",
744
- "UZS",
745
- "VES",
746
- "VND",
747
- "VUV",
748
- "WST",
749
- "XAF",
750
- "XAG",
751
- "XAU",
752
- "XBA",
753
- "XBB",
754
- "XBC",
755
- "XBD",
756
- "XCD",
757
- "XDR",
758
- "XOF",
759
- "XPD",
760
- "XPF",
761
- "XPT",
762
- "XSU",
763
- "XTS",
764
- "XUA",
765
- "XXX",
766
- "YER",
767
- "ZAR",
768
- "ZMW",
769
- "ZWL"
770
- ]
771
- },
772
- "Account": {
773
- "$schema": "https://json-schema.org/draft/2020-12/schema",
774
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/definitions/Account",
775
- "type": "object",
776
- "additionalProperties": false,
777
- "required": ["accountId", "createdOn", "currency", "type"],
778
- "properties": {
779
- "accountId": {
780
- "type": "string",
781
- "description": "Account ID"
782
- },
783
- "createdOn": {
784
- "type": "string",
785
- "format": "date-time",
786
- "description": "Account creation date/time."
787
- },
788
- "currency": {
789
- "$ref": "/ledger/v1/schemas/definitions/Currency"
790
- },
791
- "name": {
792
- "type": "string",
793
- "description": "Account short name."
794
- },
795
- "type": {
796
- "type": "string",
797
- "enum": ["VERSIONED", "UNVERSIONED"]
798
- }
799
- }
800
- },
801
- "NewAccount": {
802
- "$schema": "https://json-schema.org/draft/2020-12/schema",
803
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/definitions/NewAccount",
804
- "type": "object",
805
- "additionalProperties": false,
806
- "required": ["currency"],
807
- "properties": {
808
- "currency": {
809
- "$ref": "/ledger/v1/schemas/definitions/Currency"
810
- },
811
- "name": {
812
- "type": "string",
813
- "description": "Account short name"
814
- },
815
- "type": {
816
- "type": "string",
817
- "enum": ["VERSIONED", "UNVERSIONED"],
818
- "description": "Determines whether performing a posting is dependent on the balance of the account or not. Defaults to VERSIONED if not supplied."
819
- }
820
- }
821
- },
822
- "BalanceList": {
823
- "$schema": "https://json-schema.org/draft/2020-12/schema",
824
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/definitions/BalanceList",
825
- "type": "object",
826
- "additionalProperties": false,
827
- "description": "Balances for the accounts requested.",
828
- "required": ["at", "balances"],
829
- "properties": {
830
- "at": {
831
- "type": "string",
832
- "format": "date-time",
833
- "description": "Account balance at this date/time"
834
- },
835
- "balances": {
836
- "type": "array",
837
- "items": {
838
- "$ref": "/ledger/v1/schemas/definitions/Balance"
839
- }
840
- }
841
- }
842
- },
843
- "Balance": {
844
- "$schema": "https://json-schema.org/draft/2020-12/schema",
845
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/definitions/Balance",
846
- "type": "object",
847
- "additionalProperties": false,
848
- "description": "Ledger balance at a point in time.",
849
- "required": ["accountId", "balance"],
850
- "properties": {
851
- "accountId": {
852
- "type": "string",
853
- "description": "Account ID"
854
- },
855
- "balance": {
856
- "type": "string"
857
- }
858
- }
859
- },
860
- "EntriesList": {
861
- "$schema": "https://json-schema.org/draft/2020-12/schema",
862
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/definitions/EntriesList",
863
- "type": "object",
864
- "additionalProperties": false,
865
- "required": ["accountEntries"],
866
- "properties": {
867
- "accountEntries": {
868
- "type": "array",
869
- "items": {
870
- "$ref": "/ledger/v1/schemas/definitions/Entries"
871
- }
872
- }
873
- }
874
- },
875
- "Entries": {
876
- "$schema": "https://json-schema.org/draft/2020-12/schema",
877
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/definitions/Entries",
878
- "type": "object",
879
- "additionalProperties": false,
880
- "required": ["entries", "accountId"],
881
- "properties": {
882
- "accountId": {
883
- "type": "string",
884
- "description": "Account ID"
885
- },
886
- "entries": {
887
- "type": "array",
888
- "minItems": 0,
889
- "items": {
890
- "$ref": "/ledger/v1/schemas/definitions/Entry"
891
- }
892
- }
893
- }
894
- },
895
- "Entry": {
896
- "$schema": "https://json-schema.org/draft/2020-12/schema",
897
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/definitions/Entry",
898
- "type": "object",
899
- "additionalProperties": false,
900
- "required": ["entryId", "createdOn", "postings"],
901
- "properties": {
902
- "entryId": {
903
- "type": "string",
904
- "description": "Journal entry ID"
905
- },
906
- "createdOn": {
907
- "type": "string",
908
- "format": "date-time",
909
- "description": "Journal entry creation date/time"
910
- },
911
- "postings": {
912
- "type": "array",
913
- "items": {
914
- "$ref": "/ledger/v1/schemas/definitions/Post"
915
- }
916
- }
917
- }
918
- },
919
- "ResponseEntry": {
920
- "$schema": "https://json-schema.org/draft/2020-12/schema",
921
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/definitions/ResponseEntry",
922
- "type": "object",
923
- "additionalProperties": false,
924
- "required": ["entryId", "createdOn", "postings"],
925
- "properties": {
926
- "entryId": {
927
- "type": "string",
928
- "description": "Journal entry ID"
929
- },
930
- "createdOn": {
931
- "type": "string",
932
- "format": "date-time",
933
- "description": "Journal entry creation date/time"
934
- },
935
- "postings": {
936
- "type": "array",
937
- "items": {
938
- "$ref": "/ledger/v1/schemas/definitions/ResponsePost"
939
- }
940
- }
941
- }
942
- },
943
- "NewEntry": {
944
- "$schema": "https://json-schema.org/draft/2020-12/schema",
945
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/definitions/NewEntry",
946
- "type": "object",
947
- "additionalProperties": false,
948
- "required": ["postings"],
949
- "properties": {
950
- "postings": {
951
- "type": "array",
952
- "description": "List of posts contained within the journal entry.",
953
- "items": {
954
- "$ref": "/ledger/v1/schemas/definitions/Post"
955
- }
956
- }
957
- }
958
- },
959
- "Post": {
960
- "$schema": "https://json-schema.org/draft/2020-12/schema",
961
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/definitions/Post",
962
- "type": "object",
963
- "additionalProperties": false,
964
- "required": ["amount", "currency", "type", "accountId"],
965
- "properties": {
966
- "amount": {
967
- "type": "string"
968
- },
969
- "currency": {
970
- "$ref": "/ledger/v1/schemas/definitions/Currency"
971
- },
972
- "type": {
973
- "$ref": "/ledger/v1/schemas/definitions/Type"
974
- },
975
- "createdOn": {
976
- "type": "string",
977
- "format": "date-time"
978
- },
979
- "accountId": {
980
- "type": "string",
981
- "description": "account ID"
982
- }
983
- }
984
- },
985
- "ResponsePost": {
986
- "$schema": "https://json-schema.org/draft/2020-12/schema",
987
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/definitions/ResponsePost",
988
- "type": "object",
989
- "additionalProperties": false,
990
- "required": ["amount", "currency", "type", "accountId", "createdOn"],
991
- "properties": {
992
- "amount": {
993
- "type": "string"
994
- },
995
- "currency": {
996
- "$ref": "/ledger/v1/schemas/definitions/Currency"
997
- },
998
- "type": {
999
- "$ref": "/ledger/v1/schemas/definitions/Type"
1000
- },
1001
- "createdOn": {
1002
- "type": "string",
1003
- "format": "date-time"
1004
- },
1005
- "accountId": {
1006
- "type": "string",
1007
- "description": "account ID"
1008
- }
1009
- }
1010
- },
1011
- "Type": {
1012
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1013
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/definitions/Type",
1014
- "type": "string",
1015
- "description": "CREDIT or DEBIT",
1016
- "enum": ["CREDIT", "DEBIT"]
1017
- },
1018
- "TotalsList": {
1019
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1020
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/definitions/TotalsList",
1021
- "type": "array",
1022
- "additionalProperties": false,
1023
- "description": "Totals of filtered entries for the accounts requested.",
1024
- "items": {
1025
- "$ref": "/ledger/v1/schemas/definitions/Total"
1026
- },
1027
- "minItems": 1
1028
- },
1029
- "Total": {
1030
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1031
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/definitions/Total",
1032
- "type": "object",
1033
- "additionalProperties": false,
1034
- "description": "- The total debit or credit to an account.\n- If debits exceed credits the total value will be negative.\n- AccountIds may include idFragments formatted as: :accountId/:idFragment1/:idFragment2/:idFragment3.\n",
1035
- "required": ["accountId", "total"],
1036
- "properties": {
1037
- "accountId": {
1038
- "type": "string",
1039
- "description": "account ID"
1040
- },
1041
- "total": {
1042
- "type": "string",
1043
- "minLength": 1
1044
- }
1045
- }
1046
- }
1047
- }
1048
- }