@plentymarkets/shop-api / countryGetters
Variable: countryGetters ​
const
countryGetters:object
Type declaration ​
getCountryById() ​
getCountryById: (
countries
,countryId
) =>Country
|null
Parameters ​
• countries: Country
[]
• countryId: string
Returns ​
Country
| null
getCountryId() ​
getCountryId: (
country
) =>string
Parameters ​
• country: Country
Returns ​
string
getCountryIsoCode() ​
getCountryIsoCode: (
country
) =>string
Parameters ​
• country: Country
Returns ​
string
getCountryName() ​
getCountryName: (
country
) =>string
Parameters ​
• country: Country
Returns ​
string
getStateById() ​
getStateById: (
country
,stateId
) =>State
|null
Parameters ​
• country: Country
• stateId: string
Returns ​
State
| null
getStateId() ​
getStateId: (
state
) =>string
Parameters ​
• state: State
Returns ​
string
getStateName() ​
getStateName: (
state
) =>string
Parameters ​
• state: State
Returns ​
string
getStates() ​
getStates: (
country
) =>State
[]
Parameters ​
• country: Country
Returns ​
State
[]