-
Notifications
You must be signed in to change notification settings - Fork 14
/
ATMCassette1.go
49 lines (36 loc) · 1.35 KB
/
ATMCassette1.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
package iso20022
// Information on the cassette of an ATM.
type ATMCassette1 struct {
// Physical identification of the cassette for the ATM.
PhysicalIdentification *Max35Text `xml:"PhysId,omitempty"`
// Logical identification of the cassette for the ATM.
LogicalIdentification *Max35Text `xml:"LogclId"`
// Type of cassette.
Type *ATMCassetteType1Code `xml:"Tp"`
// Type of items the cash-in takes
SubType []*ATMNoteType1Code `xml:"SubTp,omitempty"`
// Type of media inside the cassette.
MediaType *ATMMediaType1Code `xml:"MdiaTp,omitempty"`
// Counter per unit value or globally.
MediaCounters []*ATMCassetteCounters1 `xml:"MdiaCntrs,omitempty"`
}
func (a *ATMCassette1) SetPhysicalIdentification(value string) {
a.PhysicalIdentification = (*Max35Text)(&value)
}
func (a *ATMCassette1) SetLogicalIdentification(value string) {
a.LogicalIdentification = (*Max35Text)(&value)
}
func (a *ATMCassette1) SetType(value string) {
a.Type = (*ATMCassetteType1Code)(&value)
}
func (a *ATMCassette1) AddSubType(value string) {
a.SubType = append(a.SubType, (*ATMNoteType1Code)(&value))
}
func (a *ATMCassette1) SetMediaType(value string) {
a.MediaType = (*ATMMediaType1Code)(&value)
}
func (a *ATMCassette1) AddMediaCounters() *ATMCassetteCounters1 {
newValue := new(ATMCassetteCounters1)
a.MediaCounters = append(a.MediaCounters, newValue)
return newValue
}