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

use crate::models::BulkCreateCustomerData;
use serde::Serialize;
use std::collections::HashMap;

/// This is a model struct for BulkCreateCustomersRequest type
#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize)]
pub struct BulkCreateCustomersRequest {
    /// A map of 1 to 100 individual create requests, represented by idempotency key: { customer data } key-value pairs.
    ///
    /// Each key is an idempotency key that uniquely identifies the create request. Each value
    /// contains the customer data used to create the customer profile.
    pub customers: HashMap<String, BulkCreateCustomerData>,
}