SCPN1-8871

This commit is contained in:
Laurie MONTANT 2025-06-10 11:50:03 +02:00
parent 44e8afd18c
commit 1be3af7cf1

View File

@ -15,7 +15,8 @@
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign receipt = JsonUtil.jsonToMap(dataRfx)> <#assign receipt = JsonUtil.jsonToMap(dataRfx)>
<#if receipt.receipt_type = "030" && receipt.receipt_reference?? && receipt.receipt_reference!=""> <#if receipt.receipt_type = "030">
<#if receipt.receipt_reference?? && receipt.receipt_reference!="">
[ [
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowDetected> <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowDetected>
@ -32,6 +33,9 @@
} }
] ]
<#else>
<#stop> <#-- Receipt reference is empty-->
</#if>
<#else> <#else>
[ [
{ {
@ -87,6 +91,24 @@
"datas" : "datas" :
<#include "RFXtoRP_HsrReceiptList_ExecutionflowReceiptCompleted.ftl"> <#include "RFXtoRP_HsrReceiptList_ExecutionflowReceiptCompleted.ftl">
} }
<#else>
<#if receipt.receipt_type == "030" && receipt.receipt_confirmed == "true">
[
{
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowDetected>
"apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" :
<#include "RFXtoRP_HsrReceiptList_TransfertExecutionflowDetected.ftl">
},
{
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowReceiptExpected>
"apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" :
<#include "RFXtoRP_HsrReceiptList_TransfertReceiptExpected.ftl">
}
]
<#else> <#else>
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowDetected> <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowDetected>
@ -104,6 +126,7 @@
</#if> </#if>
</#if> </#if>
</#if> </#if>
</#if>
] ]
<#break> <#break>