/
model_catalog_id_mapping.go
18 lines (17 loc) · 1.21 KB
/
model_catalog_id_mapping.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
* Square Connect API
*
* Client library for accessing the Square Connect APIs
*
* API version: 2.0
* Contact: developers@squareup.com
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package square
// A mapping between a temporary client-supplied ID and a permanent server-generated ID. When calling [UpsertCatalogObject](#endpoint-Catalog-UpsertCatalogObject) or [BatchUpsertCatalogObjects](#endpoint-Catalog-BatchUpsertCatalogObjects) to create a [CatalogObject](#type-CatalogObject) instance, you can supply a temporary ID for the to-be-created object, especially when the object is to be referenced elsewhere in the same request body. This temporary ID can be any string unique within the call, but must be prefixed by \"#\". After the request is submitted and the object created, a permanent server-generated ID is assigned to the new object. The permanent ID is unique across the Square catalog.
type CatalogIdMapping struct {
// The client-supplied temporary `#`-prefixed ID for a new `CatalogObject`.
ClientObjectId string `json:"client_object_id,omitempty"`
// The permanent ID for the CatalogObject created by the server.
ObjectId string `json:"object_id,omitempty"`
}