-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathATMDeviceReport1.go
46 lines (35 loc) · 1.29 KB
/
ATMDeviceReport1.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
package iso20022
// Information related to the report from an ATM device.
type ATMDeviceReport1 struct {
// Environment of the transaction.
Environment *ATMEnvironment6 `xml:"Envt"`
// Global status of the ATM.
ATMGlobalStatus *ATMStatus1 `xml:"ATMGblSts"`
// Result of a maintenance command performed by the ATM.
CommandResult []*ATMCommand2 `xml:"CmdRslt,omitempty"`
// Maintenance command which has requested the device report.
CommandContext *ATMCommand3 `xml:"CmdCntxt,omitempty"`
// Information related to security commands.
ATMSecurityContext *ATMSecurityContext1 `xml:"ATMSctyCntxt,omitempty"`
}
func (a *ATMDeviceReport1) AddEnvironment() *ATMEnvironment6 {
a.Environment = new(ATMEnvironment6)
return a.Environment
}
func (a *ATMDeviceReport1) AddATMGlobalStatus() *ATMStatus1 {
a.ATMGlobalStatus = new(ATMStatus1)
return a.ATMGlobalStatus
}
func (a *ATMDeviceReport1) AddCommandResult() *ATMCommand2 {
newValue := new(ATMCommand2)
a.CommandResult = append(a.CommandResult, newValue)
return newValue
}
func (a *ATMDeviceReport1) AddCommandContext() *ATMCommand3 {
a.CommandContext = new(ATMCommand3)
return a.CommandContext
}
func (a *ATMDeviceReport1) AddATMSecurityContext() *ATMSecurityContext1 {
a.ATMSecurityContext = new(ATMSecurityContext1)
return a.ATMSecurityContext
}