-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathachInterface.ts
84 lines (77 loc) · 1.73 KB
/
achInterface.ts
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
interface RootObject {
ID: string;
fileHeader: FileHeader;
batches: Batch[];
}
interface Batch {
batchHeader: BatchHeader;
entryDetails: EntryDetail[];
}
interface EntryDetail {
ID: string;
transactionCode: number;
RDFIIdentification: string;
checkDigit: string;
DFIAccountNumber: string;
amount: number;
identificationNumber: string;
individualName: string;
discretionaryData: string;
addendaRecordIndicator: number;
traceNumber: string;
addenda02: Addenda02;
addenda05: Addenda05[];
}
interface Addenda05 {
id: string;
typeCode: string;
paymentRelatedInformation: string;
sequenceNumber: number;
entryDetailSequenceNumber: number;
}
interface Addenda02 {
id: string;
typeCode: string;
referenceInformationOne: string;
referenceInformationTwo: string;
terminalIdentificationCode: string;
transactionSerialNumber: string;
transactionDate: string;
authorizationCodeOrExpireDate: string;
terminalLocation: string;
terminalCity: string;
terminalState: string;
traceNumber: string;
}
interface BatchHeader {
ID: string;
serviceClassCode: number;
companyName: string;
companyDiscretionaryData: string;
companyIdentification: string;
standardEntryClassCode: string;
companyEntryDescription: string;
companyDescriptiveDate: string;
effectiveEntryDate: string;
originatorStatusCode: number;
ODFIIdentification: string;
batchNumber: number;
}
interface FileHeader {
immediateOrigin: string;
immediateOriginName: string;
immediateDestination: string;
immediateDestinationName: string;
fileCreationTime: string;
fileCreationDate: string;
fileIDModifier: string;
}
export {
Addenda02,
Addenda05,
Batch,
BatchHeader,
EntryDetail,
FileHeader,
RootObject
}