@vantagepay/vantagepay 0.17.0 → 0.17.2

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.
@@ -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 {
@@ -9,6 +9,8 @@ export declare class Consumers extends BaseApi {
9
9
  getConsumerAgreement(): Promise<string>;
10
10
  acceptConsumerAgreement(): Promise<void>;
11
11
  stopCard(cardReference: string, reason?: string): Promise<void>;
12
+ stopDebitOrder(debitOrderReference: string): Promise<void>;
13
+ disputeDebitOrder(debitOrderReference: string): Promise<void>;
12
14
  getBankAccountBalance(bankAccountReference: string): Promise<Balance>;
13
15
  downloadFile(fileReference: string, queryParameters?: Record<string, string>): Promise<ConsumerFile | null>;
14
16
  submitFeedback(description: string): Promise<void>;
@@ -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. */
@@ -300,12 +304,18 @@ export declare class ConsumerBankAccount {
300
304
  /** The branch code associated with the bank which holds the bank account. */
301
305
  routingCode?: string;
302
306
  linkedCardReferences: string[];
307
+ /** Gets or sets the card settings and preferences. */
308
+ cardSettings?: CardSettings;
309
+ /** Collection of debit orders linked to this bank account. */
310
+ debitOrders: DebitOrder[];
303
311
  createdDate: Date;
304
312
  /** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
305
313
  reference?: string;
314
+ /** Gets or sets the external reference if linked to another system. */
315
+ yourReference?: string;
306
316
  /** A 3 character ISO currency code. */
307
317
  currency: Currency;
308
- /** The details which add sufficient context behind the account to the consumer. */
318
+ /** The name of the account. */
309
319
  accountName: string;
310
320
  isActive: boolean;
311
321
  iconUrl?: string;
@@ -328,13 +338,15 @@ export declare class ConsumerCard {
328
338
  /** Gets the list of linked bank account references. */
329
339
  linkedBankAccountReferences: string[];
330
340
  /** Gets or sets the card settings and preferences. */
331
- settings?: CardSettings;
341
+ cardSettings?: CardSettings;
332
342
  createdDate: Date;
333
343
  /** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
334
344
  reference?: string;
345
+ /** Gets or sets the external reference if linked to another system. */
346
+ yourReference?: string;
335
347
  /** A 3 character ISO currency code. */
336
348
  currency: Currency;
337
- /** The details which add sufficient context behind the account to the consumer. */
349
+ /** The name of the account. */
338
350
  accountName: string;
339
351
  isActive: boolean;
340
352
  iconUrl?: string;
@@ -362,9 +374,11 @@ export declare class ConsumerGenericAccount {
362
374
  createdDate: Date;
363
375
  /** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
364
376
  reference?: string;
377
+ /** Gets or sets the external reference if linked to another system. */
378
+ yourReference?: string;
365
379
  /** A 3 character ISO currency code. */
366
380
  currency: Currency;
367
- /** The details which add sufficient context behind the account to the consumer. */
381
+ /** The name of the account. */
368
382
  accountName: string;
369
383
  isActive: boolean;
370
384
  iconUrl?: string;
@@ -375,20 +389,35 @@ export declare class ConsumerInsurancePolicy {
375
389
  coverAmountInCents: number;
376
390
  premiumAmountInCents: number;
377
391
  description?: string;
378
- beneficiaryName?: string;
392
+ beneficiaries: ConsumerInsurancePolicyBeneficiary[];
393
+ status: InsurancePolicyStatus;
379
394
  createdDate: Date;
380
395
  /** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
381
396
  reference?: string;
397
+ /** Gets or sets the external reference if linked to another system. */
398
+ yourReference?: string;
382
399
  /** A 3 character ISO currency code. */
383
400
  currency: Currency;
384
- /** The details which add sufficient context behind the account to the consumer. */
401
+ /** The name of the account. */
385
402
  accountName: string;
386
403
  isActive: boolean;
387
404
  iconUrl?: string;
388
405
  linkedFileReferences: string[];
389
406
  }
407
+ export declare class ConsumerInsurancePolicyBeneficiary {
408
+ reference?: string;
409
+ firstName: string;
410
+ lastName: string;
411
+ contactNumber?: string;
412
+ dateOfBirth?: Date;
413
+ relationship?: string;
414
+ percentage: number;
415
+ }
390
416
  export declare class ConsumerLoanAccount {
391
417
  contractNumber: string;
418
+ loanType: string;
419
+ loanSource: string;
420
+ status: LoanStatus;
392
421
  originalCapitalInCents: number;
393
422
  settlementAmountInCents: number;
394
423
  outstandingBalanceInCents: number;
@@ -396,9 +425,11 @@ export declare class ConsumerLoanAccount {
396
425
  arrearsAmountInCents: number;
397
426
  installmentsRemaining: number;
398
427
  annualInterestRatePercentage: number;
399
- nextInstallmentDate: Date;
428
+ nextInstallmentDate?: Date;
429
+ lastPaymentDate?: Date;
400
430
  startDate: Date;
401
431
  endDate: Date;
432
+ term: number;
402
433
  /** Whether the loan is currently in arrears (past due). */
403
434
  isInArrears: boolean;
404
435
  /** Whether the loan has been fully paid. */
@@ -408,9 +439,11 @@ export declare class ConsumerLoanAccount {
408
439
  createdDate: Date;
409
440
  /** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
410
441
  reference?: string;
442
+ /** Gets or sets the external reference if linked to another system. */
443
+ yourReference?: string;
411
444
  /** A 3 character ISO currency code. */
412
445
  currency: Currency;
413
- /** The details which add sufficient context behind the account to the consumer. */
446
+ /** The name of the account. */
414
447
  accountName: string;
415
448
  isActive: boolean;
416
449
  iconUrl?: string;
@@ -427,14 +460,57 @@ export declare class ConsumerMobileWallet {
427
460
  createdDate: Date;
428
461
  /** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
429
462
  reference?: string;
463
+ /** Gets or sets the external reference if linked to another system. */
464
+ yourReference?: string;
430
465
  /** A 3 character ISO currency code. */
431
466
  currency: Currency;
432
- /** The details which add sufficient context behind the account to the consumer. */
467
+ /** The name of the account. */
433
468
  accountName: string;
434
469
  isActive: boolean;
435
470
  iconUrl?: string;
436
471
  linkedFileReferences: string[];
437
472
  }
473
+ export declare class DebitOrder {
474
+ /** A globally unique reference (UUID) generated by the system to identify this debit order. */
475
+ reference?: string;
476
+ /** External reference from the source system (e.g., USN from Lesaka). */
477
+ yourReference?: string;
478
+ /** The reference of the debit order instruction. */
479
+ instructionReference: string;
480
+ /** The date the debit order was created in our system. */
481
+ createdDate: Date;
482
+ /** The date when the debit order is scheduled to be actioned. */
483
+ debitOrderDate: Date;
484
+ /** Description of the debit order. */
485
+ description: string;
486
+ /** Amount in cents. */
487
+ amountInCents: number;
488
+ /** Currency of the debit order. */
489
+ currency: Currency;
490
+ /** Indicates whether the debit order can be stopped by the consumer. */
491
+ canBeStopped: boolean;
492
+ /** Indicates whether the debit order can be disputed by the consumer. */
493
+ canBeDisputed: boolean;
494
+ /** Indicates whether the debit order has been stopped by the consumer. */
495
+ isStopped: boolean;
496
+ /** Indicates whether the debit order has been disputed by the consumer. */
497
+ isDisputed: boolean;
498
+ /** The date when the debit order was stopped (read-only). */
499
+ stoppedDate?: Date;
500
+ /** The date when the debit order was disputed (read-only). */
501
+ disputedDate?: Date;
502
+ /** Whether the debit order action date is in the future. */
503
+ isFuture: boolean;
504
+ /** Provider-specific metadata (not serialized to clients). */
505
+ metadata: {
506
+ [key: string]: string;
507
+ };
508
+ }
509
+ /** Request to dispute a debit order. */
510
+ export declare class DisputeDebitOrderRequest {
511
+ /** The debit order reference to dispute. */
512
+ debitOrderReference: string;
513
+ }
438
514
  export declare class Feedback {
439
515
  description?: string;
440
516
  }
@@ -505,7 +581,12 @@ export declare class RewardPointsInfo {
505
581
  /** Request to stop a consumer card. */
506
582
  export declare class StopCardRequest {
507
583
  /** The card reference to stop. */
508
- cardReference?: string;
584
+ cardReference: string;
509
585
  /** The reason for stopping the card. */
510
586
  reason?: string;
511
587
  }
588
+ /** Request to stop a debit order. */
589
+ export declare class StopDebitOrderRequest {
590
+ /** The debit order reference to stop. */
591
+ debitOrderReference: string;
592
+ }