{
  "format": "telco.migration.v1",
  "source": "regional-demo",
  "snapshot": "pilot-01",
  "cutover_on": "2027-01-01",
  "periods": [
    "2026-11",
    "2026-12"
  ],
  "customers": [
    {
      "id": "P-017",
      "live": {
        "name": "Musterkunde Pilot",
        "street": "Beispielweg 1",
        "postcode": "10115",
        "city": "Berlin",
        "country": "DE",
        "consumer": true,
        "salutation": "sie"
      }
    }
  ],
  "accounts": [
    {
      "id": "K-017",
      "customer": "P-017",
      "live": {
        "payment_terms_days": 14,
        "payment_method": "direct-debit",
        "mandate": "M-017",
        "iban": "DE89370400440532013000"
      }
    }
  ],
  "contracts": [
    {
      "id": "V-017",
      "account": "K-017",
      "starts_on": "2026-10-01",
      "live": {
        "initial_months": 12,
        "notice_months": 1,
        "renews": true,
        "summary_before_conclusion": true,
        "state": "effective"
      }
    }
  ],
  "subscriptions": [
    {
      "contract": "V-017",
      "input": {
        "id": "demo-line",
        "active_from": "2026-10-01",
        "ends_on": null,
        "slices": [
          {
            "plan": "glasfaser-1000",
            "book_version": "example-fibre@2026-11",
            "from": "2026-10-01",
            "to": null
          }
        ]
      },
      "live": {
        "product": "demo-fibre",
        "state": "active"
      }
    }
  ],
  "tariffs": [
    {
      "id": "example-fibre@2026-11",
      "sha256": "sha256:f2624d6b45e74aa6e03757930772bb129170a1dafeee687305c1ceb1974b1c8f",
      "files": {
        "book.toml": "#:schema ../schema.json\n# A fibre brand of a regional operator. Consumer prices, so the book is gross: the\n# amounts here are what the customer pays, and VAT is extracted from the total.\n[book]\nid       = \"example-fibre\"\nversion  = \"2026-11\"\nprices   = \"gross\"\ncurrency = \"EUR\"\n\n# German standard VAT, including the 2020 reduction, so old periods re-rate exactly.\n[tax.standard]\nrates = [\n  { from = \"2007-01-01\", percent = \"19\" },\n  { from = \"2020-07-01\", percent = \"16\" },\n  { from = \"2021-01-01\", percent = \"19\" },\n]\n\n[kind.calls-landline]\nlabel   = \"Anrufe ins deutsche Festnetz\"\nmeasure = \"seconds\"\n\n[kind.calls-mobile]\nlabel   = \"Anrufe in Mobilfunknetze\"\nmeasure = \"seconds\"\n\n[kind.calls-eu]\nlabel   = \"Anrufe ins EU-Ausland\"\nmeasure = \"seconds\"\neu      = \"call\"\n\n[kind.calls-premium]\nlabel   = \"Anrufe zu Sonderrufnummern\"\nmeasure = \"seconds\"\n",
        "plans/glasfaser-1000.toml": "#:schema ../../schema.json\n[plan.glasfaser-1000]\nname     = \"Glasfaser 1000\"\ntax      = \"standard\"\nincluded = [\"calls-landline\"]\n\n[plan.glasfaser-1000.recurring.base]\nlabel  = \"Glasfaser 1000\"\namount = \"49.99\"\n\n[plan.glasfaser-1000.recurring.phone]\nlabel  = \"Telefon-Flat Festnetz\"\namount = \"4.99\"\n\n[plan.glasfaser-1000.recurring.router]\nlabel  = \"Router\"\namount = \"4.99\"\n\n[plan.glasfaser-1000.one-off.setup]\nlabel  = \"Bereitstellung\"\namount = \"69.99\"\non     = \"start\"\n\n[plan.glasfaser-1000.discount.welcome]\nlabel  = \"Aktionsrabatt\"\namount = \"-30.00\"\nscope  = \"base\"\nmonths = 3\n\n[plan.glasfaser-1000.usage.calls-mobile]\nlabel = \"Anrufe in Mobilfunknetze\"\nprice = \"0.19\"\nper   = \"1 min\"\nround = \"60/60\"\n\n[plan.glasfaser-1000.usage.calls-eu]\nlabel = \"Anrufe ins EU-Ausland\"\nprice = \"0.19\"\nper   = \"1 min\"\nround = \"60/60\"\n\n[plan.glasfaser-1000.usage.calls-premium]\nlabel = \"Anrufe zu Sonderrufnummern\"\nprice = \"1.99\"\nper   = \"1 min\"\nround = \"60/60\"\n",
        "plans/glasfaser-2000.toml": "#:schema ../../schema.json\n[plan.glasfaser-2000]\nname     = \"Glasfaser 2000\"\ntax      = \"standard\"\nincluded = [\"calls-landline\"]\n\n[plan.glasfaser-2000.recurring.base]\nlabel  = \"Glasfaser 2000\"\namount = \"59.99\"\n\n[plan.glasfaser-2000.recurring.phone]\nlabel  = \"Telefon-Flat Festnetz\"\namount = \"4.99\"\n\n[plan.glasfaser-2000.recurring.router]\nlabel  = \"Router\"\namount = \"4.99\"\n\n[plan.glasfaser-2000.usage.calls-mobile]\nlabel = \"Anrufe in Mobilfunknetze\"\nprice = \"0.19\"\nper   = \"1 min\"\nround = \"60/60\"\n\n[plan.glasfaser-2000.usage.calls-eu]\nlabel = \"Anrufe ins EU-Ausland\"\nprice = \"0.19\"\nper   = \"1 min\"\nround = \"60/60\"\n\n[plan.glasfaser-2000.usage.calls-premium]\nlabel = \"Anrufe zu Sonderrufnummern\"\nprice = \"1.99\"\nper   = \"1 min\"\nround = \"60/60\"\n"
      }
    }
  ],
  "usage": [
    {
      "subscription": "demo-line",
      "record": {
        "id": "demo-call",
        "kind": "calls-mobile",
        "date": "2026-10-15",
        "quantity": 61
      }
    }
  ],
  "prior_charges": [
    {
      "id": "P-0001",
      "subscription": "demo-line",
      "month": "2026-10",
      "plan": "glasfaser-1000",
      "book_version": "example-fibre@2026-11",
      "kind": "recurring",
      "item": "base",
      "rate": "19",
      "amount": "49.99",
      "from": "2026-10-01",
      "to": "2026-10-31"
    },
    {
      "id": "P-0002",
      "subscription": "demo-line",
      "month": "2026-10",
      "plan": "glasfaser-1000",
      "book_version": "example-fibre@2026-11",
      "kind": "recurring",
      "item": "phone",
      "rate": "19",
      "amount": "4.99",
      "from": "2026-10-01",
      "to": "2026-10-31"
    },
    {
      "id": "P-0003",
      "subscription": "demo-line",
      "month": "2026-10",
      "plan": "glasfaser-1000",
      "book_version": "example-fibre@2026-11",
      "kind": "recurring",
      "item": "router",
      "rate": "19",
      "amount": "4.99",
      "from": "2026-10-01",
      "to": "2026-10-31"
    },
    {
      "id": "P-0004",
      "subscription": "demo-line",
      "month": "2026-10",
      "plan": "glasfaser-1000",
      "book_version": "example-fibre@2026-11",
      "kind": "one-off",
      "item": "setup",
      "rate": "19",
      "amount": "69.99",
      "from": "2026-10-01",
      "to": "2026-10-01"
    },
    {
      "id": "P-0005",
      "subscription": "demo-line",
      "month": "2026-10",
      "plan": "glasfaser-1000",
      "book_version": "example-fibre@2026-11",
      "kind": "discount",
      "item": "welcome",
      "rate": "19",
      "amount": "-30",
      "from": "2026-10-01",
      "to": "2026-10-31"
    },
    {
      "id": "P-0006",
      "subscription": "demo-line",
      "month": "2026-11",
      "plan": "glasfaser-1000",
      "book_version": "example-fibre@2026-11",
      "kind": "recurring",
      "item": "base",
      "rate": "19",
      "amount": "46.99",
      "from": "2026-11-01",
      "to": "2026-11-30"
    },
    {
      "id": "P-0007",
      "subscription": "demo-line",
      "month": "2026-11",
      "plan": "glasfaser-1000",
      "book_version": "example-fibre@2026-11",
      "kind": "recurring",
      "item": "phone",
      "rate": "19",
      "amount": "4.99",
      "from": "2026-11-01",
      "to": "2026-11-30"
    },
    {
      "id": "P-0008",
      "subscription": "demo-line",
      "month": "2026-11",
      "plan": "glasfaser-1000",
      "book_version": "example-fibre@2026-11",
      "kind": "recurring",
      "item": "router",
      "rate": "19",
      "amount": "7.99",
      "from": "2026-11-01",
      "to": "2026-11-30"
    },
    {
      "id": "P-0009",
      "subscription": "demo-line",
      "month": "2026-11",
      "plan": "glasfaser-1000",
      "book_version": "example-fibre@2026-11",
      "kind": "discount",
      "item": "welcome",
      "rate": "19",
      "amount": "-30",
      "from": "2026-11-01",
      "to": "2026-11-30"
    }
  ],
  "invoices": [
    {
      "id": "LEG-2026-11",
      "account": "K-017",
      "period": "2026-11",
      "net": "25.50",
      "vat": "4.85",
      "gross": "30.35",
      "lines": [
        {
          "id": "11-base",
          "item": "base",
          "charge_id": "advance/demo-line/glasfaser-1000@example-fibre@2026-11/recurring:base:2026-11-01",
          "rate": "19",
          "gross": "46.99"
        },
        {
          "id": "11-phone",
          "item": "phone",
          "charge_id": "advance/demo-line/glasfaser-1000@example-fibre@2026-11/recurring:phone:2026-11-01",
          "rate": "19",
          "gross": "4.99"
        },
        {
          "id": "11-router",
          "item": "router",
          "charge_id": "advance/demo-line/glasfaser-1000@example-fibre@2026-11/recurring:router:2026-11-01",
          "rate": "19",
          "gross": "7.99"
        },
        {
          "id": "11-welcome",
          "item": "welcome",
          "charge_id": "advance/demo-line/glasfaser-1000@example-fibre@2026-11/discount:welcome:2026-11-01",
          "rate": "19",
          "gross": "-30.00"
        },
        {
          "id": "11-calls-mobile",
          "item": "calls-mobile",
          "charge_id": "usage/demo-line/00/usage:calls-mobile:00:2026-10-01",
          "rate": "19",
          "gross": "0.38"
        }
      ]
    },
    {
      "id": "LEG-2026-12",
      "account": "K-017",
      "period": "2026-12",
      "net": "25.18",
      "vat": "4.79",
      "gross": "29.97",
      "lines": [
        {
          "id": "12-base",
          "item": "base",
          "charge_id": "advance/demo-line/glasfaser-1000@example-fibre@2026-11/recurring:base:2026-12-01",
          "rate": "19",
          "gross": "49.99"
        },
        {
          "id": "12-phone",
          "item": "phone",
          "charge_id": "advance/demo-line/glasfaser-1000@example-fibre@2026-11/recurring:phone:2026-12-01",
          "rate": "19",
          "gross": "4.99"
        },
        {
          "id": "12-router",
          "item": "router",
          "charge_id": "advance/demo-line/glasfaser-1000@example-fibre@2026-11/recurring:router:2026-12-01",
          "rate": "19",
          "gross": "4.99"
        },
        {
          "id": "12-welcome",
          "item": "welcome",
          "charge_id": "advance/demo-line/glasfaser-1000@example-fibre@2026-11/discount:welcome:2026-12-01",
          "rate": "19",
          "gross": "-30.00"
        }
      ]
    }
  ],
  "open_items": [
    {
      "id": "OP-017",
      "account": "K-017",
      "amount": "30.35",
      "dunning_level": 1
    }
  ],
  "mandates": [
    {
      "id": "M-017",
      "account": "K-017",
      "reference": "DEMO-MANDATE-017",
      "signed_on": "2026-09-23",
      "sequence": "RCUR"
    }
  ],
  "opening_balances": [
    {
      "account": "K-017",
      "amount": "30.35",
      "residual": "0.00"
    }
  ],
  "number_series": [
    {
      "series": "RE-2027",
      "next": 280
    }
  ],
  "cutover_history": {
    "prior_charges": [
      {
        "id": "C-0001",
        "subscription": "demo-line",
        "month": "2026-12",
        "plan": "glasfaser-1000",
        "book_version": "example-fibre@2026-11",
        "kind": "recurring",
        "item": "base",
        "rate": "19",
        "amount": "49.99",
        "from": "2026-12-01",
        "to": "2026-12-31"
      },
      {
        "id": "C-0002",
        "subscription": "demo-line",
        "month": "2026-12",
        "plan": "glasfaser-1000",
        "book_version": "example-fibre@2026-11",
        "kind": "recurring",
        "item": "phone",
        "rate": "19",
        "amount": "4.99",
        "from": "2026-12-01",
        "to": "2026-12-31"
      },
      {
        "id": "C-0003",
        "subscription": "demo-line",
        "month": "2026-12",
        "plan": "glasfaser-1000",
        "book_version": "example-fibre@2026-11",
        "kind": "recurring",
        "item": "router",
        "rate": "19",
        "amount": "4.99",
        "from": "2026-12-01",
        "to": "2026-12-31"
      },
      {
        "id": "C-0004",
        "subscription": "demo-line",
        "month": "2026-12",
        "plan": "glasfaser-1000",
        "book_version": "example-fibre@2026-11",
        "kind": "discount",
        "item": "welcome",
        "rate": "19",
        "amount": "-30.00",
        "from": "2026-12-01",
        "to": "2026-12-31"
      }
    ],
    "usage": [
      {
        "subscription": "demo-line",
        "record": {
          "id": "december-call",
          "date": "2026-12-28",
          "kind": "calls-mobile",
          "quantity": 61
        }
      }
    ]
  }
}
