web / UseAggregatedCountries
Interface: UseAggregatedCountries ​
Defined in: apps/web/app/composables/useAggregatedCountries/types.ts:18
Properties ​
billingCountries ​
billingCountries:
ComputedRef<(ActiveShippingCountry|GeoRegulatedCountry)[]>
Defined in: apps/web/app/composables/useAggregatedCountries/types.ts:25
default ​
default:
Readonly<Ref<UseAggregatedCountriesState["default"]>>
Defined in: apps/web/app/composables/useAggregatedCountries/types.ts:19
fetchAggregatedCountries ​
fetchAggregatedCountries:
FetchAggregatedCountries
Defined in: apps/web/app/composables/useAggregatedCountries/types.ts:22
geoRegulated ​
geoRegulated:
Readonly<Ref<UseAggregatedCountriesState["geoRegulated"]>>
Defined in: apps/web/app/composables/useAggregatedCountries/types.ts:20
getCountryIsoCode() ​
getCountryIsoCode: (
countryId) =>string
Defined in: apps/web/app/composables/useAggregatedCountries/types.ts:29
Parameters ​
countryId ​
string
Returns ​
string
getCountryZipCodeRegex() ​
getCountryZipCodeRegex: (
countryId,type) =>RegExp|null
Defined in: apps/web/app/composables/useAggregatedCountries/types.ts:27
Parameters ​
countryId ​
number
type ​
AddressType
Returns ​
RegExp | null
loading ​
loading:
Readonly<Ref<boolean>>
Defined in: apps/web/app/composables/useAggregatedCountries/types.ts:21
localeCountryName() ​
localeCountryName: (
countryId) =>string
Defined in: apps/web/app/composables/useAggregatedCountries/types.ts:26
Parameters ​
countryId ​
string
Returns ​
string
setCountries ​
setCountries:
SetCountries
Defined in: apps/web/app/composables/useAggregatedCountries/types.ts:23
useGeoRegulatedCountries ​
useGeoRegulatedCountries:
boolean
Defined in: apps/web/app/composables/useAggregatedCountries/types.ts:24
Methods ​
parseZipCodeRegex() ​
parseZipCodeRegex(
country):RegExp|null
Defined in: apps/web/app/composables/useAggregatedCountries/types.ts:28
Parameters ​
country ​
ActiveShippingCountry | GeoRegulatedCountry
Returns ​
RegExp | null