{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/provecart-com/json-schema/provecart-com-verify-in-schema.json",
  "title": "VerifyIn",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/provecart-com-openapi.json#/components/schemas/VerifyIn",
  "properties": {
    "mandate_id": {
      "type": "string",
      "title": "Mandate Id"
    },
    "merchant": {
      "$ref": "#/$defs/MerchantIn"
    },
    "items": {
      "items": {
        "$ref": "#/$defs/CartItem"
      },
      "type": "array",
      "title": "Items"
    },
    "total_price": {
      "type": "number",
      "minimum": 0.0,
      "title": "Total Price"
    },
    "currency": {
      "type": "string",
      "title": "Currency",
      "default": "USD"
    },
    "tax": {
      "type": "number",
      "minimum": 0.0,
      "title": "Tax",
      "default": 0.0
    },
    "shipping": {
      "type": "number",
      "minimum": 0.0,
      "title": "Shipping",
      "default": 0.0
    },
    "fees": {
      "type": "number",
      "minimum": 0.0,
      "title": "Fees",
      "default": 0.0
    },
    "previous_record_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Previous Record Id"
    },
    "cart_changed": {
      "type": "boolean",
      "title": "Cart Changed",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "mandate_id",
    "merchant",
    "items",
    "total_price"
  ],
  "$defs": {
    "CartItem": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "variant": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Variant"
        },
        "quantity": {
          "type": "integer",
          "minimum": 1.0,
          "title": "Quantity",
          "default": 1
        },
        "unit_price": {
          "type": "number",
          "minimum": 0.0,
          "title": "Unit Price"
        },
        "category": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Category"
        },
        "brand": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Brand"
        }
      },
      "type": "object",
      "required": [
        "name",
        "unit_price"
      ],
      "title": "CartItem"
    },
    "MerchantIn": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "domain": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Domain"
        }
      },
      "type": "object",
      "required": [
        "name"
      ],
      "title": "MerchantIn"
    }
  }
}