{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-partner-call-forwarding-settings-response-schema.json",
  "title": "PartnerCallForwardingSettingsResponse",
  "description": "A wrapper around a CallForwardingSettings json object",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telenor-sverige-partner-user-api-api-openapi.yml#/components/schemas/PartnerCallForwardingSettingsResponse",
  "type": "object",
  "properties": {
    "callForwardingSettingsBean": {
      "$ref": "#/$defs/CallForwardingSettings"
    }
  },
  "$defs": {
    "CallForwardingSettings": {
      "type": "object",
      "description": "Note: Only unconditionalAction is used in Telenor Sweden Partner API!",
      "properties": {
        "busyAction": {
          "description": "Forwarding action when busy",
          "$ref": "#/$defs/ForwardingAction"
        },
        "noReplyAction": {
          "description": "Forwarding action when call goes unanswered",
          "$ref": "#/$defs/ForwardingAction"
        },
        "noReplyTimer": {
          "type": "integer",
          "format": "int32",
          "description": "The number of seconds before the noReplyAction will be set in effect"
        },
        "absenceDefaultAction": {
          "description": "The default forwarding action for absences",
          "$ref": "#/$defs/ForwardingAction"
        },
        "unconditionalAction": {
          "description": "Unconditional forwarding action (ForwardingType PersonalAssistant is not available)",
          "$ref": "#/$defs/ForwardingAction"
        }
      }
    },
    "ForwardingAction": {
      "type": "object",
      "properties": {
        "forwardingType": {
          "type": "integer",
          "format": "int32",
          "description": "Legal values:<ul><li><b>0</b>: None  / disable</li><li><b>1</b>: Number</li><li><b>2</b>: Personal Assistant</li><li><b>3</b>: Voicemail</li><li><b>4</b>: Switchboard</li><li><b>5</b>: Secretary</li> </ul>"
        },
        "phoneNumber": {
          "type": "string",
          "description": "phoneNumber to forward to<br />Mandatory if forwardingType 1 is selected"
        }
      }
    }
  }
}