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