{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/moesif/main/json-schema/moesif-moesif-price-schema.json",
  "title": "MoesifPrice",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/moesif-product-catalog-api-openapi.yml#/components/schemas/MoesifPrice",
  "properties": {
    "name": {
      "type": "string"
    },
    "transform_quantity": {
      "$ref": "#/$defs/MoesifTransformQuantity"
    },
    "provider": {
      "type": "string"
    },
    "price_in_decimal": {
      "type": "string"
    },
    "tiers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MoesifPriceTier"
      }
    },
    "period_units": {
      "type": "string"
    },
    "plan_id": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "pricing_model": {
      "type": "string"
    },
    "tax_behavior": {
      "type": "string"
    },
    "currency": {
      "type": "string"
    },
    "metadata": {
      "type": "collection.immutable.map[string,string]"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "unit": {
      "type": "string"
    },
    "usage_aggregator": {
      "type": "string"
    },
    "period": {
      "type": "integer",
      "format": "int64"
    }
  },
  "$defs": {
    "MoesifPriceTier": {
      "properties": {
        "up_to": {
          "type": "util.either[scala.long,string]"
        },
        "unit_price_in_decimal": {
          "type": "string"
        },
        "flat_price_in_decimal": {
          "type": "string"
        }
      },
      "required": [
        "up_to"
      ]
    },
    "MoesifTransformQuantity": {
      "properties": {
        "divide_by": {
          "type": "integer",
          "format": "int64"
        },
        "round": {
          "type": "string"
        }
      },
      "required": [
        "divide_by",
        "round"
      ]
    }
  }
}