square_api_client/models/
batch_change_inventory_request.rs

1//! Model struct for BatchChangeInventoryRequest type
2use serde::Serialize;
3
4use super::InventoryChange;
5
6/// This is a model class for BatchChangeInventoryRequest type.
7#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize)]
8pub struct BatchChangeInventoryRequest {
9    /// A client-supplied, universally unique identifier (UUID) for the request.
10    pub idempotency_key: String,
11    /// The set of physical counts and inventory adjustments to be made.
12    /// Changes are applied based on the client-supplied timestamp and may be sent out of order.
13    pub changes: Option<Vec<InventoryChange>>,
14    /// Indicates whether the current physical count should be ignored if the quantity is unchanged.
15    ///  Default: true.
16    pub ignore_unchanged_count: bool,
17}