{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/orsunpay-com/json-schema/orsunpay-com-create-refund-dto-schema.json",
  "title": "CreateRefundDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/orsunpay-com-refunds-api-openapi.yml#/components/schemas/CreateRefundDto",
  "properties": {
    "amount": {
      "description": "Positive decimal string in the payment currency, within its currency precision. Omit to refund the remaining refundable amount.",
      "maxLength": 80,
      "pattern": "^(0|[1-9]\\d{0,19})(\\.\\d{1,18})?$",
      "type": "string"
    },
    "metadata": {
      "additionalProperties": true,
      "description": "JSON object, at most 16384 UTF-8 bytes when serialized; maximum container depth 10 (root depth 0). Do not include sensitive customer or payment data.",
      "type": "object"
    },
    "reason": {
      "default": "requested_by_customer",
      "enum": [
        "requested_by_customer",
        "duplicate",
        "fraudulent",
        "other"
      ],
      "type": "string"
    }
  },
  "type": "object"
}