{
  "format": "invoya.invoice-template",
  "formatVersion": "1.3",
  "id": "gallery.midnight",
  "name": {
    "en": "Midnight",
    "de": "Mitternacht",
    "ru": "Полночь",
    "uk": "Опівніч"
  },
  "author": "Invoya Gallery",
  "page": {
    "size": "a4",
    "margins": { "top": 64, "left": 64, "bottom": 64, "footer": 28 }
  },
  "style": { "bodySize": 8 },
  "letterhead": ["business"],
  "blocks": [
    { "id": "business", "type": "business", "align": "left", "logo": "left" },
    { "type": "spacer", "height": 20 },
    { "id": "title", "type": "title", "align": "right", "filled": true },
    { "id": "meta", "type": "invoiceMeta", "align": "left",
      "fields": ["number", "invoiceDate", "dueDate"] },
    { "id": "client", "type": "client", "caption": "billTo" },
    { "type": "spacer", "height": 20 },
    { "id": "items", "type": "items",
      "columns": ["description", "qty", "rate", "amount"], "borders": true },
    { "type": "spacer", "height": 12 },
    { "id": "totals", "type": "totals", "align": "right",
      "lines": ["subtotal", "discount", "taxes", "total"] },
    { "id": "payment", "type": "payment", "qr": "auto" },
    { "id": "terms", "type": "terms" },
    { "id": "footer", "type": "footer", "left": "pageXofN", "center": "footerText" }
  ]
}
