/
model_cash_drawer_shift_summary.go
29 lines (28 loc) · 1.28 KB
/
model_cash_drawer_shift_summary.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
/*
* 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
// The summary of a closed cash drawer shift. This model contains only the money counted to start a cash drawer shift, counted at the end of the shift, and the amount that should be in the drawer at shift end based on summing all cash drawer shift events.
type CashDrawerShiftSummary struct {
// The shift unique ID.
Id string `json:"id,omitempty"`
// The shift current state. See [CashDrawerShiftState](#type-cashdrawershiftstate) for possible values
State string `json:"state,omitempty"`
// The shift start time in ISO 8601 format.
OpenedAt string `json:"opened_at,omitempty"`
// The shift end time in ISO 8601 format.
EndedAt string `json:"ended_at,omitempty"`
// The shift close time in ISO 8601 format.
ClosedAt string `json:"closed_at,omitempty"`
// An employee free-text description of a cash drawer shift.
Description string `json:"description,omitempty"`
OpenedCashMoney *Money `json:"opened_cash_money,omitempty"`
ExpectedCashMoney *Money `json:"expected_cash_money,omitempty"`
ClosedCashMoney *Money `json:"closed_cash_money,omitempty"`
}