CommercialRuleHeaderDTO Data Type

Equivalent of BusinessEntity in DTO

Subtypes
GetCommercialRuleDtoResponse
Implemented Interfaces
Serializable
Properties
name data type constraints description
ruleType RuleTypeEnum  
ruleEl string  
offerCode string  
productCode string  
productVersion number  
attributeCode string  
scope ScopeTypeEnum  
tagCode string  
groupedAttributeCode string  
targetAttributeValue string  
isTarget boolean  
disabled boolean  
id number   The id.
auditableField array of AuditableFieldDto  
commercialRuleItems array of CommercialRuleItemDTO  
code string required The code
description string   The description
updatedCode string   The updated code.

Example

{
  "ruleType" : "PRE_REQUISITE",
  "ruleEl" : "...",
  "offerCode" : "...",
  "productCode" : "...",
  "productVersion" : 12345,
  "attributeCode" : "...",
  "scope" : "QUOTE_OFFER",
  "tagCode" : "...",
  "groupedAttributeCode" : "...",
  "targetAttributeValue" : "...",
  "isTarget" : true,
  "disabled" : true,
  "id" : 12345,
  "auditableField" : [ {
    "entityClass" : "...",
    "fieldName" : "...",
    "id" : 12345,
    "changeOrigin" : "...",
    "auditableField" : [ { }, { } ],
    "originName" : "...",
    "code" : "...",
    "previousState" : "...",
    "currentState" : "...",
    "description" : "...",
    "created" : "...",
    "updatedCode" : "...",
    "actor" : "..."
  }, {
    "entityClass" : "...",
    "fieldName" : "...",
    "id" : 12345,
    "changeOrigin" : "...",
    "auditableField" : [ { }, { } ],
    "originName" : "...",
    "code" : "...",
    "previousState" : "...",
    "currentState" : "...",
    "description" : "...",
    "created" : "...",
    "updatedCode" : "...",
    "actor" : "..."
  } ],
  "commercialRuleItems" : [ {
    "operator" : "OR",
    "ruleItemEl" : "...",
    "commercialRuleLines" : [ {
      "offerCode" : "...",
      "productCode" : "...",
      "productVersion" : 12345,
      "attributeCode" : "...",
      "groupedAttributeCode" : "...",
      "attributeValue" : "...",
      "groupedAttributeValue" : "...",
      "tagCode" : "...",
      "operator" : "EQUAL"
    }, {
      "offerCode" : "...",
      "productCode" : "...",
      "productVersion" : 12345,
      "attributeCode" : "...",
      "groupedAttributeCode" : "...",
      "attributeValue" : "...",
      "groupedAttributeValue" : "...",
      "tagCode" : "...",
      "operator" : "LESS_THAN"
    } ]
  }, {
    "operator" : "AND",
    "ruleItemEl" : "...",
    "commercialRuleLines" : [ {
      "offerCode" : "...",
      "productCode" : "...",
      "productVersion" : 12345,
      "attributeCode" : "...",
      "groupedAttributeCode" : "...",
      "attributeValue" : "...",
      "groupedAttributeValue" : "...",
      "tagCode" : "...",
      "operator" : "GREATER_THAN_OR_EQUAL"
    }, {
      "offerCode" : "...",
      "productCode" : "...",
      "productVersion" : 12345,
      "attributeCode" : "...",
      "groupedAttributeCode" : "...",
      "attributeValue" : "...",
      "groupedAttributeValue" : "...",
      "tagCode" : "...",
      "operator" : "GREATER_THAN_OR_EQUAL"
    } ]
  } ],
  "code" : "...",
  "description" : "...",
  "updatedCode" : "..."
}