{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ink_pay",
  "description": "Ink ile öde (satır içi; ödemeler açıkken). Düğme `invoice` ile ödeme sayfasını açar; tutarı sunucu faturayla karşılaştırır (uyuşmazlık = bileşen reddi). Yalnız dijital ürün.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "version",
    "title",
    "invoice",
    "amount",
    "urun_sinifi"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "ink_pay"
      ]
    },
    "version": {
      "type": "integer",
      "enum": [
        1
      ]
    },
    "tone": {
      "type": "string",
      "enum": [
        "neutral",
        "success",
        "warning",
        "danger",
        "brand"
      ]
    },
    "brand_color": {
      "type": "string",
      "enum": [
        "mavi",
        "turuncu",
        "mor",
        "pembe",
        "altin",
        "yesil",
        "turkuaz"
      ]
    },
    "title": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
    },
    "description": {
      "type": "string",
      "maxLength": 200
    },
    "invoice": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{1,64}$",
      "description": "createInvoiceLink/sendInvoice fatura kodu"
    },
    "amount": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000000,
      "description": "Ink, tam sayı"
    },
    "invoice_payload": {
      "type": "string",
      "maxLength": 128
    },
    "urun_sinifi": {
      "type": "string",
      "enum": [
        "dijital"
      ],
      "description": "Ink yalnız dijital ürün için; fiziksel ürün sağlayıcı akışıdır"
    },
    "button_label": {
      "type": "string",
      "maxLength": 30
    }
  },
  "x-inki-eylem": [
    {
      "action": "submit",
      "values": {
        "action_id": "pay (ödeme sayfası açılır; sonuç pre_checkout_query / successful_payment ile gelir)"
      }
    }
  ]
}
