{
  "schemaVersion": 1,
  "name": "Statement",
  "page": {
    "paper": "a4",
    "orientation": "portrait",
    "margin": {
      "top": 17,
      "right": 17,
      "bottom": 17,
      "left": 17
    }
  },
  "header": {
    "blocks": [
      {
        "type": "text",
        "id": "brand",
        "text": "SEE ATTACHED / SAMPLE DOCUMENT",
        "fontSizePt": 9,
        "color": "#2457FF",
        "bold": true
      },
      {
        "type": "spacer",
        "id": "head-gap",
        "heightMm": 5
      },
      {
        "type": "text",
        "id": "title",
        "text": "STATEMENT",
        "fontSizePt": 32,
        "bold": true,
        "color": "#171717"
      },
      {
        "type": "text",
        "id": "subtitle",
        "text": "The whole month, in one clear view.",
        "fontSizePt": 10,
        "color": "#606060"
      },
      {
        "type": "spacer",
        "id": "header-space",
        "heightMm": 12
      }
    ]
  },
  "body": {
    "blocks": [
      {
        "type": "text",
        "id": "recipient",
        "text": "{document.recipient}",
        "fontSizePt": 14,
        "bold": true
      },
      {
        "type": "text",
        "id": "reference",
        "text": "{document.reference}\n{document.date:MMMM d, yyyy}",
        "fontSizePt": 10,
        "color": "#606060"
      },
      {
        "type": "spacer",
        "id": "body-space",
        "heightMm": 8
      },
      {
        "type": "table",
        "id": "transactions",
        "dataPath": "transactions",
        "columns": [
          {
            "header": "Date",
            "path": "date",
            "format": "MMM d",
            "widthMm": 24
          },
          {
            "header": "Activity",
            "path": "description"
          },
          {
            "header": "Change",
            "path": "amount",
            "format": "C",
            "align": "right",
            "widthMm": 30
          },
          {
            "header": "Balance",
            "path": "balance",
            "format": "C",
            "align": "right",
            "widthMm": 30
          }
        ]
      },
      {
        "type": "spacer",
        "id": "summary-space",
        "heightMm": 9
      },
      {
        "type": "text",
        "id": "summary",
        "text": "Closing balance: {document.closingBalance:C}",
        "fontSizePt": 12,
        "bold": true
      }
    ]
  },
  "footer": {
    "blocks": [
      {
        "type": "spacer",
        "id": "footer-space",
        "heightMm": 10
      },
      {
        "type": "text",
        "id": "sample-note",
        "text": "Synthetic demonstration data. This document was compiled by See Attached.",
        "fontSizePt": 9,
        "color": "#606060"
      }
    ]
  }
}
