@vantagepay/vantagepay 0.17.1 → 0.17.3

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.
@@ -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
+ stopDebitOrders(debitOrderReferences: string[]): Promise<void>;
13
+ disputeDebitOrders(debitOrderReferences: 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>;
@@ -306,6 +306,8 @@ export declare class ConsumerBankAccount {
306
306
  linkedCardReferences: string[];
307
307
  /** Gets or sets the card settings and preferences. */
308
308
  cardSettings?: CardSettings;
309
+ /** Collection of debit orders linked to this bank account. */
310
+ debitOrders: DebitOrder[];
309
311
  createdDate: Date;
310
312
  /** A globally unique transaction reference (UUID) generated by the system internally to identify a specific consumer account. */
311
313
  reference?: string;
@@ -468,6 +470,43 @@ export declare class ConsumerMobileWallet {
468
470
  iconUrl?: string;
469
471
  linkedFileReferences: string[];
470
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
+ }
505
+ /** Request to dispute a debit order. */
506
+ export declare class DisputeDebitOrdersRequest {
507
+ /** The debit order references to dispute. */
508
+ debitOrderReferences: string[];
509
+ }
471
510
  export declare class Feedback {
472
511
  description?: string;
473
512
  }
@@ -538,7 +577,12 @@ export declare class RewardPointsInfo {
538
577
  /** Request to stop a consumer card. */
539
578
  export declare class StopCardRequest {
540
579
  /** The card reference to stop. */
541
- cardReference?: string;
580
+ cardReference: string;
542
581
  /** The reason for stopping the card. */
543
582
  reason?: string;
544
583
  }
584
+ /** Request to stop a debit order. */
585
+ export declare class StopDebitOrdersRequest {
586
+ /** The debit order references to stop. */
587
+ debitOrderReferences: string[];
588
+ }