{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ex2-com/json-schema/ex2-com-domain-pricing-schema.json",
  "title": "DomainPricing",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ex2-com-openapi.json#/components/schemas/DomainPricing",
  "type": "object",
  "required": [
    "currency",
    "period_years",
    "order_url",
    "domains"
  ],
  "properties": {
    "currency": {
      "type": "string"
    },
    "period_years": {
      "type": "integer",
      "const": 1
    },
    "order_url": {
      "type": "string",
      "format": "uri",
      "description": "The domain search of the cart."
    },
    "domains": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "tld",
          "register",
          "transfer",
          "renew"
        ],
        "properties": {
          "tld": {
            "type": "string",
            "description": "With its dot: .com"
          },
          "register": {
            "oneOf": [
              {
                "type": "number",
                "minimum": 0,
                "description": "In the answer's currency, excluding taxes."
              },
              {
                "type": "null"
              }
            ]
          },
          "transfer": {
            "oneOf": [
              {
                "type": "number",
                "minimum": 0,
                "description": "In the answer's currency, excluding taxes."
              },
              {
                "type": "null"
              }
            ]
          },
          "renew": {
            "oneOf": [
              {
                "type": "number",
                "minimum": 0,
                "description": "In the answer's currency, excluding taxes."
              },
              {
                "type": "null"
              }
            ]
          }
        }
      }
    }
  }
}