MessageDto Data Type

A base class for all API DTO classes

Implemented Interfaces
Serializable
Properties
name data type description
templateCode string
parameters array of MessageVariableValue
campaign Campaign
contact Contact
media MediaEnum
subMedia string
priority PriorityEnum
status MessageStatusEnum
rejectionReason string

Example

{
  "templateCode" : "...",
  "parameters" : [ {
    "notified" : true,
    "id" : 12345,
    "referenceCode" : "...",
    "parentEntity" : {
      "descriptionOrCode" : "...",
      "auditableFields" : [ { }, { } ],
      "version" : 12345,
      "historized" : true,
      "appendGeneratedCode" : true,
      "auditable" : { },
      "parentEntity" : { },
      "parentEntityType" : { },
      "description" : "...",
      "referenceDescription" : "...",
      "codeChanged" : true,
      "referenceCode" : "...",
      "code" : "...",
      "transient" : true,
      "descriptionAndCode" : "...",
      "id" : 12345,
      "notified" : true
    },
    "message" : {
      "transient" : true,
      "subMedia" : "...",
      "templateCode" : "...",
      "parameters" : [ { }, { } ],
      "rejectionReason" : "...",
      "id" : 12345,
      "version" : 12345,
      "campaign" : { },
      "priority" : "SLOW",
      "contact" : { },
      "media" : "FAX",
      "status" : "TREATED"
    },
    "descriptionAndCode" : "...",
    "value" : "...",
    "auditableFields" : [ {
      "historized" : true,
      "notified" : true,
      "auditType" : "RENEWAL",
      "historable" : true,
      "fieldName" : "...",
      "currentState" : { },
      "notfiable" : true,
      "previousState" : { }
    }, {
      "historized" : true,
      "notified" : true,
      "auditType" : "OTHER",
      "historable" : true,
      "fieldName" : "...",
      "currentState" : { },
      "notfiable" : true,
      "previousState" : { }
    } ],
    "referenceDescription" : "...",
    "auditable" : {
      "lastModified" : 12345,
      "updated" : 12345,
      "updater" : "...",
      "created" : 12345,
      "creator" : "...",
      "lastUser" : "..."
    },
    "descriptionOrCode" : "...",
    "historized" : true,
    "appendGeneratedCode" : true,
    "code" : "...",
    "parentEntityType" : { },
    "description" : "...",
    "transient" : true,
    "version" : 12345,
    "codeChanged" : true
  }, {
    "notified" : true,
    "id" : 12345,
    "referenceCode" : "...",
    "parentEntity" : {
      "descriptionOrCode" : "...",
      "auditableFields" : [ { }, { } ],
      "version" : 12345,
      "historized" : true,
      "appendGeneratedCode" : true,
      "auditable" : { },
      "parentEntity" : { },
      "parentEntityType" : { },
      "description" : "...",
      "referenceDescription" : "...",
      "codeChanged" : true,
      "referenceCode" : "...",
      "code" : "...",
      "transient" : true,
      "descriptionAndCode" : "...",
      "id" : 12345,
      "notified" : true
    },
    "message" : {
      "transient" : true,
      "subMedia" : "...",
      "templateCode" : "...",
      "parameters" : [ { }, { } ],
      "rejectionReason" : "...",
      "id" : 12345,
      "version" : 12345,
      "campaign" : { },
      "priority" : "SLOW",
      "contact" : { },
      "media" : "POSTAL_MAIL",
      "status" : "REJECTED"
    },
    "descriptionAndCode" : "...",
    "value" : "...",
    "auditableFields" : [ {
      "historized" : true,
      "notified" : true,
      "auditType" : "STATUS",
      "historable" : true,
      "fieldName" : "...",
      "currentState" : { },
      "notfiable" : true,
      "previousState" : { }
    }, {
      "historized" : true,
      "notified" : true,
      "auditType" : "RENEWAL",
      "historable" : true,
      "fieldName" : "...",
      "currentState" : { },
      "notfiable" : true,
      "previousState" : { }
    } ],
    "referenceDescription" : "...",
    "auditable" : {
      "lastModified" : 12345,
      "updated" : 12345,
      "updater" : "...",
      "created" : 12345,
      "creator" : "...",
      "lastUser" : "..."
    },
    "descriptionOrCode" : "...",
    "historized" : true,
    "appendGeneratedCode" : true,
    "code" : "...",
    "parentEntityType" : { },
    "description" : "...",
    "transient" : true,
    "version" : 12345,
    "codeChanged" : true
  } ],
  "campaign" : {
    "id" : 12345,
    "status" : "TERMINATED",
    "code" : "...",
    "referenceDescription" : "...",
    "notified" : true,
    "processingThreadId" : 12345,
    "messages" : [ {
      "transient" : true,
      "subMedia" : "...",
      "templateCode" : "...",
      "parameters" : [ { }, { } ],
      "rejectionReason" : "...",
      "id" : 12345,
      "version" : 12345,
      "campaign" : { },
      "priority" : "SLOW",
      "contact" : { },
      "media" : "WEBSERVICE",
      "status" : "CANCELED"
    }, {
      "transient" : true,
      "subMedia" : "...",
      "templateCode" : "...",
      "parameters" : [ { }, { } ],
      "rejectionReason" : "...",
      "id" : 12345,
      "version" : 12345,
      "campaign" : { },
      "priority" : "NORMAL",
      "contact" : { },
      "media" : "VOICE",
      "status" : "WAITING"
    } ],
    "transient" : true,
    "codeChanged" : true,
    "descriptionOrCode" : "...",
    "media" : "EMAIL",
    "referenceCode" : "...",
    "priority" : "NORMAL",
    "historized" : true,
    "endDate" : 12345,
    "startDate" : 12345,
    "parentEntityType" : { },
    "appendGeneratedCode" : true,
    "auditableFields" : [ {
      "historized" : true,
      "notified" : true,
      "auditType" : "OTHER",
      "historable" : true,
      "fieldName" : "...",
      "currentState" : { },
      "notfiable" : true,
      "previousState" : { }
    }, {
      "historized" : true,
      "notified" : true,
      "auditType" : "STATUS",
      "historable" : true,
      "fieldName" : "...",
      "currentState" : { },
      "notfiable" : true,
      "previousState" : { }
    } ],
    "description" : "...",
    "scheduleDate" : 12345,
    "subMedia" : "...",
    "parentEntity" : {
      "descriptionOrCode" : "...",
      "auditableFields" : [ { }, { } ],
      "version" : 12345,
      "historized" : true,
      "appendGeneratedCode" : true,
      "auditable" : { },
      "parentEntity" : { },
      "parentEntityType" : { },
      "description" : "...",
      "referenceDescription" : "...",
      "codeChanged" : true,
      "referenceCode" : "...",
      "code" : "...",
      "transient" : true,
      "descriptionAndCode" : "...",
      "id" : 12345,
      "notified" : true
    },
    "descriptionAndCode" : "...",
    "version" : 12345,
    "auditable" : {
      "lastModified" : 12345,
      "updated" : 12345,
      "updater" : "...",
      "created" : 12345,
      "creator" : "...",
      "lastUser" : "..."
    },
    "useAnyMedia" : true
  },
  "contact" : {
    "auditable" : {
      "lastModified" : 12345,
      "updated" : 12345,
      "updater" : "...",
      "created" : 12345,
      "creator" : "...",
      "lastUser" : "..."
    },
    "socialIdentifier" : "...",
    "cfValues" : {
      "valuesByCode" : {
        "property1" : [ { }, { } ],
        "property2" : [ { }, { } ]
      },
      "values" : {
        "property1" : { },
        "property2" : { }
      },
      "newVersionedCFValuePeriods" : {
        "property1" : [ { }, { } ],
        "property2" : [ { }, { } ]
      },
      "encrypted" : true
    },
    "messages" : [ {
      "transient" : true,
      "subMedia" : "...",
      "templateCode" : "...",
      "parameters" : [ { }, { } ],
      "rejectionReason" : "...",
      "id" : 12345,
      "version" : 12345,
      "campaign" : { },
      "priority" : "SLOW",
      "contact" : { },
      "media" : "FTP_FILE",
      "status" : "CANCELED"
    }, {
      "transient" : true,
      "subMedia" : "...",
      "templateCode" : "...",
      "parameters" : [ { }, { } ],
      "rejectionReason" : "...",
      "id" : 12345,
      "version" : 12345,
      "campaign" : { },
      "priority" : "NORMAL",
      "contact" : { },
      "media" : "IM",
      "status" : "CANCELED"
    } ],
    "enterprise" : true,
    "auditableFields" : [ {
      "historized" : true,
      "notified" : true,
      "auditType" : "OTHER",
      "historable" : true,
      "fieldName" : "...",
      "currentState" : { },
      "notfiable" : true,
      "previousState" : { }
    }, {
      "historized" : true,
      "notified" : true,
      "auditType" : "RENEWAL",
      "historable" : true,
      "fieldName" : "...",
      "currentState" : { },
      "notfiable" : true,
      "previousState" : { }
    } ],
    "externalRef1" : "...",
    "vip" : true,
    "notified" : true,
    "cfAccumulatedValues" : {
      "valuesByCode" : {
        "property1" : [ { }, { } ],
        "property2" : [ { }, { } ]
      },
      "values" : {
        "property1" : { },
        "property2" : { }
      },
      "newVersionedCFValuePeriods" : {
        "property1" : [ { }, { } ],
        "property2" : [ { }, { } ]
      },
      "encrypted" : true
    },
    "addressBook" : {
      "notified" : true,
      "descriptionOrCode" : "...",
      "customer" : { },
      "parentEntity" : { },
      "codeChanged" : true,
      "description" : "...",
      "code" : "...",
      "contacts" : [ { }, { } ],
      "version" : 12345,
      "descriptionAndCode" : "...",
      "parentEntityType" : { },
      "id" : 12345,
      "transient" : true,
      "auditable" : { },
      "historized" : true,
      "referenceDescription" : "...",
      "appendGeneratedCode" : true,
      "auditableFields" : [ { }, { } ],
      "referenceCode" : "..."
    },
    "descriptionAndCode" : "...",
    "contactPolicy" : {
      "nbMaxMessagePerWeek" : 12345,
      "nbMaxMessagePerDay" : 12345,
      "delayMinBetween2messages" : 12345,
      "nbMaxMessagePerMonth" : 12345
    },
    "parentCFEntities" : [ {
      "parentCFEntities" : [ { }, { } ],
      "dirtyCF" : true,
      "cfValuesAsValues" : {
        "property1" : { },
        "property2" : { }
      },
      "cfAccumulatedValues" : { },
      "cfValuesNullSafe" : { },
      "cfAccumulatedValuesNullSafe" : { },
      "cfValues" : { },
      "CFValuesCopy" : { },
      "uuid" : "..."
    }, {
      "parentCFEntities" : [ { }, { } ],
      "dirtyCF" : true,
      "cfValuesAsValues" : {
        "property1" : { },
        "property2" : { }
      },
      "cfAccumulatedValues" : { },
      "cfValuesNullSafe" : { },
      "cfAccumulatedValuesNullSafe" : { },
      "cfValues" : { },
      "CFValuesCopy" : { },
      "uuid" : "..."
    } ],
    "descriptionOrCode" : "...",
    "address" : {
      "address5" : "...",
      "address3" : "...",
      "countryBundle" : "...",
      "address1" : "...",
      "city" : "...",
      "address2" : "...",
      "country" : { },
      "state" : "...",
      "address4" : "...",
      "zipCode" : "..."
    },
    "name" : {
      "firstName" : "...",
      "lastName" : "...",
      "fullName" : "...",
      "title" : { }
    },
    "historized" : true,
    "externalRef2" : "...",
    "code" : "...",
    "parentEntity" : {
      "descriptionOrCode" : "...",
      "auditableFields" : [ { }, { } ],
      "version" : 12345,
      "historized" : true,
      "appendGeneratedCode" : true,
      "auditable" : { },
      "parentEntity" : { },
      "parentEntityType" : { },
      "description" : "...",
      "referenceDescription" : "...",
      "codeChanged" : true,
      "referenceCode" : "...",
      "code" : "...",
      "transient" : true,
      "descriptionAndCode" : "...",
      "id" : 12345,
      "notified" : true
    },
    "codeChanged" : true,
    "referenceCode" : "...",
    "jobTitle" : "...",
    "description" : "...",
    "id" : 12345,
    "version" : 12345,
    "comment" : "...",
    "assistantPhone" : "...",
    "registrationNo" : "...",
    "primaryContact" : {
      "lastName" : "...",
      "codeChanged" : true,
      "version" : 12345,
      "referenceCode" : "...",
      "auditable" : { },
      "fax" : "...",
      "descriptionOrCode" : "...",
      "referenceDescription" : "...",
      "id" : 12345,
      "address" : { },
      "description" : "...",
      "phone" : "...",
      "firstName" : "...",
      "appendGeneratedCode" : true,
      "code" : "...",
      "email" : "...",
      "auditableFields" : [ { }, { } ],
      "notified" : true,
      "parentEntity" : { },
      "descriptionAndCode" : "...",
      "parentEntityType" : { },
      "transient" : true,
      "mobile" : "...",
      "historized" : true,
      "genericMail" : "..."
    },
    "importedFrom" : "...",
    "importedBy" : "...",
    "parentEntityType" : { },
    "referenceDescription" : "...",
    "contactInformation" : {
      "email" : "...",
      "phone" : "...",
      "fax" : "...",
      "mobile" : "..."
    },
    "contactInformationNullSafe" : {
      "email" : "...",
      "phone" : "...",
      "fax" : "...",
      "mobile" : "..."
    },
    "addressBookContacts" : [ {
      "transient" : true,
      "addressBook" : { },
      "version" : 12345,
      "position" : "...",
      "mainContact" : true,
      "contact" : { },
      "id" : 12345
    }, {
      "transient" : true,
      "addressBook" : { },
      "version" : 12345,
      "position" : "...",
      "mainContact" : true,
      "contact" : { },
      "id" : 12345
    } ],
    "appendGeneratedCode" : true,
    "company" : "...",
    "uuid" : "...",
    "position" : "...",
    "legalEntityType" : {
      "code" : "...",
      "referenceDescription" : "...",
      "descriptionNotNull" : "...",
      "codeChanged" : true,
      "version" : 12345,
      "description" : "...",
      "descriptionI18nNullSafe" : {
        "property1" : "...",
        "property2" : "..."
      },
      "auditable" : { },
      "historized" : true,
      "parentEntity" : { },
      "descriptionOrCode" : "...",
      "isCompany" : true,
      "auditableFields" : [ { }, { } ],
      "descriptionAndCode" : "...",
      "notified" : true,
      "transient" : true,
      "referenceCode" : "...",
      "parentEntityType" : { },
      "appendGeneratedCode" : true,
      "descriptionI18n" : {
        "property1" : "...",
        "property2" : "..."
      },
      "id" : 12345
    },
    "transient" : true,
    "reference" : "...",
    "agreedToUA" : true,
    "tags" : [ "...", "..." ],
    "websiteUrl" : "...",
    "prospect" : true,
    "assistantName" : "...",
    "contactCategories" : [ {
      "auditable" : { },
      "referenceDescription" : "...",
      "descriptionOrCode" : "...",
      "referenceCode" : "...",
      "id" : 12345,
      "uuid" : "...",
      "cfAccumulatedValues" : { },
      "parentCFEntities" : [ { }, { } ],
      "notified" : true,
      "cfValues" : { },
      "auditableFields" : [ { }, { } ],
      "transient" : true,
      "code" : "...",
      "historized" : true,
      "appendGeneratedCode" : true,
      "parentEntityType" : { },
      "description" : "...",
      "parentEntity" : { },
      "codeChanged" : true,
      "descriptionAndCode" : "...",
      "version" : 12345
    }, {
      "auditable" : { },
      "referenceDescription" : "...",
      "descriptionOrCode" : "...",
      "referenceCode" : "...",
      "id" : 12345,
      "uuid" : "...",
      "cfAccumulatedValues" : { },
      "parentCFEntities" : [ { }, { } ],
      "notified" : true,
      "cfValues" : { },
      "auditableFields" : [ { }, { } ],
      "transient" : true,
      "code" : "...",
      "historized" : true,
      "appendGeneratedCode" : true,
      "parentEntityType" : { },
      "description" : "...",
      "parentEntity" : { },
      "codeChanged" : true,
      "descriptionAndCode" : "...",
      "version" : 12345
    } ],
    "isCompany" : true,
    "vatNo" : "..."
  },
  "media" : "IM",
  "subMedia" : "...",
  "priority" : "URGENT",
  "status" : "PROCESSING",
  "rejectionReason" : "..."
}