1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Request body struct for the Create Customer Group API

/// This is a model struct for CreateCustomerGroupRequest type
use serde::Serialize;

use super::CustomerGroup;

#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize)]
pub struct CreateCustomerGroupRequest {
    /// The idempotency key for the request. For more information, see
    /// [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency).
    pub idempotency_key: Option<String>,
    /// The customer group to create.
    pub group: CustomerGroup,
}