management of double quote in actors addresses

This commit is contained in:
Laure Pascal 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": "${carrier.carrier_designation}",
"Name": "${carrier.carrier_designation?json_string}",
"ManagedStock": false,
"IsCarrier": true,
<#-- ***Partner ID could be added here *** -->
@ -24,26 +24,26 @@
<#-- 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}"
"Name": "${carrier.carrier_structured_address.name_or_company?json_string}",
"StreetAddressOne" : "${carrier.carrier_structured_address.street_and_PO?json_string}",
"StreetAddressTwo" : "${carrier.carrier_structured_address.additionnal_data?json_string}",
"PostalCode" : "${carrier.carrier_structured_address.postal_code?json_string}",
"City" : "${carrier.carrier_structured_address.post_code_area_name?json_string}",
"CountryCode" : "${carrier.carrier_structured_address.country_code?json_string}",
"ProvinceCode": "${carrier.carrier_structured_address.territorial_div_code?json_string}",
"State": "${carrier.carrier_structured_address.country_designation?json_string}"
<#-- 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}"
"Name": "${carrier.address.company_name?json_string}",
"StreetAddressOne" : "${carrier.address.address_1?json_string}",
"StreetAddressTwo" : "${carrier.address.address_2?json_string}",
"StreetAddressThree" : "${carrier.address.address_3?json_string}"
</#if>
},
"Phones": ["${carrier.address.telephone}",
"${carrier.address.other_number}"
"Phones": ["${carrier.address.telephone?json_string}",
"${carrier.address.other_number?json_string}"
],
"Typology": "TYPOLOGY_CARRIER"
}

View File

@ -8,7 +8,7 @@
},
"Payload": {
"Name": "${actor.designation}",
"Name": "${actor.designation?json_string}",
"ManagedStock": false,
"IsCarrier": false,
<#-- ***Partner ID could be added here *** -->
@ -24,28 +24,28 @@
<#-- if Reflex WMS is structured -->
<#if actor.consignee_structured_address??>
"Name": "${actor.consignee_structured_address.name_or_company}",
"StreetAddressOne" : "${actor.consignee_structured_address.street_and_PO}",
"StreetAddressTwo" : "${actor.consignee_structured_address.additionnal_data}",
"PostalCode" : "${actor.consignee_structured_address.postal_code}",
"City" : "${actor.consignee_structured_address.post_code_area_name}",
"CountryCode" : "${actor.consignee_structured_address.country_code}",
"ProvinceCode": "${actor.consignee_structured_address.territorial_div_code}",
"State": "${actor.consignee_structured_address.country_designation}"
"Name": "${actor.consignee_structured_address.name_or_company?json_string}",
"StreetAddressOne" : "${actor.consignee_structured_address.street_and_PO?json_string}",
"StreetAddressTwo" : "${actor.consignee_structured_address.additionnal_data?json_string}",
"PostalCode" : "${actor.consignee_structured_address.postal_code?json_string}",
"City" : "${actor.consignee_structured_address.post_code_area_name?json_string}",
"CountryCode" : "${actor.consignee_structured_address.country_code?json_string}",
"ProvinceCode": "${actor.consignee_structured_address.territorial_div_code?json_string}",
"State": "${actor.consignee_structured_address.country_designation?json_string}"
<#-- if Reflex WMS is not structured -->
<#else>
"Name": "${actor.address.company_name}",
"StreetAddressOne" : "${actor.address.address_1}",
"StreetAddressTwo" : "${actor.address.address_2}",
"StreetAddressThree" : "${actor.address.address_3}"
"Name": "${actor.address.company_name?json_string}",
"StreetAddressOne" : "${actor.address.address_1?json_string}",
"StreetAddressTwo" : "${actor.address.address_2?json_string}",
"StreetAddressThree" : "${actor.address.address_3?json_string}"
</#if>
},
"Phones": ["${actor.address.telephone}",
"${actor.address.other_number}"
"Phones": ["${actor.address.telephone?json_string}",
"${actor.address.other_number?json_string}"
],
"Typology": "TYPOLOGY_UNKNOWN"
}

View File

@ -8,7 +8,7 @@
},
"Payload": {
"Name": "${actor.designation}",
"Name": "${actor.designation?json_string}",
"ManagedStock": false,
"IsCarrier": false,
<#-- ***Partner ID could be added here *** -->
@ -23,26 +23,26 @@
<#-- if Reflex WMS address is structured -->
<#if actor.supplier_structured_address?? >
"Name": "${actor.supplier_structured_address.name_or_company}",
"StreetAddressOne" : "${actor.supplier_structured_address.street_and_PO}",
"StreetAddressTwo" : "${actor.supplier_structured_address.additionnal_data}",
"PostalCode" : "${actor.supplier_structured_address.postal_code}",
"City" : "${actor.supplier_structured_address.post_code_area_name}",
"CountryCode" : "${actor.supplier_structured_address.country_code}",
"ProvinceCode": "${actor.supplier_structured_address.territorial_div_code}",
"State": "${actor.supplier_structured_address.country_designation}"
"Name": "${actor.supplier_structured_address.name_or_company?json_string}",
"StreetAddressOne" : "${actor.supplier_structured_address.street_and_PO?json_string}",
"StreetAddressTwo" : "${actor.supplier_structured_address.additionnal_data?json_string}",
"PostalCode" : "${actor.supplier_structured_address.postal_code?json_string}",
"City" : "${actor.supplier_structured_address.post_code_area_name?json_string}",
"CountryCode" : "${actor.supplier_structured_address.country_code?json_string}",
"ProvinceCode": "${actor.supplier_structured_address.territorial_div_code?json_string}",
"State": "${actor.supplier_structured_address.country_designation?json_string}"
<#-- if Reflex WMS address is not structured -->
<#else>
"Name": "${actor.optional_attributes.company_name}",
"StreetAddressOne" : "${actor.optional_attributes.address_1}",
"StreetAddressTwo" : "${actor.optional_attributes.address_2}",
"StreetAddressThree" : "${actor.optional_attributes.address_3}"
"Name": "${actor.optional_attributes.company_name?json_string}",
"StreetAddressOne" : "${actor.optional_attributes.address_1?json_string}",
"StreetAddressTwo" : "${actor.optional_attributes.address_2?json_string}",
"StreetAddressThree" : "${actor.optional_attributes.address_3?json_string}"
</#if>
},
"Phones": ["${actor.optional_attributes.telephone}",
"${actor.optional_attributes.other_number}"
"Phones": ["${actor.optional_attributes.telephone?json_string}",
"${actor.optional_attributes.other_number?json_string}"
],
"Typology": "TYPOLOGY_UNKNOWN"
}

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"
}