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
//! Model struct for UpsertCustomerCustomAttributeRequest type

use super::CustomAttribute;
use serde::Serialize;

/// Represents the request body for the UpsertCustomerCustomAttribute endpoint.
#[derive(Clone, Debug, Serialize, Eq, PartialEq)]
pub struct UpsertCustomerCustomAttributeRequest {
    /// The custom attribute to create or update.
    /// - `value`: Must conform to the schema specified by the definition.
    /// - `version`: Optional, used for optimistic concurrency control.
    pub custom_attribute: CustomAttribute,
    /// A unique identifier for this request, used to ensure idempotency.
    /// Max length: 45 characters.
    pub idempotency_key: Option<String>,
}