-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
28 lines (28 loc) · 1.64 KB
/
index.d.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
import type { CPACode, CPACodeCategory } from './types.js';
/**
* Retrieves the CPA code category object.
* @param cpaCode - A CPA code.
* @returns The CPA code category object, when available.
*/
export declare function getCPACodeCategoryByCode(cpaCode: string): CPACodeCategory | undefined;
/**
* Tests if a CPA code is valid.
* @param cpaCode - A possible CPA code.
* @returns `true` when the CPA code is valid.
*/
export declare function isCPACode(cpaCode: string): boolean;
/**
* Retrieves a CPA code object.
* @param cpaCode - A CPA code.
* @returns The CPA Code object, when available.
*/
export declare function getCPACode(cpaCode: string): CPACode | undefined;
/**
* Retrieves a list of CPA code objects that correspond to a given abbreviation.
* @param cpaCodeAbbreviation - A two or three letter CPA code abbreviation.
* @returns A list of CPA code objects.
*/
export declare function getCPACodesByAbbreviation(cpaCodeAbbreviation: string): CPACode[];
export { cpaTransactionCodeCategories, cpaTransactionCodes, cpaTransactionCodesCommercial, cpaTransactionCodesFederal, cpaTransactionCodesPreauthorized, cpaTransactionCodesProvincialLocal, getCPATransactionCodeCategoryByCode, getCPATransactionCode, getCPATransactionCodesByAbbreviation, isCPATransactionCode } from './cpaCodes/transactions.js';
export { cpaReturnCodeCategories, cpaReturnCodes, cpaReturnCodesCreditReturn, cpaReturnCodesDishonoured, cpaReturnCodesCustomerInitiated, cpaReturnCodesDefault, getCPAReturnCodeCategoryByCode, getCPAReturnCode, getCPAReturnCodesByAbbreviation, isCPAReturnCode } from './cpaCodes/returns.js';
export type { CPACodeCategory, CPACode } from './types.js';