{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentaos-ai/json-schema/agentaos-ai-payment-link-update-request-schema.json",
  "title": "PaymentLinkUpdateRequest",
  "description": "Partial update. Every field is optional; only fields present are changed.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentaos-ai-payment-links-api-openapi.yml#/components/schemas/PaymentLinkUpdateRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 120
    },
    "description": {
      "type": "string",
      "maxLength": 1000
    },
    "imageUrl": {
      "type": "string",
      "format": "uri",
      "maxLength": 2048
    },
    "amount": {
      "type": "number",
      "minimum": 0.01,
      "maximum": 1000000
    },
    "type": {
      "type": "string",
      "enum": [
        "one_time",
        "subscription"
      ],
      "description": "Checked against the resulting merged state."
    },
    "billingInterval": {
      "type": "string",
      "enum": [
        "month",
        "year"
      ]
    },
    "trialPeriodDays": {
      "type": "integer",
      "minimum": 1,
      "maximum": 730,
      "description": "Free-trial length in days; subscription links only."
    },
    "trialAmount": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0.01,
      "maximum": 1000000,
      "description": "Price of the trial period in currency units. Only with `trialPeriodDays`; `null` makes it a free trial."
    }
  }
}