/
model_inventory_physical_count.go
35 lines (34 loc) · 2.18 KB
/
model_inventory_physical_count.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* 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
// Represents the quantity of an item variation that is physically present at a specific location, verified by a seller or a seller's employee. For example, a physical count might come from an employee counting the item variations on hand or from syncing with an external system.
type InventoryPhysicalCount struct {
// A unique ID generated by Square for the `InventoryPhysicalCount`.
Id string `json:"id,omitempty"`
// An optional ID provided by the application to tie the `InventoryPhysicalCount` to an external system.
ReferenceId string `json:"reference_id,omitempty"`
// The Square generated ID of the `CatalogObject` being tracked.
CatalogObjectId string `json:"catalog_object_id,omitempty"`
// The `CatalogObjectType` of the `CatalogObject` being tracked. Tracking is only supported for the `ITEM_VARIATION` type.
CatalogObjectType string `json:"catalog_object_type,omitempty"`
// The current `InventoryState` for the related quantity of items. See [InventoryState](#type-inventorystate) for possible values
State string `json:"state,omitempty"`
// The Square ID of the `Location` where the related quantity of items are being tracked.
LocationId string `json:"location_id,omitempty"`
// The number of items affected by the physical count as a decimal string. Can support up to 5 digits after the decimal point.
Quantity string `json:"quantity,omitempty"`
Source *SourceApplication `json:"source,omitempty"`
// The Square ID of the `Employee` responsible for the physical count.
EmployeeId string `json:"employee_id,omitempty"`
// A client-generated timestamp in RFC 3339 format that indicates when the physical count took place. For write actions, the `occurred_at` timestamp cannot be older than 24 hours or in the future relative to the time of the request.
OccurredAt string `json:"occurred_at,omitempty"`
// A read-only timestamp in RFC 3339 format that indicates when Square received the physical count.
CreatedAt string `json:"created_at,omitempty"`
}