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