RDV
This commit is contained in:
parent
e8551aa698
commit
b0e231a38d
@ -47,6 +47,18 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
<#break>
|
<#break>
|
||||||
|
<#-- *********************************************** Action = SlotUpdated ******************** -->
|
||||||
|
<#case "Canceled">
|
||||||
|
<#assign appointment = eventRP.data />
|
||||||
|
[
|
||||||
|
{
|
||||||
|
<#assign apiRestReflexID = ApiRestReflexID.appointment_put_update>
|
||||||
|
"apiRestReflexID" : "${apiRestReflexID}",
|
||||||
|
"datas" :
|
||||||
|
<#include "RPtoRFX_CarrierAppointmentCanceled.ftl">
|
||||||
|
}
|
||||||
|
]
|
||||||
|
<#break>
|
||||||
<#default>
|
<#default>
|
||||||
<#stop >
|
<#stop >
|
||||||
</#switch>
|
</#switch>
|
||||||
|
|||||||
16
RPtoRFX_CarrierAppointmentCanceled.ftl
Normal file
16
RPtoRFX_CarrierAppointmentCanceled.ftl
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"id" : {"refid" : "${eventRP.refid?json_string}"},
|
||||||
|
"route" : "rest/public/v1/physical_depots/{physical_depot_code}/carrier_appointments/{appointment_reference}",
|
||||||
|
"method" : "PUT",
|
||||||
|
"uri_substitutions": {
|
||||||
|
"physical_depot_code": "${RPtoRFXprefixDepot(eventRP.actor)}",
|
||||||
|
"appointment_reference":"${eventRP.refid?json_string}"
|
||||||
|
},
|
||||||
|
"payload" :
|
||||||
|
{
|
||||||
|
"status": {
|
||||||
|
"status_code": "999",
|
||||||
|
"cancellation_reason_code": "RFT",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user