You've already forked reflex-wms-connector
structured adress on actors
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user