MeasurementUnit

September 24, 2019 ยท View on GitHub

Description

Represents a unit of measurement to use with a quantity, such as ounces or inches. Exactly one of the following fields are required: custom_unit, area_unit, length_unit, volume_unit, and weight_unit.

Properties

NameGetterSetterTypeDescriptionNotes
custom_unitgetCustomUnit()setCustomUnit($value)\SquareConnect\Model\MeasurementUnitCustomA custom unit of measurement defined by the seller using the Point of Sale app or ad-hoc as an order line item.[optional]
area_unitgetAreaUnit()setAreaUnit($value)stringRepresents a standard area unit. See MeasurementUnitArea for possible values[optional]
length_unitgetLengthUnit()setLengthUnit($value)stringRepresents a standard length unit. See MeasurementUnitLength for possible values[optional]
volume_unitgetVolumeUnit()setVolumeUnit($value)stringRepresents a standard volume unit. See MeasurementUnitVolume for possible values[optional]
weight_unitgetWeightUnit()setWeightUnit($value)stringRepresents a standard unit of weight or mass. See MeasurementUnitWeight for possible values[optional]
generic_unitgetGenericUnit()setGenericUnit($value)stringReserved for API integrations that lack the ability to specify a real measurement unit See MeasurementUnitGeneric for possible values[optional]
time_unitgetTimeUnit()setTimeUnit($value)stringRepresents a standard unit of time. See MeasurementUnitTime for possible values[optional]
typegetType()setType($value)stringRepresents the type of the measurement unit. See MeasurementUnitUnitType for possible values[optional]

Note: All properties are protected and only accessed via getters and setters.

[Back to Model list] [Back to API list] [Back to README]