@technova-tech/connect-cba 0.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bank-one/BankOne.d.ts +31 -0
- package/bank-one/BankOne.js +848 -0
- package/bank-one/index.d.ts +2 -0
- package/bank-one/index.js +18 -0
- package/bank-one/interface/index.d.ts +439 -0
- package/bank-one/interface/index.js +2 -0
- package/common/constants/cba.constant.d.ts +3 -0
- package/common/constants/cba.constant.js +7 -0
- package/common/constants/index.d.ts +1 -0
- package/common/constants/index.js +17 -0
- package/common/errors/BadRequest.d.ts +4 -0
- package/common/errors/BadRequest.js +31 -0
- package/common/errors/HttpRequest.d.ts +3 -0
- package/common/errors/HttpRequest.js +26 -0
- package/common/errors/InternalServer.d.ts +4 -0
- package/common/errors/InternalServer.js +31 -0
- package/common/errors/index.d.ts +4 -0
- package/common/errors/index.js +11 -0
- package/common/errors/messages.d.ts +3 -0
- package/common/errors/messages.js +6 -0
- package/common/http/index.d.ts +14 -0
- package/common/http/index.js +82 -0
- package/common/index.d.ts +5 -0
- package/common/index.js +21 -0
- package/common/interface/ICBA.d.ts +33 -0
- package/common/interface/ICBA.js +33 -0
- package/common/interface/account.d.ts +80 -0
- package/common/interface/account.js +2 -0
- package/common/interface/customer.d.ts +63 -0
- package/common/interface/customer.js +8 -0
- package/common/interface/index.d.ts +4 -0
- package/common/interface/index.js +20 -0
- package/common/interface/transaction.d.ts +40 -0
- package/common/interface/transaction.js +14 -0
- package/common/interface/transfer.d.ts +50 -0
- package/common/interface/transfer.js +2 -0
- package/common/util/index.d.ts +3 -0
- package/common/util/index.js +40 -0
- package/common/util/phone.d.ts +1 -0
- package/common/util/phone.js +15 -0
- package/index.d.ts +4 -0
- package/index.js +30 -0
- package/package.json +42 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./BankOne"), exports);
|
|
18
|
+
__exportStar(require("./interface"), exports);
|
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
export interface BankOneCustomerRequest {
|
|
2
|
+
LastName: string;
|
|
3
|
+
OtherNames: string;
|
|
4
|
+
City?: string;
|
|
5
|
+
Address?: string;
|
|
6
|
+
Gender: 0 | 1;
|
|
7
|
+
DateOfBirth: string;
|
|
8
|
+
PhoneNo: string;
|
|
9
|
+
PlaceOfBirth?: string;
|
|
10
|
+
NationalIdentityNo?: string;
|
|
11
|
+
BankVerificationNumber: string;
|
|
12
|
+
Email?: string;
|
|
13
|
+
HasCompleteDocumentation: boolean;
|
|
14
|
+
AccountOfficerCode: string;
|
|
15
|
+
customerPassportInBytes?: string;
|
|
16
|
+
CustomerID?: string;
|
|
17
|
+
NotificationPreference: number;
|
|
18
|
+
}
|
|
19
|
+
export interface BankOneCreateCustomerResponse {
|
|
20
|
+
LastName: string;
|
|
21
|
+
OtherNames: string;
|
|
22
|
+
Address: string;
|
|
23
|
+
Gender: 0 | 1;
|
|
24
|
+
DateOfBirth: string;
|
|
25
|
+
PhoneNo: string;
|
|
26
|
+
PlaceOfBirth: string;
|
|
27
|
+
NationalIdentityNo: string;
|
|
28
|
+
BankVerificationNumber: string;
|
|
29
|
+
CustomerID: string;
|
|
30
|
+
Email: string;
|
|
31
|
+
}
|
|
32
|
+
export interface BankOneCreateBusinessCustomerResponse {
|
|
33
|
+
IsSuccessful: boolean;
|
|
34
|
+
CustomerIDInString: string;
|
|
35
|
+
Message: string;
|
|
36
|
+
TransactionTrackingRef: string;
|
|
37
|
+
Page: string;
|
|
38
|
+
}
|
|
39
|
+
export interface BankOneCreateOrganizationCustomerRequest {
|
|
40
|
+
Name: string;
|
|
41
|
+
PhoneNo: string;
|
|
42
|
+
PostalAddress?: string;
|
|
43
|
+
BusinessPhoneNo: string;
|
|
44
|
+
TaxIDNo: string;
|
|
45
|
+
BusinessName: string;
|
|
46
|
+
TradeName?: string;
|
|
47
|
+
IndustrialSector?: string;
|
|
48
|
+
Email: string;
|
|
49
|
+
Address: string;
|
|
50
|
+
CompanyRegDate: string;
|
|
51
|
+
ContactPersonName: string;
|
|
52
|
+
BusinessType?: string;
|
|
53
|
+
BusinessNature?: string;
|
|
54
|
+
WebAddress?: string;
|
|
55
|
+
DateIncorporated?: string;
|
|
56
|
+
BusinessCommencementDate?: string;
|
|
57
|
+
RegistrationNumber: string;
|
|
58
|
+
CustomerMembers: string[];
|
|
59
|
+
TheDirectors: string[];
|
|
60
|
+
}
|
|
61
|
+
export interface BankOneGetCustomerResponseData {
|
|
62
|
+
Id: number;
|
|
63
|
+
customerID: string;
|
|
64
|
+
LastName: string;
|
|
65
|
+
Gender: 0 | 1;
|
|
66
|
+
GenderString: string;
|
|
67
|
+
OtherNames: string;
|
|
68
|
+
Address: string;
|
|
69
|
+
Email: string;
|
|
70
|
+
Landmark?: string;
|
|
71
|
+
PhoneNumber: string;
|
|
72
|
+
NickName?: string;
|
|
73
|
+
BankVerificationNumber: string;
|
|
74
|
+
EmailNotification: boolean;
|
|
75
|
+
PhoneNotification: boolean;
|
|
76
|
+
DistrictOfResidence?: string;
|
|
77
|
+
DistrictOfBusiness?: string;
|
|
78
|
+
IdentificationNumber: string;
|
|
79
|
+
DateOfBirth: string;
|
|
80
|
+
HomeTown?: string;
|
|
81
|
+
LocalGovernment?: string;
|
|
82
|
+
MothersMaidenName?: string;
|
|
83
|
+
Nationale?: string;
|
|
84
|
+
TestQuestion?: string;
|
|
85
|
+
TestAnswer?: string;
|
|
86
|
+
State?: string;
|
|
87
|
+
WorkAddress?: string;
|
|
88
|
+
WorkAnnualIncome: number;
|
|
89
|
+
WorkEmployerName?: string;
|
|
90
|
+
WorkNextOfKin?: string;
|
|
91
|
+
WorkNextOfKinAddress?: string;
|
|
92
|
+
WorkNextOfKinPhoneNo?: string;
|
|
93
|
+
WorkNextOfKinRelationship?: string;
|
|
94
|
+
WorkOccupation?: string;
|
|
95
|
+
WorkPhoneNo?: string;
|
|
96
|
+
NameOnUtilityBill?: string;
|
|
97
|
+
AddressOnUtilityBill?: string;
|
|
98
|
+
DateOnUtilityBill?: string;
|
|
99
|
+
CommentsForUtilityBill?: string;
|
|
100
|
+
IsUtilityBillInfoComplete: boolean;
|
|
101
|
+
NextOfKinEmailAddress?: string;
|
|
102
|
+
CustomerPhoto?: string;
|
|
103
|
+
CustomerSignature?: string;
|
|
104
|
+
Accounts: any[];
|
|
105
|
+
Name?: string;
|
|
106
|
+
PostalAddress?: string;
|
|
107
|
+
BusinessPhoneNo?: string;
|
|
108
|
+
TaxIDNo?: string;
|
|
109
|
+
BusinessName?: string;
|
|
110
|
+
TradeName?: string;
|
|
111
|
+
IndustrialSector?: string;
|
|
112
|
+
CompanyRegDate?: string;
|
|
113
|
+
ContactPersonName?: string;
|
|
114
|
+
BusinessType?: string;
|
|
115
|
+
BusinessNature?: string;
|
|
116
|
+
WebAddress?: string;
|
|
117
|
+
DateIncorporated?: string;
|
|
118
|
+
BusinessCommencementDate?: string;
|
|
119
|
+
RegistrationNumber?: string;
|
|
120
|
+
CustomerMembers?: string;
|
|
121
|
+
TheDirectors?: string;
|
|
122
|
+
}
|
|
123
|
+
export type BankOneSuccessGetCustomerResponse = BankOneGetCustomerResponseData[];
|
|
124
|
+
export interface BankOneFailedGetCustomerResponse {
|
|
125
|
+
IsSuccessful: boolean;
|
|
126
|
+
CustomerIDInString: null;
|
|
127
|
+
Message: string;
|
|
128
|
+
TransactionTrackingRef: null;
|
|
129
|
+
Page: null;
|
|
130
|
+
}
|
|
131
|
+
export interface BankOneUpdateCustomerResponse {
|
|
132
|
+
IsSuccessful: boolean;
|
|
133
|
+
CustomerIDInString: string;
|
|
134
|
+
Message: {
|
|
135
|
+
ID: number;
|
|
136
|
+
IsDeleted: boolean;
|
|
137
|
+
MFBCode: string;
|
|
138
|
+
LogObject: boolean;
|
|
139
|
+
UseAuditTrail: boolean;
|
|
140
|
+
};
|
|
141
|
+
TransactionTrackingRef: any;
|
|
142
|
+
Page: any | number;
|
|
143
|
+
}
|
|
144
|
+
export interface BankOneCreateCustomerAccountRequest {
|
|
145
|
+
TransactionTrackingRef: string;
|
|
146
|
+
AccountOfficerCode: string;
|
|
147
|
+
AccountOpeningTrackingRef: string;
|
|
148
|
+
ProductCode: number;
|
|
149
|
+
LastName: string;
|
|
150
|
+
OtherNames: string;
|
|
151
|
+
PhoneNo: string;
|
|
152
|
+
Gender: number;
|
|
153
|
+
DateOfBirth: string;
|
|
154
|
+
Address: string;
|
|
155
|
+
NotificationPreference: number;
|
|
156
|
+
TransactionPermission: string;
|
|
157
|
+
AccountTier: number;
|
|
158
|
+
PlaceOfBirth?: string;
|
|
159
|
+
BVN?: string;
|
|
160
|
+
NationalIdentityNo?: string;
|
|
161
|
+
AccountInformationSource?: number;
|
|
162
|
+
OtherAccountInformationSource?: string;
|
|
163
|
+
HasSufficientInfoOnAccountInfo?: boolean;
|
|
164
|
+
NextOfKinPhoneNo?: string;
|
|
165
|
+
NextOfKinName?: string;
|
|
166
|
+
ReferralPhoneNo?: string;
|
|
167
|
+
ReferralName?: string;
|
|
168
|
+
CustomerImage?: string;
|
|
169
|
+
CustomerSignature?: string;
|
|
170
|
+
IdentificationImage?: string;
|
|
171
|
+
}
|
|
172
|
+
export interface BankOneCreateCustomerAccountResponse {
|
|
173
|
+
LastName: string;
|
|
174
|
+
OtherNames: string;
|
|
175
|
+
Address: string;
|
|
176
|
+
Gender: string;
|
|
177
|
+
DateOfBirth: string;
|
|
178
|
+
PhoneNo: string;
|
|
179
|
+
NationalIdentityNo: string;
|
|
180
|
+
CustomerType: string;
|
|
181
|
+
BankVerificationNumber: string;
|
|
182
|
+
CustomerID: string;
|
|
183
|
+
Email: string;
|
|
184
|
+
}
|
|
185
|
+
export interface BankOneCreateAccountQuickRequest {
|
|
186
|
+
TransactionTrackingRef: string;
|
|
187
|
+
AccountOfficerCode: string;
|
|
188
|
+
AccountOpeningTrackingRef: string;
|
|
189
|
+
ProductCode: string;
|
|
190
|
+
CustomerID: string;
|
|
191
|
+
LastName: string;
|
|
192
|
+
OtherNames: string;
|
|
193
|
+
BVN?: string;
|
|
194
|
+
PhoneNo: string;
|
|
195
|
+
Gender: number;
|
|
196
|
+
DateOfBirth: string;
|
|
197
|
+
Address: string;
|
|
198
|
+
Email: string;
|
|
199
|
+
NotificationPreference: number;
|
|
200
|
+
TransactionPermission: string;
|
|
201
|
+
AccountTier: string;
|
|
202
|
+
PlaceOfBirth: string;
|
|
203
|
+
NationalIdentityNo: string;
|
|
204
|
+
}
|
|
205
|
+
export interface BankOneCreateAccountQuickResponse {
|
|
206
|
+
IsSuccessful: boolean;
|
|
207
|
+
CustomerIDInString?: string;
|
|
208
|
+
Message: {
|
|
209
|
+
AccountNumber: string;
|
|
210
|
+
BankoneAccountNumber: string;
|
|
211
|
+
CustomerID: string;
|
|
212
|
+
FullName: string;
|
|
213
|
+
CreationMessage?: string;
|
|
214
|
+
Id: number;
|
|
215
|
+
};
|
|
216
|
+
TransactionTrackingRef: string;
|
|
217
|
+
Page?: string;
|
|
218
|
+
}
|
|
219
|
+
export interface BankOneAccountEnquiryRequest {
|
|
220
|
+
AccountNo: string;
|
|
221
|
+
AuthenticationCode: string;
|
|
222
|
+
}
|
|
223
|
+
export interface BankOneAccountEnquiryResponse {
|
|
224
|
+
Name: string;
|
|
225
|
+
FirstName: string;
|
|
226
|
+
LastName: string;
|
|
227
|
+
Email: string;
|
|
228
|
+
PhoneNo: string;
|
|
229
|
+
Nuban: string;
|
|
230
|
+
Number: string;
|
|
231
|
+
ProductCode: string;
|
|
232
|
+
PhoneNuber: string;
|
|
233
|
+
BVN: string;
|
|
234
|
+
AvailableBalance: number;
|
|
235
|
+
LedgerBalance: number;
|
|
236
|
+
Status: string;
|
|
237
|
+
Tier: string;
|
|
238
|
+
MaximumBalance: number;
|
|
239
|
+
MaximumDeposit: number;
|
|
240
|
+
IsSuccessful: boolean;
|
|
241
|
+
ResponseMessage: string;
|
|
242
|
+
PNDStatus: string;
|
|
243
|
+
LienStatus: string;
|
|
244
|
+
FreezeStatus: string;
|
|
245
|
+
RequestStatus: boolean;
|
|
246
|
+
ResponseDescription: string;
|
|
247
|
+
ResponseStatus: string;
|
|
248
|
+
}
|
|
249
|
+
export interface BankOneGetAccountsByCustomerIDRequest {
|
|
250
|
+
customerId: string;
|
|
251
|
+
authToken: string;
|
|
252
|
+
}
|
|
253
|
+
export interface BankOneAccount {
|
|
254
|
+
accessLevel: string;
|
|
255
|
+
accountNumber: string;
|
|
256
|
+
accountStatus: string;
|
|
257
|
+
accountType: string;
|
|
258
|
+
availableBalance: string;
|
|
259
|
+
branch: string;
|
|
260
|
+
customerID: string;
|
|
261
|
+
accountName: string;
|
|
262
|
+
productCode: string;
|
|
263
|
+
dateCreated: string;
|
|
264
|
+
lastActivityDate: string;
|
|
265
|
+
ledgerBalance: string;
|
|
266
|
+
NUBAN: string;
|
|
267
|
+
referenceNo: string;
|
|
268
|
+
withdrawableAmount: string;
|
|
269
|
+
kycLevel: string;
|
|
270
|
+
}
|
|
271
|
+
export interface BankOneGetAccountsByCustomerIDResponse {
|
|
272
|
+
address: string;
|
|
273
|
+
age: string;
|
|
274
|
+
BVN: string;
|
|
275
|
+
branchCode: string;
|
|
276
|
+
customerID: string;
|
|
277
|
+
dateOfBirth: string;
|
|
278
|
+
email: string;
|
|
279
|
+
gender: string;
|
|
280
|
+
localGovernmentArea: string;
|
|
281
|
+
name: string;
|
|
282
|
+
phoneNumber: string;
|
|
283
|
+
state: string;
|
|
284
|
+
Accounts: BankOneAccount[];
|
|
285
|
+
}
|
|
286
|
+
export interface BankOneUpdateAccountTierRequest {
|
|
287
|
+
AccountNumber: string;
|
|
288
|
+
AccountTier: '1' | '2' | '3';
|
|
289
|
+
}
|
|
290
|
+
export interface BankOneUpdateAccountTierResponse {
|
|
291
|
+
IsSuccessful: boolean;
|
|
292
|
+
Message: string;
|
|
293
|
+
TransactionTrackingRef: string;
|
|
294
|
+
Page: string;
|
|
295
|
+
CustomerIDInString?: string;
|
|
296
|
+
}
|
|
297
|
+
export interface BankOnePerformAccountTransactionRequest {
|
|
298
|
+
Amount: string;
|
|
299
|
+
AccountNumber: string;
|
|
300
|
+
RetrievalReference: string;
|
|
301
|
+
GLCode: string;
|
|
302
|
+
Token: string;
|
|
303
|
+
Narration?: string;
|
|
304
|
+
}
|
|
305
|
+
export interface BankOnePerformAccountTransactionResponse {
|
|
306
|
+
IsSuccessful: boolean;
|
|
307
|
+
ResponseMessage: string;
|
|
308
|
+
ResponseCode: string;
|
|
309
|
+
Reference: string;
|
|
310
|
+
}
|
|
311
|
+
export interface BankOneNameEnquiryRequest {
|
|
312
|
+
AccountNumber: string;
|
|
313
|
+
BankCode: string;
|
|
314
|
+
Token: string;
|
|
315
|
+
}
|
|
316
|
+
export interface BankOneNameEnquiryResponse {
|
|
317
|
+
Name: string;
|
|
318
|
+
BVN: string | null;
|
|
319
|
+
KYC: string | null;
|
|
320
|
+
IsSuccessful: boolean;
|
|
321
|
+
SessionID: string;
|
|
322
|
+
ResponseMessage: string;
|
|
323
|
+
DefaultGateWay: string;
|
|
324
|
+
InstitutionCode: string | null;
|
|
325
|
+
}
|
|
326
|
+
export interface BankOneGetCommercialBanksRequest {
|
|
327
|
+
}
|
|
328
|
+
export interface BankOneGetCommercialBanksData {
|
|
329
|
+
Code: string;
|
|
330
|
+
Gateway: string | null;
|
|
331
|
+
ID: string;
|
|
332
|
+
Name: string;
|
|
333
|
+
Status: boolean;
|
|
334
|
+
StatusDetails: string | null;
|
|
335
|
+
RequestStatus: boolean;
|
|
336
|
+
ResponseDescription: string | null;
|
|
337
|
+
ResponseStatus: string | null;
|
|
338
|
+
}
|
|
339
|
+
export type BankOneGetCommercialBanksResponse = BankOneGetCommercialBanksData[];
|
|
340
|
+
export interface BankOneInterbankTransferRequest {
|
|
341
|
+
Amount: string;
|
|
342
|
+
PayerAccountNumber: string;
|
|
343
|
+
Payer: string;
|
|
344
|
+
ReceiverBankCode: string;
|
|
345
|
+
ReceiverAccountNumber: string;
|
|
346
|
+
ReceiverName: string;
|
|
347
|
+
ReceiverPhoneNumber: string;
|
|
348
|
+
ReceiverAccountType: string;
|
|
349
|
+
TransactionReference: string;
|
|
350
|
+
Narration: string;
|
|
351
|
+
Token: string;
|
|
352
|
+
NIPSessionID: string;
|
|
353
|
+
}
|
|
354
|
+
export interface BankOneInterbankTransferResponse {
|
|
355
|
+
Status: string;
|
|
356
|
+
StatusDescription: string;
|
|
357
|
+
ReferenceID: number;
|
|
358
|
+
UniqueIdentifier: string;
|
|
359
|
+
IsSuccessFul: boolean;
|
|
360
|
+
ResponseMessage: string;
|
|
361
|
+
ResponseCode: string;
|
|
362
|
+
Reference: string;
|
|
363
|
+
SessionID: string;
|
|
364
|
+
RequestStatus: boolean;
|
|
365
|
+
ResponseDescription: string;
|
|
366
|
+
ResponseStatus: string;
|
|
367
|
+
}
|
|
368
|
+
export interface BankOnePndResponse {
|
|
369
|
+
RequestStatus: boolean;
|
|
370
|
+
ResponseDescription: string;
|
|
371
|
+
ResponseStatus: string;
|
|
372
|
+
}
|
|
373
|
+
export interface BankOneTransactionStatusQueryRequest {
|
|
374
|
+
RetrievalReference: string;
|
|
375
|
+
Token: string;
|
|
376
|
+
TransactionDate: string;
|
|
377
|
+
Amount: string;
|
|
378
|
+
TransactionType: string;
|
|
379
|
+
}
|
|
380
|
+
export interface BankOneTransactionStatusQueryResponse {
|
|
381
|
+
Status: string;
|
|
382
|
+
StatusDescription: string;
|
|
383
|
+
IsSuccessFul: boolean;
|
|
384
|
+
ResponseMessage: string;
|
|
385
|
+
ResponseCode: string;
|
|
386
|
+
Reference: string;
|
|
387
|
+
SessionID: string;
|
|
388
|
+
RequestStatus: boolean;
|
|
389
|
+
ResponseDescription: string;
|
|
390
|
+
ResponseStatus: string;
|
|
391
|
+
}
|
|
392
|
+
export interface BankOneDeactivatePNDRequest {
|
|
393
|
+
AccountNo: string;
|
|
394
|
+
AuthenticationCode: string;
|
|
395
|
+
}
|
|
396
|
+
export interface BankOneDeactivatePNDResponse {
|
|
397
|
+
RequestStatus: boolean;
|
|
398
|
+
ResponseDescription: string;
|
|
399
|
+
ResponseStatus: string;
|
|
400
|
+
}
|
|
401
|
+
export interface BankOneIntraBankTransferRequest {
|
|
402
|
+
Amount: string;
|
|
403
|
+
FromAccountNumber: string;
|
|
404
|
+
ToAccountNumber: string;
|
|
405
|
+
RetrievalReference: string;
|
|
406
|
+
Narration: string;
|
|
407
|
+
AuthenticationKey: string;
|
|
408
|
+
}
|
|
409
|
+
export interface BankOneIntraBankTransferResponse {
|
|
410
|
+
IsSuccessful: boolean;
|
|
411
|
+
ResponseCode: string;
|
|
412
|
+
ResponseMessage: string;
|
|
413
|
+
Reference: string;
|
|
414
|
+
}
|
|
415
|
+
export interface BankOneFreezeAccountRequest {
|
|
416
|
+
AccountNo: string;
|
|
417
|
+
AuthenticationCode: string;
|
|
418
|
+
ReferenceID: string;
|
|
419
|
+
Reason: string;
|
|
420
|
+
}
|
|
421
|
+
export interface BankOneFreezeAccountResponse {
|
|
422
|
+
RequestStatus: boolean;
|
|
423
|
+
ResponseDescription: string;
|
|
424
|
+
ResponseStatus: string;
|
|
425
|
+
}
|
|
426
|
+
export interface BankOneGetBankListRequest {
|
|
427
|
+
}
|
|
428
|
+
export interface BankOneBank {
|
|
429
|
+
Code: string;
|
|
430
|
+
Gateway: string | null;
|
|
431
|
+
ID: string;
|
|
432
|
+
Name: string;
|
|
433
|
+
Status: boolean;
|
|
434
|
+
StatusDetails: string | null;
|
|
435
|
+
RequestStatus: boolean;
|
|
436
|
+
ResponseDescription: string | null;
|
|
437
|
+
ResponseStatus: string | null;
|
|
438
|
+
}
|
|
439
|
+
export type BankOneGetBankListResponse = BankOneBank[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './cba.constant';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./cba.constant"), exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.BadRequestError = void 0;
|
|
19
|
+
var HttpRequest_1 = require("./HttpRequest");
|
|
20
|
+
var BadRequestError = (function (_super) {
|
|
21
|
+
__extends(BadRequestError, _super);
|
|
22
|
+
function BadRequestError(message) {
|
|
23
|
+
var _this = this;
|
|
24
|
+
var status = 400;
|
|
25
|
+
_this = _super.call(this, status, message) || this;
|
|
26
|
+
_this.name = 'BadRequestError';
|
|
27
|
+
return _this;
|
|
28
|
+
}
|
|
29
|
+
return BadRequestError;
|
|
30
|
+
}(HttpRequest_1.HttpError));
|
|
31
|
+
exports.BadRequestError = BadRequestError;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.HttpError = void 0;
|
|
19
|
+
var HttpError = (function (_super) {
|
|
20
|
+
__extends(HttpError, _super);
|
|
21
|
+
function HttpError(status, message) {
|
|
22
|
+
return _super.call(this, message) || this;
|
|
23
|
+
}
|
|
24
|
+
return HttpError;
|
|
25
|
+
}(Error));
|
|
26
|
+
exports.HttpError = HttpError;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.InternalServerError = void 0;
|
|
19
|
+
var HttpRequest_1 = require("./HttpRequest");
|
|
20
|
+
var InternalServerError = (function (_super) {
|
|
21
|
+
__extends(InternalServerError, _super);
|
|
22
|
+
function InternalServerError(message) {
|
|
23
|
+
var _this = this;
|
|
24
|
+
var status = 500;
|
|
25
|
+
_this = _super.call(this, status, message) || this;
|
|
26
|
+
_this.name = 'InternalServerError';
|
|
27
|
+
return _this;
|
|
28
|
+
}
|
|
29
|
+
return InternalServerError;
|
|
30
|
+
}(HttpRequest_1.HttpError));
|
|
31
|
+
exports.InternalServerError = InternalServerError;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ERROR_MESSAGES = exports.InternalServerError = exports.HttpError = exports.BadRequestError = void 0;
|
|
4
|
+
var BadRequest_1 = require("./BadRequest");
|
|
5
|
+
Object.defineProperty(exports, "BadRequestError", { enumerable: true, get: function () { return BadRequest_1.BadRequestError; } });
|
|
6
|
+
var HttpRequest_1 = require("./HttpRequest");
|
|
7
|
+
Object.defineProperty(exports, "HttpError", { enumerable: true, get: function () { return HttpRequest_1.HttpError; } });
|
|
8
|
+
var InternalServer_1 = require("./InternalServer");
|
|
9
|
+
Object.defineProperty(exports, "InternalServerError", { enumerable: true, get: function () { return InternalServer_1.InternalServerError; } });
|
|
10
|
+
var messages_1 = require("./messages");
|
|
11
|
+
Object.defineProperty(exports, "ERROR_MESSAGES", { enumerable: true, get: function () { return messages_1.ERROR_MESSAGES; } });
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ServiceResponse<T> {
|
|
2
|
+
success: boolean;
|
|
3
|
+
message: string;
|
|
4
|
+
timestamps: Date;
|
|
5
|
+
responseCode: string;
|
|
6
|
+
data?: T;
|
|
7
|
+
}
|
|
8
|
+
export declare class HttpClientResponseHandler {
|
|
9
|
+
errorResponse<T>(message?: string, responseCode?: string): ServiceResponse<T>;
|
|
10
|
+
successResponse<T>(payload: {
|
|
11
|
+
message?: string;
|
|
12
|
+
data?: T;
|
|
13
|
+
}): ServiceResponse<T>;
|
|
14
|
+
}
|