Guest User

Untitled

a guest
Apr 4th, 2025
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. {{! ExtractPostallAddress / CheckPostalAddress equivalence:
  2. "name": "ToName"
  3. "name2": "ToSub"
  4. "street": "ToMail"
  5. "district": "ToPOBox"
  6. "firstLines": "ToName\nToSub\nToMail\nToPOBox"
  7. }}
  8. {{#withExtractPostalAddress address country}}
  9. {{#if @isFlow2}}
  10. {{#if street}}
  11. <cbc:StreetName>{{street}}</cbc:StreetName>
  12. {{/if}}
  13. {{#if name2}}
  14. <cbc:AdditionalStreetName>{{name2}}</cbc:AdditionalStreetName>
  15. {{/if}}
  16. {{/if}}
  17. <cbc:CityName>{{city}}</cbc:CityName>
  18. <cbc:PostalZone>{{zipcode}}</cbc:PostalZone>
  19. {{#if (and district @isFlow2)}}
  20. <cac:AddressLine>
  21. <cbc:Line>{{district}}</cbc:Line>
  22. </cac:AddressLine>
  23. {{/if}}
  24. <cac:Country>
  25. <cbc:IdentificationCode>{{country}}</cbc:IdentificationCode>
  26. </cac:Country>
  27. {{/withExtractPostalAddress}}
Advertisement
Add Comment
Please, Sign In to add comment