{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/provecart-com/json-schema/provecart-com-mandate-in-schema.json",
  "title": "MandateIn",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/provecart-com-openapi.json#/components/schemas/MandateIn",
  "properties": {
    "user_id": {
      "type": "string",
      "title": "User Id"
    },
    "item_description": {
      "type": "string",
      "title": "Item Description"
    },
    "item_keywords": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Item Keywords"
    },
    "category": {
      "type": "string",
      "title": "Category"
    },
    "max_total_price": {
      "type": "number",
      "title": "Max Total Price"
    },
    "currency": {
      "type": "string",
      "title": "Currency",
      "default": "USD"
    },
    "merchant_allowlist": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Merchant Allowlist"
    },
    "merchant_blocklist": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Merchant Blocklist"
    },
    "max_quantity": {
      "type": "integer",
      "title": "Max Quantity",
      "default": 1
    },
    "expires_at": {
      "type": "string",
      "title": "Expires At"
    },
    "brand": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Brand"
    },
    "category_required": {
      "type": "boolean",
      "title": "Category Required",
      "default": false
    },
    "variant_constraints": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Variant Constraints"
    },
    "price_basis": {
      "type": "string",
      "title": "Price Basis",
      "default": "grand_total"
    },
    "type": {
      "type": "string",
      "title": "Type",
      "default": "single_purchase"
    },
    "period_budget": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Period Budget"
    },
    "period_start": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Period Start"
    },
    "period_end": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Period End"
    }
  },
  "type": "object",
  "required": [
    "user_id",
    "item_description",
    "category",
    "max_total_price",
    "expires_at"
  ]
}