/
model_item_variation_location_overrides.go
25 lines (24 loc) · 1.45 KB
/
model_item_variation_location_overrides.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
* Square Connect API
*
* Client library for accessing the Square Connect APIs
*
* API version: 2.0
* Contact: developers@squareup.com
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package square
// Price and inventory alerting overrides for a `CatalogItemVariation` at a specific `Location`.
type ItemVariationLocationOverrides struct {
// The ID of the `Location`.
LocationId string `json:"location_id,omitempty"`
PriceMoney *Money `json:"price_money,omitempty"`
// The pricing type (fixed or variable) for the `CatalogItemVariation` at the given `Location`. See [CatalogPricingType](#type-catalogpricingtype) for possible values
PricingType string `json:"pricing_type,omitempty"`
// If `true`, inventory tracking is active for the `CatalogItemVariation` at this `Location`.
TrackInventory bool `json:"track_inventory,omitempty"`
// Indicates whether the `CatalogItemVariation` displays an alert when its inventory quantity is less than or equal to its `inventory_alert_threshold`. See [InventoryAlertType](#type-inventoryalerttype) for possible values
InventoryAlertType string `json:"inventory_alert_type,omitempty"`
// 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. This value is always an integer.
InventoryAlertThreshold int64 `json:"inventory_alert_threshold,omitempty"`
}