{
  "caseId": "invoice-total",
  "fictional": true,
  "scope": "local_calculation_rules_only",
  "observationsPreparedBy": "DeepfakePolicy; manually specified from the included fictional text",
  "variants": [
    {
      "variant": "discrepancy",
      "source": {
        "name": "invoice-total-discrepancy.txt",
        "text": "FICTIONAL CONTROLLED SPECIMEN - NOT A REAL FINANCIAL DOCUMENT\nInvoice calculation example\nVariant: discrepancy\nPage 1 of 1. All specimen amounts are listed below.\nCurrency: EUR\nSubtotal: 350.00 EUR\nTax amount: 70.00 EUR\nTotal: 450.00 EUR\nNo real customer, issuer, bank account, tax identifier or transaction is represented.\nThese amounts are supplied as structured observations; OCR and file extraction are not exercised.\n",
        "sha256": "5575103d06a12223410fcd7be6601bef8f8e3e85ff56879b79c8ada3d8a281df"
      },
      "observations": [
        {
          "id": "currency",
          "page": 1,
          "location": "specimen line 5",
          "quote": "Currency: EUR",
          "field": "document.currency",
          "value": "EUR",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "subtotal",
          "page": 1,
          "location": "specimen line 6",
          "quote": "Subtotal: 350.00 EUR",
          "field": "totals.subtotal",
          "value": "350.00",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "tax",
          "page": 1,
          "location": "specimen line 7",
          "quote": "Tax amount: 70.00 EUR",
          "field": "totals.tax",
          "value": "70.00",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "total",
          "page": 1,
          "location": "specimen line 8",
          "quote": "Total: 450.00 EUR",
          "field": "totals.total",
          "value": "450.00",
          "confidence": "high",
          "support": "text_quote"
        }
      ],
      "calculation": {
        "kind": "invoice_total",
        "complete": true,
        "operands": [
          {
            "role": "subtotal",
            "observationId": "subtotal",
            "currencyObservationId": "currency"
          },
          {
            "role": "tax",
            "observationId": "tax",
            "currencyObservationId": "currency"
          },
          {
            "role": "total",
            "observationId": "total",
            "currencyObservationId": "currency"
          }
        ]
      },
      "coverage": {
        "totalPages": 1,
        "readPages": [
          1
        ],
        "unreadablePages": [],
        "omittedPages": [],
        "partialPages": []
      },
      "expected": {
        "status": "review",
        "detail": "420.00 EUR / 450.00 EUR"
      }
    },
    {
      "variant": "matching-control",
      "source": {
        "name": "invoice-total-matching-control.txt",
        "text": "FICTIONAL CONTROLLED SPECIMEN - NOT A REAL FINANCIAL DOCUMENT\nInvoice calculation example\nVariant: matching-control\nPage 1 of 1. All specimen amounts are listed below.\nCurrency: EUR\nSubtotal: 350.00 EUR\nTax amount: 70.00 EUR\nTotal: 420.00 EUR\nNo real customer, issuer, bank account, tax identifier or transaction is represented.\nThese amounts are supplied as structured observations; OCR and file extraction are not exercised.\n",
        "sha256": "968fdf36f65d0b938204f473375666ce836b84040e4fe9351b1bf82970e4b0d6"
      },
      "observations": [
        {
          "id": "currency",
          "page": 1,
          "location": "specimen line 5",
          "quote": "Currency: EUR",
          "field": "document.currency",
          "value": "EUR",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "subtotal",
          "page": 1,
          "location": "specimen line 6",
          "quote": "Subtotal: 350.00 EUR",
          "field": "totals.subtotal",
          "value": "350.00",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "tax",
          "page": 1,
          "location": "specimen line 7",
          "quote": "Tax amount: 70.00 EUR",
          "field": "totals.tax",
          "value": "70.00",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "total",
          "page": 1,
          "location": "specimen line 8",
          "quote": "Total: 420.00 EUR",
          "field": "totals.total",
          "value": "420.00",
          "confidence": "high",
          "support": "text_quote"
        }
      ],
      "calculation": {
        "kind": "invoice_total",
        "complete": true,
        "operands": [
          {
            "role": "subtotal",
            "observationId": "subtotal",
            "currencyObservationId": "currency"
          },
          {
            "role": "tax",
            "observationId": "tax",
            "currencyObservationId": "currency"
          },
          {
            "role": "total",
            "observationId": "total",
            "currencyObservationId": "currency"
          }
        ]
      },
      "coverage": {
        "totalPages": 1,
        "readPages": [
          1
        ],
        "unreadablePages": [],
        "omittedPages": [],
        "partialPages": []
      },
      "expected": {
        "status": "pass",
        "detail": "420.00 EUR / 420.00 EUR"
      }
    },
    {
      "variant": "incomplete-coverage",
      "source": {
        "name": "invoice-total-incomplete-coverage.txt",
        "text": "FICTIONAL CONTROLLED SPECIMEN - NOT A REAL FINANCIAL DOCUMENT\nInvoice calculation example\nVariant: incomplete-coverage\nPage 1 of 2. Page 2 was not supplied.\nCurrency: EUR\nSubtotal: 350.00 EUR\nTax amount: 70.00 EUR\nTotal: 450.00 EUR\nNo real customer, issuer, bank account, tax identifier or transaction is represented.\nThese amounts are supplied as structured observations; OCR and file extraction are not exercised.\n",
        "sha256": "32bd576a73e6299a8947a08f1b2ac077e24282bbf4100b9f0858f50990fc612c"
      },
      "observations": [
        {
          "id": "currency",
          "page": 1,
          "location": "specimen line 5",
          "quote": "Currency: EUR",
          "field": "document.currency",
          "value": "EUR",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "subtotal",
          "page": 1,
          "location": "specimen line 6",
          "quote": "Subtotal: 350.00 EUR",
          "field": "totals.subtotal",
          "value": "350.00",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "tax",
          "page": 1,
          "location": "specimen line 7",
          "quote": "Tax amount: 70.00 EUR",
          "field": "totals.tax",
          "value": "70.00",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "total",
          "page": 1,
          "location": "specimen line 8",
          "quote": "Total: 450.00 EUR",
          "field": "totals.total",
          "value": "450.00",
          "confidence": "high",
          "support": "text_quote"
        }
      ],
      "calculation": {
        "kind": "invoice_total",
        "complete": true,
        "operands": [
          {
            "role": "subtotal",
            "observationId": "subtotal",
            "currencyObservationId": "currency"
          },
          {
            "role": "tax",
            "observationId": "tax",
            "currencyObservationId": "currency"
          },
          {
            "role": "total",
            "observationId": "total",
            "currencyObservationId": "currency"
          }
        ]
      },
      "coverage": {
        "totalPages": 2,
        "readPages": [
          1
        ],
        "unreadablePages": [],
        "omittedPages": [
          2
        ],
        "partialPages": []
      },
      "expected": {
        "status": "unavailable"
      }
    }
  ]
}
