-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathATMCommand4.go
63 lines (46 loc) · 1.9 KB
/
ATMCommand4.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
package iso20022
// Maintenance command the ATM must perform.
type ATMCommand4 struct {
// Type of command to be performed by the ATM.
Type *ATMCommand2Code `xml:"Tp"`
// Urgency of the command.
Urgency *TMSContactLevel2Code `xml:"Urgcy"`
// Date time on which the command must be performed.
DateTime *ISODateTime `xml:"DtTm,omitempty"`
// Identification of the entity issuing the command.
CommandIdentification *ATMCommandIdentification1 `xml:"CmdId,omitempty"`
// Reason for sending the command.
Reason *ATMCommandReason1Code `xml:"Rsn,omitempty"`
// Trace of reasons by the entities in the path from the origin of the command to the ATM.
TraceReason []*ATMCommandReason1Code `xml:"TracRsn,omitempty"`
// Additional information about the reason to request this command.
AdditionalReasonInformation *Max70Text `xml:"AddtlRsnInf,omitempty"`
// Specific parameters attached to the command.
CommandParameters *ATMCommandParameters2Choice `xml:"CmdParams,omitempty"`
}
func (a *ATMCommand4) SetType(value string) {
a.Type = (*ATMCommand2Code)(&value)
}
func (a *ATMCommand4) SetUrgency(value string) {
a.Urgency = (*TMSContactLevel2Code)(&value)
}
func (a *ATMCommand4) SetDateTime(value string) {
a.DateTime = (*ISODateTime)(&value)
}
func (a *ATMCommand4) AddCommandIdentification() *ATMCommandIdentification1 {
a.CommandIdentification = new(ATMCommandIdentification1)
return a.CommandIdentification
}
func (a *ATMCommand4) SetReason(value string) {
a.Reason = (*ATMCommandReason1Code)(&value)
}
func (a *ATMCommand4) AddTraceReason(value string) {
a.TraceReason = append(a.TraceReason, (*ATMCommandReason1Code)(&value))
}
func (a *ATMCommand4) SetAdditionalReasonInformation(value string) {
a.AdditionalReasonInformation = (*Max70Text)(&value)
}
func (a *ATMCommand4) AddCommandParameters() *ATMCommandParameters2Choice {
a.CommandParameters = new(ATMCommandParameters2Choice)
return a.CommandParameters
}