ProductOfferTemplateDto Data Type

Equivalent of BusinessEntity in DTO

Implemented Interfaces
Serializable
Properties
name data type constraints description
validFrom number   The valid from.
validTo number   The valid to.
products array of OfferProductsDto required
id number   The id.
auditableField array of AuditableFieldDto  
code string required The code
description string   The description
updatedCode string   The updated code.

Example

{
  "validFrom" : 12345,
  "validTo" : 12345,
  "products" : [ {
    "offerTemplateCode" : "...",
    "product" : {
      "discountList" : [ { }, { } ],
      "id" : 12345,
      "code" : "...",
      "label" : "...",
      "status" : "DRAFT",
      "statusDate" : 12345,
      "productLineCode" : "...",
      "brandCode" : "...",
      "reference" : "...",
      "model" : "...",
      "modelChildren" : [ "...", "..." ],
      "discountFlag" : true,
      "packageFlag" : true,
      "priceVersionDateSetting" : "DELIVERY",
      "customFields" : { },
      "currentProductVersion" : { },
      "productChargeTemplateMappingDto" : [ { }, { } ],
      "commercialRuleCodes" : [ "...", "..." ],
      "discountListCodes" : [ "...", "..." ],
      "mediaCodes" : [ "...", "..." ],
      "isModel" : true,
      "productModelCode" : "..."
    },
    "allowedDiscountPlans" : [ {
      "disabled" : true,
      "id" : 12345,
      "auditableField" : [ { }, { } ],
      "code" : "...",
      "description" : "...",
      "startDate" : 12345,
      "updatedCode" : "...",
      "endDate" : 12345,
      "defaultDuration" : 12345,
      "durationUnit" : "DAY",
      "customFields" : { },
      "discountPlanItem" : [ { }, { } ],
      "expressionEl" : "...",
      "discountPlanType" : "QUOTE",
      "status" : "IN_USE",
      "statusDate" : 12345,
      "initialQuantity" : 12345,
      "usedQuantity" : 12345,
      "applicationLimit" : 12345,
      "applicationFilterEL" : "...",
      "incompatibleDiscountPlans" : [ { }, { } ],
      "applicableEntities" : [ { }, { } ],
      "applicableOnOverriddenPrice" : true,
      "sequence" : 12345,
      "applicableOnDiscountedPrice" : true
    }, {
      "disabled" : true,
      "id" : 12345,
      "auditableField" : [ { }, { } ],
      "code" : "...",
      "description" : "...",
      "startDate" : 12345,
      "updatedCode" : "...",
      "endDate" : 12345,
      "defaultDuration" : 12345,
      "durationUnit" : "DAY",
      "customFields" : { },
      "discountPlanItem" : [ { }, { } ],
      "expressionEl" : "...",
      "discountPlanType" : "INVOICE",
      "status" : "ACTIVE",
      "statusDate" : 12345,
      "initialQuantity" : 12345,
      "usedQuantity" : 12345,
      "applicationLimit" : 12345,
      "applicationFilterEL" : "...",
      "incompatibleDiscountPlans" : [ { }, { } ],
      "applicableEntities" : [ { }, { } ],
      "applicableOnOverriddenPrice" : true,
      "sequence" : 12345,
      "applicableOnDiscountedPrice" : true
    } ],
    "commercialRules" : [ {
      "ruleType" : "REPLACEMENT",
      "ruleEl" : "...",
      "offerCode" : "...",
      "productCode" : "...",
      "productVersion" : 12345,
      "attributeCode" : "...",
      "scope" : "QUOTE",
      "tagCode" : "...",
      "groupedAttributeCode" : "...",
      "targetAttributeValue" : "...",
      "isTarget" : true,
      "disabled" : true,
      "id" : 12345,
      "auditableField" : [ { }, { } ],
      "commercialRuleItems" : [ { }, { } ],
      "code" : "...",
      "description" : "...",
      "updatedCode" : "..."
    }, {
      "ruleType" : "PRE_REQUISITE",
      "ruleEl" : "...",
      "offerCode" : "...",
      "productCode" : "...",
      "productVersion" : 12345,
      "attributeCode" : "...",
      "scope" : "QUOTE",
      "tagCode" : "...",
      "groupedAttributeCode" : "...",
      "targetAttributeValue" : "...",
      "isTarget" : true,
      "disabled" : true,
      "id" : 12345,
      "auditableField" : [ { }, { } ],
      "commercialRuleItems" : [ { }, { } ],
      "code" : "...",
      "description" : "...",
      "updatedCode" : "..."
    } ],
    "selectable" : true,
    "sequence" : 12345,
    "ruled" : true,
    "mandatory" : true,
    "display" : true,
    "quantityMin" : 12345,
    "quantityMax" : 12345,
    "quantityDefault" : 12345,
    "productSet" : "..."
  }, {
    "offerTemplateCode" : "...",
    "product" : {
      "discountList" : [ { }, { } ],
      "id" : 12345,
      "code" : "...",
      "label" : "...",
      "status" : "DRAFT",
      "statusDate" : 12345,
      "productLineCode" : "...",
      "brandCode" : "...",
      "reference" : "...",
      "model" : "...",
      "modelChildren" : [ "...", "..." ],
      "discountFlag" : true,
      "packageFlag" : true,
      "priceVersionDateSetting" : "DELIVERY",
      "customFields" : { },
      "currentProductVersion" : { },
      "productChargeTemplateMappingDto" : [ { }, { } ],
      "commercialRuleCodes" : [ "...", "..." ],
      "discountListCodes" : [ "...", "..." ],
      "mediaCodes" : [ "...", "..." ],
      "isModel" : true,
      "productModelCode" : "..."
    },
    "allowedDiscountPlans" : [ {
      "disabled" : true,
      "id" : 12345,
      "auditableField" : [ { }, { } ],
      "code" : "...",
      "description" : "...",
      "startDate" : 12345,
      "updatedCode" : "...",
      "endDate" : 12345,
      "defaultDuration" : 12345,
      "durationUnit" : "MONTH",
      "customFields" : { },
      "discountPlanItem" : [ { }, { } ],
      "expressionEl" : "...",
      "discountPlanType" : "PRODUCT",
      "status" : "ACTIVE",
      "statusDate" : 12345,
      "initialQuantity" : 12345,
      "usedQuantity" : 12345,
      "applicationLimit" : 12345,
      "applicationFilterEL" : "...",
      "incompatibleDiscountPlans" : [ { }, { } ],
      "applicableEntities" : [ { }, { } ],
      "applicableOnOverriddenPrice" : true,
      "sequence" : 12345,
      "applicableOnDiscountedPrice" : true
    }, {
      "disabled" : true,
      "id" : 12345,
      "auditableField" : [ { }, { } ],
      "code" : "...",
      "description" : "...",
      "startDate" : 12345,
      "updatedCode" : "...",
      "endDate" : 12345,
      "defaultDuration" : 12345,
      "durationUnit" : "MONTH",
      "customFields" : { },
      "discountPlanItem" : [ { }, { } ],
      "expressionEl" : "...",
      "discountPlanType" : "PRODUCT",
      "status" : "EXPIRED",
      "statusDate" : 12345,
      "initialQuantity" : 12345,
      "usedQuantity" : 12345,
      "applicationLimit" : 12345,
      "applicationFilterEL" : "...",
      "incompatibleDiscountPlans" : [ { }, { } ],
      "applicableEntities" : [ { }, { } ],
      "applicableOnOverriddenPrice" : true,
      "sequence" : 12345,
      "applicableOnDiscountedPrice" : true
    } ],
    "commercialRules" : [ {
      "ruleType" : "REPLACEMENT",
      "ruleEl" : "...",
      "offerCode" : "...",
      "productCode" : "...",
      "productVersion" : 12345,
      "attributeCode" : "...",
      "scope" : "QUOTE",
      "tagCode" : "...",
      "groupedAttributeCode" : "...",
      "targetAttributeValue" : "...",
      "isTarget" : true,
      "disabled" : true,
      "id" : 12345,
      "auditableField" : [ { }, { } ],
      "commercialRuleItems" : [ { }, { } ],
      "code" : "...",
      "description" : "...",
      "updatedCode" : "..."
    }, {
      "ruleType" : "PRE_REQUISITE",
      "ruleEl" : "...",
      "offerCode" : "...",
      "productCode" : "...",
      "productVersion" : 12345,
      "attributeCode" : "...",
      "scope" : "QUOTE_OFFER",
      "tagCode" : "...",
      "groupedAttributeCode" : "...",
      "targetAttributeValue" : "...",
      "isTarget" : true,
      "disabled" : true,
      "id" : 12345,
      "auditableField" : [ { }, { } ],
      "commercialRuleItems" : [ { }, { } ],
      "code" : "...",
      "description" : "...",
      "updatedCode" : "..."
    } ],
    "selectable" : true,
    "sequence" : 12345,
    "ruled" : true,
    "mandatory" : true,
    "display" : true,
    "quantityMin" : 12345,
    "quantityMax" : 12345,
    "quantityDefault" : 12345,
    "productSet" : "..."
  } ],
  "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" : "..."
  } ],
  "code" : "...",
  "description" : "...",
  "updatedCode" : "..."
}