From 50366dab9eabcf8345627f01dfc0138e58af119b Mon Sep 17 00:00:00 2001 From: Laurie Montant Date: Fri, 2 Jan 2026 09:30:57 +0100 Subject: [PATCH 01/13] RDV --- RFXtoRP_HsaLstCarSta_CarrierArrived.ftl | 2 +- RFXtoRP_HsaLstCarSta_CarrierDeparted.ftl | 2 +- RFXtoRP_HsaLstCarSta_CarrierExpected.ftl | 2 +- RFXtoRP_HsaLstCarSta_LoadingCompleted.ftl | 2 +- RFXtoRP_HsaLstCarSta_LoadingStarted.ftl | 2 +- RFXtoRP_HsaLstCarSta_UnloadingCompleted.ftl | 2 +- RFXtoRP_HsaLstCarSta_UnloadingStarted.ftl | 2 +- ...rCarrierApt_AppointmentCarrierExpected.ftl | 26 ------------------- ...rierApt_AppointmentCustomFieldsUpdated.ftl | 20 ++++++++------ ..._AppointmentMetadataUpdatedToConfigure.ftl | 18 ++++++++----- RFXtoRP_HsrCarrierApt_CarrierArrived.ftl | 16 +++++++++--- RFXtoRP_HsrCarrierApt_CarrierDeparted.ftl | 16 +++++++++--- RFXtoRP_HsrCarrierApt_LoadingCompleted.ftl | 16 +++++++++--- RFXtoRP_HsrCarrierApt_LoadingStarted.ftl | 16 +++++++++--- ...RP_HsrCarrierApt_SiteCancelAppointment.ftl | 16 +++++++----- ...HsrCarrierApt_SiteForceBookAppointment.ftl | 18 ++++++++----- RFXtoRP_HsrCarrierApt_UnloadingCompleted.ftl | 16 +++++++++--- RFXtoRP_HsrCarrierApt_UnloadingStarted.ftl | 16 +++++++++--- RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl | 16 +++++++----- ...RP_HsrCarrierApt_UpdateSlotAppointment.ftl | 16 +++++++----- ...RFX_CarrierAppointmentCancellationCode.ftl | 2 +- RPtoRFX_CarrierAppointmentCreated.ftl | 4 +-- 22 files changed, 145 insertions(+), 101 deletions(-) delete mode 100644 RFXtoRP_HsrCarrierApt_AppointmentCarrierExpected.ftl diff --git a/RFXtoRP_HsaLstCarSta_CarrierArrived.ftl b/RFXtoRP_HsaLstCarSta_CarrierArrived.ftl index 256ab68..bf31116 100644 --- a/RFXtoRP_HsaLstCarSta_CarrierArrived.ftl +++ b/RFXtoRP_HsaLstCarSta_CarrierArrived.ftl @@ -8,7 +8,7 @@ <#if carrier_apt_status.appointment_reference?? && carrier_apt_status.appointment_reference !=""> "RefID": "${carrier_apt_status.appointment_reference?json_string}", <#else> - "RefID": "${carrier_apt_status.physical_depot?json_string}${carrier_apt_status.appointment_year_number?json_string}${carrier_apt_status.appointment_number?json_string}", + "RefID": "${carrier_apt_status.appointment_year_number?json_string}-${carrier_apt_status.appointment_number?json_string}", "RefDate": { "DateTime": "${ref_datetime}", diff --git a/RFXtoRP_HsaLstCarSta_CarrierDeparted.ftl b/RFXtoRP_HsaLstCarSta_CarrierDeparted.ftl index c39c0c3..dc4ed53 100644 --- a/RFXtoRP_HsaLstCarSta_CarrierDeparted.ftl +++ b/RFXtoRP_HsaLstCarSta_CarrierDeparted.ftl @@ -8,7 +8,7 @@ <#if carrier_apt_status.appointment_reference?? && carrier_apt_status.appointment_reference !=""> "RefID": "${carrier_apt_status.appointment_reference?json_string}", <#else> - "RefID": "${carrier_apt_status.physical_depot?json_string}${carrier_apt_status.appointment_year_number?json_string}${carrier_apt_status.appointment_number?json_string}", + "RefID": "${carrier_apt_status.appointment_year_number?json_string}-${carrier_apt_status.appointment_number?json_string}", "RefDate": { "DateTime": "${ref_datetime}", diff --git a/RFXtoRP_HsaLstCarSta_CarrierExpected.ftl b/RFXtoRP_HsaLstCarSta_CarrierExpected.ftl index c39c0c3..dc4ed53 100644 --- a/RFXtoRP_HsaLstCarSta_CarrierExpected.ftl +++ b/RFXtoRP_HsaLstCarSta_CarrierExpected.ftl @@ -8,7 +8,7 @@ <#if carrier_apt_status.appointment_reference?? && carrier_apt_status.appointment_reference !=""> "RefID": "${carrier_apt_status.appointment_reference?json_string}", <#else> - "RefID": "${carrier_apt_status.physical_depot?json_string}${carrier_apt_status.appointment_year_number?json_string}${carrier_apt_status.appointment_number?json_string}", + "RefID": "${carrier_apt_status.appointment_year_number?json_string}-${carrier_apt_status.appointment_number?json_string}", "RefDate": { "DateTime": "${ref_datetime}", diff --git a/RFXtoRP_HsaLstCarSta_LoadingCompleted.ftl b/RFXtoRP_HsaLstCarSta_LoadingCompleted.ftl index c39c0c3..dc4ed53 100644 --- a/RFXtoRP_HsaLstCarSta_LoadingCompleted.ftl +++ b/RFXtoRP_HsaLstCarSta_LoadingCompleted.ftl @@ -8,7 +8,7 @@ <#if carrier_apt_status.appointment_reference?? && carrier_apt_status.appointment_reference !=""> "RefID": "${carrier_apt_status.appointment_reference?json_string}", <#else> - "RefID": "${carrier_apt_status.physical_depot?json_string}${carrier_apt_status.appointment_year_number?json_string}${carrier_apt_status.appointment_number?json_string}", + "RefID": "${carrier_apt_status.appointment_year_number?json_string}-${carrier_apt_status.appointment_number?json_string}", "RefDate": { "DateTime": "${ref_datetime}", diff --git a/RFXtoRP_HsaLstCarSta_LoadingStarted.ftl b/RFXtoRP_HsaLstCarSta_LoadingStarted.ftl index c39c0c3..dc4ed53 100644 --- a/RFXtoRP_HsaLstCarSta_LoadingStarted.ftl +++ b/RFXtoRP_HsaLstCarSta_LoadingStarted.ftl @@ -8,7 +8,7 @@ <#if carrier_apt_status.appointment_reference?? && carrier_apt_status.appointment_reference !=""> "RefID": "${carrier_apt_status.appointment_reference?json_string}", <#else> - "RefID": "${carrier_apt_status.physical_depot?json_string}${carrier_apt_status.appointment_year_number?json_string}${carrier_apt_status.appointment_number?json_string}", + "RefID": "${carrier_apt_status.appointment_year_number?json_string}-${carrier_apt_status.appointment_number?json_string}", "RefDate": { "DateTime": "${ref_datetime}", diff --git a/RFXtoRP_HsaLstCarSta_UnloadingCompleted.ftl b/RFXtoRP_HsaLstCarSta_UnloadingCompleted.ftl index c39c0c3..dc4ed53 100644 --- a/RFXtoRP_HsaLstCarSta_UnloadingCompleted.ftl +++ b/RFXtoRP_HsaLstCarSta_UnloadingCompleted.ftl @@ -8,7 +8,7 @@ <#if carrier_apt_status.appointment_reference?? && carrier_apt_status.appointment_reference !=""> "RefID": "${carrier_apt_status.appointment_reference?json_string}", <#else> - "RefID": "${carrier_apt_status.physical_depot?json_string}${carrier_apt_status.appointment_year_number?json_string}${carrier_apt_status.appointment_number?json_string}", + "RefID": "${carrier_apt_status.appointment_year_number?json_string}-${carrier_apt_status.appointment_number?json_string}", "RefDate": { "DateTime": "${ref_datetime}", diff --git a/RFXtoRP_HsaLstCarSta_UnloadingStarted.ftl b/RFXtoRP_HsaLstCarSta_UnloadingStarted.ftl index c39c0c3..dc4ed53 100644 --- a/RFXtoRP_HsaLstCarSta_UnloadingStarted.ftl +++ b/RFXtoRP_HsaLstCarSta_UnloadingStarted.ftl @@ -8,7 +8,7 @@ <#if carrier_apt_status.appointment_reference?? && carrier_apt_status.appointment_reference !=""> "RefID": "${carrier_apt_status.appointment_reference?json_string}", <#else> - "RefID": "${carrier_apt_status.physical_depot?json_string}${carrier_apt_status.appointment_year_number?json_string}${carrier_apt_status.appointment_number?json_string}", + "RefID": "${carrier_apt_status.appointment_year_number?json_string}-${carrier_apt_status.appointment_number?json_string}", "RefDate": { "DateTime": "${ref_datetime}", diff --git a/RFXtoRP_HsrCarrierApt_AppointmentCarrierExpected.ftl b/RFXtoRP_HsrCarrierApt_AppointmentCarrierExpected.ftl deleted file mode 100644 index 13bc369..0000000 --- a/RFXtoRP_HsrCarrierApt_AppointmentCarrierExpected.ftl +++ /dev/null @@ -1,26 +0,0 @@ -[ - <#assign ref_datetime = RfxDateTimetoUTCWithTimezone(carrier_apt.metadata.creation_datetime,time_zone_rfx) /> - { - "Header": { - "ProjectID": "${projectRP}" - }, - "ID": { - <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> - "RefID": "${carrier_apt.appointment_reference?json_string}", - <#else> - <#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> - "RefID": "${carrier_apt.appointment_reference?json_string}${carrier_apt.physical_depot?json_string}${carrier_apt.year_number}${carrier_apt.appointment_number}", - <#else> - "RefID": "${carrier_apt.physical_depot?json_string}${carrier_apt.year_number}${carrier_apt.appointment_number}", - - - "RefDate": { - "DateTime": "${ref_datetime}", - "AuthorTimeZone": "${time_zone_rfx}" - } - }, - "Payload":{ - "ActorID": "${RFXtoRPprefixDepot(carrier_apt.physical_depot?json_string)}" - } - } -] \ No newline at end of file diff --git a/RFXtoRP_HsrCarrierApt_AppointmentCustomFieldsUpdated.ftl b/RFXtoRP_HsrCarrierApt_AppointmentCustomFieldsUpdated.ftl index 4cd5972..21f408b 100644 --- a/RFXtoRP_HsrCarrierApt_AppointmentCustomFieldsUpdated.ftl +++ b/RFXtoRP_HsrCarrierApt_AppointmentCustomFieldsUpdated.ftl @@ -5,14 +5,18 @@ "ProjectID": "${projectRP}" }, "ID": { - <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> - "RefID": "${carrier_apt.appointment_reference?json_string}", - <#else> - <#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> - "RefID": "${carrier_apt.appointment_reference?json_string}${carrier_apt.physical_depot?json_string}${carrier_apt.year_number}${carrier_apt.appointment_number}", - <#else> - "RefID": "${carrier_apt.physical_depot?json_string}${carrier_apt.year_number}${carrier_apt.appointment_number}", - + <#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}-${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> + <#else> + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> + + <#else> + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}", + <#else> + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", + "RefDate": { "DateTime": "${ref_datetime}", diff --git a/RFXtoRP_HsrCarrierApt_AppointmentMetadataUpdatedToConfigure.ftl b/RFXtoRP_HsrCarrierApt_AppointmentMetadataUpdatedToConfigure.ftl index 81fefce..5ef3e72 100644 --- a/RFXtoRP_HsrCarrierApt_AppointmentMetadataUpdatedToConfigure.ftl +++ b/RFXtoRP_HsrCarrierApt_AppointmentMetadataUpdatedToConfigure.ftl @@ -5,16 +5,20 @@ "ProjectID": "${projectRP}" }, "ID": { - <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> - "RefID": "${carrier_apt.appointment_reference?json_string}", - <#else> - <#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> - "RefID": "${carrier_apt.appointment_reference?json_string}${carrier_apt.physical_depot?json_string}${carrier_apt.year_number}${carrier_apt.appointment_number}", + <#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}-${carrier_apt.year_number}-${carrier_apt.appointment_number}" <#else> - "RefID": "${carrier_apt.physical_depot?json_string}${carrier_apt.year_number}${carrier_apt.appointment_number}", + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}" + + <#else> + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}" + <#else> + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}" - } + }, "Payload": { "ActorID": "ActorID": "${RFXtoRPprefixDepot(carrier_apt.physical_depot?json_string)}", <#--To configure--> diff --git a/RFXtoRP_HsrCarrierApt_CarrierArrived.ftl b/RFXtoRP_HsrCarrierApt_CarrierArrived.ftl index afdefe6..1cd5974 100644 --- a/RFXtoRP_HsrCarrierApt_CarrierArrived.ftl +++ b/RFXtoRP_HsrCarrierApt_CarrierArrived.ftl @@ -5,11 +5,19 @@ "ProjectID": "${projectRP}" }, "ID": { - <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference !=""> - "RefID": "${carrier_apt.appointment_reference?json_string}", + <#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}-${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> + <#else> + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> + <#else> - "RefID": "${carrier_apt.physical_depot?json_string}${carrier_apt.year_number?json_string}${carrier_apt.appointment_number?json_string}", - + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}", + <#else> + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", + + "RefDate": { "DateTime": "${ref_datetime}", "AuthorTimeZone": "${time_zone_rfx}" diff --git a/RFXtoRP_HsrCarrierApt_CarrierDeparted.ftl b/RFXtoRP_HsrCarrierApt_CarrierDeparted.ftl index afdefe6..1cd5974 100644 --- a/RFXtoRP_HsrCarrierApt_CarrierDeparted.ftl +++ b/RFXtoRP_HsrCarrierApt_CarrierDeparted.ftl @@ -5,11 +5,19 @@ "ProjectID": "${projectRP}" }, "ID": { - <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference !=""> - "RefID": "${carrier_apt.appointment_reference?json_string}", + <#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}-${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> + <#else> + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> + <#else> - "RefID": "${carrier_apt.physical_depot?json_string}${carrier_apt.year_number?json_string}${carrier_apt.appointment_number?json_string}", - + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}", + <#else> + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", + + "RefDate": { "DateTime": "${ref_datetime}", "AuthorTimeZone": "${time_zone_rfx}" diff --git a/RFXtoRP_HsrCarrierApt_LoadingCompleted.ftl b/RFXtoRP_HsrCarrierApt_LoadingCompleted.ftl index afdefe6..1cd5974 100644 --- a/RFXtoRP_HsrCarrierApt_LoadingCompleted.ftl +++ b/RFXtoRP_HsrCarrierApt_LoadingCompleted.ftl @@ -5,11 +5,19 @@ "ProjectID": "${projectRP}" }, "ID": { - <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference !=""> - "RefID": "${carrier_apt.appointment_reference?json_string}", + <#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}-${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> + <#else> + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> + <#else> - "RefID": "${carrier_apt.physical_depot?json_string}${carrier_apt.year_number?json_string}${carrier_apt.appointment_number?json_string}", - + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}", + <#else> + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", + + "RefDate": { "DateTime": "${ref_datetime}", "AuthorTimeZone": "${time_zone_rfx}" diff --git a/RFXtoRP_HsrCarrierApt_LoadingStarted.ftl b/RFXtoRP_HsrCarrierApt_LoadingStarted.ftl index afdefe6..1cd5974 100644 --- a/RFXtoRP_HsrCarrierApt_LoadingStarted.ftl +++ b/RFXtoRP_HsrCarrierApt_LoadingStarted.ftl @@ -5,11 +5,19 @@ "ProjectID": "${projectRP}" }, "ID": { - <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference !=""> - "RefID": "${carrier_apt.appointment_reference?json_string}", + <#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}-${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> + <#else> + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> + <#else> - "RefID": "${carrier_apt.physical_depot?json_string}${carrier_apt.year_number?json_string}${carrier_apt.appointment_number?json_string}", - + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}", + <#else> + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", + + "RefDate": { "DateTime": "${ref_datetime}", "AuthorTimeZone": "${time_zone_rfx}" diff --git a/RFXtoRP_HsrCarrierApt_SiteCancelAppointment.ftl b/RFXtoRP_HsrCarrierApt_SiteCancelAppointment.ftl index 0d7a7e1..99d96d4 100644 --- a/RFXtoRP_HsrCarrierApt_SiteCancelAppointment.ftl +++ b/RFXtoRP_HsrCarrierApt_SiteCancelAppointment.ftl @@ -1,15 +1,19 @@ <#assign ref_datetime = RfxDateTimetoUTCWithTimezone(carrier_apt.metadata.last_update_datetime,time_zone_rfx) /> [ { - <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + <<#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}-${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> + <#else> + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> + + <#else> + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> "AppointmentID": "${carrier_apt.appointment_reference?json_string}", <#else> - <#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> - "AppointmentID": "${carrier_apt.appointment_reference?json_string}${carrier_apt.physical_depot?json_string}${carrier_apt.year_number}${carrier_apt.appointment_number}", - <#else> - "AppointmentID": "${carrier_apt.physical_depot?json_string}${carrier_apt.year_number}${carrier_apt.appointment_number}", - + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", + "Header": { "ProjectID": "${projectRP}" }, diff --git a/RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl b/RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl index 7bfc9a3..4f9a2a8 100644 --- a/RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl +++ b/RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl @@ -4,13 +4,17 @@ "ProjectID": "${projectRP}" }, "ActorID": "${RFXtoRPprefixDepot(carrier_apt.physical_depot?json_string)}", - <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> - "AppointmentID": "${carrier_apt.appointment_reference?json_string}", - <#else> - <#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> - "AppointmentID": "${carrier_apt.physical_depot?json_string}${carrier_apt.appointment_reference?json_string}${carrier_apt.year_number}${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> + <#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}-${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> <#else> - "AppointmentID": "${carrier_apt.physical_depot?json_string}${carrier_apt.year_number}${carrier_apt.appointment_number}", + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> + + <#else> + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}", + <#else> + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", "TimeZone":"${time_zone_rfx}", @@ -101,7 +105,7 @@ } ], <#if carrier_apt.unloading_appointment == "true" && carrier_apt.load_appointment == "true" && carrier_apt.appointment_designation?? && carrier_apt.appointment_designation!=""> - "Reason": "LOAD AND UNLOADING / ${carrier_apt.appointment_designation?json_string}", + "Reason": "UNLOADING AND LOADING / ${carrier_apt.appointment_designation?json_string}", <#else> <#if carrier_apt.appointment_designation?? && carrier_apt.appointment_designation!=""> "Reason": "${carrier_apt.appointment_designation?json_string}", diff --git a/RFXtoRP_HsrCarrierApt_UnloadingCompleted.ftl b/RFXtoRP_HsrCarrierApt_UnloadingCompleted.ftl index afdefe6..6c93825 100644 --- a/RFXtoRP_HsrCarrierApt_UnloadingCompleted.ftl +++ b/RFXtoRP_HsrCarrierApt_UnloadingCompleted.ftl @@ -5,11 +5,19 @@ "ProjectID": "${projectRP}" }, "ID": { - <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference !=""> - "RefID": "${carrier_apt.appointment_reference?json_string}", + <#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}-${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> + <#else> + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> + <#else> - "RefID": "${carrier_apt.physical_depot?json_string}${carrier_apt.year_number?json_string}${carrier_apt.appointment_number?json_string}", - + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}", + <#else> + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", + + "RefDate": { "DateTime": "${ref_datetime}", "AuthorTimeZone": "${time_zone_rfx}" diff --git a/RFXtoRP_HsrCarrierApt_UnloadingStarted.ftl b/RFXtoRP_HsrCarrierApt_UnloadingStarted.ftl index afdefe6..1cd5974 100644 --- a/RFXtoRP_HsrCarrierApt_UnloadingStarted.ftl +++ b/RFXtoRP_HsrCarrierApt_UnloadingStarted.ftl @@ -5,11 +5,19 @@ "ProjectID": "${projectRP}" }, "ID": { - <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference !=""> - "RefID": "${carrier_apt.appointment_reference?json_string}", + <#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}-${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> + <#else> + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> + <#else> - "RefID": "${carrier_apt.physical_depot?json_string}${carrier_apt.year_number?json_string}${carrier_apt.appointment_number?json_string}", - + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}", + <#else> + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", + + "RefDate": { "DateTime": "${ref_datetime}", "AuthorTimeZone": "${time_zone_rfx}" diff --git a/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl b/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl index 8e424ff..28fac14 100644 --- a/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl +++ b/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl @@ -5,13 +5,17 @@ "Header":{ "ProjectID": "${projectRP}" }, - <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> - "AppointmentID": "${carrier_apt.appointment_reference?json_string}", - <#else> - <#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> - "AppointmentID": "${carrier_apt.appointment_reference?json_string}${carrier_apt.physical_depot?json_string}${carrier_apt.year_number}${carrier_apt.appointment_number}", + <#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}-${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> <#else> - "AppointmentID": "${carrier_apt.physical_depot?json_string}${carrier_apt.year_number}${carrier_apt.appointment_number}", + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> + + <#else> + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}", + <#else> + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#if carrier_apt.unloading_appointment == "true" && carrier_apt.load_appointment == "false"> diff --git a/RFXtoRP_HsrCarrierApt_UpdateSlotAppointment.ftl b/RFXtoRP_HsrCarrierApt_UpdateSlotAppointment.ftl index 4c5b120..b8a1d02 100644 --- a/RFXtoRP_HsrCarrierApt_UpdateSlotAppointment.ftl +++ b/RFXtoRP_HsrCarrierApt_UpdateSlotAppointment.ftl @@ -4,13 +4,17 @@ "Header":{ "ProjectID": "${projectRP}" }, - <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> - "AppointmentID": "${carrier_apt.appointment_reference?json_string}", - <#else> - <#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> - "AppointmentID": "${carrier_apt.appointment_reference?json_string}${carrier_apt.physical_depot?json_string}${carrier_apt.year_number}${carrier_apt.appointment_number}", + <#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}-${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> <#else> - "AppointmentID": "${carrier_apt.physical_depot?json_string}${carrier_apt.year_number}${carrier_apt.appointment_number}", + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> + + <#else> + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "AppointmentID": "${carrier_apt.appointment_reference?json_string}", + <#else> + "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", "ActorID": "${RFXtoRPprefixDepot(carrier_apt.physical_depot?json_string)}", diff --git a/RPtoRFX_CarrierAppointmentCancellationCode.ftl b/RPtoRFX_CarrierAppointmentCancellationCode.ftl index 79d6747..c9262b8 100644 --- a/RPtoRFX_CarrierAppointmentCancellationCode.ftl +++ b/RPtoRFX_CarrierAppointmentCancellationCode.ftl @@ -1,2 +1,2 @@ -<#-- To custom with cancellation reason code--> +<#-- To custom with cancellation reason code, the reason code must be cancellation type--> "cancellation_reason_code": "" \ No newline at end of file diff --git a/RPtoRFX_CarrierAppointmentCreated.ftl b/RPtoRFX_CarrierAppointmentCreated.ftl index 820c79d..6a4b174 100644 --- a/RPtoRFX_CarrierAppointmentCreated.ftl +++ b/RPtoRFX_CarrierAppointmentCreated.ftl @@ -56,9 +56,7 @@ <#else> <#if appointment.AppointmentType == "APPOINTMENT_TYPE_LOADING"> - <#if appointment.Commissions[0].OrderID ?? && appointment.Commissions[0].OrderID!=""> - "appointment_designation":"LOADING", - <#else> + <#if appointment.AppointmentType == "APPOINTMENT_TYPE_LOADING"> "appointment_designation":"${(appointment.Reason!"")?json_string}", From a2d3922fb3053bd6483b68e4a3e6e33770e07425 Mon Sep 17 00:00:00 2001 From: Laurie Montant Date: Mon, 5 Jan 2026 16:06:09 +0100 Subject: [PATCH 02/13] RDV --- RFXtoRP_HsrCarrierApt_AppointmentCustomFieldsUpdated.ftl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/RFXtoRP_HsrCarrierApt_AppointmentCustomFieldsUpdated.ftl b/RFXtoRP_HsrCarrierApt_AppointmentCustomFieldsUpdated.ftl index 21f408b..a9aa061 100644 --- a/RFXtoRP_HsrCarrierApt_AppointmentCustomFieldsUpdated.ftl +++ b/RFXtoRP_HsrCarrierApt_AppointmentCustomFieldsUpdated.ftl @@ -7,15 +7,15 @@ "ID": { <#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> - "AppointmentID": "${carrier_apt.appointment_reference?json_string}-${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> + "RefID": "${carrier_apt.appointment_reference?json_string}-${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> <#else> - "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> + "RefID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> <#else> <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> - "AppointmentID": "${carrier_apt.appointment_reference?json_string}", + "RefID": "${carrier_apt.appointment_reference?json_string}", <#else> - "AppointmentID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", + "RefID": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", "RefDate": { From 5abbd7b0a250896a75c698795d0d2ab1f1aff705 Mon Sep 17 00:00:00 2001 From: Laurie Montant Date: Mon, 5 Jan 2026 17:39:23 +0100 Subject: [PATCH 03/13] RDV --- RFXtoRP_HsrCarrierApt.ftl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/RFXtoRP_HsrCarrierApt.ftl b/RFXtoRP_HsrCarrierApt.ftl index 0a7bf34..df68af9 100644 --- a/RFXtoRP_HsrCarrierApt.ftl +++ b/RFXtoRP_HsrCarrierApt.ftl @@ -23,13 +23,18 @@ "apiReflexPlatformID" : "${apiReflexPlatformID}", "datas" : <#include "RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl"> - }, + } + <#if (carrier_apt.unloading_appointment == "true" && carrier_apt.load_appointment == "false" && (carrier_apt.planned_unloading_start_datetime?starts_with("00") || carrier_apt.planned_unloading_start_datetime?contains("-00-") || carrier_apt.planned_unloading_end_datetime?starts_with("00") || carrier_apt.planned_unloading_end_datetime?contains("-00-"))) || (carrier_apt.unloading_appointment == "false" && carrier_apt.load_appointment == "true" && (carrier_apt.planned_load_start_datetime?starts_with("00") || carrier_apt.planned_load_start_datetime?contains("-00-") || carrier_apt.planned_load_end_datetime?starts_with("00") || carrier_apt.planned_load_end_datetime?contains("-00-"))) || (carrier_apt.unloading_appointment == "true" && carrier_apt.load_appointment == "true" && (carrier_apt.planned_load_end_datetime?starts_with("00") || carrier_apt.planned_load_end_datetime?contains("-00-") || carrier_apt.planned_unloading_start_datetime?starts_with("00") || carrier_apt.planned_unloading_start_datetime?contains("-00-")))> + <#stop "One of the datetime fields of appointment is not initialized" > + <#else> + , { <#assign apiReflexPlatformID = ApiReflexPlatformID.AppointmentCustomFieldsUpdated> "apiReflexPlatformID" : "${apiReflexPlatformID}", "datas" : <#include "RFXtoRP_HsrCarrierApt_AppointmentCustomFieldsUpdated.ftl"> } + ] <#break> <#case "U"> From df7e596a93d88d402850910a6b8733baddf74985 Mon Sep 17 00:00:00 2001 From: Laurie Montant Date: Wed, 7 Jan 2026 09:08:23 +0100 Subject: [PATCH 04/13] RDV --- RFXtoRP_RestResponse.ftl | 50 +++++++++-------- RPtoRFX_AppointmentEvent.ftl | 55 +++++++++++++------ ...mentPhysicalReceiptAssociationByNumber.ftl | 32 +++++------ ...intmentPhysicalReceiptAssociationByRef.ftl | 32 +++++------ ...entPhysicalReceiptDissociationByNumber.ftl | 26 +++++++++ ...ntmentPhysicalReceiptDissociationByRef.ftl | 25 +++++++++ 6 files changed, 142 insertions(+), 78 deletions(-) create mode 100644 RPtoRFX_CarrierAppointmentPhysicalReceiptDissociationByNumber.ftl create mode 100644 RPtoRFX_CarrierAppointmentPhysicalReceiptDissociationByRef.ftl diff --git a/RFXtoRP_RestResponse.ftl b/RFXtoRP_RestResponse.ftl index e5c8aa1..0dc81b0 100644 --- a/RFXtoRP_RestResponse.ftl +++ b/RFXtoRP_RestResponse.ftl @@ -212,10 +212,10 @@ <#include "RFXtoRP_PlatformLogCreate.ftl"> }, { - <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowAllocationError> + <#assign apiReflexPlatformID = ApiReflexPlatformID.AppointmentAllocationError> "apiReflexPlatformID" : "${apiReflexPlatformID}", "datas" : - <#include "RFXtoRP_RestResponseAllocationError.ftl"> + <#include "RFXtoRP_RestResponseAppointmentAllocationError.ftl"> } ] <#break> @@ -239,10 +239,10 @@ <#include "RFXtoRP_PlatformLogCreate.ftl"> }, { - <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowAllocationError> + <#assign apiReflexPlatformID = ApiReflexPlatformID.AppointmentAllocationError> "apiReflexPlatformID" : "${apiReflexPlatformID}", "datas" : - <#include "RFXtoRP_RestResponseAllocationError.ftl"> + <#include "RFXtoRP_RestResponseAppointmentAllocationError.ftl"> } ] @@ -261,10 +261,10 @@ <#include "RFXtoRP_PlatformLogCreate.ftl"> }, { - <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowAllocationError> + <#assign apiReflexPlatformID = ApiReflexPlatformID.AppointmentAllocationError> "apiReflexPlatformID" : "${apiReflexPlatformID}", "datas" : - <#include "RFXtoRP_RestResponseAllocationError.ftl"> + <#include "RFXtoRP_RestResponseAppointmentAllocationError.ftl"> } ] @@ -287,10 +287,10 @@ <#include "RFXtoRP_PlatformLogCreate.ftl"> }, { - <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowAllocationError> + <#assign apiReflexPlatformID = ApiReflexPlatformID.AppointmentAllocationError> "apiReflexPlatformID" : "${apiReflexPlatformID}", "datas" : - <#include "RFXtoRP_RestResponseAllocationError.ftl"> + <#include "RFXtoRP_RestResponseAppointmentAllocationError.ftl"> } ] <#break> @@ -314,10 +314,10 @@ <#include "RFXtoRP_PlatformLogCreate.ftl"> }, { - <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowAllocationError> + <#assign apiReflexPlatformID = ApiReflexPlatformID.AppointmentAllocationError> "apiReflexPlatformID" : "${apiReflexPlatformID}", "datas" : - <#include "RFXtoRP_RestResponseAllocationError.ftl"> + <#include "RFXtoRP_RestResponseAppointmentAllocationError.ftl"> } ] @@ -336,10 +336,10 @@ <#include "RFXtoRP_PlatformLogCreate.ftl"> }, { - <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowAllocationError> + <#assign apiReflexPlatformID = ApiReflexPlatformID.AppointmentAllocationError> "apiReflexPlatformID" : "${apiReflexPlatformID}", "datas" : - <#include "RFXtoRP_RestResponseAllocationError.ftl"> + <#include "RFXtoRP_RestResponseAppointmentAllocationError.ftl"> } ] @@ -362,10 +362,10 @@ <#include "RFXtoRP_PlatformLogCreate.ftl"> }, { - <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowAllocationError> + <#assign apiReflexPlatformID = ApiReflexPlatformID.AppointmentAllocationError> "apiReflexPlatformID" : "${apiReflexPlatformID}", "datas" : - <#include "RFXtoRP_RestResponseAllocationError.ftl"> + <#include "RFXtoRP_RestResponseAppointmentAllocationError.ftl"> } ] <#break> @@ -389,10 +389,10 @@ <#include "RFXtoRP_PlatformLogCreate.ftl"> }, { - <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowAllocationError> + <#assign apiReflexPlatformID = ApiReflexPlatformID.AppointmentAllocationError> "apiReflexPlatformID" : "${apiReflexPlatformID}", "datas" : - <#include "RFXtoRP_RestResponseAllocationError.ftl"> + <#include "RFXtoRP_RestResponseAppointmentAllocationError.ftl"> } ] @@ -411,10 +411,10 @@ <#include "RFXtoRP_PlatformLogCreate.ftl"> }, { - <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowAllocationError> + <#assign apiReflexPlatformID = ApiReflexPlatformID.AppointmentAllocationError> "apiReflexPlatformID" : "${apiReflexPlatformID}", "datas" : - <#include "RFXtoRP_RestResponseAllocationError.ftl"> + <#include "RFXtoRP_RestResponseAppointmentAllocationError.ftl"> } ] @@ -422,6 +422,8 @@ <#-- *********************************************** ApiRestID = appointment_post_physical_receipt_associations ******************** --> <#case "appointment_post_physical_receipt_associations_by_ref"> <#case "appointment_post_physical_receipt_associations_by_number"> + <#case "appointment_post_physical_receipt_dissociations_by_ref"> + <#case "appointment_post_physical_receipt_dissociations_by_number"> <#switch restResponsetMsg.status!no_status> <#case no_status> [ @@ -437,10 +439,10 @@ <#include "RFXtoRP_PlatformLogCreate.ftl"> }, { - <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowAllocationError> + <#assign apiReflexPlatformID = ApiReflexPlatformID.AppointmentAllocationError> "apiReflexPlatformID" : "${apiReflexPlatformID}", "datas" : - <#include "RFXtoRP_RestResponseAllocationError.ftl"> + <#include "RFXtoRP_RestResponseAppointmentAllocationError.ftl"> } ] <#break> @@ -464,10 +466,10 @@ <#include "RFXtoRP_PlatformLogCreate.ftl"> }, { - <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowAllocationError> + <#assign apiReflexPlatformID = ApiReflexPlatformID.AppointmentAllocationError> "apiReflexPlatformID" : "${apiReflexPlatformID}", "datas" : - <#include "RFXtoRP_RestResponseAllocationError.ftl"> + <#include "RFXtoRP_RestResponseAppointmentAllocationError.ftl"> } ] @@ -486,10 +488,10 @@ <#include "RFXtoRP_PlatformLogCreate.ftl"> }, { - <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowAllocationError> + <#assign apiReflexPlatformID = ApiReflexPlatformID.AppointmentAllocationError> "apiReflexPlatformID" : "${apiReflexPlatformID}", "datas" : - <#include "RFXtoRP_RestResponseAllocationError.ftl"> + <#include "RFXtoRP_RestResponseAppointmentAllocationError.ftl"> } ] diff --git a/RPtoRFX_AppointmentEvent.ftl b/RPtoRFX_AppointmentEvent.ftl index 0ee48cc..2c88da1 100644 --- a/RPtoRFX_AppointmentEvent.ftl +++ b/RPtoRFX_AppointmentEvent.ftl @@ -26,25 +26,44 @@ <#-- *********************************************** Action = CommissionsUpdated ******************** --> <#case "CommissionsUpdated"> <#assign appointment = eventRP.data /> - [ - <#list eventRP.executionflowCustomFields.entrySet()?filter(l ->l.value?? && l.value?has_content) as commission> - <#if eventRP.appointmentCustomFields?has_content> - { - <#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_associations_by_number> - "apiRestReflexID" : "${apiRestReflexID}", - "datas" : - <#include "RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByNumber.ftl"> - } - <#else> - { - <#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_associations_by_ref> - "apiRestReflexID" : "${apiRestReflexID}", - "datas" : - <#include "RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByRef.ftl"> - } + [ <#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING"> + <#if eventRP.addedCommissions?? && eventRP.addedCommissions!=""> + <#if eventRP.appointmentCustomFields?has_content> + { + <#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_associations_by_number> + "apiRestReflexID" : "${apiRestReflexID}", + "datas" : + <#include "RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByNumber.ftl"> + } + <#else> + { + <#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_associations_by_ref> + "apiRestReflexID" : "${apiRestReflexID}", + "datas" : + <#include "RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByRef.ftl"> + } + + + <#if eventRP.removedCommissions?? && eventRP.removedCommissions!=""> + <#if eventRP.appointmentCustomFields?has_content> + { + <#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_dissociations_by_number> + "apiRestReflexID" : "${apiRestReflexID}", + "datas" : + <#include "RPtoRFX_CarrierAppointmentPhysicalReceiptDissociationByNumber.ftl"> + } + <#else> + { + <#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_dissociations_by_ref> + "apiRestReflexID" : "${apiRestReflexID}", + "datas" : + <#include "RPtoRFX_CarrierAppointmentPhysicalReceiptDissociationByRef.ftl"> + } + + + <#else> + <#stop "Unsupported Appointment Type for Commissions Update"> - <#sep>, - ] <#break> <#-- *********************************************** Action = SlotUpdated ******************** --> diff --git a/RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByNumber.ftl b/RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByNumber.ftl index fd9e237..39f9177 100644 --- a/RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByNumber.ftl +++ b/RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByNumber.ftl @@ -1,5 +1,5 @@ { - "id" : {"refid" : "${eventRP.refid?json_string}"}, + "id" : {"refid" : "${eventRP.refid?json_string}","actorID":"${RPtoRFXprefixDepot(eventRP.actor)}"}, "route" : "rest/public/v1/physical_depots/{physical_depot_code}/appointment_years/{appointment_year}/appointment_numbers/{appointment_number}/physical_receipt_associations", "method" : "POST", "uri_substitutions": { @@ -9,22 +9,18 @@ }, "payload" : { - <#if appointment.Commissions??> - <#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING"> - "physical_receipt_list": [ - { - "receipt_activity": "${commission.value.activity_code?json_string}", - "originator_code": "${commission.value.originator_code?json_string}", - "physical_receipt_reference": "${commission.value.reference?json_string}", - "receipt_year": "${commission.value.order_year?json_string}", - "receipt_number": "${commission.value.order_number?json_string}" - } - ] - <#else> - <#if appointment.AppointmentType == "APPOINTMENT_TYPE_LOADING"> - "appointment_designation":"${appointment.Reason!""?json_string}" - - - + <#assign executionflowCustomFields = eventRP.executionflowCustomFields > + "physical_receipt_list": [ + <#list eventRP.addedCommissions as addedCommission> + { + "receipt_activity": "${executionflowCustomFields[addedCommission.ExecutionflowID].activity_code?json_string}", + "originator_code": "${executionflowCustomFields[addedCommission.ExecutionflowID].originator_code?json_string}", + "physical_receipt_reference": "${executionflowCustomFields[addedCommission.ExecutionflowID].reference?json_string}", + "receipt_year": "${executionflowCustomFields[addedCommission.ExecutionflowID].order_year?json_string}", + "receipt_number": "${executionflowCustomFields[addedCommission.ExecutionflowID].order_number?json_string}" + } + <#sep>, + + ] } } diff --git a/RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByRef.ftl b/RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByRef.ftl index 223b1cb..333c8a0 100644 --- a/RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByRef.ftl +++ b/RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByRef.ftl @@ -1,5 +1,5 @@ { - "id" : {"refid" : "${eventRP.refid?json_string}"}, + "id" : {"refid" : "${eventRP.refid?json_string}","actorID":"${RPtoRFXprefixDepot(eventRP.actor)}"}, "route" : "rest/public/v1/physical_depots/{physical_depot_code}/carrier_appointments/{appointment_reference}/physical_receipt_associations", "method" : "POST", "uri_substitutions": { @@ -8,22 +8,18 @@ }, "payload" : { - <#if appointment.Commissions??> - <#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING"> - "physical_receipt_list": [ - { - "receipt_activity": "${commission.value.activity_code?json_string}", - "originator_code": "${commission.value.originator_code?json_string}", - "physical_receipt_reference": "${commission.value.reference?json_string}", - "receipt_year": "${commission.value.order_year?json_string}", - "receipt_number": "${commission.value.order_number?json_string}" - } - ] - <#else> - <#if appointment.AppointmentType == "APPOINTMENT_TYPE_LOADING"> - "appointment_designation":"${appointment.Reason!""?json_string}" - - - + <#assign executionflowCustomFields = eventRP.executionflowCustomFields > + "physical_receipt_list": [ + <#list eventRP.addedCommissions as addedCommission> + { + "receipt_activity": "${executionflowCustomFields[addedCommission.ExecutionflowID].activity_code?json_string}", + "originator_code": "${executionflowCustomFields[addedCommission.ExecutionflowID].originator_code?json_string}", + "physical_receipt_reference": "${executionflowCustomFields[addedCommission.ExecutionflowID].reference?json_string}", + "receipt_year": "${executionflowCustomFields[addedCommission.ExecutionflowID].order_year?json_string}", + "receipt_number": "${executionflowCustomFields[addedCommission.ExecutionflowID].order_number?json_string}" + } + <#sep>, + + ] } } diff --git a/RPtoRFX_CarrierAppointmentPhysicalReceiptDissociationByNumber.ftl b/RPtoRFX_CarrierAppointmentPhysicalReceiptDissociationByNumber.ftl new file mode 100644 index 0000000..2a3e93c --- /dev/null +++ b/RPtoRFX_CarrierAppointmentPhysicalReceiptDissociationByNumber.ftl @@ -0,0 +1,26 @@ +{ + "id" : {"refid" : "${eventRP.refid?json_string}","actorID":"${RPtoRFXprefixDepot(eventRP.actor)}"}, + "route" : "rest/public/v1/physical_depots/{physical_depot_code}/appointment_years/{appointment_year}/appointment_numbers/{appointment_number}/physical_receipt_dissociations", + "method" : "POST", + "uri_substitutions": { + "physical_depot_code": "${RPtoRFXprefixDepot(eventRP.actor)}", + "appointment_year":"${eventRP.appointmentCustomFields.year?json_string}", + "appointment_number":"${eventRP.appointmentCustomFields.number?json_string}" + }, + "payload" : + { + <#assign executionflowCustomFields = eventRP.executionflowCustomFields > + "physical_receipt_list": [ + <#list eventRP.removedCommissions as removedCommission> + { + "receipt_activity": "${executionflowCustomFields[removedCommission.ExecutionflowID].activity_code?json_string}", + "originator_code": "${executionflowCustomFields[removedCommission.ExecutionflowID].originator_code?json_string}", + "physical_receipt_reference": "${executionflowCustomFields[removedCommission.ExecutionflowID].reference?json_string}", + "receipt_year": "${executionflowCustomFields[removedCommission.ExecutionflowID].order_year?json_string}", + "receipt_number": "${executionflowCustomFields[removedCommission.ExecutionflowID].order_number?json_string}" + } + <#sep>, + + ] + } + } diff --git a/RPtoRFX_CarrierAppointmentPhysicalReceiptDissociationByRef.ftl b/RPtoRFX_CarrierAppointmentPhysicalReceiptDissociationByRef.ftl new file mode 100644 index 0000000..2cc8e4c --- /dev/null +++ b/RPtoRFX_CarrierAppointmentPhysicalReceiptDissociationByRef.ftl @@ -0,0 +1,25 @@ +{ + "id" : {"refid" : "${eventRP.refid?json_string}","actorID":"${RPtoRFXprefixDepot(eventRP.actor)}"}, + "route" : "rest/public/v1/physical_depots/{physical_depot_code}/carrier_appointments/{appointment_reference}/physical_receipt_dissociations", + "method" : "POST", + "uri_substitutions": { + "physical_depot_code": "${RPtoRFXprefixDepot(eventRP.actor)}", + "appointment_reference":"${eventRP.refid?json_string}" + }, + "payload" : + { + <#assign executionflowCustomFields = eventRP.executionflowCustomFields > + "physical_receipt_list": [ + <#list eventRP.removedCommissions as removedCommission> + { + "receipt_activity": "${executionflowCustomFields[removedCommission.ExecutionflowID].activity_code?json_string}", + "originator_code": "${executionflowCustomFields[removedCommission.ExecutionflowID].originator_code?json_string}", + "physical_receipt_reference": "${executionflowCustomFields[removedCommission.ExecutionflowID].reference?json_string}", + "receipt_year": "${executionflowCustomFields[removedCommission.ExecutionflowID].order_year?json_string}", + "receipt_number": "${executionflowCustomFields[removedCommission.ExecutionflowID].order_number?json_string}" + } + <#sep>, + + ] + } + } From 6f73a656ed69818e4a7d20184eb3ec5532407f85 Mon Sep 17 00:00:00 2001 From: Laurie Montant Date: Wed, 7 Jan 2026 11:16:57 +0100 Subject: [PATCH 05/13] RDV --- RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl | 5 +++-- RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl b/RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl index 4f9a2a8..08c7ce9 100644 --- a/RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl +++ b/RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl @@ -87,10 +87,11 @@ "ActorID": "${RFXtoRPprefixDepot(carrier_apt.physical_depot?json_string)}", <#if physical_receipt.physical_receipt_reference?? && physical_receipt.physical_receipt_reference!=""> "OrderID": "${physical_receipt.physical_receipt_reference?json_string}", + "ExecutionflowID": "${physical_receipt.physical_receipt_reference?trim?json_string}", <#else> - "OrderID": "R${carrier_apt.physical_depot?json_string}${physical_receipt.receipt_activity?json_string}${physical_receipt.originator_code?json_string}${physical_receipt.receipt_year}${physical_receipt.receipt_number}", + "OrderID": "${carrier_apt.physical_depot?json_string}${physical_receipt.receipt_activity?json_string}${physical_receipt.originator_code?json_string}${physical_receipt.receipt_year}${physical_receipt.receipt_number}", + "ExecutionflowID": "${carrier_apt.physical_depot?json_string}${physical_receipt.receipt_activity?json_string}${physical_receipt.originator_code?json_string}${physical_receipt.receipt_year}${physical_receipt.receipt_number}", - "ExecutionflowID": "R${carrier_apt.physical_depot?json_string}${physical_receipt.receipt_activity?json_string}${physical_receipt.originator_code?json_string}${physical_receipt.receipt_year?json_string}${physical_receipt.receipt_number?json_string}", "ProjectID": "${projectRP}", <#include "RFXtoRP_HsrCarrierApt_Quantities.ftl"> }<#sep>, diff --git a/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl b/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl index 28fac14..adfb5ff 100644 --- a/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl +++ b/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl @@ -85,8 +85,10 @@ "ActorID": "${RFXtoRPprefixDepot(carrier_apt.physical_depot?json_string)}", <#if physical_receipt.physical_receipt_reference?? && physical_receipt.physical_receipt_reference!=""> "OrderID": "${physical_receipt.physical_receipt_reference?json_string}", + "ExecutionflowID": "${physical_receipt.physical_receipt_reference?trim?json_string}", <#else> - "OrderID": "R${carrier_apt.physical_depot?json_string}${physical_receipt.receipt_activity?json_string}${physical_receipt.originator_code?json_string}${physical_receipt.receipt_year}${physical_receipt.receipt_number}", + "OrderID": "${carrier_apt.physical_depot?json_string}${physical_receipt.receipt_activity?json_string}${physical_receipt.originator_code?json_string}${physical_receipt.receipt_year}${physical_receipt.receipt_number}", + "ExecutionflowID": "${carrier_apt.physical_depot?json_string}${physical_receipt.receipt_activity?json_string}${physical_receipt.originator_code?json_string}${physical_receipt.receipt_year}${physical_receipt.receipt_number}", "ExecutionflowID": "R${carrier_apt.physical_depot?json_string}${physical_receipt.receipt_activity?json_string}${physical_receipt.originator_code?json_string}${physical_receipt.receipt_year?json_string}${physical_receipt.receipt_number?json_string}", "ProjectID": "${projectRP}" From 0274bd65da2ab3b38ea118ea2e271ad17f3cf8ca Mon Sep 17 00:00:00 2001 From: Laurie Montant Date: Wed, 7 Jan 2026 11:35:25 +0100 Subject: [PATCH 06/13] RDV --- RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl | 1 - 1 file changed, 1 deletion(-) diff --git a/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl b/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl index adfb5ff..ed3bff5 100644 --- a/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl +++ b/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl @@ -90,7 +90,6 @@ "OrderID": "${carrier_apt.physical_depot?json_string}${physical_receipt.receipt_activity?json_string}${physical_receipt.originator_code?json_string}${physical_receipt.receipt_year}${physical_receipt.receipt_number}", "ExecutionflowID": "${carrier_apt.physical_depot?json_string}${physical_receipt.receipt_activity?json_string}${physical_receipt.originator_code?json_string}${physical_receipt.receipt_year}${physical_receipt.receipt_number}", - "ExecutionflowID": "R${carrier_apt.physical_depot?json_string}${physical_receipt.receipt_activity?json_string}${physical_receipt.originator_code?json_string}${physical_receipt.receipt_year?json_string}${physical_receipt.receipt_number?json_string}", "ProjectID": "${projectRP}" }<#sep>, From 3541a6cf8dfde2c9ceb7af273a235182549bcc5f Mon Sep 17 00:00:00 2001 From: Laurie Montant Date: Wed, 7 Jan 2026 11:38:30 +0100 Subject: [PATCH 07/13] RDV --- ...RestResponseAppointmentAllocationError.ftl | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 RFXtoRP_RestResponseAppointmentAllocationError.ftl diff --git a/RFXtoRP_RestResponseAppointmentAllocationError.ftl b/RFXtoRP_RestResponseAppointmentAllocationError.ftl new file mode 100644 index 0000000..c21fc3f --- /dev/null +++ b/RFXtoRP_RestResponseAppointmentAllocationError.ftl @@ -0,0 +1,22 @@ +<#include "HfRpConfig.ftl"> +<#include "ReflexUtils.ftl"> +<#include "ActorPrefix.ftl"> +[ + { + "Header": { + "ProjectID": "${projectRP}" + }, + "ID": { + "RefID": "${id.refid!"no RefID"?trim?json_string}", + "RefDate": { + "DateTime": "${aDateTime?iso_utc}", + "AuthorTimeZone": "${time_zone_rfx}" + } + }, + + "Payload": { + "ActorID":"${RFXtoRPprefixDepot(id.actorID)?trim?json_string}" + } + + } +] From 7c04741bc6627e06c50838282dc500c416071e08 Mon Sep 17 00:00:00 2001 From: Laurie Montant Date: Wed, 7 Jan 2026 11:50:16 +0100 Subject: [PATCH 08/13] RDV --- RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl | 1 + 1 file changed, 1 insertion(+) diff --git a/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl b/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl index ed3bff5..fba3b55 100644 --- a/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl +++ b/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl @@ -56,6 +56,7 @@ "ActorID": "${RFXtoRPprefixDepot(carrier_apt.physical_depot?json_string)}", + "TimeZone":"${time_zone_rfx}", "CustomFields": [ { "Key": "depot", From ecc40ff1f537afc688e5dc663371e1296926f5fe Mon Sep 17 00:00:00 2001 From: Laurie Montant Date: Wed, 7 Jan 2026 12:00:14 +0100 Subject: [PATCH 09/13] RDV --- ...P_HsrCarrierApt_SiteForceBookAppointment.ftl | 5 +++-- RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl | 17 ++++++++++++++++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl b/RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl index 08c7ce9..3120403 100644 --- a/RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl +++ b/RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl @@ -105,16 +105,17 @@ <#include "RFXtoRP_HsrCarrierApt_Quantities.ftl"> } ], - <#if carrier_apt.unloading_appointment == "true" && carrier_apt.load_appointment == "true" && carrier_apt.appointment_designation?? && carrier_apt.appointment_designation!=""> + <#if carrier_apt.unloading_appointment == "true" && carrier_apt.load_appointment == "true"> "Reason": "UNLOADING AND LOADING / ${carrier_apt.appointment_designation?json_string}", <#else> <#if carrier_apt.appointment_designation?? && carrier_apt.appointment_designation!=""> "Reason": "${carrier_apt.appointment_designation?json_string}", <#else> - "Reason": "No commission", + "Reason": "${carrier_apt.appointment_reference?json_string}", + "Slots": [{ <#-- calcul de de la durée en fonction des start et end time--> "DurationInSeconds": "${duration}", diff --git a/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl b/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl index fba3b55..1f2f858 100644 --- a/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl +++ b/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl @@ -96,7 +96,22 @@ ], <#else> - <#stop> + "Commissions": [ + { + "ActorID": "${RFXtoRPprefixDepot(carrier_apt.physical_depot?json_string)}", + "ProjectID": "${projectRP}", + <#include "RFXtoRP_HsrCarrierApt_Quantities.ftl"> + } + ], + <#if carrier_apt.unloading_appointment == "true" && carrier_apt.load_appointment == "true"> + "Reason": "UNLOADING AND LOADING / ${carrier_apt.appointment_designation?json_string}", + <#else> + <#if carrier_apt.appointment_designation?? && carrier_apt.appointment_designation!=""> + "Reason": "${carrier_apt.appointment_designation?json_string}", + <#else> + "Reason": "${carrier_apt.appointment_reference?json_string}", + + "Slots": [{ <#-- calcul de de la durée en fonction des start et end time--> From ad8aae90fd855366b4498878fe60daf1abdc3baa Mon Sep 17 00:00:00 2001 From: Laurie Montant Date: Wed, 7 Jan 2026 14:08:00 +0100 Subject: [PATCH 10/13] RDV --- RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl | 6 +++++- RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl b/RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl index 3120403..6c72e5d 100644 --- a/RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl +++ b/RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl @@ -111,7 +111,11 @@ <#if carrier_apt.appointment_designation?? && carrier_apt.appointment_designation!=""> "Reason": "${carrier_apt.appointment_designation?json_string}", <#else> - "Reason": "${carrier_apt.appointment_reference?json_string}", + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "Reason": "${carrier_apt.appointment_reference?json_string}", + <#else> + "Reason": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", + diff --git a/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl b/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl index 1f2f858..1f40a65 100644 --- a/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl +++ b/RFXtoRP_HsrCarrierApt_UpdateAppointment.ftl @@ -109,7 +109,11 @@ <#if carrier_apt.appointment_designation?? && carrier_apt.appointment_designation!=""> "Reason": "${carrier_apt.appointment_designation?json_string}", <#else> - "Reason": "${carrier_apt.appointment_reference?json_string}", + <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> + "Reason": "${carrier_apt.appointment_reference?json_string}", + <#else> + "Reason": "${carrier_apt.year_number}-${carrier_apt.appointment_number}", + From d552dced9893b188b3e9a59a0d844c4f0ff8dde2 Mon Sep 17 00:00:00 2001 From: Laurie Montant Date: Wed, 7 Jan 2026 14:48:39 +0100 Subject: [PATCH 11/13] RDV --- RFXtoRP_HsrCarrierApt_SiteCancelAppointment.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RFXtoRP_HsrCarrierApt_SiteCancelAppointment.ftl b/RFXtoRP_HsrCarrierApt_SiteCancelAppointment.ftl index 99d96d4..bfd3049 100644 --- a/RFXtoRP_HsrCarrierApt_SiteCancelAppointment.ftl +++ b/RFXtoRP_HsrCarrierApt_SiteCancelAppointment.ftl @@ -1,7 +1,7 @@ <#assign ref_datetime = RfxDateTimetoUTCWithTimezone(carrier_apt.metadata.last_update_datetime,time_zone_rfx) /> [ { - <<#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> + <#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> "AppointmentID": "${carrier_apt.appointment_reference?json_string}-${carrier_apt.year_number}-${carrier_apt.appointment_number}", <#-- pour les RDV récurrents, aligner les statuts quand la balise sera dispo --> <#else> From d486819b602b70816f921b096b0a2902c7eb3f6a Mon Sep 17 00:00:00 2001 From: Francis Reat Date: Wed, 7 Jan 2026 15:59:35 +0100 Subject: [PATCH 12/13] rdz --- RPtoRFX_CarrierAppointmentCanceledByNumber.ftl | 2 +- RPtoRFX_CarrierAppointmentCanceledByRef.ftl | 2 +- RPtoRFX_CarrierAppointmentCreated.ftl | 2 +- RPtoRFX_CarrierAppointmentSlotUpdatedByNumber.ftl | 2 +- RPtoRFX_CarrierAppointmentSlotUpdatedByRef.ftl | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/RPtoRFX_CarrierAppointmentCanceledByNumber.ftl b/RPtoRFX_CarrierAppointmentCanceledByNumber.ftl index 4431a3b..91a5e6c 100644 --- a/RPtoRFX_CarrierAppointmentCanceledByNumber.ftl +++ b/RPtoRFX_CarrierAppointmentCanceledByNumber.ftl @@ -1,5 +1,5 @@ { - "id" : {"refid" : "${eventRP.refid?json_string}"}, + "id" : {"refid" : "${eventRP.refid?json_string}","actorID":"${RPtoRFXprefixDepot(eventRP.actor)}"}, "route" : "rest/public/v1/physical_depots/{physical_depot_code}/appointment_years/{appointment_year}/appointment_numbers/{appointment_number}/status", "method" : "PUT", "uri_substitutions": { diff --git a/RPtoRFX_CarrierAppointmentCanceledByRef.ftl b/RPtoRFX_CarrierAppointmentCanceledByRef.ftl index 74d5a4e..f32cb7a 100644 --- a/RPtoRFX_CarrierAppointmentCanceledByRef.ftl +++ b/RPtoRFX_CarrierAppointmentCanceledByRef.ftl @@ -1,5 +1,5 @@ { - "id" : {"refid" : "${eventRP.refid?json_string}"}, + "id" : {"refid" : "${eventRP.refid?json_string}","actorID":"${RPtoRFXprefixDepot(eventRP.actor)}"}, "route" : "rest/public/v1/physical_depots/{physical_depot_code}/carrier_appointments/{appointment_reference}/status", "method" : "PUT", "uri_substitutions": { diff --git a/RPtoRFX_CarrierAppointmentCreated.ftl b/RPtoRFX_CarrierAppointmentCreated.ftl index 6a4b174..7c34845 100644 --- a/RPtoRFX_CarrierAppointmentCreated.ftl +++ b/RPtoRFX_CarrierAppointmentCreated.ftl @@ -1,5 +1,5 @@ { - "id" : {"refid" : "${eventRP.refid?json_string}"}, + "id" : {"refid" : "${eventRP.refid?json_string}","actorID":"${RPtoRFXprefixDepot(eventRP.actor)}"}, "route" : "rest/public/v1/physical_depots/{physical_depot_code}/carrier_appointments", "method" : "POST", "uri_substitutions": { diff --git a/RPtoRFX_CarrierAppointmentSlotUpdatedByNumber.ftl b/RPtoRFX_CarrierAppointmentSlotUpdatedByNumber.ftl index d362dfe..cc16421 100644 --- a/RPtoRFX_CarrierAppointmentSlotUpdatedByNumber.ftl +++ b/RPtoRFX_CarrierAppointmentSlotUpdatedByNumber.ftl @@ -1,5 +1,5 @@ { - "id" : {"refid" : "${eventRP.refid?json_string}"}, + "id" : {"refid" : "${eventRP.refid?json_string}","actorID":"${RPtoRFXprefixDepot(eventRP.actor)}"}, "route" : "rest/public/v1/physical_depots/{physical_depot_code}/appointment_years/{appointment_year}/appointment_numbers/{appointment_number}", "method" : "PUT", "uri_substitutions": { diff --git a/RPtoRFX_CarrierAppointmentSlotUpdatedByRef.ftl b/RPtoRFX_CarrierAppointmentSlotUpdatedByRef.ftl index 49b4579..84ad5eb 100644 --- a/RPtoRFX_CarrierAppointmentSlotUpdatedByRef.ftl +++ b/RPtoRFX_CarrierAppointmentSlotUpdatedByRef.ftl @@ -1,5 +1,5 @@ { - "id" : {"refid" : "${eventRP.refid?json_string}"}, + "id" : {"refid" : "${eventRP.refid?json_string}","actorID":"${RPtoRFXprefixDepot(eventRP.actor)}"}, "route" : "rest/public/v1/physical_depots/{physical_depot_code}/carrier_appointments/{appointment_reference}", "method" : "PUT", "uri_substitutions": { From 8d5dafdeb5c28511f7108c2bc104a083c8d3bf6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20LE=20MA=C3=8ETRE?= Date: Thu, 8 Jan 2026 08:52:16 +0100 Subject: [PATCH 13/13] Release 1.2.53+1 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index fc83bb1..89aea25 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.52+2 +1.2.53+1