-
Notifications
You must be signed in to change notification settings - Fork 12
/
shifttradesettings.go
69 lines (41 loc) · 2.46 KB
/
shifttradesettings.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
package platformclientv2
import (
"encoding/json"
"strconv"
"strings"
)
// Shifttradesettings
type Shifttradesettings struct {
// Enabled - Whether shift trading is enabled for this management unit
Enabled *bool `json:"enabled,omitempty"`
// AutoReview - Whether automatic shift trade review is enabled according to the rules defined in for this management unit
AutoReview *bool `json:"autoReview,omitempty"`
// AllowDirectTrades - Whether direct shift trades between agents are allowed
AllowDirectTrades *bool `json:"allowDirectTrades,omitempty"`
// MinHoursInFuture - The minimum number of hours in the future shift trades are allowed
MinHoursInFuture *int `json:"minHoursInFuture,omitempty"`
// UnequalPaid - How to handle shift trades which involve unequal paid times
UnequalPaid *string `json:"unequalPaid,omitempty"`
// OneSided - How to handle one-sided shift trades
OneSided *string `json:"oneSided,omitempty"`
// WeeklyMinPaidViolations - How to handle shift trades which result in violations of weekly minimum paid time constraint
WeeklyMinPaidViolations *string `json:"weeklyMinPaidViolations,omitempty"`
// WeeklyMaxPaidViolations - How to handle shift trades which result in violations of weekly maximum paid time constraint
WeeklyMaxPaidViolations *string `json:"weeklyMaxPaidViolations,omitempty"`
// RequiresMatchingQueues - Whether to constrain shift trades to agents with matching queues
RequiresMatchingQueues *bool `json:"requiresMatchingQueues,omitempty"`
// RequiresMatchingLanguages - Whether to constrain shift trades to agents with matching languages
RequiresMatchingLanguages *bool `json:"requiresMatchingLanguages,omitempty"`
// RequiresMatchingSkills - Whether to constrain shift trades to agents with matching skills
RequiresMatchingSkills *bool `json:"requiresMatchingSkills,omitempty"`
// RequiresMatchingPlanningGroups - Whether to constrain shift trades to agents with matching planning groups
RequiresMatchingPlanningGroups *bool `json:"requiresMatchingPlanningGroups,omitempty"`
// ActivityCategoryRules - Rules that specify what to do with activity categories that are part of a shift defined in a trade
ActivityCategoryRules *[]Shifttradeactivityrule `json:"activityCategoryRules,omitempty"`
}
// String returns a JSON representation of the model
func (o *Shifttradesettings) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}