{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/simcloud-co-za/json-schema/simcloud-co-za-vas-queued-schema.json",
  "title": "VasQueued",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/simcloud-co-za-openapi.yaml#/components/schemas/VasQueued",
  "type": "object",
  "required": [
    "status",
    "message",
    "service",
    "order_id",
    "transaction_id",
    "product_id",
    "voucher_type",
    "amount",
    "fee",
    "total_billed_amount",
    "reference",
    "process_status",
    "billing_status",
    "timestamp"
  ],
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "success"
      ]
    },
    "message": {
      "type": "string"
    },
    "service": {
      "type": "string",
      "enum": [
        "vas"
      ]
    },
    "order_id": {
      "type": "integer",
      "minimum": 1
    },
    "transaction_id": {
      "type": "string",
      "format": "uuid"
    },
    "product_id": {
      "type": "integer",
      "minimum": 1
    },
    "voucher_type": {
      "type": "string"
    },
    "amount": {
      "type": "number"
    },
    "fee": {
      "type": "number"
    },
    "total_billed_amount": {
      "type": "number"
    },
    "reference": {
      "type": "string"
    },
    "process_status": {
      "type": "string",
      "enum": [
        "Pending",
        "Submitted",
        "Completed",
        "Failed",
        "Reconcile"
      ]
    },
    "billing_status": {
      "type": "string",
      "enum": [
        "pending",
        "billed",
        "failed",
        "not_required"
      ]
    },
    "timestamp": {
      "$ref": "#/$defs/LocalTimestamp"
    }
  },
  "$defs": {
    "LocalTimestamp": {
      "type": "string",
      "description": "Local timestamp in Africa/Johannesburg, using YYYY-MM-DD HH:MM:SS."
    }
  }
}