Skip to main content

autogen_squareup/models/
delete_catalog_object_response.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct DeleteCatalogObjectResponse {
16    /// Any errors that occurred during the request.
17    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
18    pub errors: Option<Vec<models::Error>>,
19    /// The IDs of all catalog objects deleted by this request. Multiple IDs may be returned when associated objects are also deleted, for example a catalog item variation will be deleted (and its ID included in this field) when its parent catalog item is deleted.
20    #[serde(rename = "deleted_object_ids", skip_serializing_if = "Option::is_none")]
21    pub deleted_object_ids: Option<Vec<String>>,
22    /// The database [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) of this deletion in RFC 3339 format, e.g., `2016-09-04T23:59:33.123Z`.
23    #[serde(rename = "deleted_at", skip_serializing_if = "Option::is_none")]
24    pub deleted_at: Option<String>,
25}
26
27impl DeleteCatalogObjectResponse {
28    pub fn new() -> DeleteCatalogObjectResponse {
29        DeleteCatalogObjectResponse {
30            errors: None,
31            deleted_object_ids: None,
32            deleted_at: None,
33        }
34    }
35}
36