{
  "caseId": "bank-statement-balance",
  "fictional": true,
  "scope": "local_calculation_rules_only",
  "observationsPreparedBy": "DeepfakePolicy; manually specified from the included fictional text",
  "variants": [
    {
      "variant": "discrepancy",
      "source": {
        "name": "bank-statement-balance-discrepancy.txt",
        "text": "FICTIONAL CONTROLLED SPECIMEN - NOT A REAL FINANCIAL DOCUMENT\nBank statement calculation example\nVariant: discrepancy\nPage 1 of 1. All specimen amounts are listed below.\nCurrency: EUR\nOpening balance: 1000.00 EUR\nTransaction A: Credit 250.00 EUR\nTransaction B: Debit 100.00 EUR\nClosing balance: 1200.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": "382fc36f828746a95dca24e30aadf511da38ed6d2b2a8dc2e76c3fb64eafeefd"
      },
      "observations": [
        {
          "id": "currency",
          "page": 1,
          "location": "specimen line 5",
          "quote": "Currency: EUR",
          "field": "document.currency",
          "value": "EUR",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "opening",
          "page": 1,
          "location": "specimen line 6",
          "quote": "Opening balance: 1000.00 EUR",
          "field": "statement.opening_balance",
          "value": "1000.00",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "credit",
          "page": 1,
          "location": "specimen line 7",
          "quote": "Transaction A: Credit 250.00 EUR",
          "field": "transaction.1.amount",
          "value": "250.00",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "credit-direction",
          "page": 1,
          "location": "specimen line 7",
          "quote": "Transaction A: Credit 250.00 EUR",
          "field": "transaction.1.direction",
          "value": "Credit",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "debit",
          "page": 1,
          "location": "specimen line 8",
          "quote": "Transaction B: Debit 100.00 EUR",
          "field": "transaction.2.amount",
          "value": "100.00",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "debit-direction",
          "page": 1,
          "location": "specimen line 8",
          "quote": "Transaction B: Debit 100.00 EUR",
          "field": "transaction.2.direction",
          "value": "Debit",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "closing",
          "page": 1,
          "location": "specimen line 9",
          "quote": "Closing balance: 1200.00 EUR",
          "field": "statement.closing_balance",
          "value": "1200.00",
          "confidence": "high",
          "support": "text_quote"
        }
      ],
      "calculation": {
        "kind": "statement_balance",
        "complete": true,
        "operands": [
          {
            "role": "opening",
            "observationId": "opening",
            "currencyObservationId": "currency"
          },
          {
            "role": "credit",
            "observationId": "credit",
            "currencyObservationId": "currency",
            "directionObservationId": "credit-direction"
          },
          {
            "role": "debit",
            "observationId": "debit",
            "currencyObservationId": "currency",
            "directionObservationId": "debit-direction"
          },
          {
            "role": "closing",
            "observationId": "closing",
            "currencyObservationId": "currency"
          }
        ]
      },
      "coverage": {
        "totalPages": 1,
        "readPages": [
          1
        ],
        "unreadablePages": [],
        "omittedPages": [],
        "partialPages": []
      },
      "expected": {
        "status": "review",
        "detail": "1150.00 EUR / 1200.00 EUR"
      }
    },
    {
      "variant": "matching-control",
      "source": {
        "name": "bank-statement-balance-matching-control.txt",
        "text": "FICTIONAL CONTROLLED SPECIMEN - NOT A REAL FINANCIAL DOCUMENT\nBank statement calculation example\nVariant: matching-control\nPage 1 of 1. All specimen amounts are listed below.\nCurrency: EUR\nOpening balance: 1000.00 EUR\nTransaction A: Credit 250.00 EUR\nTransaction B: Debit 100.00 EUR\nClosing balance: 1150.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": "272312f6c3f5fe6ac461765232fce651f899bda5663ebc6bbee9fdd722fa2626"
      },
      "observations": [
        {
          "id": "currency",
          "page": 1,
          "location": "specimen line 5",
          "quote": "Currency: EUR",
          "field": "document.currency",
          "value": "EUR",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "opening",
          "page": 1,
          "location": "specimen line 6",
          "quote": "Opening balance: 1000.00 EUR",
          "field": "statement.opening_balance",
          "value": "1000.00",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "credit",
          "page": 1,
          "location": "specimen line 7",
          "quote": "Transaction A: Credit 250.00 EUR",
          "field": "transaction.1.amount",
          "value": "250.00",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "credit-direction",
          "page": 1,
          "location": "specimen line 7",
          "quote": "Transaction A: Credit 250.00 EUR",
          "field": "transaction.1.direction",
          "value": "Credit",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "debit",
          "page": 1,
          "location": "specimen line 8",
          "quote": "Transaction B: Debit 100.00 EUR",
          "field": "transaction.2.amount",
          "value": "100.00",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "debit-direction",
          "page": 1,
          "location": "specimen line 8",
          "quote": "Transaction B: Debit 100.00 EUR",
          "field": "transaction.2.direction",
          "value": "Debit",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "closing",
          "page": 1,
          "location": "specimen line 9",
          "quote": "Closing balance: 1150.00 EUR",
          "field": "statement.closing_balance",
          "value": "1150.00",
          "confidence": "high",
          "support": "text_quote"
        }
      ],
      "calculation": {
        "kind": "statement_balance",
        "complete": true,
        "operands": [
          {
            "role": "opening",
            "observationId": "opening",
            "currencyObservationId": "currency"
          },
          {
            "role": "credit",
            "observationId": "credit",
            "currencyObservationId": "currency",
            "directionObservationId": "credit-direction"
          },
          {
            "role": "debit",
            "observationId": "debit",
            "currencyObservationId": "currency",
            "directionObservationId": "debit-direction"
          },
          {
            "role": "closing",
            "observationId": "closing",
            "currencyObservationId": "currency"
          }
        ]
      },
      "coverage": {
        "totalPages": 1,
        "readPages": [
          1
        ],
        "unreadablePages": [],
        "omittedPages": [],
        "partialPages": []
      },
      "expected": {
        "status": "pass",
        "detail": "1150.00 EUR / 1150.00 EUR"
      }
    },
    {
      "variant": "incomplete-coverage",
      "source": {
        "name": "bank-statement-balance-incomplete-coverage.txt",
        "text": "FICTIONAL CONTROLLED SPECIMEN - NOT A REAL FINANCIAL DOCUMENT\nBank statement calculation example\nVariant: incomplete-coverage\nPage 1 of 2. Page 2 was not supplied.\nCurrency: EUR\nOpening balance: 1000.00 EUR\nTransaction A: Credit 250.00 EUR\nTransaction B: Debit 100.00 EUR\nClosing balance: 1200.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": "4d457fd8e863183bb843fb1639715b67d52343596b1312f9f5516412e9b7926b"
      },
      "observations": [
        {
          "id": "currency",
          "page": 1,
          "location": "specimen line 5",
          "quote": "Currency: EUR",
          "field": "document.currency",
          "value": "EUR",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "opening",
          "page": 1,
          "location": "specimen line 6",
          "quote": "Opening balance: 1000.00 EUR",
          "field": "statement.opening_balance",
          "value": "1000.00",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "credit",
          "page": 1,
          "location": "specimen line 7",
          "quote": "Transaction A: Credit 250.00 EUR",
          "field": "transaction.1.amount",
          "value": "250.00",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "credit-direction",
          "page": 1,
          "location": "specimen line 7",
          "quote": "Transaction A: Credit 250.00 EUR",
          "field": "transaction.1.direction",
          "value": "Credit",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "debit",
          "page": 1,
          "location": "specimen line 8",
          "quote": "Transaction B: Debit 100.00 EUR",
          "field": "transaction.2.amount",
          "value": "100.00",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "debit-direction",
          "page": 1,
          "location": "specimen line 8",
          "quote": "Transaction B: Debit 100.00 EUR",
          "field": "transaction.2.direction",
          "value": "Debit",
          "confidence": "high",
          "support": "text_quote"
        },
        {
          "id": "closing",
          "page": 1,
          "location": "specimen line 9",
          "quote": "Closing balance: 1200.00 EUR",
          "field": "statement.closing_balance",
          "value": "1200.00",
          "confidence": "high",
          "support": "text_quote"
        }
      ],
      "calculation": {
        "kind": "statement_balance",
        "complete": true,
        "operands": [
          {
            "role": "opening",
            "observationId": "opening",
            "currencyObservationId": "currency"
          },
          {
            "role": "credit",
            "observationId": "credit",
            "currencyObservationId": "currency",
            "directionObservationId": "credit-direction"
          },
          {
            "role": "debit",
            "observationId": "debit",
            "currencyObservationId": "currency",
            "directionObservationId": "debit-direction"
          },
          {
            "role": "closing",
            "observationId": "closing",
            "currencyObservationId": "currency"
          }
        ]
      },
      "coverage": {
        "totalPages": 2,
        "readPages": [
          1
        ],
        "unreadablePages": [],
        "omittedPages": [
          2
        ],
        "partialPages": []
      },
      "expected": {
        "status": "unavailable"
      }
    }
  ]
}
