-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathATMKeyDownloadRequest2.go
53 lines (40 loc) · 1.67 KB
/
ATMKeyDownloadRequest2.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
package iso20022
// Information related to the request of a key download from an ATM.
type ATMKeyDownloadRequest2 struct {
// Environment of the key download.
Environment *ATMEnvironment15 `xml:"Envt"`
// Result of a maintenance command performed by the ATM.
CommandResult []*ATMCommand2 `xml:"CmdRslt,omitempty"`
// Security command in progress inside which the key download is requested.
CommandContext *ATMCommand3 `xml:"CmdCntxt,omitempty"`
// Context of the ATM for the key download.
ATMSecurityContext *ATMSecurityContext2 `xml:"ATMSctyCntxt"`
// Security parameters of the ATM for the initiated key download.
ATMSecurityParameters *SecurityParameters4 `xml:"ATMSctyParams"`
// Random value from the host provided during a previous exchange.
HostChallenge *Max140Binary `xml:"HstChllng,omitempty"`
}
func (a *ATMKeyDownloadRequest2) AddEnvironment() *ATMEnvironment15 {
a.Environment = new(ATMEnvironment15)
return a.Environment
}
func (a *ATMKeyDownloadRequest2) AddCommandResult() *ATMCommand2 {
newValue := new(ATMCommand2)
a.CommandResult = append(a.CommandResult, newValue)
return newValue
}
func (a *ATMKeyDownloadRequest2) AddCommandContext() *ATMCommand3 {
a.CommandContext = new(ATMCommand3)
return a.CommandContext
}
func (a *ATMKeyDownloadRequest2) AddATMSecurityContext() *ATMSecurityContext2 {
a.ATMSecurityContext = new(ATMSecurityContext2)
return a.ATMSecurityContext
}
func (a *ATMKeyDownloadRequest2) AddATMSecurityParameters() *SecurityParameters4 {
a.ATMSecurityParameters = new(SecurityParameters4)
return a.ATMSecurityParameters
}
func (a *ATMKeyDownloadRequest2) SetHostChallenge(value string) {
a.HostChallenge = (*Max140Binary)(&value)
}