Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 2.32 KB

V1Variation.md

File metadata and controls

21 lines (17 loc) · 2.32 KB

V1Variation

Properties

Name Getter Setter Type Description Notes
id getId() setId($value) string The item variation's unique ID. [optional]
name getName() setName($value) string The item variation's name. [optional]
item_id getItemId() setItemId($value) string The ID of the variation's associated item. [optional]
ordinal getOrdinal() setOrdinal($value) int Indicates the variation's list position when displayed in Square Register and the merchant dashboard. If more than one variation for the same item has the same ordinal value, those variations are displayed in alphabetical order [optional]
pricing_type getPricingType() setPricingType($value) string Indicates whether the item variation's price is fixed or determined at the time of sale. [optional]
price_money getPriceMoney() setPriceMoney($value) \SquareConnect\Model\V1Money The item variation's price, if any. [optional]
sku getSku() setSku($value) string The item variation's SKU, if any. [optional]
track_inventory getTrackInventory() setTrackInventory($value) bool If true, inventory tracking is active for the variation. [optional]
inventory_alert_type getInventoryAlertType() setInventoryAlertType($value) string Indicates whether the item variation displays an alert when its inventory quantity is less than or equal to its inventory_alert_threshold. [optional]
inventory_alert_threshold getInventoryAlertThreshold() setInventoryAlertThreshold($value) int If the inventory quantity for the variation is less than or equal to this value and inventory_alert_type is LOW_QUANTITY, the variation displays an alert in the merchant dashboard. [optional]
user_data getUserData() setUserData($value) string Arbitrary metadata associated with the variation. Cannot exceed 255 characters. [optional]

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

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