Skip to main content

autogen_squareup/models/
bulk_delete_order_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/// BulkDeleteOrderCustomAttributesRequest : Represents a bulk delete request for one or more order custom attributes.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BulkDeleteOrderCustomAttributesRequest {
17    /// A map of requests that correspond to individual delete operations for custom attributes.
18    #[serde(rename = "values")]
19    pub values: std::collections::HashMap<String, models::BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute>,
20}
21
22impl BulkDeleteOrderCustomAttributesRequest {
23    /// Represents a bulk delete request for one or more order custom attributes.
24    pub fn new(values: std::collections::HashMap<String, models::BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute>) -> BulkDeleteOrderCustomAttributesRequest {
25        BulkDeleteOrderCustomAttributesRequest {
26            values,
27        }
28    }
29}
30