@vantagepay/vantagepay 0.15.0
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/README.md +515 -0
- package/dist/apiConfig.d.ts +10 -0
- package/dist/apiError.d.ts +5 -0
- package/dist/apiTokens.d.ts +7 -0
- package/dist/authentication/index.d.ts +22 -0
- package/dist/authentication/types.d.ts +67 -0
- package/dist/baseApi.d.ts +9 -0
- package/dist/common/types.d.ts +99 -0
- package/dist/consumers/index.d.ts +11 -0
- package/dist/consumers/types.d.ts +358 -0
- package/dist/content/index.d.ts +7 -0
- package/dist/devices/types.d.ts +20 -0
- package/dist/eventTypes.d.ts +10 -0
- package/dist/gmoney/index.d.ts +48 -0
- package/dist/gmoney/types.d.ts +136 -0
- package/dist/hubtel/index.d.ts +21 -0
- package/dist/hubtel/types.d.ts +35 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.m.js +2 -0
- package/dist/index.m.js.map +1 -0
- package/dist/index.modern.mjs +2 -0
- package/dist/index.modern.mjs.map +1 -0
- package/dist/index.umd.js +2 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/log/index.d.ts +19 -0
- package/dist/log/messageTemplate.d.ts +10 -0
- package/dist/log/types.d.ts +20 -0
- package/dist/lookups/index.d.ts +28 -0
- package/dist/lookups/types.d.ts +1840 -0
- package/dist/merchants/index.d.ts +36 -0
- package/dist/merchants/types.d.ts +479 -0
- package/dist/payments/index.d.ts +38 -0
- package/dist/payments/types.d.ts +2015 -0
- package/dist/qr/index.d.ts +6 -0
- package/dist/reports/index.d.ts +8 -0
- package/dist/reports/types.d.ts +67 -0
- package/dist/system/index.d.ts +4 -0
- package/dist/tokens/types.d.ts +38 -0
- package/dist/transflow/index.d.ts +11 -0
- package/dist/transflow/types.d.ts +11 -0
- package/package.json +47 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { BaseApi } from '../baseApi';
|
|
3
|
+
export declare class Log extends BaseApi {
|
|
4
|
+
private readonly messageBatch;
|
|
5
|
+
private readonly batchSize;
|
|
6
|
+
private readonly batchInterval;
|
|
7
|
+
private readonly maxQueueSize;
|
|
8
|
+
private batchTimeout;
|
|
9
|
+
constructor(axiosInstance: AxiosInstance, consoleLogging?: boolean, logBatchSize?: number, logBatchInterval?: number);
|
|
10
|
+
flush(): Promise<void>;
|
|
11
|
+
fatal(template: string, ...properties: any[]): string;
|
|
12
|
+
error(template: string, ...properties: any[]): string;
|
|
13
|
+
warn(template: string, ...properties: any[]): string;
|
|
14
|
+
info(template: string, ...properties: any[]): string;
|
|
15
|
+
debug(template: string, ...properties: any[]): string;
|
|
16
|
+
trace(template: string, ...properties: any[]): string;
|
|
17
|
+
private log;
|
|
18
|
+
private submitMessageBatch;
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare enum LogLevel {
|
|
2
|
+
Trace = 0,
|
|
3
|
+
Debug = 1,
|
|
4
|
+
Information = 2,
|
|
5
|
+
Warning = 3,
|
|
6
|
+
Error = 4,
|
|
7
|
+
Critical = 5
|
|
8
|
+
}
|
|
9
|
+
export interface LogMessage {
|
|
10
|
+
timestamp: string;
|
|
11
|
+
level: LogLevel;
|
|
12
|
+
template: string;
|
|
13
|
+
properties?: any[];
|
|
14
|
+
}
|
|
15
|
+
export interface Token {
|
|
16
|
+
name?: string;
|
|
17
|
+
text?: string;
|
|
18
|
+
destructure?: boolean;
|
|
19
|
+
raw?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BaseApi } from '../baseApi';
|
|
2
|
+
import { Country, CurrencyData, CountryData, LanguageData, MobileWalletOperatorData, BankData, IdAndDescription } from './types';
|
|
3
|
+
import { Address } from '../common/types';
|
|
4
|
+
export declare class Lookups extends BaseApi {
|
|
5
|
+
private readonly cardIssuerCountryCache;
|
|
6
|
+
private readonly addressLocationCache;
|
|
7
|
+
private readonly digitalAddressCache;
|
|
8
|
+
private readonly bankCache;
|
|
9
|
+
private currencyCache;
|
|
10
|
+
private countryCache;
|
|
11
|
+
private languageCache;
|
|
12
|
+
private mobileWalletOperatorCache;
|
|
13
|
+
private productTypeCache;
|
|
14
|
+
private merchantCategoryCache;
|
|
15
|
+
getProductTypes(): Promise<IdAndDescription[]>;
|
|
16
|
+
getMerchantCategories(): Promise<IdAndDescription[]>;
|
|
17
|
+
getCurrencies(): Promise<CurrencyData[]>;
|
|
18
|
+
getCountries(): Promise<CountryData[]>;
|
|
19
|
+
getLanguages(): Promise<LanguageData[]>;
|
|
20
|
+
getAllCurrencies(): Promise<CurrencyData[]>;
|
|
21
|
+
getAllCountries(): Promise<CountryData[]>;
|
|
22
|
+
getAllLanguages(): Promise<LanguageData[]>;
|
|
23
|
+
getMobileWalletOperators(): Promise<MobileWalletOperatorData[]>;
|
|
24
|
+
getBanks(country?: Country): Promise<BankData[]>;
|
|
25
|
+
getCardIssuerCountry(cardBin: string): Promise<CountryData>;
|
|
26
|
+
getAddressFromLocation(latitude: number, longitude: number): Promise<Address>;
|
|
27
|
+
getAddressFromDigitalAddress(digitalAddress: string): Promise<Address>;
|
|
28
|
+
}
|