Skip to main content

Products

getCatalogueById

Get the catalogue by its id

Arguments

  • id: int the id of the catalogue

Return CatalogueListElement

local catalogue = getCatalogueById(id)

getCatalogues

Get the catalogues

Return List of CatalogueListElement

local catalogues = getCatalogues()

getCataloguesIds

Get the ids of the catalogues

Return List of int

local cataloguesIds = getCataloguesIds()

getProductByUuid

Get the product by its uuid

Arguments

  • uuid: UuidValue the uuid of the product

Return MobileProduct

local product = getProductByUuid(uuid)

getProductByUuidAndCatalogueId

Get the product by its uuid and catalogue id

Arguments

  • uuid: UuidValue the uuid of the product
  • catalogueId: int the id of the catalogue

Return MobileProductAndCatalogue

local product = getProductByUuidAndCatalogueId(uuid, catalogueId)

getProductTaxesByUuid

Get the product taxes by their uuid

Arguments

  • uuid: UuidValue the uuid of the product

Return List of ProductTax

local taxes = getProductTaxesByUuid(uuid)

getProductUuidsByCampaignId

Get the product uuids by their campaign id

Arguments

  • id: int the id of the campaign

Return List of UuidValue

local uuids = getProductUuidsByCampaignId(id)

getProducts

Get the products

Return List of ProductListElement

local products = getProducts()

getProductsByCampaignId

Get the products by their campaign id

Arguments

  • id: int the id of the campaign

Return List of MobileProduct

local products = getProductsByCampaignId(id)

getProductsByCatalogId

Get all products by their catalogue id

Arguments

  • id: int the id of the catalogue

Return List of UuidValue

local uuids = getProductsByCatalogId(id)

openProductDetails

Open the product details

Arguments

  • uuid: UuidValue the uuid of the product

Return void

openProductDetails(uuid)

Table

Function NameDescriptionFirst ArgumentSecond ArgumentReturn
getCatalogueByIdGet the catalogue by its idid: the id of the catalogueCatalogueListElement
getCataloguesGet the cataloguesList of CatalogueListElement
getCataloguesIdsGet the ids of the cataloguesList of int
getProductByUuidGet the product by its uuiduuid: the uuid of the productMobileProduct
getProductByUuidAndCatalogueIdGet the product by its uuid and catalogue iduuid: the uuid of the productcatalogueId: the id of the catalogueMobileProductAndCatalogue
getProductTaxesByUuidGet the product taxes by their uuiduuid: the uuid of the productList of ProductTax
getProductUuidsByCampaignIdGet the product uuids by their campaign idid: the id of the campaignList of UuidValue
getProductsGet the productsList of MobileProduct
getProductsByCampaignIdGet the products by their campaign idid: the id of the campaignList of MobileProduct
getProductsByCatalogIdGet all products by their catalogue idid: the id of the catalogueList of UuidValue
openProductDetailsOpen the product detailsuuid: the uuid of the productvoid