masterDataService

getMasterData

  • Handles the master data logic. Downloads new master data in case there is no database existing in the device, or updates the existing database in case there is a database existing for the store the user checks in.
Method Description
Request getMasterData
  • storeNumber: String → the business unit id
Response
  • finished: boolean

deleteDatabase

  • deletes the master data database.

returns nothing

getAdditionalInformation

  • gets the additional information of an item.
Method Description
Request getAdditionalInformation
  • storeNumber: String → the business unit id
  • businessUnitGroupId: String → the business unit group id
  • itemId: String → the id of the item
  • uomCode: String → the unit of measure code of the item
  • languageId: String → the language id
Response
  • AdditionalInformationSO

masterDataAvailableAndHaveEntries

  • checks if the master data database is available on the device and has entries.

returns Boolean

getItemByPosIdentity

  • returns a list of items from the master data database using posItemId
Method Description
Request getItemByPosIdentity
  • posIdentity: String → the pos identity of the item
Response
  • List<SimplifiedMasterDataItem>

getBundleItems

  • returns the bundle items from the master data database for a specific itemId
Method Description
Request getBundleItems
  • itemId: String → the id of the item
  • uomCode: String → the unit of measure code of the item
Response
  • List<SimplifiedMasterDataItem>

getSimpleItem

  • returns a list of items from the master data database using itemId and uomCode
Method Description
Request getSimpleItem
  • itemId: String → the id of the item
  • uomCode: String → the unit of measure code of the item
Response
  • List<SimplifiedMasterDataItem>

getMasterDataItemByString

  • returns a list of items from the master data database using a search string
Method Description
Request getMasterDataItemByString
  • searchString: String → the string to search in database
Response
  • List<SimplifiedMasterDataItem>

getMasterDataItem

  • returns a list of items from the master data database using itemId
Method Description
Request getMasterDataItem
  • itemId: String → the id of the item
Response
  • List<SimplifiedMasterDataItem>