@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,99 @@
|
|
|
1
|
+
import { Country } from '../lookups/types';
|
|
2
|
+
import { IdentityDocumentType } from '../lookups/types';
|
|
3
|
+
/** Model to hold address details. */
|
|
4
|
+
export declare class Address {
|
|
5
|
+
/** Gets the address reference. */
|
|
6
|
+
reference?: string;
|
|
7
|
+
/** Gets or sets the type of address the details are referring to. */
|
|
8
|
+
addressType: AddressType;
|
|
9
|
+
/** Gets or sets first line of the address (required). */
|
|
10
|
+
addressLine1: string;
|
|
11
|
+
/** Gets or sets second line of the address. */
|
|
12
|
+
addressLine2?: string;
|
|
13
|
+
/** Gets or sets third line of the address. */
|
|
14
|
+
addressLine3?: string;
|
|
15
|
+
/** Gets or sets postal code of the address. */
|
|
16
|
+
postalCode?: string;
|
|
17
|
+
/** Gets or sets 3 character ISO country code the address resides in. */
|
|
18
|
+
countryIsoCode: Country;
|
|
19
|
+
/** Gets or sets city the address resides in (required). */
|
|
20
|
+
city: string;
|
|
21
|
+
/** Gets or sets state/province the address resides in. */
|
|
22
|
+
state?: string;
|
|
23
|
+
/** Gets or sets additional location information for the address so that it can be pinned on a map. */
|
|
24
|
+
location?: Location;
|
|
25
|
+
/** Gets or sets the description of the address. */
|
|
26
|
+
description?: string;
|
|
27
|
+
/** Gets a single-line formatted string of the address. */
|
|
28
|
+
formatted: string;
|
|
29
|
+
isActive: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare enum AddressType {
|
|
32
|
+
MAIN = "MAIN",
|
|
33
|
+
POST = "POST",
|
|
34
|
+
BILL = "BILL",
|
|
35
|
+
SHIP = "SHIP"
|
|
36
|
+
}
|
|
37
|
+
export declare enum BankAccountType {
|
|
38
|
+
SAVINGS = "SAVINGS",
|
|
39
|
+
CURRENT = "CURRENT",
|
|
40
|
+
FIXED = "FIXED",
|
|
41
|
+
MONEYMARKET = "MONEYMARKET",
|
|
42
|
+
CODA = "CODA"
|
|
43
|
+
}
|
|
44
|
+
export declare class FaceCheckResult {
|
|
45
|
+
faceCount: number;
|
|
46
|
+
containsNoise: boolean;
|
|
47
|
+
isLowQuality: boolean;
|
|
48
|
+
isOverExposed: boolean;
|
|
49
|
+
isUnderExposed: boolean;
|
|
50
|
+
isBlurry: boolean;
|
|
51
|
+
isWearingMask: boolean;
|
|
52
|
+
foreheadNotIncluded: boolean;
|
|
53
|
+
eyesNotIncluded: boolean;
|
|
54
|
+
mouthNotIncluded: boolean;
|
|
55
|
+
faceLeft?: number;
|
|
56
|
+
faceTop?: number;
|
|
57
|
+
faceWidth?: number;
|
|
58
|
+
faceHeight?: number;
|
|
59
|
+
problems: string[];
|
|
60
|
+
}
|
|
61
|
+
/** Model to hold identification details. */
|
|
62
|
+
export declare class IdentityDocument {
|
|
63
|
+
/** Gets or sets the identification document reference. */
|
|
64
|
+
reference?: string;
|
|
65
|
+
/** Gets or sets the type of identification document submitted by the consumer. */
|
|
66
|
+
identityDocumentType: IdentityDocumentType;
|
|
67
|
+
/** Gets or sets the 3 character ISO country code where the document was issued. */
|
|
68
|
+
countryIsoCode: Country;
|
|
69
|
+
/** Gets or sets the encrypted identification number. */
|
|
70
|
+
identityNumber: string;
|
|
71
|
+
/** Gets or sets the place of issuance. */
|
|
72
|
+
placeOfIssuance?: string;
|
|
73
|
+
/** Gets or sets the date at which the identification document was issued. */
|
|
74
|
+
effectiveDate?: Date;
|
|
75
|
+
/** Gets or sets the date at which the identification document expires. */
|
|
76
|
+
expiryDate?: Date;
|
|
77
|
+
}
|
|
78
|
+
/** Model to hold location data. */
|
|
79
|
+
export declare class Location {
|
|
80
|
+
/** A latitude value expressed as a 64 bit floating point number (required). */
|
|
81
|
+
latitude: number;
|
|
82
|
+
/** A longitude value expressed as a 64 bit floating point number (required). */
|
|
83
|
+
longitude: number;
|
|
84
|
+
/** The time zone for this location. */
|
|
85
|
+
timeZone?: string;
|
|
86
|
+
/** The description of this location (if available). */
|
|
87
|
+
description?: string;
|
|
88
|
+
}
|
|
89
|
+
export declare class NameAndReference {
|
|
90
|
+
name: string;
|
|
91
|
+
reference: string;
|
|
92
|
+
externalReference: string;
|
|
93
|
+
}
|
|
94
|
+
/** Model to hold API endpoint and access token for an environment. */
|
|
95
|
+
export declare class SwitchEnvironmentInfo {
|
|
96
|
+
name: string;
|
|
97
|
+
accessToken: string;
|
|
98
|
+
apiBaseUrl: string;
|
|
99
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseApi } from '../baseApi';
|
|
2
|
+
import { BasicConsumer, Consumer, Message } from './types';
|
|
3
|
+
export declare class Consumers extends BaseApi {
|
|
4
|
+
createConsumer(request: BasicConsumer): Promise<Consumer>;
|
|
5
|
+
updateConsumer(request: Consumer): Promise<Consumer>;
|
|
6
|
+
deleteConsumer(): Promise<void>;
|
|
7
|
+
getConsumer(): Promise<Consumer>;
|
|
8
|
+
submitFeedback(description: string): Promise<void>;
|
|
9
|
+
getMessage(messageReference: string): Promise<Message>;
|
|
10
|
+
deleteMessage(messageReference: string): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
import { Country } from '../lookups/types';
|
|
2
|
+
import { Gender } from '../lookups/types';
|
|
3
|
+
import { Language } from '../lookups/types';
|
|
4
|
+
import { Bank } from '../lookups/types';
|
|
5
|
+
import { BankAccountType } from '../common/types';
|
|
6
|
+
import { Currency } from '../lookups/types';
|
|
7
|
+
import { Month } from '../lookups/types';
|
|
8
|
+
import { MobileWalletOperator } from '../lookups/types';
|
|
9
|
+
import { LoginCredentials } from '../authentication/types';
|
|
10
|
+
import { IdentityDocument } from '../common/types';
|
|
11
|
+
import { Device } from '../devices/types';
|
|
12
|
+
import { Address } from '../common/types';
|
|
13
|
+
import { CardHolder } from '../payments/types';
|
|
14
|
+
import { ConsumerFileType } from '../lookups/types';
|
|
15
|
+
import { KycProvider } from '../lookups/types';
|
|
16
|
+
import { KycStatus } from '../lookups/types';
|
|
17
|
+
import { KycVerificationType } from '../lookups/types';
|
|
18
|
+
/** Model to hold basic consumer details. */
|
|
19
|
+
export declare class BasicConsumer {
|
|
20
|
+
/** Gets or sets the consumer reference. */
|
|
21
|
+
reference?: string;
|
|
22
|
+
/** Gets or sets the consumer external reference if linked to another system. */
|
|
23
|
+
yourReference?: string;
|
|
24
|
+
/** Gets or sets the current originator source of the consumer. */
|
|
25
|
+
source: string;
|
|
26
|
+
/** Gets the user reference associated with the user. */
|
|
27
|
+
userReference?: string;
|
|
28
|
+
/** Gets or sets the first name of the consumer (required). */
|
|
29
|
+
firstName?: string;
|
|
30
|
+
/** Gets or sets the last name (surname) of the consumer (required if IdentityNumber is not supplied). */
|
|
31
|
+
lastName?: string;
|
|
32
|
+
/** Gets or sets the middle name of the consumer. */
|
|
33
|
+
middleName?: string;
|
|
34
|
+
/** Gets or sets the email address for the consumer. */
|
|
35
|
+
emailAddress?: string;
|
|
36
|
+
/** Gets or sets the mobile number for the consumer. */
|
|
37
|
+
mobileNumber?: string;
|
|
38
|
+
/** Gets or sets 3 character ISO country code the consumer resides in. */
|
|
39
|
+
countryIsoCode: Country;
|
|
40
|
+
/** Gets or sets the date of birth of the consumer. */
|
|
41
|
+
dateOfBirth?: Date;
|
|
42
|
+
/** Gets or sets the gender of the consumer. */
|
|
43
|
+
gender?: Gender;
|
|
44
|
+
/** Gets or sets the language code preference of the consumer. */
|
|
45
|
+
preferredLanguage: Language;
|
|
46
|
+
/** Gets the KYC summary status. */
|
|
47
|
+
kycStatusSummary: KycStatusSummary;
|
|
48
|
+
isActive: boolean;
|
|
49
|
+
}
|
|
50
|
+
/** Model to hold consumer beneficiary details. */
|
|
51
|
+
export declare class Beneficiary {
|
|
52
|
+
/** A globally unique transaction reference (UUID) generated by the system internally to identify a specific beneficiary. */
|
|
53
|
+
reference?: string;
|
|
54
|
+
/** The beneficiary name. */
|
|
55
|
+
name: string;
|
|
56
|
+
/** A list of bank accounts associated with a beneficiary. */
|
|
57
|
+
bankAccounts: BeneficiaryBankAccount[];
|
|
58
|
+
/** A list of mobile wallets associated with a beneficiary. */
|
|
59
|
+
mobileWallets: BeneficiaryMobileWallet[];
|
|
60
|
+
/** A list of cards associated with a beneficiary. */
|
|
61
|
+
cards: BeneficiaryCard[];
|
|
62
|
+
isActive: boolean;
|
|
63
|
+
}
|
|
64
|
+
/** Model to hold the unique details for a bank account beneficiary. */
|
|
65
|
+
export declare class BeneficiaryBankAccount {
|
|
66
|
+
/** The bank account token that was generated by the system. */
|
|
67
|
+
token?: string;
|
|
68
|
+
accountNumber: string;
|
|
69
|
+
bank: Bank;
|
|
70
|
+
bankName: string;
|
|
71
|
+
/** The bank account type. */
|
|
72
|
+
bankAccountType: BankAccountType;
|
|
73
|
+
bankAccountTypeName: string;
|
|
74
|
+
/** The branch code associated with the bank which holds the bank account. */
|
|
75
|
+
routingCode?: string;
|
|
76
|
+
/** A globally unique reference (UUID) generated by the system internally to identify a specific beneficiary account. */
|
|
77
|
+
reference: string;
|
|
78
|
+
/** A 3 character ISO currency code. */
|
|
79
|
+
currency: Currency;
|
|
80
|
+
/** The details which add sufficient context behind the money transfer to the beneficiary. */
|
|
81
|
+
recipientReference?: string;
|
|
82
|
+
/** The details which add sufficient context behind the money transfer to the consumer. */
|
|
83
|
+
senderReference?: string;
|
|
84
|
+
/** A flag indicating whether the consumer requires a notification to be sent to the beneficiary after a successful money transfer. */
|
|
85
|
+
sendProofOfPayment: boolean;
|
|
86
|
+
/** The email address for the beneficiary. */
|
|
87
|
+
proofOfPaymentEmailAddress?: string;
|
|
88
|
+
/** The mobile number for the beneficiary. */
|
|
89
|
+
proofOfPaymentMobileNumber?: string;
|
|
90
|
+
isActive: boolean;
|
|
91
|
+
}
|
|
92
|
+
/** Model to hold the unique details for a bank account beneficiary. */
|
|
93
|
+
export declare class BeneficiaryCard {
|
|
94
|
+
/** The bank account token that was generated by the system. */
|
|
95
|
+
token?: string;
|
|
96
|
+
/** The full card number. */
|
|
97
|
+
cardNumber: string;
|
|
98
|
+
/** The name of the card holder as printed on the card. */
|
|
99
|
+
nameOnCard: string;
|
|
100
|
+
/** The month in which the card expires. */
|
|
101
|
+
expiryMonth: Month;
|
|
102
|
+
/** The year in which the card expires. */
|
|
103
|
+
expiryYear: number;
|
|
104
|
+
cardIssuer: string;
|
|
105
|
+
/** A globally unique reference (UUID) generated by the system internally to identify a specific beneficiary account. */
|
|
106
|
+
reference: string;
|
|
107
|
+
/** A 3 character ISO currency code. */
|
|
108
|
+
currency: Currency;
|
|
109
|
+
/** The details which add sufficient context behind the money transfer to the beneficiary. */
|
|
110
|
+
recipientReference?: string;
|
|
111
|
+
/** The details which add sufficient context behind the money transfer to the consumer. */
|
|
112
|
+
senderReference?: string;
|
|
113
|
+
/** A flag indicating whether the consumer requires a notification to be sent to the beneficiary after a successful money transfer. */
|
|
114
|
+
sendProofOfPayment: boolean;
|
|
115
|
+
/** The email address for the beneficiary. */
|
|
116
|
+
proofOfPaymentEmailAddress?: string;
|
|
117
|
+
/** The mobile number for the beneficiary. */
|
|
118
|
+
proofOfPaymentMobileNumber?: string;
|
|
119
|
+
isActive: boolean;
|
|
120
|
+
}
|
|
121
|
+
/** Model to hold the unique details for a mobile money beneficiary. */
|
|
122
|
+
export declare class BeneficiaryMobileWallet {
|
|
123
|
+
/**
|
|
124
|
+
* Mobile Station International Subscriber Directory Number (MSISDN) is a number used to identify a mobile phone number internationally.
|
|
125
|
+
* This number includes a country code and a National Destination Code which identifies the subscriber's operator.
|
|
126
|
+
*/
|
|
127
|
+
msisdn: string;
|
|
128
|
+
/** The mobile wallet operator that owns the mobile money account. */
|
|
129
|
+
mobileWalletOperator: MobileWalletOperator;
|
|
130
|
+
mobileWalletOperatorName: string;
|
|
131
|
+
/** A globally unique reference (UUID) generated by the system internally to identify a specific beneficiary account. */
|
|
132
|
+
reference: string;
|
|
133
|
+
/** A 3 character ISO currency code. */
|
|
134
|
+
currency: Currency;
|
|
135
|
+
/** The details which add sufficient context behind the money transfer to the beneficiary. */
|
|
136
|
+
recipientReference?: string;
|
|
137
|
+
/** The details which add sufficient context behind the money transfer to the consumer. */
|
|
138
|
+
senderReference?: string;
|
|
139
|
+
/** A flag indicating whether the consumer requires a notification to be sent to the beneficiary after a successful money transfer. */
|
|
140
|
+
sendProofOfPayment: boolean;
|
|
141
|
+
/** The email address for the beneficiary. */
|
|
142
|
+
proofOfPaymentEmailAddress?: string;
|
|
143
|
+
/** The mobile number for the beneficiary. */
|
|
144
|
+
proofOfPaymentMobileNumber?: string;
|
|
145
|
+
isActive: boolean;
|
|
146
|
+
}
|
|
147
|
+
/** Model to hold detailed consumer details. */
|
|
148
|
+
export declare class Consumer {
|
|
149
|
+
/** The date and time this consumer record was created. */
|
|
150
|
+
createdDate: Date;
|
|
151
|
+
/** Gets or sets the login credentials that this consumer can use to access their data. */
|
|
152
|
+
loginCredentials?: LoginCredentials;
|
|
153
|
+
/** Gets or sets the full name of a consumer's next of kin. */
|
|
154
|
+
fullNameOfNextOfKin?: string;
|
|
155
|
+
/** Gets or sets the contact number for a consumer's next of kin. */
|
|
156
|
+
contactNumberForNextOfKin?: string;
|
|
157
|
+
/** Gets or sets the invitation code for the consumer. */
|
|
158
|
+
invitationCode?: string;
|
|
159
|
+
/** Gets or sets a flag to indicate whether registration details have been captured by the consumer themselves. */
|
|
160
|
+
isRegistrationComplete: boolean;
|
|
161
|
+
/** Gets or sets a flag to indicate whether the consumer has verified their email address details yet or not. */
|
|
162
|
+
isEmailVerified: boolean;
|
|
163
|
+
/** Gets or sets a flag to indicate whether the consumer has verified their mobile number yet or not. */
|
|
164
|
+
isMobileNumberVerified: boolean;
|
|
165
|
+
/** Gets the available identification documentation information for the consumer. */
|
|
166
|
+
identityDocuments: IdentityDocument[];
|
|
167
|
+
/** Gets a list of KYC lookups related to the consumer. */
|
|
168
|
+
kycLookupResults: KycLookupResult[];
|
|
169
|
+
/** Gets a list of files related to the consumer. */
|
|
170
|
+
files: ConsumerFile[];
|
|
171
|
+
/** Gets a list of consumer devices. */
|
|
172
|
+
devices: Device[];
|
|
173
|
+
/** Gets the list of available addresses for the consumer. */
|
|
174
|
+
addresses: Address[];
|
|
175
|
+
/** A collection of available beneficiaries associated with the consumer. */
|
|
176
|
+
beneficiaries: Beneficiary[];
|
|
177
|
+
/** A collection of all financial institution accounts associated with the consumer. */
|
|
178
|
+
accounts: ConsumerAccounts;
|
|
179
|
+
/** Gets the attributes. */
|
|
180
|
+
attributes: ConsumerAttributeValue[];
|
|
181
|
+
rewardPointsInfo?: RewardPointsInfo;
|
|
182
|
+
/** Gets or sets the consumer reference. */
|
|
183
|
+
reference?: string;
|
|
184
|
+
/** Gets or sets the consumer external reference if linked to another system. */
|
|
185
|
+
yourReference?: string;
|
|
186
|
+
/** Gets or sets the current originator source of the consumer. */
|
|
187
|
+
source: string;
|
|
188
|
+
/** Gets the user reference associated with the user. */
|
|
189
|
+
userReference?: string;
|
|
190
|
+
/** Gets or sets the first name of the consumer (required). */
|
|
191
|
+
firstName?: string;
|
|
192
|
+
/** Gets or sets the last name (surname) of the consumer (required if IdentityNumber is not supplied). */
|
|
193
|
+
lastName?: string;
|
|
194
|
+
/** Gets or sets the middle name of the consumer. */
|
|
195
|
+
middleName?: string;
|
|
196
|
+
/** Gets or sets the email address for the consumer. */
|
|
197
|
+
emailAddress?: string;
|
|
198
|
+
/** Gets or sets the mobile number for the consumer. */
|
|
199
|
+
mobileNumber?: string;
|
|
200
|
+
/** Gets or sets 3 character ISO country code the consumer resides in. */
|
|
201
|
+
countryIsoCode: Country;
|
|
202
|
+
/** Gets or sets the date of birth of the consumer. */
|
|
203
|
+
dateOfBirth?: Date;
|
|
204
|
+
/** Gets or sets the gender of the consumer. */
|
|
205
|
+
gender?: Gender;
|
|
206
|
+
/** Gets or sets the language code preference of the consumer. */
|
|
207
|
+
preferredLanguage: Language;
|
|
208
|
+
/** Gets the KYC summary status. */
|
|
209
|
+
kycStatusSummary: KycStatusSummary;
|
|
210
|
+
isActive: boolean;
|
|
211
|
+
}
|
|
212
|
+
export declare class ConsumerAccounts {
|
|
213
|
+
/** A list of bank accounts associated with a consumer. */
|
|
214
|
+
bankAccounts: ConsumerBankAccount[];
|
|
215
|
+
/** A list of mobile money / wallet accounts associated with a consumer. */
|
|
216
|
+
mobileWallets: ConsumerMobileWallet[];
|
|
217
|
+
/** A list of cards associated with a consumer. */
|
|
218
|
+
cards: ConsumerCard[];
|
|
219
|
+
}
|
|
220
|
+
export declare enum ConsumerAttribute {
|
|
221
|
+
VisaPAN = 1,
|
|
222
|
+
MasterCardPAN = 2,
|
|
223
|
+
RegistrationInvitationCode = 3,
|
|
224
|
+
GMoneyWalletNumber = 4,
|
|
225
|
+
LinkedGcbBankAccountReferences = 5
|
|
226
|
+
}
|
|
227
|
+
/** Model to hold various attributes about a consumer. */
|
|
228
|
+
export declare class ConsumerAttributeValue {
|
|
229
|
+
name: string;
|
|
230
|
+
attribute: ConsumerAttribute;
|
|
231
|
+
value: string;
|
|
232
|
+
}
|
|
233
|
+
export declare class ConsumerBankAccount {
|
|
234
|
+
/** The bank account token that was generated by the system. */
|
|
235
|
+
token?: string;
|
|
236
|
+
accountNumber: string;
|
|
237
|
+
bank: Bank;
|
|
238
|
+
branchName?: string;
|
|
239
|
+
/** The branch code associated with the bank which holds the bank account. */
|
|
240
|
+
routingCode?: string;
|
|
241
|
+
isActive: boolean;
|
|
242
|
+
/** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
|
|
243
|
+
reference?: string;
|
|
244
|
+
/** A 3 character ISO currency code. */
|
|
245
|
+
currency: Currency;
|
|
246
|
+
/** The details which add sufficient context behind the account to the consumer. */
|
|
247
|
+
accountName: string;
|
|
248
|
+
iconUrl?: string;
|
|
249
|
+
}
|
|
250
|
+
export declare class ConsumerCard {
|
|
251
|
+
/** Additional customer information to facilitate the card payment. */
|
|
252
|
+
cardHolder: CardHolder;
|
|
253
|
+
/** The card token that was generated by the system. */
|
|
254
|
+
token?: string;
|
|
255
|
+
cardIssuer: string;
|
|
256
|
+
/** The full card number. */
|
|
257
|
+
cardNumber: string;
|
|
258
|
+
/** The name of the card holder as printed on the card. */
|
|
259
|
+
nameOnCard: string;
|
|
260
|
+
/** The month in which the card expires. */
|
|
261
|
+
expiryMonth: Month;
|
|
262
|
+
/** The year in which the card expires. */
|
|
263
|
+
expiryYear: number;
|
|
264
|
+
isActive: boolean;
|
|
265
|
+
/** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
|
|
266
|
+
reference?: string;
|
|
267
|
+
/** A 3 character ISO currency code. */
|
|
268
|
+
currency: Currency;
|
|
269
|
+
/** The details which add sufficient context behind the account to the consumer. */
|
|
270
|
+
accountName: string;
|
|
271
|
+
iconUrl?: string;
|
|
272
|
+
}
|
|
273
|
+
export declare class ConsumerFile {
|
|
274
|
+
fileType: ConsumerFileType;
|
|
275
|
+
kycResults: KycFileResult[];
|
|
276
|
+
reference?: string;
|
|
277
|
+
yourReference?: string;
|
|
278
|
+
fileName: string;
|
|
279
|
+
mimeType: string;
|
|
280
|
+
base64Data?: string;
|
|
281
|
+
createdDate: Date;
|
|
282
|
+
lastUpdatedDate?: Date;
|
|
283
|
+
}
|
|
284
|
+
export declare class ConsumerMobileWallet {
|
|
285
|
+
/**
|
|
286
|
+
* Mobile Station International Subscriber Directory Number (MSISDN) is a number used to identify a mobile phone number internationally.
|
|
287
|
+
* This number includes a country code and a National Destination Code which identifies the subscriber's operator.
|
|
288
|
+
*/
|
|
289
|
+
msisdn: string;
|
|
290
|
+
/** The mobile wallet operator that owns the mobile money account. */
|
|
291
|
+
mobileWalletOperator: MobileWalletOperator;
|
|
292
|
+
isActive: boolean;
|
|
293
|
+
/** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
|
|
294
|
+
reference?: string;
|
|
295
|
+
/** A 3 character ISO currency code. */
|
|
296
|
+
currency: Currency;
|
|
297
|
+
/** The details which add sufficient context behind the account to the consumer. */
|
|
298
|
+
accountName: string;
|
|
299
|
+
iconUrl?: string;
|
|
300
|
+
}
|
|
301
|
+
export declare class Feedback {
|
|
302
|
+
description?: string;
|
|
303
|
+
}
|
|
304
|
+
/** The KYC file result. */
|
|
305
|
+
export declare class KycFileResult {
|
|
306
|
+
/** Gets or sets the unique identifier for the KYC service provider used to retrieve the consumer KYC data. */
|
|
307
|
+
provider: KycProvider;
|
|
308
|
+
/** Gets or sets the status of the particular KYC verification. */
|
|
309
|
+
status: KycStatus;
|
|
310
|
+
/** Gets or sets the consumer KYC verification type. */
|
|
311
|
+
verificationType: KycVerificationType;
|
|
312
|
+
/** Gets or sets the KYC provider reference associated with the KYC Lookup. */
|
|
313
|
+
providerReference?: string;
|
|
314
|
+
/** Gets the created date of the KYC lookup result. */
|
|
315
|
+
createdDate: Date;
|
|
316
|
+
/** Gets or sets the last date and time of when the KYC data was updated. */
|
|
317
|
+
lastUpdatedDate?: Date;
|
|
318
|
+
}
|
|
319
|
+
/** The KYC lookup result. */
|
|
320
|
+
export declare class KycLookupResult {
|
|
321
|
+
/** Gets or sets the unique identifier for the KYC service provider used to retrieve the consumer KYC data. */
|
|
322
|
+
provider: KycProvider;
|
|
323
|
+
/** Gets or sets the status of the particular KYC verification. */
|
|
324
|
+
status: KycStatus;
|
|
325
|
+
/** Gets or sets the consumer KYC verification type. */
|
|
326
|
+
verificationType: KycVerificationType;
|
|
327
|
+
/** Gets or sets the KYC provider reference associated with the KYC Lookup. */
|
|
328
|
+
providerReference?: string;
|
|
329
|
+
/** Gets the created date of the KYC lookup result. */
|
|
330
|
+
createdDate: Date;
|
|
331
|
+
/** Gets or sets the last date and time of when the KYC data was updated. */
|
|
332
|
+
lastUpdatedDate?: Date;
|
|
333
|
+
}
|
|
334
|
+
export declare enum KycStatusSummary {
|
|
335
|
+
Unverified = "Unverified",
|
|
336
|
+
Verified = "Verified",
|
|
337
|
+
Rejected = "Rejected"
|
|
338
|
+
}
|
|
339
|
+
/** Model to hold consumer message details. */
|
|
340
|
+
export declare class Message {
|
|
341
|
+
/** A globally unique transaction reference (UUID) generated by the system internally to identify a specific message. */
|
|
342
|
+
reference: string;
|
|
343
|
+
/** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer. */
|
|
344
|
+
consumerReference: string;
|
|
345
|
+
/** A short text string which briefly summarizes the message details. */
|
|
346
|
+
messageSummary: string;
|
|
347
|
+
/** The full consumer message text. */
|
|
348
|
+
messageDetail: string;
|
|
349
|
+
/** The date and time this consumer message was created. */
|
|
350
|
+
createdDate: Date;
|
|
351
|
+
/** A flag indicating whether the message has been deleted or not. */
|
|
352
|
+
isDeleted: boolean;
|
|
353
|
+
}
|
|
354
|
+
export declare class RewardPointsInfo {
|
|
355
|
+
pointsBalance: number;
|
|
356
|
+
rewardTier: number;
|
|
357
|
+
creditTransactionCount: number;
|
|
358
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare class Device {
|
|
2
|
+
createdDate: Date;
|
|
3
|
+
lastUsedDate?: Date;
|
|
4
|
+
reference?: string;
|
|
5
|
+
yourReference?: string;
|
|
6
|
+
platform: DevicePlatform;
|
|
7
|
+
deviceType?: string;
|
|
8
|
+
brand?: string;
|
|
9
|
+
model?: string;
|
|
10
|
+
serialNumber?: string;
|
|
11
|
+
operatingSystemVersion?: string;
|
|
12
|
+
softwareVersion?: string;
|
|
13
|
+
pushNotificationToken?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare enum DevicePlatform {
|
|
16
|
+
Unknown = "Unknown",
|
|
17
|
+
Android = "Android",
|
|
18
|
+
iOS = "iOS",
|
|
19
|
+
Web = "Web"
|
|
20
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const OnSessionExpired: unique symbol;
|
|
2
|
+
export declare const OnAutomaticRefresh: unique symbol;
|
|
3
|
+
export declare const OnApiRetry: unique symbol;
|
|
4
|
+
export declare const OnPaymentStatusUpdate: unique symbol;
|
|
5
|
+
export declare const OnPaymentComplete: unique symbol;
|
|
6
|
+
export declare const OnRequires3DSecure: unique symbol;
|
|
7
|
+
export declare const OnRequiresPin: unique symbol;
|
|
8
|
+
export declare const OnRequiresConfirmation: unique symbol;
|
|
9
|
+
export declare const OnRequiresAddress: unique symbol;
|
|
10
|
+
export declare const OnComplete3DSecure: unique symbol;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { BaseApi } from '../baseApi';
|
|
2
|
+
import { OtpVerificationResponse, GMoneyConsumerCreateProfileRequest, GMoneyConsumerUpdateProfileRequest, GMoneyConsumerProfileResponse, GMoneyConsumerWalletResponse, TransactionReportResponse, LinkBankAccountRequest, TransactionReceiptResponse, GMoneyConsumerBankAccountResponse } from './types';
|
|
3
|
+
import { TokenResponse } from '../authentication/types';
|
|
4
|
+
import { FaceMovementDetectionLevel } from '../lookups/types';
|
|
5
|
+
import { ConsumerBankAccount } from '../consumers/types';
|
|
6
|
+
export declare class GMoney extends BaseApi {
|
|
7
|
+
private readonly branchesCache;
|
|
8
|
+
private readonly atmsCache;
|
|
9
|
+
private readonly agentsCache;
|
|
10
|
+
private readonly merchantNameCache;
|
|
11
|
+
private readonly customerNameCache;
|
|
12
|
+
private readonly bankAccountNameCache;
|
|
13
|
+
private clientContentCache;
|
|
14
|
+
private contactDetailsCache;
|
|
15
|
+
verifyMobileNumber(msisdn: string): Promise<OtpVerificationResponse>;
|
|
16
|
+
validateOtp(otpValue: string): Promise<OtpVerificationResponse>;
|
|
17
|
+
resendOtp(): Promise<void>;
|
|
18
|
+
createConsumerProfile(request: GMoneyConsumerCreateProfileRequest): Promise<TokenResponse>;
|
|
19
|
+
deleteConsumerProfile(): Promise<void>;
|
|
20
|
+
updateConsumerProfile(request: GMoneyConsumerUpdateProfileRequest): Promise<GMoneyConsumerProfileResponse>;
|
|
21
|
+
getConsumerProfile(): Promise<GMoneyConsumerProfileResponse>;
|
|
22
|
+
getWalletInformation(): Promise<GMoneyConsumerWalletResponse>;
|
|
23
|
+
changeWalletPin(tempPin: string, newPin: string): Promise<void>;
|
|
24
|
+
activateCustomer(oldPin: string, newPin: string): Promise<void>;
|
|
25
|
+
resetWalletPin(): Promise<void>;
|
|
26
|
+
saveConsumerSelfie(base64Image: string): Promise<string>;
|
|
27
|
+
linkGcbBankAccount(request: LinkBankAccountRequest): Promise<void>;
|
|
28
|
+
checkConsumerLiveness(base64Images: string[]): Promise<FaceMovementDetectionLevel>;
|
|
29
|
+
saveProfilePicture(base64Image: string): Promise<string>;
|
|
30
|
+
getBranches(limit?: number, latitude?: number, longitude?: number): Promise<any>;
|
|
31
|
+
getAtms(limit?: number, latitude?: number, longitude?: number): Promise<any>;
|
|
32
|
+
getAgents(limit?: number, latitude?: number, longitude?: number): Promise<any>;
|
|
33
|
+
getMerchantNameFromOrganizationCode(organizationCode: string): Promise<string>;
|
|
34
|
+
getCustomerNameFromWalletNumber(msisdn: string): Promise<string>;
|
|
35
|
+
getCustomerNameFromBankAccountNumber(accountNumber: string): Promise<string>;
|
|
36
|
+
getClientContent(): Promise<any>;
|
|
37
|
+
getContactDetails(): Promise<any>;
|
|
38
|
+
getRecentTransactions(limit?: number, successOnly?: boolean): Promise<TransactionReportResponse>;
|
|
39
|
+
getTransactionHistory(dateFrom?: string, dateTo?: string): Promise<TransactionReportResponse>;
|
|
40
|
+
getTransactionReceipt(paymentReference: string): Promise<TransactionReceiptResponse>;
|
|
41
|
+
forgotPassword(msisdn: string): Promise<void>;
|
|
42
|
+
getServiceStatus(): Promise<boolean>;
|
|
43
|
+
getAllLinkedBankAccounts(): Promise<ConsumerBankAccount[]>;
|
|
44
|
+
getLinkedBankAccountInformation(bankAccountReference: string): Promise<GMoneyConsumerBankAccountResponse>;
|
|
45
|
+
getLinkedBankAccountRecentTransactions(bankAccountReference: string, limit?: number): Promise<TransactionReportResponse>;
|
|
46
|
+
getLinkedBankAccountTransactionHistory(bankAccountReference: string): Promise<TransactionReportResponse>;
|
|
47
|
+
getLinkedBankAccountTransactionReceipt(paymentReference: string): Promise<TransactionReceiptResponse>;
|
|
48
|
+
}
|