{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/klisten-co-kr/json-schema/klisten-co-kr-checkout-config-schema.json",
  "title": "CheckoutConfig",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/klisten-co-kr-checkout-api-openapi.yml#/components/schemas/CheckoutConfig",
  "type": "object",
  "properties": {
    "purchase_enabled": {
      "type": "boolean"
    },
    "purchase_disabled_reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "provider": {
      "type": "string",
      "const": "paypal"
    },
    "environment": {
      "type": "string",
      "enum": [
        "sandbox",
        "live"
      ]
    },
    "client_id": {
      "type": "string",
      "minLength": 1
    },
    "packages": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "package_id": {
            "type": "string",
            "enum": [
              "usd-5-v1",
              "usd-10-v1",
              "usd-25-v1"
            ]
          },
          "currency": {
            "type": "string",
            "const": "USD"
          },
          "amount_cents": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "package_id",
          "currency",
          "amount_cents"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "purchase_enabled",
    "purchase_disabled_reason",
    "provider",
    "environment",
    "client_id",
    "packages"
  ],
  "additionalProperties": false
}