Skip to content

Unit

The Unit object represents information about the units of quantity available in the storefront.

classDiagram
  direction LR
  class Unit{
    int id
    string name
    bool isFloatingPoint
  }

Properties

Attribute name Type Description
id int The unique identifier of the unit.
name string The localized name of the unit.
isFloatingPoint bool Whether the unit is floating-point

Examples

id property

{{ unit.id }}
1

name property

{{ unit.name }}
kg

isFloatingPoint property

{{ unit.isFloatingPoint }}
true