-
Notifications
You must be signed in to change notification settings - Fork 13
/
createworkplanshift.go
97 lines (55 loc) · 4.03 KB
/
createworkplanshift.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
package platformclientv2
import (
"encoding/json"
"strconv"
"strings"
)
// Createworkplanshift - Shift in a work plan
type Createworkplanshift struct {
// Name - Name of the shift
Name *string `json:"name,omitempty"`
// Days - Days of the week applicable for this shift
Days *Setwrapperdayofweek `json:"days,omitempty"`
// FlexibleStartTime - Whether the start time of the shift is flexible
FlexibleStartTime *bool `json:"flexibleStartTime,omitempty"`
// ExactStartTimeMinutesFromMidnight - Exact start time of the shift defined as offset minutes from midnight. Used if flexibleStartTime == false
ExactStartTimeMinutesFromMidnight *int `json:"exactStartTimeMinutesFromMidnight,omitempty"`
// EarliestStartTimeMinutesFromMidnight - Earliest start time of the shift defined as offset minutes from midnight. Used if flexibleStartTime == true
EarliestStartTimeMinutesFromMidnight *int `json:"earliestStartTimeMinutesFromMidnight,omitempty"`
// LatestStartTimeMinutesFromMidnight - Latest start time of the shift defined as offset minutes from midnight. Used if flexibleStartTime == true
LatestStartTimeMinutesFromMidnight *int `json:"latestStartTimeMinutesFromMidnight,omitempty"`
// ConstrainStopTime - Whether the latest stop time constraint for the shift is enabled. Deprecated, use constrainLatestStopTime instead
ConstrainStopTime *bool `json:"constrainStopTime,omitempty"`
// ConstrainLatestStopTime - Whether the latest stop time constraint for the shift is enabled
ConstrainLatestStopTime *bool `json:"constrainLatestStopTime,omitempty"`
// LatestStopTimeMinutesFromMidnight - Latest stop time of the shift defined as offset minutes from midnight. Used if constrainStopTime == true
LatestStopTimeMinutesFromMidnight *int `json:"latestStopTimeMinutesFromMidnight,omitempty"`
// ConstrainEarliestStopTime - Whether the earliest stop time constraint for the shift is enabled
ConstrainEarliestStopTime *bool `json:"constrainEarliestStopTime,omitempty"`
// EarliestStopTimeMinutesFromMidnight - This is the earliest time a shift can end
EarliestStopTimeMinutesFromMidnight *int `json:"earliestStopTimeMinutesFromMidnight,omitempty"`
// StartIncrementMinutes - Increment in offset minutes that would contribute to different possible start times for the shift. Used if flexibleStartTime == true
StartIncrementMinutes *int `json:"startIncrementMinutes,omitempty"`
// FlexiblePaidTime - Whether the paid time setting for the shift is flexible
FlexiblePaidTime *bool `json:"flexiblePaidTime,omitempty"`
// ExactPaidTimeMinutes - Exact paid time in minutes configured for the shift. Used if flexiblePaidTime == false
ExactPaidTimeMinutes *int `json:"exactPaidTimeMinutes,omitempty"`
// MinimumPaidTimeMinutes - Minimum paid time in minutes configured for the shift. Used if flexiblePaidTime == true
MinimumPaidTimeMinutes *int `json:"minimumPaidTimeMinutes,omitempty"`
// MaximumPaidTimeMinutes - Maximum paid time in minutes configured for the shift. Used if flexiblePaidTime == true
MaximumPaidTimeMinutes *int `json:"maximumPaidTimeMinutes,omitempty"`
// ConstrainContiguousWorkTime - Whether the contiguous time constraint for the shift is enabled
ConstrainContiguousWorkTime *bool `json:"constrainContiguousWorkTime,omitempty"`
// MinimumContiguousWorkTimeMinutes - Minimum contiguous time in minutes configured for the shift. Used if constrainContiguousWorkTime == true
MinimumContiguousWorkTimeMinutes *int `json:"minimumContiguousWorkTimeMinutes,omitempty"`
// MaximumContiguousWorkTimeMinutes - Maximum contiguous time in minutes configured for the shift. Used if constrainContiguousWorkTime == true
MaximumContiguousWorkTimeMinutes *int `json:"maximumContiguousWorkTimeMinutes,omitempty"`
// Activities - Activities configured for this shift
Activities *[]Createworkplanactivity `json:"activities,omitempty"`
}
// String returns a JSON representation of the model
func (o *Createworkplanshift) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}