Add bank.ts file - complete bank selector implementation
This commit is contained in:
20
packages/types/src/bank.d.ts
vendored
Normal file
20
packages/types/src/bank.d.ts
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Bank and SWIFT/BIC code types
|
||||
*/
|
||||
export interface Bank {
|
||||
swiftCode: string;
|
||||
institutionName: string;
|
||||
city: string;
|
||||
country: string;
|
||||
branchCode?: string;
|
||||
address?: string;
|
||||
postalCode?: string;
|
||||
phone?: string;
|
||||
active: boolean;
|
||||
}
|
||||
export interface BankRegistry {
|
||||
banks: Bank[];
|
||||
lastUpdated: Date;
|
||||
version: string;
|
||||
}
|
||||
//# sourceMappingURL=bank.d.ts.map
|
||||
1
packages/types/src/bank.d.ts.map
Normal file
1
packages/types/src/bank.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bank.d.ts","sourceRoot":"","sources":["bank.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,IAAI;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,WAAW,EAAE,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
||||
5
packages/types/src/bank.js
Normal file
5
packages/types/src/bank.js
Normal file
@@ -0,0 +1,5 @@
|
||||
/**
|
||||
* Bank and SWIFT/BIC code types
|
||||
*/
|
||||
export {};
|
||||
//# sourceMappingURL=bank.js.map
|
||||
1
packages/types/src/bank.js.map
Normal file
1
packages/types/src/bank.js.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bank.js","sourceRoot":"","sources":["bank.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
||||
21
packages/types/src/bank.ts
Normal file
21
packages/types/src/bank.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* Bank and SWIFT/BIC code types
|
||||
*/
|
||||
|
||||
export interface Bank {
|
||||
swiftCode: string; // BIC/SWIFT code (e.g., ESTRBRRJ)
|
||||
institutionName: string; // Full institution name
|
||||
city: string; // City where the bank is located
|
||||
country: string; // ISO country code (e.g., BR)
|
||||
branchCode?: string; // Optional branch code
|
||||
address?: string; // Optional physical address
|
||||
postalCode?: string; // Optional postal code
|
||||
phone?: string; // Optional phone number
|
||||
active: boolean; // Whether this bank is currently active
|
||||
}
|
||||
|
||||
export interface BankRegistry {
|
||||
banks: Bank[];
|
||||
lastUpdated: Date;
|
||||
version: string;
|
||||
}
|
||||
Reference in New Issue
Block a user