| 1 |
package element |
| 2 |
|
| 3 |
import "fmt" |
| 4 |
|
| 5 |
// A DataElementType represents the type of a DataElement |
| 6 |
type DataElementType int |
| 7 |
|
| 8 |
const ( |
| 9 |
// DataElements |
| 10 |
|
| 11 |
alphaNumericDE DataElementType = iota + 1 |
| 12 |
textDE |
| 13 |
numberDE |
| 14 |
digitDE |
| 15 |
floatDE |
| 16 |
dtausCharsetDE |
| 17 |
binaryDE |
| 18 |
|
| 19 |
// Derived types |
| 20 |
|
| 21 |
booleanDE |
| 22 |
codeDE |
| 23 |
dateDE |
| 24 |
virtualDateDE |
| 25 |
timeDE |
| 26 |
identificationDE |
| 27 |
countryCodeDE |
| 28 |
currencyDE |
| 29 |
valueDE |
| 30 |
|
| 31 |
// Multiple used element |
| 32 |
|
| 33 |
amountGDEG |
| 34 |
bankIdentificationGDEG |
| 35 |
accountConnectionGDEG |
| 36 |
internationalAccountConnectionGDEG |
| 37 |
balanceGDEG |
| 38 |
addressGDEG |
| 39 |
securityMethodVersionGDEG |
| 40 |
acknowlegdementParamsGDEG |
| 41 |
pinTanBusinessTransactionParameterGDEG |
| 42 |
|
| 43 |
// DataElementGroups |
| 44 |
|
| 45 |
segmentHeaderDEG |
| 46 |
referenceMessageDEG |
| 47 |
acknowledgementDEG |
| 48 |
securityIdentificationDEG |
| 49 |
securityDateDEG |
| 50 |
hashAlgorithmDEG |
| 51 |
signatureAlgorithmDEG |
| 52 |
encryptionAlgorithmDEG |
| 53 |
keyNameDEG |
| 54 |
certificateDEG |
| 55 |
publicKeyDEG |
| 56 |
supportedLanguagesDEG |
| 57 |
supportedHBCIVersionDEG |
| 58 |
communicationParameterDEG |
| 59 |
supportedSecurityMethodDEG |
| 60 |
pinTanDEG |
| 61 |
accountLimitDEG |
| 62 |
allowedBusinessTransactionDEG |
| 63 |
disposalEligiblePersonDEG |
| 64 |
securityProfileDEG |
| 65 |
tan2StepSubmissionParameterDEG |
| 66 |
tan2StepSubmissionProcessParameterDEG |
| 67 |
pinTanSpecificParamDataElementDEG |
| 68 |
) |
| 69 |
|
| 70 |
var typeName = map[DataElementType]string{ |
| 71 |
alphaNumericDE: "an", |
| 72 |
textDE: "txt", |
| 73 |
numberDE: "num", |
| 74 |
digitDE: "dig", |
| 75 |
floatDE: "float", |
| 76 |
dtausCharsetDE: "dta", |
| 77 |
binaryDE: "bin", |
| 78 |
// Derived types |
| 79 |
booleanDE: "jn", |
| 80 |
codeDE: "code", |
| 81 |
dateDE: "dat", |
| 82 |
virtualDateDE: "vdat", |
| 83 |
timeDE: "tim", |
| 84 |
identificationDE: "id", |
| 85 |
countryCodeDE: "ctr", |
| 86 |
currencyDE: "cur", |
| 87 |
valueDE: "wrt", |
| 88 |
// Multiple used elements or GroupDataElementGroups |
| 89 |
amountGDEG: "btg", |
| 90 |
bankIdentificationGDEG: "kik", |
| 91 |
accountConnectionGDEG: "ktv", |
| 92 |
internationalAccountConnectionGDEG: "kti", |
| 93 |
balanceGDEG: "sdo", |
| 94 |
addressGDEG: "addr", |
| 95 |
securityMethodVersionGDEG: "Unterstützte Sicherheitsverfahren", |
| 96 |
acknowlegdementParamsGDEG: "Rückmeldungsparameter", |
| 97 |
pinTanBusinessTransactionParameterGDEG: "Geschäftsvorfallspezifische PIN-TAN-Informationen", |
| 98 |
// DataElementGroups |
| 99 |
segmentHeaderDEG: "Segmentkopf", |
| 100 |
referenceMessageDEG: "Bezugsnachricht", |
| 101 |
acknowledgementDEG: "Rückmeldung", |
| 102 |
securityIdentificationDEG: "Sicherheitsidentifikation, Details", |
| 103 |
securityDateDEG: "Sicherheitsdatum und -uhrzeit", |
| 104 |
hashAlgorithmDEG: "Hashalgorithmus", |
| 105 |
signatureAlgorithmDEG: "Signaturalgorithmus", |
| 106 |
encryptionAlgorithmDEG: "Verschlüsselungsalgorithmus", |
| 107 |
keyNameDEG: "Schlüsselname", |
| 108 |
certificateDEG: "Zertifikat", |
| 109 |
publicKeyDEG: "Öffentlicher Schlüssel", |
| 110 |
supportedLanguagesDEG: "Unterstützte Sprachen", |
| 111 |
supportedHBCIVersionDEG: "Unterstützte HBCI-Versionen", |
| 112 |
communicationParameterDEG: "Kommunikationsparameter", |
| 113 |
pinTanDEG: "PIN-TAN", |
| 114 |
accountLimitDEG: "Kontolimit", |
| 115 |
allowedBusinessTransactionDEG: "Erlaubte Geschäftsvorfälle", |
| 116 |
disposalEligiblePersonDEG: "Verfügungsberechtigte", |
| 117 |
securityProfileDEG: "Sicherheitsprofil", |
| 118 |
tan2StepSubmissionParameterDEG: "Parameter Zwei-Schritt-TAN-Einreichung", |
| 119 |
tan2StepSubmissionProcessParameterDEG: "Verfahrensparameter Zwei-Schritt-Verfahren", |
| 120 |
pinTanSpecificParamDataElementDEG: "Parameter PIN/TAN-spezifische Informationen", |
| 121 |
} |
| 122 |
|
| 123 |
func (d DataElementType) String() string { |
| 124 |
s := typeName[d] |
| 125 |
if s == "" { |
| 126 |
return fmt.Sprintf("DataElementType%d", int(d)) |
| 127 |
} |
| 128 |
return s |
| 129 |
} |