{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amigo/main/json-schema/amigo-update-config-request-schema.json",
  "title": "UpdateConfigRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amigo-billing-api-openapi.yml#/components/schemas/UpdateConfigRequest",
  "properties": {
    "strategy": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "usage",
            "outcome",
            "custom"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Strategy"
    },
    "currency": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 3
        },
        {
          "type": "null"
        }
      ],
      "title": "Currency"
    },
    "billing_cycle": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "monthly",
            "quarterly",
            "annual"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Billing Cycle"
    },
    "billing_day": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 28.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Billing Day"
    },
    "price_rules": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array",
          "maxItems": 100
        },
        {
          "type": "null"
        }
      ],
      "title": "Price Rules"
    },
    "minimum_charge": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0.0
        },
        {
          "type": "string",
          "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Minimum Charge"
    },
    "effective_from": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Effective From"
    },
    "effective_to": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Effective To"
    }
  },
  "type": "object"
}