We are currently using the shopify/worldwide TS package - specifically the `splitAddress1` function, to determine whether, for countries that use additional address fields, all required fields have been filled out.
For example, in Germany, the additional fields are Street Name and Building Number. At checkout, these two values are concatenated into address1, and the package allows us to detect whether both have been provided.
Because we’re building an address validation app, we rely on this information to know when we should trigger validation. Our goal is to validate only once the customer has entered a complete address (i.e., all expected fields are filled).
The problem arises when a merchant’s checkout does not expose these additional fields. In those cases, our logic assumes the address is incomplete - since “Building Number” appears to be missing - without knowing that the checkout simply doesn’t include that field at all.
With this in mind: Is there a way for us to programmatically determine whether a particular checkout supports these additional address fields or not? It doesn’t appear to be something merchants can configure, and we haven’t found a clear way to detect it?