@plentymarkets/shop-api / countryGetters
Variable: countryGetters ​
const
countryGetters:object
Defined in: getters/countryGetters.ts:51
Type declaration ​
getCountryById() ​
getCountryById: (
countries
,countryId
) =>null
|Country
Parameters ​
countries ​
Country
[]
countryId ​
string
Returns ​
null
| Country
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
) =>null
|State
Parameters ​
country ​
stateId ​
string
Returns ​
null
| State
getStateId() ​
getStateId: (
state
) =>string
Parameters ​
state ​
Returns ​
string
getStateName() ​
getStateName: (
state
) =>string
Parameters ​
state ​
Returns ​
string
getStates() ​
getStates: (
country
) =>State
[]
Parameters ​
country ​
Returns ​
State
[]