squareup 2.13.0

Rust SDK for the Square Developer API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Request body struct for the Publish Invoice API

use serde::Serialize;

/// This is a model struct for CreateInvoiceAttachmentRequest type.
#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize)]
pub struct CreateInvoiceAttachmentRequest {
    /// A unique string that identifies the `PublishInvoice` request. If you do not provide
    /// `idempotency_key` (or provide an empty string as the value), the endpoint treats each
    /// request as independent.
    ///
    /// For more information, see
    /// [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency).
    pub idempotency_key: Option<String>,
    /// The description of the attachment to display on the invoice.
    pub description: Option<String>,
}