OneEntry Platform 2.0.1 Help

Product statuses

To create additional filtering conditions for catalog items in Headless CMS OneEntry, the functionality of Product Statuses has been added. In this tab, you can create a status that will serve as an additional filter alongside the existing conditions from attributes.

Kotlin Multiplatform

Get all statuses

val statuses = ProductStatusesService.all( langCode = "en_US" )

Get status

By id

val statusId: Int = //... val status = ProductStatusesService.status( id = statusId, langCode = "en_US" )

By marker

val statusMarker: Int = //... val status = ProductStatusesService.status( marker = statusMarker, langCode = "en_US" )

Validation

val status: ProductStatus = //... val success = status.validate()

Swift

Get all statuses

let statuses = try await ProductStatusesService.shared.all( langCode: "en_US" )

Get status

By id

let statusId: Int = //... let status = ProductStatusesService.shared.status( id: statusId, langCode: "en_US" )

By marker

let statusMarker: Int = //... let status = try await ProductStatusesService.shared.status( marker: statusMarker, langCode: "en_US" )

Validation

let status: ProductStatus = //... let success = try await status.validate()
Last modified: 19 February 2025