@vantagepay/vantagepay 0.17.1 → 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.
- package/dist/consumers/index.d.ts +2 -0
- package/dist/consumers/types.d.ts +49 -1
- 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/merchants/types.d.ts +18 -2
- package/package.json +1 -1
|
@@ -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>;
|
|
@@ -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,47 @@ 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
|
+
/** 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
|
+
}
|
|
471
514
|
export declare class Feedback {
|
|
472
515
|
description?: string;
|
|
473
516
|
}
|
|
@@ -538,7 +581,12 @@ export declare class RewardPointsInfo {
|
|
|
538
581
|
/** Request to stop a consumer card. */
|
|
539
582
|
export declare class StopCardRequest {
|
|
540
583
|
/** The card reference to stop. */
|
|
541
|
-
cardReference
|
|
584
|
+
cardReference: string;
|
|
542
585
|
/** The reason for stopping the card. */
|
|
543
586
|
reason?: string;
|
|
544
587
|
}
|
|
588
|
+
/** Request to stop a debit order. */
|
|
589
|
+
export declare class StopDebitOrderRequest {
|
|
590
|
+
/** The debit order reference to stop. */
|
|
591
|
+
debitOrderReference: string;
|
|
592
|
+
}
|