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