@plentymarkets/shop-api / countryGetters
Variable: countryGetters ​
constcountryGetters:object
Defined in: getters/countryGetters.ts:51
Type Declaration ​
getCountryById ​
getCountryById: (
countries,countryId) =>Country|null
Parameters ​
countries ​
Country[]
countryId ​
string
Returns ​
Country | null
getCountryId ​
getCountryId: (
country) =>string
Parameters ​
country ​
Returns ​
string
getCountryIsoCode ​
getCountryIsoCode: (
country) =>string
Parameters ​
country ​
Returns ​
string
getCountryName ​
getCountryName: (
country) =>string
Parameters ​
country ​
Returns ​
string
getStateById ​
getStateById: (
country,stateId) =>State|null
Parameters ​
country ​
stateId ​
string
Returns ​
State | null
getStateId ​
getStateId: (
state) =>string
Parameters ​
state ​
Returns ​
string
getStateName ​
getStateName: (
state) =>string
Parameters ​
state ​
Returns ​
string
getStates ​
getStates: (
country) =>State[]
Parameters ​
country ​
Returns ​
State[]