{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telenor-sverige/main/json-schema/telenor-sverige-core-api-subscription-inventory-subscription-light-schema.json",
  "title": "CoreApi.SubscriptionInventory.SubscriptionLight",
  "x-generated": "2026-10-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mobile-order.yml#/components/schemas/CoreApi.SubscriptionInventory.SubscriptionLight",
  "required": [
    "AgreeId",
    "PricePlan",
    "ProfileId"
  ],
  "type": "object",
  "properties": {
    "AgreeId": {
      "type": "integer",
      "format": "int32"
    },
    "MainAgreeId": {
      "type": "integer",
      "format": "int32"
    },
    "MobileNumber": {
      "type": [
        "string",
        "null"
      ]
    },
    "FixedNumber": {
      "type": [
        "string",
        "null"
      ]
    },
    "SimNumber": {
      "type": [
        "string",
        "null"
      ]
    },
    "SimNumberReserved": {
      "type": [
        "string",
        "null"
      ]
    },
    "ProfileId": {
      "type": [
        "string",
        "null"
      ]
    },
    "FirstName": {
      "type": [
        "string",
        "null"
      ]
    },
    "LastName": {
      "type": [
        "string",
        "null"
      ]
    },
    "Email": {
      "type": [
        "string",
        "null"
      ]
    },
    "CostCenter": {
      "type": [
        "string",
        "null"
      ]
    },
    "BillingAccount": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "PricePlan": {
      "type": [
        "string",
        "null"
      ]
    },
    "Addresses": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/CoreApi.ProductOrdering.Subscriptions.Address"
      }
    },
    "SubscriptionId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    },
    "ExternalProperties": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/corporate_order_rule_engine.Core.Subscriptions.ExternalProperty"
      }
    },
    "Services": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/CoreApi.ProductOrdering.Subscriptions.SubscriptionOrderService"
      }
    },
    "ShortNumber": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "CoreApi.ProductOrdering.Subscriptions.Address": {
      "required": [
        "City",
        "Type",
        "Zip"
      ],
      "type": "object",
      "properties": {
        "CompanyName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Required for type 'Delivery'"
        },
        "Reference": {
          "type": [
            "string",
            "null"
          ]
        },
        "Address1": {
          "type": [
            "string",
            "null"
          ]
        },
        "Address2": {
          "type": [
            "string",
            "null"
          ]
        },
        "Zip": {
          "type": [
            "string",
            "null"
          ],
          "description": "For Swedish postal code it must only contain 5 digits"
        },
        "City": {
          "type": [
            "string",
            "null"
          ]
        },
        "CountryCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "ISO 3166-1 alpha-2 or ISO 3166-1 alpha-3"
        },
        "Type": {
          "enum": [
            "Legal",
            "Delivery",
            "Private",
            "Invoice"
          ],
          "type": [
            "string",
            "null"
          ],
          "description": "Members [Legal=|Delivery=|Private=|Invoice=]"
        }
      },
      "additionalProperties": false
    },
    "CoreApi.ProductOrdering.Subscriptions.OrderServiceParameter": {
      "required": [
        "Key"
      ],
      "type": "object",
      "properties": {
        "Key": {
          "minLength": 1,
          "type": "string"
        },
        "Value": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "CoreApi.ProductOrdering.Subscriptions.SubscriptionOrderService": {
      "required": [
        "Name"
      ],
      "type": "object",
      "properties": {
        "Name": {
          "type": [
            "string",
            "null"
          ]
        },
        "Parameters": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/CoreApi.ProductOrdering.Subscriptions.OrderServiceParameter"
          }
        }
      },
      "additionalProperties": false
    },
    "corporate_order_rule_engine.Core.Subscriptions.ExternalProperty": {
      "type": "object",
      "properties": {
        "Key": {
          "type": [
            "string",
            "null"
          ]
        },
        "Value": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}