Members
ids
get shopID's map
- Source:
names
get shopName's map
- Source:
Methods
(static) isNumber(val) → {boolean}
check if the supplied value is number
Parameters:
Name | Type | Description |
---|---|---|
val |
* |
- Source:
Returns:
isNumber
- Type
- boolean
(async) getId(name, fetch) → {Promise.<(Map.<string, number>|number|undefined)>}
call to static load method from instance
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
fetch |
- Source:
Returns:
- Type
- Promise.<(Map.<string, number>|number|undefined)>
(async) getIdName(idOrName, fetch) → {Object}
get <shopID, shopName> tuple from either shopID or shopName
Parameters:
Name | Type | Description |
---|---|---|
idOrName |
number | string | |
fetch |
- Source:
Returns:
- Type
- Object
(async) getName(id, fetch) → {Promise.<string>}
call to static load method from instance
Parameters:
Name | Type | Description |
---|---|---|
id |
number | |
fetch |
- Source:
Returns:
shopName
- Type
- Promise.<string>
(async) load() → {Promise.<ShopIdService>}
call to static load method from instance
- Source:
Returns:
- Type
- Promise.<ShopIdService>