/
sm_request_approval.go
56 lines (49 loc) · 2.37 KB
/
sm_request_approval.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
package models
type CustomerApprovalPageScheme struct {
Size int `json:"size,omitempty"`
Start int `json:"start,omitempty"`
Limit int `json:"limit,omitempty"`
IsLastPage bool `json:"isLastPage,omitempty"`
Values []*CustomerApprovalScheme `json:"values,omitempty"`
Expands []string `json:"_expands,omitempty"`
Links *CustomerApprovalPageLinkScheme `json:"_links,omitempty"`
}
type CustomerApprovalPageLinkScheme struct {
Self string `json:"self,omitempty"`
Base string `json:"base,omitempty"`
Context string `json:"context,omitempty"`
Next string `json:"next,omitempty"`
Prev string `json:"prev,omitempty"`
}
type CustomerApprovalScheme struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
FinalDecision string `json:"finalDecision,omitempty"`
CanAnswerApproval bool `json:"canAnswerApproval,omitempty"`
Approvers []*CustomerApproveScheme `json:"approvers,omitempty"`
CreatedDate *CustomerRequestDateScheme `json:"createdDate,omitempty"`
CompletedDate *CustomerRequestDateScheme `json:"completedDate,omitempty"`
Links *CustomerApprovalLinkScheme `json:"_links,omitempty"`
}
type CustomerApprovalLinkScheme struct {
Self string `json:"self"`
}
type CustomerApproveScheme struct {
Approver *ApproverScheme `json:"approver,omitempty"`
ApproverDecision string `json:"approverDecision,omitempty"`
}
type ApproverScheme struct {
AccountID string `json:"accountId,omitempty"`
Name string `json:"name,omitempty"`
Key string `json:"key,omitempty"`
EmailAddress string `json:"emailAddress,omitempty"`
DisplayName string `json:"displayName,omitempty"`
Active bool `json:"active,omitempty"`
TimeZone string `json:"timeZone,omitempty"`
Links *ApproverLinkScheme `json:"_links,omitempty"`
}
type ApproverLinkScheme struct {
JiraRest string `json:"jiraRest,omitempty"`
AvatarUrls *AvatarURLScheme `json:"avatarUrls,omitempty"`
Self string `json:"self,omitempty"`
}