square_api_client/models/
inventory_physical_count.rs

1//! Model struct for InventoryPhysicalCount type
2
3use serde::{Deserialize, Serialize};
4
5use super::{enums::InventoryState, SourceApplication};
6
7/// Represents the quantity of an item variation that is physically present at a specific location,
8/// verified by a seller or a seller's employee.
9#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
10pub struct InventoryPhysicalCount {
11    /// A unique Square-generated ID for the InventoryPhysicalCount.
12    pub id: String,
13    /// The Square-generated ID of the CatalogObject being tracked.
14    pub catalog_object_id: String,
15    /// The type of the CatalogObject being tracked.
16    /// The Inventory API supports setting and reading the "catalog_object_type": "ITEM_VARIATION"
17    /// In addition, it can also read the "catalog_object_type": "ITEM"
18    pub catalog_object_type: String,
19    /// Read only An RFC 3339-formatted timestamp that indicates when the physical count is received.
20    pub created_at: String,
21    /// The Square-generated ID of the Location where the related quantity of items is being tracked.
22    pub location_id: String,
23    ///The number of items affected by the estimated count as a decimal string.
24    pub quantity: String,
25    /// The current inventory state for the related quantity of items.
26    pub state: InventoryState,
27    /// The Square-generated ID of the Employee responsible for the physical count.
28    pub employee_id: String,
29    /// A client-generated RFC 3339-formatted timestamp that indicates when the
30    /// physical count was examined. For physical count updates, the occurred_at timestamp
31    /// cannot be older than 24 hours or in the future relative to the time of the request.
32    pub occurred_at: String,
33    /// An optional ID provided by the application to tie the InventoryPhysicalCount to an external system.
34    pub reference_id: String,
35    /// Read only Information about the application with which the physical count is submitted.
36    pub source: SourceApplication,
37    /// The Square-generated ID of the Team Member responsible for the physical count.
38    pub team_member_id: String,
39}