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§
Source§impl Clone for ItemVariationLocationOverrides
impl Clone for ItemVariationLocationOverrides
Source§fn clone(&self) -> ItemVariationLocationOverrides
fn clone(&self) -> ItemVariationLocationOverrides
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for ItemVariationLocationOverrides
impl Default for ItemVariationLocationOverrides
Source§fn default() -> ItemVariationLocationOverrides
fn default() -> ItemVariationLocationOverrides
Source§impl<'de> Deserialize<'de> for ItemVariationLocationOverrides
impl<'de> Deserialize<'de> for ItemVariationLocationOverrides
Source§fn 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>,
Source§impl PartialEq for ItemVariationLocationOverrides
impl PartialEq for ItemVariationLocationOverrides
Source§fn eq(&self, other: &ItemVariationLocationOverrides) -> bool
fn eq(&self, other: &ItemVariationLocationOverrides) -> bool
self
and other
values to be equal, and is used by ==
.impl Eq for ItemVariationLocationOverrides
impl StructuralPartialEq for ItemVariationLocationOverrides
Auto Trait Implementations§
impl Freeze for ItemVariationLocationOverrides
impl RefUnwindSafe for ItemVariationLocationOverrides
impl Send for ItemVariationLocationOverrides
impl Sync for ItemVariationLocationOverrides
impl Unpin for ItemVariationLocationOverrides
impl UnwindSafe for ItemVariationLocationOverrides
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.