@vantagepay/vantagepay 0.16.0 → 0.17.1
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/dist/common/types.d.ts +4 -1
- package/dist/consumers/types.d.ts +95 -40
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/index.modern.mjs +1 -1
- package/dist/index.modern.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/lookups/types.d.ts +38 -3
- package/dist/merchants/types.d.ts +1 -0
- package/dist/reports/types.d.ts +4 -0
- package/package.json +2 -2
package/dist/common/types.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ import { IdentityDocumentType } from '../lookups/types';
|
|
|
5
5
|
export declare class Address {
|
|
6
6
|
/** Gets the address reference. */
|
|
7
7
|
reference?: string;
|
|
8
|
+
/** Gets or sets the address external reference if linked to another system. */
|
|
9
|
+
yourReference?: string;
|
|
8
10
|
/** Gets or sets the type of address the details are referring to. */
|
|
9
11
|
addressType: AddressType;
|
|
10
12
|
/** Gets or sets first line of the address (required). */
|
|
@@ -46,7 +48,8 @@ export declare enum BankAccountType {
|
|
|
46
48
|
CURRENT = "CURRENT",
|
|
47
49
|
FIXED = "FIXED",
|
|
48
50
|
MONEYMARKET = "MONEYMARKET",
|
|
49
|
-
CODA = "CODA"
|
|
51
|
+
CODA = "CODA",
|
|
52
|
+
BOND = "BOND"
|
|
50
53
|
}
|
|
51
54
|
/** Model to capture generic contact/lead data. */
|
|
52
55
|
export declare class ContactDetails {
|
|
@@ -12,6 +12,8 @@ import { Device } from '../devices/types';
|
|
|
12
12
|
import { Address } from '../common/types';
|
|
13
13
|
import { CardHolder } from '../payments/types';
|
|
14
14
|
import { ConsumerFileType } from '../lookups/types';
|
|
15
|
+
import { InsurancePolicyStatus } from '../lookups/types';
|
|
16
|
+
import { LoanStatus } from '../lookups/types';
|
|
15
17
|
import { KycProvider } from '../lookups/types';
|
|
16
18
|
import { KycStatus } from '../lookups/types';
|
|
17
19
|
import { KycVerificationType } from '../lookups/types';
|
|
@@ -51,6 +53,8 @@ export declare class BasicConsumer {
|
|
|
51
53
|
export declare class Beneficiary {
|
|
52
54
|
/** A globally unique transaction reference (UUID) generated by the system internally to identify a specific beneficiary. */
|
|
53
55
|
reference?: string;
|
|
56
|
+
/** Gets or sets the beneficiary external reference if linked to another system. */
|
|
57
|
+
yourReference?: string;
|
|
54
58
|
/** The beneficiary name. */
|
|
55
59
|
name: string;
|
|
56
60
|
/** The contact number for this beneficiary. */
|
|
@@ -68,40 +72,9 @@ export declare class Beneficiary {
|
|
|
68
72
|
/** A list of cards associated with a beneficiary. */
|
|
69
73
|
cards: BeneficiaryCard[];
|
|
70
74
|
/** A list of generic accounts (mobile numbers, meter numbers, etc) associated with a beneficiary. */
|
|
71
|
-
|
|
72
|
-
isActive: boolean;
|
|
73
|
-
}
|
|
74
|
-
/** Model to hold the unique details for a generic beneficiary account (mobile number, meter number, etc). */
|
|
75
|
-
export declare class BeneficiaryAccount {
|
|
76
|
-
/** The account number (can be a mobile number, meter number, etc). */
|
|
77
|
-
accountNumber: string;
|
|
78
|
-
/** The type of beneficiary account. */
|
|
79
|
-
beneficiaryAccountType: BeneficiaryAccountType;
|
|
80
|
-
beneficiaryAccountTypeName: string;
|
|
81
|
-
createdDate: Date;
|
|
82
|
-
/** A globally unique reference (UUID) generated by the system internally to identify a specific beneficiary account. */
|
|
83
|
-
reference?: string;
|
|
84
|
-
/** A 3 character ISO currency code. */
|
|
85
|
-
currency: Currency;
|
|
86
|
-
/** The details which add sufficient context behind the money transfer to the beneficiary. */
|
|
87
|
-
recipientReference?: string;
|
|
88
|
-
/** The details which add sufficient context behind the money transfer to the consumer. */
|
|
89
|
-
senderReference?: string;
|
|
90
|
-
/** A flag indicating whether the consumer requires a notification to be sent to the beneficiary after a successful money transfer. */
|
|
91
|
-
sendProofOfPayment: boolean;
|
|
92
|
-
/** The email address for the beneficiary. */
|
|
93
|
-
proofOfPaymentEmailAddress?: string;
|
|
94
|
-
/** The mobile number for the beneficiary. */
|
|
95
|
-
proofOfPaymentMobileNumber?: string;
|
|
75
|
+
genericAccounts: BeneficiaryGenericAccount[];
|
|
96
76
|
isActive: boolean;
|
|
97
77
|
}
|
|
98
|
-
export declare enum BeneficiaryAccountType {
|
|
99
|
-
None = "None",
|
|
100
|
-
MobileNumber = "MobileNumber",
|
|
101
|
-
WaterMeter = "WaterMeter",
|
|
102
|
-
ElectricityMeter = "ElectricityMeter",
|
|
103
|
-
PayShap = "PayShap"
|
|
104
|
-
}
|
|
105
78
|
/** Model to hold the unique details for a bank account beneficiary. */
|
|
106
79
|
export declare class BeneficiaryBankAccount {
|
|
107
80
|
/** The bank account token that was generated by the system. */
|
|
@@ -161,6 +134,30 @@ export declare class BeneficiaryCard {
|
|
|
161
134
|
proofOfPaymentMobileNumber?: string;
|
|
162
135
|
isActive: boolean;
|
|
163
136
|
}
|
|
137
|
+
/** Model to hold the unique details for a beneficiary generic account (mobile number, meter number, etc). */
|
|
138
|
+
export declare class BeneficiaryGenericAccount {
|
|
139
|
+
/** The account number (can be a mobile number, meter number, etc). */
|
|
140
|
+
accountNumber: string;
|
|
141
|
+
/** The type of generic account. */
|
|
142
|
+
genericAccountType: GenericAccountType;
|
|
143
|
+
genericAccountTypeName: string;
|
|
144
|
+
createdDate: Date;
|
|
145
|
+
/** A globally unique reference (UUID) generated by the system internally to identify a specific beneficiary account. */
|
|
146
|
+
reference?: string;
|
|
147
|
+
/** A 3 character ISO currency code. */
|
|
148
|
+
currency: Currency;
|
|
149
|
+
/** The details which add sufficient context behind the money transfer to the beneficiary. */
|
|
150
|
+
recipientReference?: string;
|
|
151
|
+
/** The details which add sufficient context behind the money transfer to the consumer. */
|
|
152
|
+
senderReference?: string;
|
|
153
|
+
/** A flag indicating whether the consumer requires a notification to be sent to the beneficiary after a successful money transfer. */
|
|
154
|
+
sendProofOfPayment: boolean;
|
|
155
|
+
/** The email address for the beneficiary. */
|
|
156
|
+
proofOfPaymentEmailAddress?: string;
|
|
157
|
+
/** The mobile number for the beneficiary. */
|
|
158
|
+
proofOfPaymentMobileNumber?: string;
|
|
159
|
+
isActive: boolean;
|
|
160
|
+
}
|
|
164
161
|
/** Model to hold the unique details for a mobile money beneficiary. */
|
|
165
162
|
export declare class BeneficiaryMobileWallet {
|
|
166
163
|
/**
|
|
@@ -273,6 +270,8 @@ export declare class ConsumerAccounts {
|
|
|
273
270
|
loanAccounts: ConsumerLoanAccount[];
|
|
274
271
|
/** A list of insurance policies associated with a consumer. */
|
|
275
272
|
insurancePolicies: ConsumerInsurancePolicy[];
|
|
273
|
+
/** A list of generic accounts (mobile numbers, meter numbers, etc) associated with a consumer. */
|
|
274
|
+
genericAccounts: ConsumerGenericAccount[];
|
|
276
275
|
/** A list of cards associated with a consumer. */
|
|
277
276
|
cards: ConsumerCard[];
|
|
278
277
|
}
|
|
@@ -305,12 +304,16 @@ export declare class ConsumerBankAccount {
|
|
|
305
304
|
/** The branch code associated with the bank which holds the bank account. */
|
|
306
305
|
routingCode?: string;
|
|
307
306
|
linkedCardReferences: string[];
|
|
307
|
+
/** Gets or sets the card settings and preferences. */
|
|
308
|
+
cardSettings?: CardSettings;
|
|
308
309
|
createdDate: Date;
|
|
309
310
|
/** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
|
|
310
311
|
reference?: string;
|
|
312
|
+
/** Gets or sets the external reference if linked to another system. */
|
|
313
|
+
yourReference?: string;
|
|
311
314
|
/** A 3 character ISO currency code. */
|
|
312
315
|
currency: Currency;
|
|
313
|
-
/** The
|
|
316
|
+
/** The name of the account. */
|
|
314
317
|
accountName: string;
|
|
315
318
|
isActive: boolean;
|
|
316
319
|
iconUrl?: string;
|
|
@@ -333,13 +336,15 @@ export declare class ConsumerCard {
|
|
|
333
336
|
/** Gets the list of linked bank account references. */
|
|
334
337
|
linkedBankAccountReferences: string[];
|
|
335
338
|
/** Gets or sets the card settings and preferences. */
|
|
336
|
-
|
|
339
|
+
cardSettings?: CardSettings;
|
|
337
340
|
createdDate: Date;
|
|
338
341
|
/** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
|
|
339
342
|
reference?: string;
|
|
343
|
+
/** Gets or sets the external reference if linked to another system. */
|
|
344
|
+
yourReference?: string;
|
|
340
345
|
/** A 3 character ISO currency code. */
|
|
341
346
|
currency: Currency;
|
|
342
|
-
/** The
|
|
347
|
+
/** The name of the account. */
|
|
343
348
|
accountName: string;
|
|
344
349
|
isActive: boolean;
|
|
345
350
|
iconUrl?: string;
|
|
@@ -357,25 +362,60 @@ export declare class ConsumerFile {
|
|
|
357
362
|
lastUpdatedDate?: Date;
|
|
358
363
|
isActive: boolean;
|
|
359
364
|
}
|
|
365
|
+
/** Model to hold the unique details for a generic account (mobile number, meter number, etc). */
|
|
366
|
+
export declare class ConsumerGenericAccount {
|
|
367
|
+
/** The account number (can be a mobile number, meter number, etc). */
|
|
368
|
+
accountNumber: string;
|
|
369
|
+
/** The type of generic account. */
|
|
370
|
+
genericAccountType: GenericAccountType;
|
|
371
|
+
genericAccountTypeName: string;
|
|
372
|
+
createdDate: Date;
|
|
373
|
+
/** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
|
|
374
|
+
reference?: string;
|
|
375
|
+
/** Gets or sets the external reference if linked to another system. */
|
|
376
|
+
yourReference?: string;
|
|
377
|
+
/** A 3 character ISO currency code. */
|
|
378
|
+
currency: Currency;
|
|
379
|
+
/** The name of the account. */
|
|
380
|
+
accountName: string;
|
|
381
|
+
isActive: boolean;
|
|
382
|
+
iconUrl?: string;
|
|
383
|
+
linkedFileReferences: string[];
|
|
384
|
+
}
|
|
360
385
|
export declare class ConsumerInsurancePolicy {
|
|
361
386
|
policyNumber: string;
|
|
362
387
|
coverAmountInCents: number;
|
|
363
388
|
premiumAmountInCents: number;
|
|
364
389
|
description?: string;
|
|
365
|
-
|
|
390
|
+
beneficiaries: ConsumerInsurancePolicyBeneficiary[];
|
|
391
|
+
status: InsurancePolicyStatus;
|
|
366
392
|
createdDate: Date;
|
|
367
393
|
/** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
|
|
368
394
|
reference?: string;
|
|
395
|
+
/** Gets or sets the external reference if linked to another system. */
|
|
396
|
+
yourReference?: string;
|
|
369
397
|
/** A 3 character ISO currency code. */
|
|
370
398
|
currency: Currency;
|
|
371
|
-
/** The
|
|
399
|
+
/** The name of the account. */
|
|
372
400
|
accountName: string;
|
|
373
401
|
isActive: boolean;
|
|
374
402
|
iconUrl?: string;
|
|
375
403
|
linkedFileReferences: string[];
|
|
376
404
|
}
|
|
405
|
+
export declare class ConsumerInsurancePolicyBeneficiary {
|
|
406
|
+
reference?: string;
|
|
407
|
+
firstName: string;
|
|
408
|
+
lastName: string;
|
|
409
|
+
contactNumber?: string;
|
|
410
|
+
dateOfBirth?: Date;
|
|
411
|
+
relationship?: string;
|
|
412
|
+
percentage: number;
|
|
413
|
+
}
|
|
377
414
|
export declare class ConsumerLoanAccount {
|
|
378
415
|
contractNumber: string;
|
|
416
|
+
loanType: string;
|
|
417
|
+
loanSource: string;
|
|
418
|
+
status: LoanStatus;
|
|
379
419
|
originalCapitalInCents: number;
|
|
380
420
|
settlementAmountInCents: number;
|
|
381
421
|
outstandingBalanceInCents: number;
|
|
@@ -383,9 +423,11 @@ export declare class ConsumerLoanAccount {
|
|
|
383
423
|
arrearsAmountInCents: number;
|
|
384
424
|
installmentsRemaining: number;
|
|
385
425
|
annualInterestRatePercentage: number;
|
|
386
|
-
nextInstallmentDate
|
|
426
|
+
nextInstallmentDate?: Date;
|
|
427
|
+
lastPaymentDate?: Date;
|
|
387
428
|
startDate: Date;
|
|
388
429
|
endDate: Date;
|
|
430
|
+
term: number;
|
|
389
431
|
/** Whether the loan is currently in arrears (past due). */
|
|
390
432
|
isInArrears: boolean;
|
|
391
433
|
/** Whether the loan has been fully paid. */
|
|
@@ -395,9 +437,11 @@ export declare class ConsumerLoanAccount {
|
|
|
395
437
|
createdDate: Date;
|
|
396
438
|
/** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
|
|
397
439
|
reference?: string;
|
|
440
|
+
/** Gets or sets the external reference if linked to another system. */
|
|
441
|
+
yourReference?: string;
|
|
398
442
|
/** A 3 character ISO currency code. */
|
|
399
443
|
currency: Currency;
|
|
400
|
-
/** The
|
|
444
|
+
/** The name of the account. */
|
|
401
445
|
accountName: string;
|
|
402
446
|
isActive: boolean;
|
|
403
447
|
iconUrl?: string;
|
|
@@ -414,9 +458,11 @@ export declare class ConsumerMobileWallet {
|
|
|
414
458
|
createdDate: Date;
|
|
415
459
|
/** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
|
|
416
460
|
reference?: string;
|
|
461
|
+
/** Gets or sets the external reference if linked to another system. */
|
|
462
|
+
yourReference?: string;
|
|
417
463
|
/** A 3 character ISO currency code. */
|
|
418
464
|
currency: Currency;
|
|
419
|
-
/** The
|
|
465
|
+
/** The name of the account. */
|
|
420
466
|
accountName: string;
|
|
421
467
|
isActive: boolean;
|
|
422
468
|
iconUrl?: string;
|
|
@@ -425,6 +471,15 @@ export declare class ConsumerMobileWallet {
|
|
|
425
471
|
export declare class Feedback {
|
|
426
472
|
description?: string;
|
|
427
473
|
}
|
|
474
|
+
export declare enum GenericAccountType {
|
|
475
|
+
None = "None",
|
|
476
|
+
MobileNumber = "MobileNumber",
|
|
477
|
+
WaterMeter = "WaterMeter",
|
|
478
|
+
ElectricityMeter = "ElectricityMeter",
|
|
479
|
+
PayShap = "PayShap",
|
|
480
|
+
DStv = "DStv",
|
|
481
|
+
EasyPay = "EasyPay"
|
|
482
|
+
}
|
|
428
483
|
/** The KYC file result. */
|
|
429
484
|
export declare class KycFileResult {
|
|
430
485
|
/** Gets or sets the unique identifier for the KYC service provider used to retrieve the consumer KYC data. */
|