square_api_client/models/
clone_order_request.rs

1//! Model struct for CloneOrderRequest type
2
3use serde::Serialize;
4
5/// This is a model struct for CloneOrderRequest type.
6#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize)]
7pub struct CloneOrderRequest {
8    /// The ID of the order to clone.
9    pub order_id: String,
10    /// An optional order version for concurrency protection.
11    ///
12    /// If a version is provided, it must match the latest stored version of the order to clone. If
13    /// a version is not provided, the API clones the latest version.
14    pub version: Option<i32>,
15    /// A value you specify that uniquely identifies this clone request.
16    ///
17    /// If you are unsure whether a particular order was cloned successfully, you can reattempt the
18    /// call with the same idempotency key without worrying about creating duplicate cloned orders.
19    /// The originally cloned order is returned.
20    ///
21    /// For more information, see
22    /// [Idempotency](https://developer.squareup.com/docs/basics/api101/idempotency).
23    pub idempotency_key: Option<String>,
24}