37 lines
1.3 KiB
Java
37 lines
1.3 KiB
Java
<#assign tdiEventMsg = JsonUtil.jsonToMap(input)>
|
|
<#assign projectRP = project>
|
|
<#assign organisationRP = organisation>
|
|
|
|
<#assign tdiEvent64b = JsonUtil.decodeBase64(tdiEventMsg.data) />
|
|
<#assign tdiEvent = JsonUtil.jsonToMap(tdiEvent64b)>
|
|
<#assign senderTag = tdiEventMsg.senderTag>
|
|
<#if tdiEvent.Target == 0 || (tdiEvent.Target == 1 && tdiEvent.ParcelNumber?? && tdiEvent.ParcelNumber == "")>
|
|
<#stop>
|
|
<#else>
|
|
[
|
|
{
|
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.TrackingNotified>
|
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
|
"datas" :
|
|
<#include "TDItoRP_TrackingNotified.ftl">
|
|
}
|
|
<#if tdiEvent.EstimatedDeliveryDate?? && tdiEvent.EstimatedDeliveryDate!="">
|
|
,
|
|
{
|
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.TrackingETAUpdated>
|
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
|
"datas" :
|
|
<#include "TDItoRP_TrackingETAUpdated.ftl">
|
|
}
|
|
</#if>
|
|
<#if tdiEvent.TrackingUrl?? && tdiEvent.TrackingUrl!="">
|
|
,
|
|
{
|
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.TrackingURLUpdated>
|
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
|
"datas" :
|
|
<#include "TDItoRP_TrackingURLUpdated.ftl">
|
|
}
|
|
</#if>
|
|
]
|
|
</#if> |