File size: 2,954 Bytes
8143f06
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "accountSummary": {
      "type": "object",
      "additionalProperties": false,
      "description": "computed roll-up over the whole register",
      "properties": {
        "openingBalance": {
          "type": "number",
          "description": "account balance immediately before the first transaction (the first transaction's running balance minus that transaction's amount)"
        },
        "closingBalance": {
          "type": "number",
          "description": "running balance after the final transaction"
        },
        "totalDebits": {
          "type": "number",
          "description": "sum of all debit (negative) amounts, expressed as a positive number"
        },
        "totalCredits": {
          "type": "number",
          "description": "sum of all credit (positive) amounts"
        },
        "feeTransactionCount": {
          "type": "integer",
          "description": "count of transactions whose category is Fees"
        }
      },
      "required": [
        "openingBalance",
        "closingBalance",
        "totalDebits",
        "totalCredits",
        "feeTransactionCount"
      ]
    },
    "largeDebits": {
      "type": "array",
      "description": "only debit transactions of 100.00 or more in absolute value (amount of -100.00 or lower); exclude all credits and all debits smaller than 100.00",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "postedOn": {
            "type": "string",
            "description": "posting date of the transaction, YYYY-MM-DD"
          },
          "merchant": {
            "type": "string",
            "description": "transaction description / counterparty, exactly as written"
          },
          "spendCategory": {
            "type": "string",
            "description": "category label of the transaction"
          },
          "debitAmountUsd": {
            "type": "number",
            "description": "the debit amount as a positive number (drop the leading minus sign)"
          },
          "valueDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "the separate value/settlement date only if the register has its own value-date column distinct from the posting date; if there is no such column, null. never reuse the posting date as the value date"
          }
        },
        "required": [
          "postedOn",
          "merchant",
          "spendCategory",
          "debitAmountUsd"
        ]
      }
    },
    "highestRunningBalanceDescription": {
      "type": "string",
      "description": "description of the single transaction at which the running balance reaches its highest value anywhere in the register"
    }
  },
  "required": [
    "accountSummary",
    "largeDebits",
    "highestRunningBalanceDescription"
  ]
}