Skip to main content

autogen_squareup/models/
bulk_delete_location_custom_attributes_request.rs

1/*
2 * Square
3 *
4 * Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.
5 *
6 * The version of the OpenAPI document: 2.0
7 * Contact: developers@squareup.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// BulkDeleteLocationCustomAttributesRequest : Represents a [BulkDeleteLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkDeleteLocationCustomAttributes) request.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BulkDeleteLocationCustomAttributesRequest {
17    /// The data used to update the `CustomAttribute` objects. The keys must be unique and are used to map to the corresponding response.
18    #[serde(rename = "values")]
19    pub values: std::collections::HashMap<String, models::BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest>,
20}
21
22impl BulkDeleteLocationCustomAttributesRequest {
23    /// Represents a [BulkDeleteLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkDeleteLocationCustomAttributes) request.
24    pub fn new(values: std::collections::HashMap<String, models::BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest>) -> BulkDeleteLocationCustomAttributesRequest {
25        BulkDeleteLocationCustomAttributesRequest {
26            values,
27        }
28    }
29}
30