26 lines
1.2 KiB
Java
26 lines
1.2 KiB
Java
{
|
|
"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[addedCommission.ExecutionflowID].order_number?json_string}"
|
|
}
|
|
<#sep>,</#sep>
|
|
</#list>
|
|
]
|
|
}
|
|
}
|