{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://weverlabs.com/schemas/customer-production-runs.schema.json",
  "title": "Wever Labs Customer Production Runs",
  "type": "object",
  "required": [
    "schema_version",
    "mode"
  ],
  "properties": {
    "schema_version": {
      "const": "customer_production_runs.v1"
    },
    "mode": {
      "enum": [
        "read_customer_production_runs",
        "quote_production_run",
        "create_customer_account",
        "create_work_order",
        "create_paid_production_run",
        "get_production_run_status",
        "record_return_package",
        "record_production_receipt",
        "complete_production_run",
        "read_production_runs"
      ]
    },
    "production_run_id": {
      "type": "string"
    },
    "customer_account_id": {
      "type": "string"
    },
    "customer_name": {
      "type": "string"
    },
    "organization_name": {
      "type": "string"
    },
    "contact_email": {
      "type": "string"
    },
    "rail_key": {
      "enum": [
        "packetops",
        "diligenceops"
      ]
    },
    "package_level": {
      "enum": [
        "entry",
        "standard",
        "pro"
      ]
    },
    "idempotency_key": {
      "type": "string"
    },
    "work_order_id": {
      "type": "string"
    },
    "work_order_scope": {
      "type": "string"
    },
    "wallet_id": {
      "type": "string"
    },
    "payment_reference": {
      "type": "string"
    },
    "payment_intent_id": {
      "type": "string"
    },
    "checkout_reference": {
      "type": "string"
    },
    "return_package_id": {
      "type": "string"
    },
    "receipt_id": {
      "type": "string"
    },
    "callback_url": {
      "type": "string",
      "format": "uri"
    },
    "amount_units": {
      "type": "number"
    },
    "currency": {
      "type": "string"
    },
    "returned_fields": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "additionalProperties": true
}
