square_api_client/models/
batch_retrieve_inventory_counts_request.rs

1//! Model struct for BatchRetrieveInventoryCountsRequest type
2
3use serde::{Deserialize, Serialize};
4
5use super::enums::InventoryState;
6
7/// This is a model struct for BatchRetrieveInventoryCountsRequest type.
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
9pub struct BatchRetrieveInventoryCountsRequest {
10    /// The filter to return results by CatalogObject ID. The filter is applicable only when set
11    pub catalog_object_ids: Option<Vec<String>>,
12    /// The filter to return results by Location ID. This filter is applicable only when set.
13    pub location_ids: Option<Vec<String>>,
14    /// The filter to return results with their calculated_at value after the given time.
15    pub updated_after: String,
16    /// A pagination cursor returned by a previous call to this endpoint.
17    /// Provide this to retrieve the next set of results for the original query.
18    pub cursor: String,
19    /// The filter to return results by InventoryState.
20    /// The filter is only applicable when set. Ignored are untracked states of NONE, SOLD, and UNLINKED_RETURN.
21    /// The default is null.
22    pub states: Vec<InventoryState>,
23}