square_api_client/models/
order_entry.rs

1//! Model struct for OrderEntry type
2
3use serde::Deserialize;
4
5/// A lightweight description of an [order](Order) that is returned when `returned_entries` is
6/// `true` on a [SearchOrdersRequest].
7#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
8pub struct OrderEntry {
9    /// The ID of the order.
10    pub order_id: String,
11    /// **Read only** The version number, which is incremented each time an update is committed to
12    /// the order. Orders that were not created through the API do not include a version number and
13    /// therefore cannot be updated.
14    ///
15    /// [Read more about working with
16    /// versions.](https://developer.squareup.com/docs/orders-api/manage-orders#update-orders)
17    pub version: i32,
18    /// The location ID the order belongs to.
19    pub location_id: String,
20}