I am creating customer address in Magento 2 programatically.
In few countries the
region_id is required, which can be obtained from the model
\Magento\Directory\Model\Region, for example for
US country and in few countries the
region is required which is a text field, for example for
How to identify if
region_id is required or
region (region_name) is required for the country?