squareup/models/
batch_upsert_catalog_objects_response.rs

1//! Response struct for the Batch Upsert Catalog Objects API
2
3use serde::Deserialize;
4
5use super::{CatalogIdMapping, CatalogObject, DateTime, errors::Error};
6
7/// This is a model struct for BatchUpsertCatalogObjectsResponse type.
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
9pub struct BatchUpsertCatalogObjectsResponse {
10    /// The created successfully created CatalogObjects.
11    pub objects: Option<Vec<CatalogObject>>,
12    /// The database timestamp of this update.
13    pub updated_at: Option<DateTime>,
14    /// The mapping between client and server IDs for this upsert.
15    pub id_mappings: Option<Vec<CatalogIdMapping>>,
16    /// Any errors that occurred during the request.
17    pub errors: Option<Vec<Error>>,
18}