{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/RuleClause",
"title": "RuleClause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "Field for which the clause is created.
Valid Values:amount,descriptionApplicable containers: creditCard, investment, insurance, loan
",
"readOnly": true,
"enum": [
"amount",
"description"
]
},
"userDefinedRuleId": {
"type": "integer",
"description": "Unique identifier generated for every rule the user creates.
Applicable containers: creditCard, investment, insurance, loan
",
"format": "int64",
"readOnly": true
},
"fieldValue": {
"type": "string",
"description": "The value would be the amount value in case of amount based rule clause or the string value in case of description based rule clause.
Applicable containers: creditCard, investment, insurance, loan
",
"readOnly": true
},
"operation": {
"type": "string",
"description": "Operation for which the clause is created.
Applicable containers: creditCard, investment, insurance, loan
",
"readOnly": true,
"enum": [
"numberEquals",
"numberLessThan",
"numberLessThanEquals",
"numberGreaterThan",
"numberGreaterThanEquals",
"stringEquals",
"stringContains"
]
},
"ruleClauseId": {
"type": "integer",
"description": "Unique identifier generated for the rule clause.
Applicable containers: creditCard, investment, insurance, loan
",
"format": "int64",
"readOnly": true
}
}
}