-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathATMDepositedMedia2.go
54 lines (39 loc) · 1.58 KB
/
ATMDepositedMedia2.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
package iso20022
// Media item that are deposited.
type ATMDepositedMedia2 struct {
// Number of deposit media.
Count *Number `xml:"Cnt,omitempty"`
// Amount or denomination of one media item, if the media type is valued or entered by the customer.
UnitValue *ImpliedCurrencyAndAmount `xml:"UnitVal,omitempty"`
// Currency of media items, if valued and different from base currency.
Currency *ActiveCurrencyCode `xml:"Ccy,omitempty"`
// Format of the check code line.
CodeLineFormat *CheckCodeLine1Code `xml:"CdLineFrmt,omitempty"`
// Check code line.
CodeLine *Max70Text `xml:"CdLine,omitempty"`
// Check amount scanned by the check reader.
ScannedValue *ImpliedCurrencyAndAmount `xml:"ScnndVal,omitempty"`
// Percentage of the confidence in the check amount.
ConfidenceLevel *Percentage `xml:"CnfdncLvl,omitempty"`
}
func (a *ATMDepositedMedia2) SetCount(value string) {
a.Count = (*Number)(&value)
}
func (a *ATMDepositedMedia2) SetUnitValue(value, currency string) {
a.UnitValue = NewImpliedCurrencyAndAmount(value, currency)
}
func (a *ATMDepositedMedia2) SetCurrency(value string) {
a.Currency = (*ActiveCurrencyCode)(&value)
}
func (a *ATMDepositedMedia2) SetCodeLineFormat(value string) {
a.CodeLineFormat = (*CheckCodeLine1Code)(&value)
}
func (a *ATMDepositedMedia2) SetCodeLine(value string) {
a.CodeLine = (*Max70Text)(&value)
}
func (a *ATMDepositedMedia2) SetScannedValue(value, currency string) {
a.ScannedValue = NewImpliedCurrencyAndAmount(value, currency)
}
func (a *ATMDepositedMedia2) SetConfidenceLevel(value string) {
a.ConfidenceLevel = (*Percentage)(&value)
}