forked from MyPureCloud/platform-client-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
timeoffrequestsettings.go
29 lines (21 loc) · 1.01 KB
/
timeoffrequestsettings.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
package platformclientv2
import (
"encoding/json"
"strconv"
"strings"
)
// Timeoffrequestsettings - Time Off Request Settings
type Timeoffrequestsettings struct {
// SubmissionRangeEnforced - Whether to enforce a submission range for agent time off requests
SubmissionRangeEnforced *bool `json:"submissionRangeEnforced,omitempty"`
// SubmissionEarliestDaysFromNow - The earliest number of days from now for which an agent can submit a time off request. Use negative numbers to indicate days in the past
SubmissionEarliestDaysFromNow *int `json:"submissionEarliestDaysFromNow,omitempty"`
// SubmissionLatestDaysFromNow - The latest number of days from now for which an agent can submit a time off request
SubmissionLatestDaysFromNow *int `json:"submissionLatestDaysFromNow,omitempty"`
}
// String returns a JSON representation of the model
func (o *Timeoffrequestsettings) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}