reflex-wms-connector/RFXtoRP_HsrDepot_ActorCreated.ftl

51 lines
1.9 KiB
Java

[
{
"Header": {
"ProjectID": "${projectRP}"
},
"ID": {
"RefID": "${depot.physical_depot_code}"
},
"Payload": {
"Name": "${depot.physical_depot_designation}",
"ManagedStock": true,
"IsCarrier": false,
<#-- ***Partner ID could be added here *** -->
<#-- "PartnerID": "${}", -->
<#--
<#include "RFXtoRP_HsrDepot_ActorCreated_Metadata.ftl">,
-->
"Address":
{
<#-- if Reflex WMS address is structured -->
<#if depot.physical_depot_structured_address?? >
"Name": "${depot.physical_depot_structured_address.name_or_company}",
"StreetAddressOne" : "${depot.physical_depot_structured_address.street_and_PO}",
"StreetAddressTwo" : "${depot.physical_depot_structured_address.additionnal_data}",
"PostalCode" : "${depot.physical_depot_structured_address.postal_code}",
"City" : "${depot.physical_depot_structured_address.post_code_area_name}",
"CountryCode" : "${depot.physical_depot_structured_address.country_code}",
"ProvinceCode": "${depot.physical_depot_structured_address.territorial_div_code}",
"State": "${depot.physical_depot_structured_address.country_designation}"
<#-- if Reflex WMS address is not structured -->
<#else>
"Name": "${depot.physical-depot_address.company_name}",
"StreetAddressOne" : "${depot.physical-depot_address.address_1}",
"StreetAddressTwo" : "${depot.physical-depot_address.address_2}",
"StreetAddressThree" : "${depot.physical-depot_address.address_3}"
</#if>
},
"Phones": ["${depot.physical-depot_address.telephone}",
"${depot.physical-depot_address.other_number}"
],
"Typology": "TYPOLOGY_UNKNOWN"
}
}
]