structured adress on actors

This commit is contained in:
2023-09-13 12:06:06 +02:00
parent d81489d59f
commit da36927874
4 changed files with 91 additions and 40 deletions

View File

@@ -17,19 +17,32 @@
<#--
<#include "RFXtoRP_HsaCarrier_ActorCreated_Metadata.ftl">,
-->
"Address":
{
"Name": "${carrier.carrier_structured_address.name_or_company}",
"StreetAddressOne" : "${carrier.carrier_structured_address.street_and_PO}",
"StreetAddressTwo" : "${carrier.carrier_structured_address.additionnal_data}",
"PostalCode" : "${carrier.carrier_structured_address.postal_code}",
"City" : "${carrier.carrier_structured_address.post_code_area_name}",
"CountryCode" : "${carrier.carrier_structured_address.country_code}",
"ProvinceCode": "${carrier.carrier_structured_address.territorial_div_code}",
"State": "${carrier.carrier_structured_address.country_designation}"
<#-- if Reflex WMS address is structured -->
<#if carrier.carrier_structured_address?? >
"Name": "${carrier.carrier_structured_address.name_or_company}",
"StreetAddressOne" : "${carrier.carrier_structured_address.street_and_PO}",
"StreetAddressTwo" : "${carrier.carrier_structured_address.additionnal_data}",
"PostalCode" : "${carrier.carrier_structured_address.postal_code}",
"City" : "${carrier.carrier_structured_address.post_code_area_name}",
"CountryCode" : "${carrier.carrier_structured_address.country_code}",
"ProvinceCode": "${carrier.carrier_structured_address.territorial_div_code}",
"State": "${carrier.carrier_structured_address.country_designation}"
<#-- if Reflex WMS address is not structured -->
<#else>
"Name": "${carrier.address.company_name}",
"StreetAddressOne" : "${carrier.address.address_1}",
"StreetAddressTwo" : "${carrier.address.address_2}",
"StreetAddressThree" : "${carrier.address.address_3}"
</#if>
},
"Phones": ["${carrier.address.telephone}",
"Phones": ["${carrier.address.telephone}",
"${carrier.address.other_number}"
],
"Typology": "TYPOLOGY_CARRIER"