square_api_client/models/pay_order_request.rs
1//! Model struct for PayOrderRequest type
2
3use serde::Serialize;
4
5/// This is a model struct for PayOrderRequest type
6#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize)]
7pub struct PayOrderRequest {
8 /// A value you specify that uniquely identifies this request among requests you have sent. If
9 /// you are unsure whether a particular payment request was completed successfully, you can
10 /// reattempt it with the same idempotency key without worrying about duplicate payments.
11 ///
12 /// For more information, see
13 /// [Idempotency](https://developer.squareup.com/docs/basics/api101/idempotency).
14 pub idempotency_key: String,
15 /// The version of the order being paid. If not supplied, the latest version will be paid.
16 pub order_version: Option<i32>,
17 /// The IDs of the [Payment]s to collect. The payment total must match the order total.
18 pub payment_ids: Option<Vec<String>>,
19}