management of double quote in actors addresses

This commit is contained in:
2023-09-19 11:12:24 +02:00
parent c21d71a72a
commit c5dbe1f5a6
4 changed files with 60 additions and 60 deletions

View File

@@ -8,7 +8,7 @@
},
"Payload": {
"Name": "${depot.physical_depot_designation}",
"Name": "${depot.physical_depot_designation?json_string}",
"ManagedStock": true,
"IsCarrier": false,
<#-- ***Partner ID could be added here *** -->
@@ -23,26 +23,26 @@
<#-- 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}"
"Name": "${depot.physical_depot_structured_address.name_or_company?json_string}",
"StreetAddressOne" : "${depot.physical_depot_structured_address.street_and_PO?json_string}",
"StreetAddressTwo" : "${depot.physical_depot_structured_address.additionnal_data?json_string}",
"PostalCode" : "${depot.physical_depot_structured_address.postal_code?json_string}",
"City" : "${depot.physical_depot_structured_address.post_code_area_name?json_string}",
"CountryCode" : "${depot.physical_depot_structured_address.country_code?json_string}",
"ProvinceCode": "${depot.physical_depot_structured_address.territorial_div_code?json_string}",
"State": "${depot.physical_depot_structured_address.country_designation?json_string}"
<#-- 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}"
"Name": "${depot.physical_depot_address.company_name?json_string}",
"StreetAddressOne" : "${depot.physical_depot_address.address_1?json_string}",
"StreetAddressTwo" : "${depot.physical_depot_address.address_2?json_string}",
"StreetAddressThree" : "${depot.physical_depot_address.address_3?json_string}"
</#if>
},
"Phones": ["${depot.physical_depot_address.telephone}",
"${depot.physical_depot_address.other_number}"
"Phones": ["${depot.physical_depot_address.telephone?json_string}",
"${depot.physical_depot_address.other_number?json_string}"
],
"Typology": "TYPOLOGY_UNKNOWN"
}