This commit is contained in:
Laurie MONTANT 2025-11-18 11:06:35 +01:00
parent 9018609ca1
commit d03f3bb7a0
2 changed files with 20 additions and 20 deletions

View File

@ -14,6 +14,7 @@
<#switch cloudEventMsg.action> <#switch cloudEventMsg.action>
<#case "C"> <#case "C">
<#case "U">
<#-- *********************************************** Action = CREATE or UPDATE ******************** --> <#-- *********************************************** Action = CREATE or UPDATE ******************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign carrier_apt = JsonUtil.jsonToMap(dataRfx)> <#assign carrier_apt = JsonUtil.jsonToMap(dataRfx)>
@ -32,7 +33,6 @@
} }
] ]
<#break> <#break>
<#case "U"> <#case "U">
<#-- *********************************************** Action = Update ******************** --> <#-- *********************************************** Action = Update ******************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />

View File

@ -3,7 +3,7 @@
"Header":{ "Header":{
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ActorID": "${RPtoRFXprefixDepot("DPF")}", "ActorID": "${RFXtoRPprefixDepot(carrier_apt.physical_depot?json_string)}",
"AppointmentID": "${carrier_apt.appointment_reference?json_string}", "AppointmentID": "${carrier_apt.appointment_reference?json_string}",
"TimeZone":"${time_zone_rfx}", "TimeZone":"${time_zone_rfx}",
<#if carrier_apt.unloading_appointment == "true" && carrier_apt.load_appointment == "false"> <#if carrier_apt.unloading_appointment == "true" && carrier_apt.load_appointment == "false">
@ -32,11 +32,11 @@
"AppointmentType": "${appointmentType}", "AppointmentType": "${appointmentType}",
"Emails": ["francis.reat@hardis-group.com","laurie.montant@hardis-group.com"], <#-- à changer --> "Emails": ["francis.reat@hardis-group.com","laurie.montant@hardis-group.com"], <#-- à changer -->
"SegmentationSelections" : [ "SegmentationSelections":[
{ { "SegmentationID":"Securise",
"SegmentationID" : "secteur",<#-- à changer --> "SegmentationValueID":"yes"},
"SegmentationValueID" : "n1-mh0plpq3-6n1x56plog4"<#-- à changer --> { "SegmentationID":"Secteur",
} "SegmentationValueID":"frais"}
], ],
<#if carrier_apt.physical_receipt_list?? && (carrier_apt.physical_receipt_list?size == carrier_apt.physical_receipt_list?filter(l ->l??)?size)> <#if carrier_apt.physical_receipt_list?? && (carrier_apt.physical_receipt_list?size == carrier_apt.physical_receipt_list?filter(l ->l??)?size)>
"Commissions": [ "Commissions": [