-
Notifications
You must be signed in to change notification settings - Fork 12
/
workplan.go
149 lines (81 loc) · 5.91 KB
/
workplan.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
package platformclientv2
import (
"encoding/json"
"strconv"
"strings"
)
// Workplan - Work plan information
type Workplan struct {
// Id - The globally unique identifier for the object.
Id *string `json:"id,omitempty"`
// Name
Name *string `json:"name,omitempty"`
// Enabled - Whether the work plan is enabled for scheduling
Enabled *bool `json:"enabled,omitempty"`
// Valid - Whether the work plan is valid or not
Valid *bool `json:"valid,omitempty"`
// ConstrainWeeklyPaidTime - Whether the weekly paid time constraint is enabled for this work plan
ConstrainWeeklyPaidTime *bool `json:"constrainWeeklyPaidTime,omitempty"`
// FlexibleWeeklyPaidTime - Whether the weekly paid time constraint is flexible for this work plan
FlexibleWeeklyPaidTime *bool `json:"flexibleWeeklyPaidTime,omitempty"`
// WeeklyExactPaidMinutes - Exact weekly paid time in minutes for this work plan. Used if flexibleWeeklyPaidTime == false
WeeklyExactPaidMinutes *int `json:"weeklyExactPaidMinutes,omitempty"`
// WeeklyMinimumPaidMinutes - Minimum weekly paid time in minutes for this work plan. Used if flexibleWeeklyPaidTime == true
WeeklyMinimumPaidMinutes *int `json:"weeklyMinimumPaidMinutes,omitempty"`
// WeeklyMaximumPaidMinutes - Maximum weekly paid time in minutes for this work plan. Used if flexibleWeeklyPaidTime == true
WeeklyMaximumPaidMinutes *int `json:"weeklyMaximumPaidMinutes,omitempty"`
// ConstrainPaidTimeGranularity - Whether paid time granularity is constrained for this work plan
ConstrainPaidTimeGranularity *bool `json:"constrainPaidTimeGranularity,omitempty"`
// PaidTimeGranularityMinutes - Granularity in minutes allowed for shift paid time in this work plan. Used if constrainPaidTimeGranularity == true
PaidTimeGranularityMinutes *int `json:"paidTimeGranularityMinutes,omitempty"`
// ConstrainMinimumTimeBetweenShifts - Whether the minimum time between shifts constraint is enabled for this work plan
ConstrainMinimumTimeBetweenShifts *bool `json:"constrainMinimumTimeBetweenShifts,omitempty"`
// MinimumTimeBetweenShiftsMinutes - Minimum time between shifts in minutes defined in this work plan. Used if constrainMinimumTimeBetweenShifts == true
MinimumTimeBetweenShiftsMinutes *int `json:"minimumTimeBetweenShiftsMinutes,omitempty"`
// MaximumDays - Maximum number days in a week allowed to be scheduled for this work plan
MaximumDays *int `json:"maximumDays,omitempty"`
// MinimumConsecutiveNonWorkingMinutesPerWeek - Minimum amount of consecutive non working minutes per week that agents who are assigned this work plan are allowed to have off
MinimumConsecutiveNonWorkingMinutesPerWeek *int `json:"minimumConsecutiveNonWorkingMinutesPerWeek,omitempty"`
// ConstrainMaximumConsecutiveWorkingWeekends - Whether to constrain the maximum consecutive working weekends
ConstrainMaximumConsecutiveWorkingWeekends *bool `json:"constrainMaximumConsecutiveWorkingWeekends,omitempty"`
// MaximumConsecutiveWorkingWeekends - The maximum number of consecutive weekends that agents who are assigned to this work plan are allowed to work
MaximumConsecutiveWorkingWeekends *int `json:"maximumConsecutiveWorkingWeekends,omitempty"`
// MinimumWorkingDaysPerWeek - The minimum number of days that agents assigned to a work plan must work per week
MinimumWorkingDaysPerWeek *int `json:"minimumWorkingDaysPerWeek,omitempty"`
// ConstrainMaximumConsecutiveWorkingDays - Whether to constrain the maximum consecutive working days
ConstrainMaximumConsecutiveWorkingDays *bool `json:"constrainMaximumConsecutiveWorkingDays,omitempty"`
// MaximumConsecutiveWorkingDays - The maximum number of consecutive days that agents assigned to this work plan are allowed to work. Used if constrainMaximumConsecutiveWorkingDays == true
MaximumConsecutiveWorkingDays *int `json:"maximumConsecutiveWorkingDays,omitempty"`
// MinimumShiftStartDistanceMinutes - The time period in minutes for the duration between the start times of two consecutive working days
MinimumShiftStartDistanceMinutes *int `json:"minimumShiftStartDistanceMinutes,omitempty"`
// MinimumDaysOffPerPlanningPeriod - Minimum days off in the planning period
MinimumDaysOffPerPlanningPeriod *int `json:"minimumDaysOffPerPlanningPeriod,omitempty"`
// MaximumDaysOffPerPlanningPeriod - Maximum days off in the planning period
MaximumDaysOffPerPlanningPeriod *int `json:"maximumDaysOffPerPlanningPeriod,omitempty"`
// MinimumPaidMinutesPerPlanningPeriod - Minimum paid minutes in the planning period
MinimumPaidMinutesPerPlanningPeriod *int `json:"minimumPaidMinutesPerPlanningPeriod,omitempty"`
// MaximumPaidMinutesPerPlanningPeriod - Maximum paid minutes in the planning period
MaximumPaidMinutesPerPlanningPeriod *int `json:"maximumPaidMinutesPerPlanningPeriod,omitempty"`
// OptionalDays - Optional days to schedule for this work plan
OptionalDays *Setwrapperdayofweek `json:"optionalDays,omitempty"`
// ShiftStartVarianceType - This constraint ensures that an agent starts each workday within a user-defined time threshold
ShiftStartVarianceType *string `json:"shiftStartVarianceType,omitempty"`
// ShiftStartVariances - Variance in minutes among start times of shifts in this work plan
ShiftStartVariances *Listwrappershiftstartvariance `json:"shiftStartVariances,omitempty"`
// Shifts - Shifts in this work plan
Shifts *[]Workplanshift `json:"shifts,omitempty"`
// Agents - Agents in this work plan
Agents *[]Deletableuserreference `json:"agents,omitempty"`
// AgentCount - Number of agents in this work plan
AgentCount *int `json:"agentCount,omitempty"`
// Metadata - Version metadata for this work plan
Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"`
// SelfUri - The URI for this object
SelfUri *string `json:"selfUri,omitempty"`
}
// String returns a JSON representation of the model
func (o *Workplan) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}