{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle/json-schema/oracle-aggregated-computed-usage-summary-schema.json",
  "title": "AggregatedComputedUsageSummary",
  "description": "Subscribed service contract details.\n",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-computedusage-api-openapi.yml#/components/schemas/AggregatedComputedUsageSummary",
  "properties": {
    "aggregatedComputedUsages": {
      "description": "Aggregation of computed usages for the subscribed service.\n",
      "items": {
        "$ref": "#/$defs/ComputedUsageAggregation"
      },
      "type": "array"
    },
    "currencyCode": {
      "description": "Currency code.\n",
      "type": "string"
    },
    "parentProduct": {
      "$ref": "#/$defs/ComputedUsageProduct"
    },
    "parentSubscribedServiceId": {
      "description": "Subscribed service line parent ID.\n",
      "type": "string"
    },
    "planNumber": {
      "description": "Subscribed service asociated subscription plan number.\n",
      "type": "string"
    },
    "pricingModel": {
      "description": "Subscribed services pricing model.\n",
      "enum": [
        "PAY_AS_YOU_GO",
        "MONTHLY",
        "ANNUAL",
        "PREPAID",
        "FUNDED_ALLOCATION"
      ],
      "type": "string"
    },
    "rateCardId": {
      "description": "Inernal SPM rate card ID at line level.\n",
      "type": "string"
    },
    "subscriptionId": {
      "description": "Subscription ID is an identifier associated with the service used for filtering the computed usage in SPM (Subscription Plan Management).\n",
      "type": "string"
    },
    "timeEnd": {
      "description": "Subscribed services contract line end date, expressed in RFC 3339 timestamp format.\n",
      "format": "date-time",
      "type": "string"
    },
    "timeStart": {
      "description": "Subscribed services contract line start date, expressed in RFC 3339 timestamp format.\n",
      "format": "date-time",
      "type": "string"
    }
  },
  "required": [
    "subscriptionId"
  ],
  "type": "object",
  "$defs": {
    "ComputedUsageAggregation": {
      "description": "Computed usage aggregation object.\n",
      "properties": {
        "cost": {
          "description": "Sum of rounded computed line amount.\n",
          "type": "string"
        },
        "costUnrounded": {
          "description": "Sum of unrounded computed line amount.\n",
          "type": "string"
        },
        "dataCenter": {
          "description": "Data center attribute as sent by the meterering system to SPM (Subscription Plan Management).\n",
          "type": "string"
        },
        "netUnitPrice": {
          "description": "Net unit price for the product in consideration.\n",
          "type": "string"
        },
        "product": {
          "$ref": "#/$defs/ComputedUsageProduct"
        },
        "quantity": {
          "description": "Total quantity that was used for computation.\n",
          "format": "float",
          "type": "string"
        },
        "timeMeteredOn": {
          "description": "Metered service date, expressed in RFC 3339 timestamp format.\n",
          "format": "date-time",
          "type": "string"
        },
        "type": {
          "description": "Usage compute type in SPM.\n",
          "enum": [
            "PROMOTION",
            "DO_NOT_BILL",
            "USAGE",
            "COMMIT",
            "OVERAGE",
            "PAY_AS_YOU_GO",
            "MONTHLY_MINIMUM",
            "DELAYED_USAGE_INVOICE_TIMING",
            "DELAYED_USAGE_COMMITMENT_EXP",
            "ON_ACCOUNT_CREDIT",
            "SERVICE_CREDIT",
            "COMMITMENT_EXPIRATION",
            "FUNDED_ALLOCATION",
            "DONOT_BILL_USAGE_POST_TERMINATION",
            "DELAYED_USAGE_POST_TERMINATION"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "ComputedUsageProduct": {
      "description": "Product description.\n",
      "properties": {
        "billingCategory": {
          "description": "Metered service billing category.\n",
          "type": "string"
        },
        "name": {
          "description": "Product name.\n",
          "type": "string"
        },
        "partNumber": {
          "description": "Product part number.\n",
          "type": "string"
        },
        "productCategory": {
          "description": "Product category.\n",
          "type": "string"
        },
        "provisioningGroup": {
          "description": "Product provisioning group.\n",
          "type": "string"
        },
        "ucmRateCardPartType": {
          "description": "Rate card part type of product.\n",
          "type": "string"
        },
        "unitOfMeasure": {
          "description": "Unit of measure.\n",
          "type": "string"
        }
      },
      "required": [
        "partNumber",
        "name"
      ],
      "type": "object"
    }
  }
}