@checkdigit/eslint-plugin 7.18.0-PR.143-8126 → 7.18.0-PR.143-13e8

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.
@@ -0,0 +1,1156 @@
1
+ {
2
+ "apis": {
3
+ "/account/v2/ping": {},
4
+ "/account/v2/account": {},
5
+ "/account/v2/account/:accountId": {
6
+ "put": {
7
+ "request": {
8
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
9
+ "$id": "https://account.checkdigit/account/v2/schemas/api/AccountPutRequestContext",
10
+ "type": "object",
11
+ "properties": {
12
+ "params": {
13
+ "type": "object",
14
+ "additionalProperties": false,
15
+ "properties": {
16
+ "accountId": {
17
+ "type": "string"
18
+ }
19
+ },
20
+ "required": ["accountId"]
21
+ },
22
+ "headers": {
23
+ "type": "object",
24
+ "additionalProperties": true
25
+ },
26
+ "body": {
27
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
28
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/NewAccount",
29
+ "type": "object",
30
+ "additionalProperties": false,
31
+ "required": ["currency", "primaryPath", "secondaryPath", "versioned"],
32
+ "properties": {
33
+ "currency": {
34
+ "type": "string",
35
+ "description": "Currency of account"
36
+ },
37
+ "name": {
38
+ "type": "string",
39
+ "description": "Account short name"
40
+ },
41
+ "versioned": {
42
+ "type": "boolean",
43
+ "description": "Whether the account is versioned or not"
44
+ },
45
+ "description": {
46
+ "type": "string",
47
+ "description": "Account description or long name"
48
+ },
49
+ "primaryPath": {
50
+ "type": "string",
51
+ "description": "Primary path"
52
+ },
53
+ "secondaryPath": {
54
+ "type": "string",
55
+ "description": "Secondary path"
56
+ }
57
+ }
58
+ }
59
+ },
60
+ "required": ["params", "body"],
61
+ "additionalProperties": false
62
+ },
63
+ "responses": {
64
+ "204": {
65
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
66
+ "$id": "https://account.checkdigit/account/v2/schemas/api/AccountPutResponseNoContent",
67
+ "type": "object",
68
+ "properties": {
69
+ "headers": {
70
+ "type": "object",
71
+ "properties": {
72
+ "last-modified": {
73
+ "type": "string"
74
+ }
75
+ },
76
+ "required": ["last-modified"]
77
+ }
78
+ },
79
+ "required": ["headers"],
80
+ "additionalProperties": false
81
+ },
82
+ "409": {
83
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
84
+ "$id": "https://account.checkdigit/account/v2/schemas/api/AccountPutResponseConflict",
85
+ "type": "object",
86
+ "properties": {
87
+ "headers": {
88
+ "type": "object",
89
+ "additionalProperties": true
90
+ }
91
+ },
92
+ "required": [],
93
+ "additionalProperties": false
94
+ },
95
+ "default": {
96
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
97
+ "$id": "https://account.checkdigit/account/v2/schemas/api/AccountPutResponseDefault",
98
+ "type": "object",
99
+ "properties": {
100
+ "headers": {
101
+ "type": "object",
102
+ "additionalProperties": true
103
+ },
104
+ "body": {
105
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
106
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Error",
107
+ "type": "object",
108
+ "additionalProperties": false,
109
+ "description": "Error message",
110
+ "properties": {
111
+ "message": {
112
+ "type": "string"
113
+ },
114
+ "code": {
115
+ "type": "string"
116
+ }
117
+ }
118
+ }
119
+ },
120
+ "required": ["body"],
121
+ "additionalProperties": false
122
+ }
123
+ }
124
+ }
125
+ },
126
+ "/account/v2/account/:accountId/pending": {},
127
+ "/account/v2/account/:accountId/entry": {},
128
+ "/account/v2/balances": {},
129
+ "/account/v2/pending/:pendingId": {
130
+ "put": {
131
+ "request": {
132
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
133
+ "$id": "https://account.checkdigit/account/v2/schemas/api/AccountPendingPutRequestContext",
134
+ "type": "object",
135
+ "properties": {
136
+ "params": {
137
+ "type": "object",
138
+ "additionalProperties": false,
139
+ "properties": {
140
+ "pendingId": {
141
+ "type": "string"
142
+ }
143
+ },
144
+ "required": ["pendingId"]
145
+ },
146
+ "headers": {
147
+ "type": "object",
148
+ "additionalProperties": true,
149
+ "properties": {
150
+ "if-match": {
151
+ "type": "string"
152
+ },
153
+ "created-on": {
154
+ "type": "string",
155
+ "format": "date-time"
156
+ }
157
+ }
158
+ },
159
+ "body": {
160
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
161
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/NewPending",
162
+ "type": "object",
163
+ "additionalProperties": false,
164
+ "required": ["postings", "expiration"],
165
+ "properties": {
166
+ "postings": {
167
+ "type": "array",
168
+ "description": "List of posts contained within pending transaction",
169
+ "items": {
170
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
171
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Post",
172
+ "type": "object",
173
+ "additionalProperties": false,
174
+ "properties": {
175
+ "amount": {
176
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
177
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Amount",
178
+ "type": "string"
179
+ },
180
+ "currency": {
181
+ "type": "string",
182
+ "description": "Currency of account"
183
+ },
184
+ "type": {
185
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
186
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Type",
187
+ "type": "string",
188
+ "description": "CREDIT or DEBIT",
189
+ "enum": ["CREDIT", "DEBIT"]
190
+ },
191
+ "accountId": {
192
+ "type": "string",
193
+ "description": "Account ID"
194
+ },
195
+ "description": {
196
+ "type": "string",
197
+ "description": "Description"
198
+ }
199
+ }
200
+ }
201
+ },
202
+ "expiration": {
203
+ "type": "string",
204
+ "format": "date-time",
205
+ "description": "Expiration date/time"
206
+ }
207
+ }
208
+ }
209
+ },
210
+ "required": ["params", "body"],
211
+ "additionalProperties": false
212
+ },
213
+ "responses": {
214
+ "204": {
215
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
216
+ "$id": "https://account.checkdigit/account/v2/schemas/api/AccountPendingPutResponseNoContent",
217
+ "type": "object",
218
+ "properties": {
219
+ "headers": {
220
+ "type": "object",
221
+ "properties": {
222
+ "etag": {
223
+ "type": "string"
224
+ },
225
+ "last-modified": {
226
+ "type": "string"
227
+ }
228
+ },
229
+ "required": ["last-modified"]
230
+ }
231
+ },
232
+ "required": ["headers"],
233
+ "additionalProperties": false
234
+ },
235
+ "409": {
236
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
237
+ "$id": "https://account.checkdigit/account/v2/schemas/api/AccountPendingPutResponseConflict",
238
+ "type": "object",
239
+ "properties": {
240
+ "headers": {
241
+ "type": "object",
242
+ "additionalProperties": true
243
+ }
244
+ },
245
+ "required": [],
246
+ "additionalProperties": false
247
+ },
248
+ "412": {
249
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
250
+ "$id": "https://account.checkdigit/account/v2/schemas/api/AccountPendingPutResponsePreconditionFailed",
251
+ "type": "object",
252
+ "properties": {
253
+ "headers": {
254
+ "type": "object",
255
+ "additionalProperties": true
256
+ }
257
+ },
258
+ "required": [],
259
+ "additionalProperties": false
260
+ },
261
+ "default": {
262
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
263
+ "$id": "https://account.checkdigit/account/v2/schemas/api/AccountPendingPutResponseDefault",
264
+ "type": "object",
265
+ "properties": {
266
+ "headers": {
267
+ "type": "object",
268
+ "additionalProperties": true
269
+ },
270
+ "body": {
271
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
272
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Error",
273
+ "type": "object",
274
+ "additionalProperties": false,
275
+ "description": "Error message",
276
+ "properties": {
277
+ "message": {
278
+ "type": "string"
279
+ },
280
+ "code": {
281
+ "type": "string"
282
+ }
283
+ }
284
+ }
285
+ },
286
+ "required": ["body"],
287
+ "additionalProperties": false
288
+ }
289
+ }
290
+ },
291
+ "delete": {
292
+ "request": {
293
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
294
+ "$id": "https://account.checkdigit/account/v2/schemas/api/AccountPendingDeleteRequestContext",
295
+ "type": "object",
296
+ "properties": {
297
+ "params": {
298
+ "type": "object",
299
+ "additionalProperties": false,
300
+ "properties": {
301
+ "pendingId": {
302
+ "type": "string"
303
+ }
304
+ },
305
+ "required": ["pendingId"]
306
+ },
307
+ "headers": {
308
+ "type": "object",
309
+ "additionalProperties": true,
310
+ "properties": {
311
+ "if-match": {
312
+ "type": "string"
313
+ },
314
+ "created-on": {
315
+ "type": "string",
316
+ "format": "date-time"
317
+ }
318
+ }
319
+ }
320
+ },
321
+ "required": ["params"],
322
+ "additionalProperties": false
323
+ },
324
+ "responses": {
325
+ "204": {
326
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
327
+ "$id": "https://account.checkdigit/account/v2/schemas/api/AccountPendingDeleteResponseNoContent",
328
+ "type": "object",
329
+ "properties": {
330
+ "headers": {
331
+ "type": "object",
332
+ "properties": {
333
+ "etag": {
334
+ "type": "string"
335
+ }
336
+ }
337
+ }
338
+ },
339
+ "required": [],
340
+ "additionalProperties": false
341
+ },
342
+ "404": {
343
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
344
+ "$id": "https://account.checkdigit/account/v2/schemas/api/AccountPendingDeleteResponseNotFound",
345
+ "type": "object",
346
+ "properties": {
347
+ "headers": {
348
+ "type": "object",
349
+ "additionalProperties": true
350
+ }
351
+ },
352
+ "required": [],
353
+ "additionalProperties": false
354
+ },
355
+ "409": {
356
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
357
+ "$id": "https://account.checkdigit/account/v2/schemas/api/AccountPendingDeleteResponseConflict",
358
+ "type": "object",
359
+ "properties": {
360
+ "headers": {
361
+ "type": "object",
362
+ "additionalProperties": true
363
+ }
364
+ },
365
+ "required": [],
366
+ "additionalProperties": false
367
+ },
368
+ "412": {
369
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
370
+ "$id": "https://account.checkdigit/account/v2/schemas/api/AccountPendingDeleteResponsePreconditionFailed",
371
+ "type": "object",
372
+ "properties": {
373
+ "headers": {
374
+ "type": "object",
375
+ "additionalProperties": true
376
+ }
377
+ },
378
+ "required": [],
379
+ "additionalProperties": false
380
+ },
381
+ "default": {
382
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
383
+ "$id": "https://account.checkdigit/account/v2/schemas/api/AccountPendingDeleteResponseDefault",
384
+ "type": "object",
385
+ "properties": {
386
+ "headers": {
387
+ "type": "object",
388
+ "additionalProperties": true
389
+ },
390
+ "body": {
391
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
392
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Error",
393
+ "type": "object",
394
+ "additionalProperties": false,
395
+ "description": "Error message",
396
+ "properties": {
397
+ "message": {
398
+ "type": "string"
399
+ },
400
+ "code": {
401
+ "type": "string"
402
+ }
403
+ }
404
+ }
405
+ },
406
+ "required": ["body"],
407
+ "additionalProperties": false
408
+ }
409
+ }
410
+ }
411
+ },
412
+ "/account/v2/pending": {},
413
+ "/account/v2/uncollapsed-pending": {},
414
+ "/account/v2/entry/:entryId": {
415
+ "put": {
416
+ "request": {
417
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
418
+ "$id": "https://account.checkdigit/account/v2/schemas/api/AccountEntryPutRequestContext",
419
+ "type": "object",
420
+ "properties": {
421
+ "params": {
422
+ "type": "object",
423
+ "additionalProperties": false,
424
+ "properties": {
425
+ "entryId": {
426
+ "type": "string"
427
+ }
428
+ },
429
+ "required": ["entryId"]
430
+ },
431
+ "headers": {
432
+ "type": "object",
433
+ "additionalProperties": true,
434
+ "properties": {
435
+ "if-match": {
436
+ "type": "string"
437
+ },
438
+ "created-on": {
439
+ "type": "string",
440
+ "format": "date-time"
441
+ }
442
+ }
443
+ },
444
+ "body": {
445
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
446
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/NewEntry",
447
+ "type": "object",
448
+ "additionalProperties": false,
449
+ "required": ["postings"],
450
+ "properties": {
451
+ "postings": {
452
+ "type": "array",
453
+ "description": "List of posts contained within journal entry",
454
+ "items": {
455
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
456
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Post",
457
+ "type": "object",
458
+ "additionalProperties": false,
459
+ "properties": {
460
+ "amount": {
461
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
462
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Amount",
463
+ "type": "string"
464
+ },
465
+ "currency": {
466
+ "type": "string",
467
+ "description": "Currency of account"
468
+ },
469
+ "type": {
470
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
471
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Type",
472
+ "type": "string",
473
+ "description": "CREDIT or DEBIT",
474
+ "enum": ["CREDIT", "DEBIT"]
475
+ },
476
+ "accountId": {
477
+ "type": "string",
478
+ "description": "Account ID"
479
+ },
480
+ "description": {
481
+ "type": "string",
482
+ "description": "Description"
483
+ }
484
+ }
485
+ }
486
+ }
487
+ }
488
+ }
489
+ },
490
+ "required": ["params", "body"],
491
+ "additionalProperties": false
492
+ },
493
+ "responses": {
494
+ "204": {
495
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
496
+ "$id": "https://account.checkdigit/account/v2/schemas/api/AccountEntryPutResponseNoContent",
497
+ "type": "object",
498
+ "properties": {
499
+ "headers": {
500
+ "type": "object",
501
+ "properties": {
502
+ "etag": {
503
+ "type": "string"
504
+ },
505
+ "last-modified": {
506
+ "type": "string"
507
+ }
508
+ },
509
+ "required": ["last-modified"]
510
+ }
511
+ },
512
+ "required": ["headers"],
513
+ "additionalProperties": false
514
+ },
515
+ "409": {
516
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
517
+ "$id": "https://account.checkdigit/account/v2/schemas/api/AccountEntryPutResponseConflict",
518
+ "type": "object",
519
+ "properties": {
520
+ "headers": {
521
+ "type": "object",
522
+ "additionalProperties": true
523
+ }
524
+ },
525
+ "required": [],
526
+ "additionalProperties": false
527
+ },
528
+ "412": {
529
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
530
+ "$id": "https://account.checkdigit/account/v2/schemas/api/AccountEntryPutResponsePreconditionFailed",
531
+ "type": "object",
532
+ "properties": {
533
+ "headers": {
534
+ "type": "object",
535
+ "additionalProperties": true
536
+ }
537
+ },
538
+ "required": [],
539
+ "additionalProperties": false
540
+ },
541
+ "default": {
542
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
543
+ "$id": "https://account.checkdigit/account/v2/schemas/api/AccountEntryPutResponseDefault",
544
+ "type": "object",
545
+ "properties": {
546
+ "headers": {
547
+ "type": "object",
548
+ "additionalProperties": true
549
+ },
550
+ "body": {
551
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
552
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Error",
553
+ "type": "object",
554
+ "additionalProperties": false,
555
+ "description": "Error message",
556
+ "properties": {
557
+ "message": {
558
+ "type": "string"
559
+ },
560
+ "code": {
561
+ "type": "string"
562
+ }
563
+ }
564
+ }
565
+ },
566
+ "required": ["body"],
567
+ "additionalProperties": false
568
+ }
569
+ }
570
+ }
571
+ }
572
+ },
573
+ "definitions": {
574
+ "Account": {
575
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
576
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Account",
577
+ "type": "object",
578
+ "additionalProperties": false,
579
+ "required": ["id", "createdOn", "currency", "primaryPath", "secondaryPath"],
580
+ "properties": {
581
+ "id": {
582
+ "type": "string",
583
+ "description": "Account ID"
584
+ },
585
+ "createdOn": {
586
+ "type": "string",
587
+ "format": "date-time",
588
+ "description": "Account creation date/time"
589
+ },
590
+ "currency": {
591
+ "type": "string",
592
+ "description": "Currency of account"
593
+ },
594
+ "name": {
595
+ "type": "string",
596
+ "description": "Account short name"
597
+ },
598
+ "versioned": {
599
+ "type": "boolean",
600
+ "description": "Whether the account is versioned or not"
601
+ },
602
+ "description": {
603
+ "type": "string",
604
+ "description": "Account description or long name"
605
+ },
606
+ "primaryPath": {
607
+ "type": "string",
608
+ "description": "Primary path"
609
+ },
610
+ "secondaryPath": {
611
+ "type": "string",
612
+ "description": "Secondary path"
613
+ }
614
+ }
615
+ },
616
+ "NewAccount": {
617
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
618
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/NewAccount",
619
+ "type": "object",
620
+ "additionalProperties": false,
621
+ "required": ["currency", "primaryPath", "secondaryPath", "versioned"],
622
+ "properties": {
623
+ "currency": {
624
+ "type": "string",
625
+ "description": "Currency of account"
626
+ },
627
+ "name": {
628
+ "type": "string",
629
+ "description": "Account short name"
630
+ },
631
+ "versioned": {
632
+ "type": "boolean",
633
+ "description": "Whether the account is versioned or not"
634
+ },
635
+ "description": {
636
+ "type": "string",
637
+ "description": "Account description or long name"
638
+ },
639
+ "primaryPath": {
640
+ "type": "string",
641
+ "description": "Primary path"
642
+ },
643
+ "secondaryPath": {
644
+ "type": "string",
645
+ "description": "Secondary path"
646
+ }
647
+ }
648
+ },
649
+ "Post": {
650
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
651
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Post",
652
+ "type": "object",
653
+ "additionalProperties": false,
654
+ "properties": {
655
+ "amount": {
656
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
657
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Amount",
658
+ "type": "string"
659
+ },
660
+ "currency": {
661
+ "type": "string",
662
+ "description": "Currency of account"
663
+ },
664
+ "type": {
665
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
666
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Type",
667
+ "type": "string",
668
+ "description": "CREDIT or DEBIT",
669
+ "enum": ["CREDIT", "DEBIT"]
670
+ },
671
+ "accountId": {
672
+ "type": "string",
673
+ "description": "Account ID"
674
+ },
675
+ "description": {
676
+ "type": "string",
677
+ "description": "Description"
678
+ }
679
+ }
680
+ },
681
+ "Pending": {
682
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
683
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Pending",
684
+ "type": "object",
685
+ "additionalProperties": false,
686
+ "properties": {
687
+ "pendingId": {
688
+ "type": "string",
689
+ "description": "Journal entry ID"
690
+ },
691
+ "expiredOn": {
692
+ "type": "string",
693
+ "format": "date-time",
694
+ "description": "Date pending expired on"
695
+ },
696
+ "createdOn": {
697
+ "type": "string",
698
+ "format": "date-time",
699
+ "description": "Pending transaction creation date/time"
700
+ },
701
+ "postings": {
702
+ "type": "array",
703
+ "description": "List of posts contained within pending transaction",
704
+ "items": {
705
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
706
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Post",
707
+ "type": "object",
708
+ "additionalProperties": false,
709
+ "properties": {
710
+ "amount": {
711
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
712
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Amount",
713
+ "type": "string"
714
+ },
715
+ "currency": {
716
+ "type": "string",
717
+ "description": "Currency of account"
718
+ },
719
+ "type": {
720
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
721
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Type",
722
+ "type": "string",
723
+ "description": "CREDIT or DEBIT",
724
+ "enum": ["CREDIT", "DEBIT"]
725
+ },
726
+ "accountId": {
727
+ "type": "string",
728
+ "description": "Account ID"
729
+ },
730
+ "description": {
731
+ "type": "string",
732
+ "description": "Description"
733
+ }
734
+ }
735
+ }
736
+ },
737
+ "expiration": {
738
+ "type": "string",
739
+ "format": "date-time",
740
+ "description": "Expiration date/time"
741
+ }
742
+ }
743
+ },
744
+ "NewPending": {
745
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
746
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/NewPending",
747
+ "type": "object",
748
+ "additionalProperties": false,
749
+ "required": ["postings", "expiration"],
750
+ "properties": {
751
+ "postings": {
752
+ "type": "array",
753
+ "description": "List of posts contained within pending transaction",
754
+ "items": {
755
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
756
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Post",
757
+ "type": "object",
758
+ "additionalProperties": false,
759
+ "properties": {
760
+ "amount": {
761
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
762
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Amount",
763
+ "type": "string"
764
+ },
765
+ "currency": {
766
+ "type": "string",
767
+ "description": "Currency of account"
768
+ },
769
+ "type": {
770
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
771
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Type",
772
+ "type": "string",
773
+ "description": "CREDIT or DEBIT",
774
+ "enum": ["CREDIT", "DEBIT"]
775
+ },
776
+ "accountId": {
777
+ "type": "string",
778
+ "description": "Account ID"
779
+ },
780
+ "description": {
781
+ "type": "string",
782
+ "description": "Description"
783
+ }
784
+ }
785
+ }
786
+ },
787
+ "expiration": {
788
+ "type": "string",
789
+ "format": "date-time",
790
+ "description": "Expiration date/time"
791
+ }
792
+ }
793
+ },
794
+ "Entry": {
795
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
796
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Entry",
797
+ "type": "object",
798
+ "additionalProperties": false,
799
+ "properties": {
800
+ "entryId": {
801
+ "type": "string",
802
+ "description": "Journal entry ID"
803
+ },
804
+ "createdOn": {
805
+ "type": "string",
806
+ "format": "date-time",
807
+ "description": "Journal entry creation date/time"
808
+ },
809
+ "postings": {
810
+ "type": "array",
811
+ "description": "List of posts contained within journal entry",
812
+ "items": {
813
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
814
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Post",
815
+ "type": "object",
816
+ "additionalProperties": false,
817
+ "properties": {
818
+ "amount": {
819
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
820
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Amount",
821
+ "type": "string"
822
+ },
823
+ "currency": {
824
+ "type": "string",
825
+ "description": "Currency of account"
826
+ },
827
+ "type": {
828
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
829
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Type",
830
+ "type": "string",
831
+ "description": "CREDIT or DEBIT",
832
+ "enum": ["CREDIT", "DEBIT"]
833
+ },
834
+ "accountId": {
835
+ "type": "string",
836
+ "description": "Account ID"
837
+ },
838
+ "description": {
839
+ "type": "string",
840
+ "description": "Description"
841
+ }
842
+ }
843
+ }
844
+ }
845
+ }
846
+ },
847
+ "NewEntry": {
848
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
849
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/NewEntry",
850
+ "type": "object",
851
+ "additionalProperties": false,
852
+ "required": ["postings"],
853
+ "properties": {
854
+ "postings": {
855
+ "type": "array",
856
+ "description": "List of posts contained within journal entry",
857
+ "items": {
858
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
859
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Post",
860
+ "type": "object",
861
+ "additionalProperties": false,
862
+ "properties": {
863
+ "amount": {
864
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
865
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Amount",
866
+ "type": "string"
867
+ },
868
+ "currency": {
869
+ "type": "string",
870
+ "description": "Currency of account"
871
+ },
872
+ "type": {
873
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
874
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Type",
875
+ "type": "string",
876
+ "description": "CREDIT or DEBIT",
877
+ "enum": ["CREDIT", "DEBIT"]
878
+ },
879
+ "accountId": {
880
+ "type": "string",
881
+ "description": "Account ID"
882
+ },
883
+ "description": {
884
+ "type": "string",
885
+ "description": "Description"
886
+ }
887
+ }
888
+ }
889
+ }
890
+ }
891
+ },
892
+ "Pendings": {
893
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
894
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Pendings",
895
+ "type": "array",
896
+ "items": {
897
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
898
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Pending",
899
+ "type": "object",
900
+ "additionalProperties": false,
901
+ "properties": {
902
+ "pendingId": {
903
+ "type": "string",
904
+ "description": "Journal entry ID"
905
+ },
906
+ "expiredOn": {
907
+ "type": "string",
908
+ "format": "date-time",
909
+ "description": "Date pending expired on"
910
+ },
911
+ "createdOn": {
912
+ "type": "string",
913
+ "format": "date-time",
914
+ "description": "Pending transaction creation date/time"
915
+ },
916
+ "postings": {
917
+ "type": "array",
918
+ "description": "List of posts contained within pending transaction",
919
+ "items": {
920
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
921
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Post",
922
+ "type": "object",
923
+ "additionalProperties": false,
924
+ "properties": {
925
+ "amount": {
926
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
927
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Amount",
928
+ "type": "string"
929
+ },
930
+ "currency": {
931
+ "type": "string",
932
+ "description": "Currency of account"
933
+ },
934
+ "type": {
935
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
936
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Type",
937
+ "type": "string",
938
+ "description": "CREDIT or DEBIT",
939
+ "enum": ["CREDIT", "DEBIT"]
940
+ },
941
+ "accountId": {
942
+ "type": "string",
943
+ "description": "Account ID"
944
+ },
945
+ "description": {
946
+ "type": "string",
947
+ "description": "Description"
948
+ }
949
+ }
950
+ }
951
+ },
952
+ "expiration": {
953
+ "type": "string",
954
+ "format": "date-time",
955
+ "description": "Expiration date/time"
956
+ }
957
+ }
958
+ }
959
+ },
960
+ "Entries": {
961
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
962
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Entries",
963
+ "type": "array",
964
+ "items": {
965
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
966
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Entry",
967
+ "type": "object",
968
+ "additionalProperties": false,
969
+ "properties": {
970
+ "entryId": {
971
+ "type": "string",
972
+ "description": "Journal entry ID"
973
+ },
974
+ "createdOn": {
975
+ "type": "string",
976
+ "format": "date-time",
977
+ "description": "Journal entry creation date/time"
978
+ },
979
+ "postings": {
980
+ "type": "array",
981
+ "description": "List of posts contained within journal entry",
982
+ "items": {
983
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
984
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Post",
985
+ "type": "object",
986
+ "additionalProperties": false,
987
+ "properties": {
988
+ "amount": {
989
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
990
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Amount",
991
+ "type": "string"
992
+ },
993
+ "currency": {
994
+ "type": "string",
995
+ "description": "Currency of account"
996
+ },
997
+ "type": {
998
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
999
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Type",
1000
+ "type": "string",
1001
+ "description": "CREDIT or DEBIT",
1002
+ "enum": ["CREDIT", "DEBIT"]
1003
+ },
1004
+ "accountId": {
1005
+ "type": "string",
1006
+ "description": "Account ID"
1007
+ },
1008
+ "description": {
1009
+ "type": "string",
1010
+ "description": "Description"
1011
+ }
1012
+ }
1013
+ }
1014
+ }
1015
+ }
1016
+ }
1017
+ },
1018
+ "BalanceList": {
1019
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1020
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/BalanceList",
1021
+ "type": "object",
1022
+ "additionalProperties": false,
1023
+ "description": "List of balances for the accounts requested",
1024
+ "properties": {
1025
+ "at": {
1026
+ "type": "string",
1027
+ "format": "date-time",
1028
+ "description": "Account balance at this date/time"
1029
+ },
1030
+ "balances": {
1031
+ "type": "array",
1032
+ "items": {
1033
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1034
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Balances",
1035
+ "type": "object",
1036
+ "additionalProperties": false,
1037
+ "description": "Available and ledger balances, with account version, at point in time.",
1038
+ "properties": {
1039
+ "accountId": {
1040
+ "type": "string",
1041
+ "description": "Account ID"
1042
+ },
1043
+ "available": {
1044
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1045
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Amount",
1046
+ "type": "string"
1047
+ },
1048
+ "ledger": {
1049
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1050
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Amount",
1051
+ "type": "string"
1052
+ }
1053
+ }
1054
+ }
1055
+ }
1056
+ }
1057
+ },
1058
+ "Balances": {
1059
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1060
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Balances",
1061
+ "type": "object",
1062
+ "additionalProperties": false,
1063
+ "description": "Available and ledger balances, with account version, at point in time.",
1064
+ "properties": {
1065
+ "accountId": {
1066
+ "type": "string",
1067
+ "description": "Account ID"
1068
+ },
1069
+ "available": {
1070
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1071
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Amount",
1072
+ "type": "string"
1073
+ },
1074
+ "ledger": {
1075
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1076
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Amount",
1077
+ "type": "string"
1078
+ }
1079
+ }
1080
+ },
1081
+ "Amount": {
1082
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1083
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Amount",
1084
+ "type": "string"
1085
+ },
1086
+ "Type": {
1087
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1088
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Type",
1089
+ "type": "string",
1090
+ "description": "CREDIT or DEBIT",
1091
+ "enum": ["CREDIT", "DEBIT"]
1092
+ },
1093
+ "Accounts": {
1094
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1095
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Accounts",
1096
+ "type": "array",
1097
+ "items": {
1098
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1099
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Account",
1100
+ "type": "object",
1101
+ "additionalProperties": false,
1102
+ "required": ["id", "createdOn", "currency", "primaryPath", "secondaryPath"],
1103
+ "properties": {
1104
+ "id": {
1105
+ "type": "string",
1106
+ "description": "Account ID"
1107
+ },
1108
+ "createdOn": {
1109
+ "type": "string",
1110
+ "format": "date-time",
1111
+ "description": "Account creation date/time"
1112
+ },
1113
+ "currency": {
1114
+ "type": "string",
1115
+ "description": "Currency of account"
1116
+ },
1117
+ "name": {
1118
+ "type": "string",
1119
+ "description": "Account short name"
1120
+ },
1121
+ "versioned": {
1122
+ "type": "boolean",
1123
+ "description": "Whether the account is versioned or not"
1124
+ },
1125
+ "description": {
1126
+ "type": "string",
1127
+ "description": "Account description or long name"
1128
+ },
1129
+ "primaryPath": {
1130
+ "type": "string",
1131
+ "description": "Primary path"
1132
+ },
1133
+ "secondaryPath": {
1134
+ "type": "string",
1135
+ "description": "Secondary path"
1136
+ }
1137
+ }
1138
+ }
1139
+ },
1140
+ "Error": {
1141
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1142
+ "$id": "https://account.checkdigit/account/v2/schemas/definitions/Error",
1143
+ "type": "object",
1144
+ "additionalProperties": false,
1145
+ "description": "Error message",
1146
+ "properties": {
1147
+ "message": {
1148
+ "type": "string"
1149
+ },
1150
+ "code": {
1151
+ "type": "string"
1152
+ }
1153
+ }
1154
+ }
1155
+ }
1156
+ }