{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/q2/json-schema/q2-card-control-object200-response-schema.json",
  "title": "CardControlObject200Response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/q2-card-control-api-openapi.yml#/components/schemas/CardControlObject200Response",
  "allOf": [
    {
      "$ref": "#/$defs/0"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "object",
          "properties": {
            "cardControlId": {
              "$ref": "#/$defs/transactionId"
            },
            "cardId": {
              "$ref": "#/$defs/HelixId"
            },
            "rules": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/CardControlRuleItem"
              }
            },
            "tag": {
              "$ref": "#/$defs/TagProperty"
            }
          }
        }
      }
    }
  ],
  "$defs": {
    "CardControlRuleItem": {
      "type": "object",
      "required": [
        "source"
      ],
      "properties": {
        "domestic": {
          "type": "boolean"
        },
        "entryMethod": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "CP",
              "DP",
              "CNP",
              "IAP"
            ]
          }
        },
        "international": {
          "type": "boolean"
        },
        "limit": {
          "type": [
            "number",
            "null"
          ],
          "format": "decimal"
        },
        "mccs": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 4,
            "maxLength": 4
          }
        },
        "merchantGroups": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "source": {
          "type": "string",
          "enum": [
            "Customer",
            "Program"
          ]
        },
        "tag": {
          "$ref": "#/$defs/TagProperty"
        },
        "usStates": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FormationState"
          }
        }
      }
    },
    "FormationState": {
      "type": "string",
      "maxLength": 2
    },
    "HelixId": {
      "type": "integer",
      "format": "int32",
      "minimum": 1
    },
    "TagProperty": {
      "type": "string",
      "maxLength": 50
    }
  }
}