-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.go
46 lines (39 loc) · 1.18 KB
/
types.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
36
37
38
39
40
41
42
43
44
45
46
package cloudbeds
type Status string
type TransactionFilter string
var (
StatusNotConfirmed Status = "not_confirmed"
StatusCanceled Status = "canceled"
StatusCheckedIn Status = "checked_in"
StatusCheckedOut Status = "checked_out"
StatusNoShow Status = "no_show"
TransactionFilterSimpleTransactions TransactionFilter = "simple_transactions"
TransactionFilterAdjustments TransactionFilter = "adjustments"
TransactionFilterAdjustmentsVoids TransactionFilter = "adjustments_voids"
TransactionFilterVoids TransactionFilter = "voids"
TransactionFilterRefunds TransactionFilter = "refunds"
)
// Toegestane waarden: "not_confirmed",
// "confirmed",
// "canceled",
// "checked_in",
// "checked_out",
// "no_show"
type Filters struct {
And []And `json:"and,omitempty"`
Or []Or `json:"or,omitempty"`
}
type Sort struct {
Field string `json:"field,omitempty"`
Direction string `json:"direction,omitempty"`
}
type And struct {
Operator string `json:"operator"`
Value string `json:"value"`
Field string `json:"field"`
}
type Or struct {
Operator string `json:"operator"`
Value string `json:"value"`
Field string `json:"field"`
}