pub struct ItemVariationLocationOverrides {
    pub location_id: Option<String>,
    pub price_money: Option<Money>,
    pub pricing_type: Option<CatalogPricingType>,
    pub track_inventory: Option<bool>,
    pub inventory_alert_type: Option<InventoryAlertType>,
    pub inventory_alert_threshold: Option<i64>,
    pub sold_out: Option<bool>,
    pub sold_out_valid_until: Option<DateTime>,
}
Expand description

Price and inventory alerting overrides for a CatalogItemVariation at a specific Location.

Fields

location_id: Option<String>

The ID of the Location. This can include locations that are deactivated.

price_money: Option<Money>

The price of the CatalogItemVariation at the given Location, or blank for variable pricing.

pricing_type: Option<CatalogPricingType>

The pricing type (fixed or variable) for the CatalogItemVariation at the given Location.

track_inventory: Option<bool>

If true, inventory tracking is active for the CatalogItemVariation at this Location.

inventory_alert_type: Option<InventoryAlertType>

Indicates whether the CatalogItemVariation displays an alert when its inventory quantity is less than or equal to its inventory_alert_threshold.

inventory_alert_threshold: Option<i64>

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.

sold_out: Option<bool>

Read only Indicates whether the overridden item variation is sold out at the specified location.

When inventory tracking is enabled on the item variation either globally or at the specified location, the item variation is automatically marked as sold out when its inventory count reaches zero. The seller can manually set the item variation as sold out even when the inventory count is greater than zero. Attempts by an application to set this attribute are ignored. Regardless how the sold-out status is set, applications should treat its inventory count as zero when this attribute value is true.

sold_out_valid_until: Option<DateTime>

Read only The seller-assigned timestamp to indicate when this sold-out variation becomes available again at the specified location. Attempts by an application to set this attribute are ignored. When the current time is later than this attribute value, the affected item variation is no longer sold out.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more