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
sourceimpl Clone for ItemVariationLocationOverrides
impl Clone for ItemVariationLocationOverrides
sourcefn clone(&self) -> ItemVariationLocationOverrides
fn clone(&self) -> ItemVariationLocationOverrides
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Default for ItemVariationLocationOverrides
impl Default for ItemVariationLocationOverrides
sourcefn default() -> ItemVariationLocationOverrides
fn default() -> ItemVariationLocationOverrides
sourceimpl<'de> Deserialize<'de> for ItemVariationLocationOverrides
impl<'de> Deserialize<'de> for ItemVariationLocationOverrides
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
sourceimpl PartialEq<ItemVariationLocationOverrides> for ItemVariationLocationOverrides
impl PartialEq<ItemVariationLocationOverrides> for ItemVariationLocationOverrides
sourcefn eq(&self, other: &ItemVariationLocationOverrides) -> bool
fn eq(&self, other: &ItemVariationLocationOverrides) -> bool
impl Eq for ItemVariationLocationOverrides
impl StructuralEq for ItemVariationLocationOverrides
impl StructuralPartialEq for ItemVariationLocationOverrides
Auto Trait Implementations
impl RefUnwindSafe for ItemVariationLocationOverrides
impl Send for ItemVariationLocationOverrides
impl Sync for ItemVariationLocationOverrides
impl Unpin for ItemVariationLocationOverrides
impl UnwindSafe for ItemVariationLocationOverrides
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.