{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/token-io/main/json-schema/token-io-io-token-proto-gateway-update-restriction-request-schema.json",
  "title": "io.token.proto.gateway.UpdateRestrictionRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/token-io-member-api-openapi.yml#/components/schemas/io.token.proto.gateway.UpdateRestrictionRequest",
  "type": "object",
  "properties": {
    "updatedRestriction": {
      "$ref": "#/$defs/io.token.proto.common.restriction.Restriction"
    }
  },
  "$defs": {
    "io.token.proto.common.restriction.RestrictedProductType": {
      "enum": [
        "UNKNOWN_PRODUCT_TYPE",
        "SINGLE_IMMEDIATE_PAYMENT",
        "IP_ADDRESS",
        "GEO_LOCATION",
        "PIS_PAYMENT_NETWORK"
      ],
      "default": "UNKNOWN_PRODUCT_TYPE",
      "type": "string"
    },
    "io.token.proto.common.restriction.Restriction": {
      "type": "object",
      "properties": {
        "createdAt": {
          "type": "string"
        },
        "enabled": {
          "format": "boolean",
          "type": "boolean"
        },
        "id": {
          "type": "string"
        },
        "ownerMemberId": {
          "type": "string"
        },
        "productType": {
          "$ref": "#/$defs/io.token.proto.common.restriction.RestrictedProductType"
        },
        "rules": {
          "items": {
            "$ref": "#/$defs/io.token.proto.common.restriction.Rule"
          },
          "type": "array"
        },
        "targetMemberId": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.restriction.Rule": {
      "type": "object",
      "properties": {
        "createdAt": {
          "type": "string"
        },
        "enabled": {
          "format": "boolean",
          "type": "boolean"
        },
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "text": {
          "type": "string"
        }
      }
    }
  }
}