-
Notifications
You must be signed in to change notification settings - Fork 2
/
configuration.go
37 lines (32 loc) · 1 KB
/
configuration.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
package mimir
// configuration holds information about a country and his banking specification
type configuration struct {
CountryName string
CountryCode countryCode
IncludedCountryCode []countryCode
IsSEPAAvailable bool
SEPAIncludedCountryCode []countryCode
AccountNumberExample string
IBANDefinition definition
BBANDefinition definition
}
// definition holds information about format
type definition struct {
Length int
Example string
PrintFormat string
Structure string
}
type countryCode string
func (c countryCode) String() string {
return string(c)
}
// paymentCardConfiguration holds information about the entity which issue payment cards and about the cards it issues
type paymentCardConfiguration struct {
MajorIndustryIdentifierName string
Pattern string
CardSecurityCodeLength int
Examples []string
ExpirationDateFormat string
Structure map[int]string
}