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