72 lines
2.2 KiB
Java
72 lines
2.2 KiB
Java
{
|
|
"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" :
|
|
{
|
|
<#switch appointment.AppointmentType>
|
|
<#case "APPOINTMENT_TYPE_EXPEDITION">
|
|
|
|
"unloading_appointment" : "false",
|
|
"load_appointment" : "true",
|
|
"planned_load_start_datetime" : "${DateTimeUTCtoRfxLocale(appointment.Slot.StartDateTime,time_zone_rfx)}",
|
|
"planned_load_end_datetime": "${AddSecondsToDatetime(appointment.Slot.StartDateTime?datetime.iso,appointment.Slot.DurationInSeconds?number)?iso_nz(time_zone_rfx)}",
|
|
|
|
<#break>
|
|
|
|
<#case "APPOINTMENT_TYPE_RECEPTION">
|
|
"unloading_appointment" : "true",
|
|
"load_appointment" : "false",
|
|
"planned_unloading_start_datetime" : "${DateTimeUTCtoRfxLocale(appointment.Slot.StartDateTime?iso_nz(time_zone_rfx))}",
|
|
"planned_unloading_end_datetime": "${AddSecondsToDatetime(appointment.Slot.StartDateTime?datetime.iso,appointment.Slot.DurationInSeconds?number)?iso_nz(time_zone_rfx)}",
|
|
<#break>
|
|
<#default>
|
|
<#stop "appointment.AppointmentType not implemented" >
|
|
</#switch>
|
|
|
|
"planned_carrier" : "ABAN", <#-- "${appointment.CarrierName?json_string}", -->
|
|
|
|
<#if appointment.Commissions??>
|
|
"physical_receipt_list": [
|
|
<#list appointment.Commissions as commission>
|
|
<#-- {
|
|
"receipt_activity": "str",
|
|
"originator_code": "string",
|
|
"physical_receipt_reference": "string",
|
|
"receipt_year": 0,
|
|
"receipt_number": 0,
|
|
"comment_list": [
|
|
{
|
|
"line_number": 999,
|
|
"group_code": "str",
|
|
"text": "string"
|
|
}
|
|
]
|
|
|
|
{
|
|
"ProjectID": "recette-rfxdev",
|
|
"OrderID": "SPA-121125-02",
|
|
"Quantities": [
|
|
{
|
|
"UnitID": "PAL",
|
|
"Value": 1.0
|
|
}
|
|
],
|
|
"OrganisationID": "recette",
|
|
"PartnerAppID": "recette-rfxdev-rfxdev",
|
|
"ExecutionflowID": "DPFALIDEPT ALIMSPA-121125-02"
|
|
}
|
|
}
|
|
|
|
<#sep>,</#sep>
|
|
-->
|
|
</#list>
|
|
]
|
|
</#if>
|
|
}
|
|
}
|