{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-core-api-invoices-invoice-models-invoices-view-schema.json",
  "title": "CoreApi.Invoices.Invoice.Models.InvoicesView",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telenor-sverige-invoice-api-openapi.yml#/components/schemas/CoreApi.Invoices.Invoice.Models.InvoicesView",
  "type": "object",
  "properties": {
    "AgreementId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "Invoices": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/CoreApi.Invoices.Invoice.Models.InvoiceView"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "CoreApi.Invoices.Invoice.Models.InvoiceAddress": {
      "type": "object",
      "properties": {
        "Address1": {
          "type": [
            "string",
            "null"
          ]
        },
        "Address2": {
          "type": [
            "string",
            "null"
          ]
        },
        "City": {
          "type": [
            "string",
            "null"
          ]
        },
        "Zip": {
          "type": [
            "string",
            "null"
          ]
        },
        "CountryCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "Reference": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "CoreApi.Invoices.Invoice.Models.InvoiceCostCentreView": {
      "required": [
        "Name"
      ],
      "type": "object",
      "properties": {
        "Name": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "CoreApi.Invoices.Invoice.Models.InvoiceView": {
      "type": "object",
      "properties": {
        "InvoiceName": {
          "type": [
            "string",
            "null"
          ]
        },
        "AccountId": {
          "type": "integer",
          "format": "int32"
        },
        "InvoiceReference": {
          "type": [
            "string",
            "null"
          ]
        },
        "CostCentres": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/CoreApi.Invoices.Invoice.Models.InvoiceCostCentreView"
          }
        },
        "Address": {
          "$ref": "#/$defs/CoreApi.Invoices.Invoice.Models.InvoiceAddress"
        },
        "BillingCycle": {
          "type": [
            "string",
            "null"
          ]
        },
        "BillingFrequency": {
          "type": [
            "string",
            "null"
          ]
        },
        "CreditLimitCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "InvoiceType": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}