AeroDataBox · Schema

SubscriptionContract

Describes subscription

AviationFlightsAerospaceFlight DataAirport Data

Properties

Name Type Description
id string Identifier of a subscription. Use this ID to control the subscription in future (e.g. update or delete).
isActive boolean Specifies if the subscription is active
billingType object
activateBeforeUtc string Time (UTC) before which subscription must be activated (may be applicable to some non-active newly created subscriptions)
expiresOnUtc string Time (UTC) when subscription expires and will be removed. If not specified, subscription never expires.
createdOnUtc string Time (UTC) when subscription was created
subject object
subscriber object
notices array Additional messages
View JSON Schema on GitHub

JSON Schema

aerodatabox-subscriptioncontract-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SubscriptionContract",
  "title": "SubscriptionContract",
  "required": [
    "createdOnUtc",
    "id",
    "isActive",
    "subject",
    "subscriber"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Identifier of a subscription. \r\nUse this ID to control the subscription in future (e.g. update or delete).",
      "format": "uuid"
    },
    "isActive": {
      "type": "boolean",
      "description": "Specifies if the subscription is active"
    },
    "billingType": {
      "$ref": "#/components/schemas/SubscriptionBillingType"
    },
    "activateBeforeUtc": {
      "type": "string",
      "description": "Time (UTC) before which subscription must be activated (may be applicable to \r\nsome non-active newly created subscriptions)",
      "format": "date-time",
      "nullable": true
    },
    "expiresOnUtc": {
      "type": "string",
      "description": "Time (UTC) when subscription expires and will be removed.\r\n\r\nIf not specified, subscription never expires.",
      "format": "date-time",
      "nullable": true
    },
    "createdOnUtc": {
      "type": "string",
      "description": "Time (UTC) when subscription was created",
      "format": "date-time"
    },
    "subject": {
      "$ref": "#/components/schemas/SubscriptionSubjectContract"
    },
    "subscriber": {
      "$ref": "#/components/schemas/SubscriberContract"
    },
    "notices": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Additional messages",
      "nullable": true
    }
  },
  "additionalProperties": false,
  "description": "Describes subscription"
}