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 Name | Description | First Argument | Second Argument | Return |
---|---|---|---|---|
getCatalogueById | Get the catalogue by its id | id: the id of the catalogue | CatalogueListElement | |
getCatalogues | Get the catalogues | List of CatalogueListElement | ||
getCataloguesIds | Get the ids of the catalogues | List of int | ||
getProductByUuid | Get the product by its uuid | uuid: the uuid of the product | MobileProduct | |
getProductByUuidAndCatalogueId | Get the product by its uuid and catalogue id | uuid: the uuid of the product | catalogueId: the id of the catalogue | MobileProductAndCatalogue |
getProductTaxesByUuid | Get the product taxes by their uuid | uuid: the uuid of the product | List of ProductTax | |
getProductUuidsByCampaignId | Get the product uuids by their campaign id | id: the id of the campaign | List of UuidValue | |
getProducts | Get the products | List of MobileProduct | ||
getProductsByCampaignId | Get the products by their campaign id | id: the id of the campaign | List of MobileProduct | |
getProductsByCatalogId | Get all products by their catalogue id | id: the id of the catalogue | List of UuidValue | |
openProductDetails | Open the product details | uuid: the uuid of the product | void |