<#include "HfRpConfig.ftl"> [ { "Header": { "ProjectID": "${projectRP}" }, "ID": { "RefID": "${lv.item_code?trim?json_string}" }, "Payload": { "LogisticVariants": [ { "LVID": "${lv.logistical_variant_code?json_string}", "Name" : "${lv.lv_type_code?json_string}", <#if lv.id_list?? && (lv.id_list?size == lv.id_list?filter(l ->l??)?size)> "Codes": [ <#list lv.id_list as id> { "Key": "${(id.logistical_variant_ID_type_code!"")?json_string}", "Value": "${(id.logistical_variant_ID_code!"")?json_string}" }<#sep>, ], <#-- LV Metadata inclusion --> <#include "RFXtoRP_HsaItmLv_LogisticVariantUpdated_Metadata.ftl">, "IsBaseLogisticVariant": ${lv.base_lv}, <#if lv.base_lv != "true"> "RefLV": "${lv.subpackaging_lv_code?json_string}", "QuantityInRefLV": ${lv.quantity_in_subpackaging_lv}, "NetWeight": { "Value": ${lv.net_weight}, "Unit": "${weight_unit_rfx}" }, "GrossWeight": { "Value": ${lv.gross_weight}, "Unit": "${weight_unit_rfx}" }, "Volume": { "Value": ${lv.volume}, "Unit": "${volume_unit_rfx}" }, "Height": { "Value": ${lv.height}, "Unit": "${length_unit_rfx}" }, "Width": { "Value": ${lv.width}, "Unit": "${length_unit_rfx}" }, "Length": { "Value": ${lv.depth}, "Unit": "${length_unit_rfx}" }, <#if lv.packaging_lv == "true"> "BranchIDs": ["${lv.logistical_variant_code}"] <#else> "BranchIDs": [] } ] } } ]