square_api_client/models/upsert_catalog_object_response.rs
1//! Response struct for the Upsert Catalog Object API
2
3use serde::Deserialize;
4
5use super::{errors::Error, CatalogIdMapping, CatalogObject};
6
7/// This is a model struct for UpsertCatalogObjectResponse type.
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
9pub struct UpsertCatalogObjectResponse {
10 /// Any errors that occurred during the request.
11 pub errors: Option<Vec<Error>>,
12 /// The successfully created or updated CatalogObject.
13 pub catalog_object: Option<CatalogObject>,
14 /// The mapping between client and server IDs for this upsert.
15 pub id_mappings: Option<Vec<CatalogIdMapping>>,
16}