@vantagepay/vantagepay 0.17.3 → 0.17.4

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.
@@ -582,7 +582,8 @@ export declare enum KycProvider {
582
582
  SmileIdentity = "SmileIdentity",
583
583
  GMoney = "GMoney",
584
584
  NIA = "NIA",
585
- Manual = "Manual"
585
+ Manual = "Manual",
586
+ Regula = "Regula"
586
587
  }
587
588
  /** The KYC verification status. */
588
589
  export declare enum KycStatus {
@@ -2,12 +2,12 @@ import { OtpVerificationResponse, TokenResponse } from '../authentication/types'
2
2
  import { BaseApi } from '../baseApi';
3
3
  import { Device } from '../devices/types';
4
4
  import { Currency, ProductType } from '../lookups/types';
5
- import { BasicMerchant, Merchant, MerchantFile, MerchantProduct, TerminalConfiguration, TerminalPaymentQrCodeUrls, TerminalPaymentQrCodes, TerminalSetup } from './types';
5
+ import { BasicMerchant, CategoryDetails, Merchant, MerchantProduct, TerminalConfiguration, TerminalPaymentQrCodeUrls, TerminalPaymentQrCodes, TerminalSetup } from './types';
6
6
  export declare class Merchants extends BaseApi {
7
7
  private readonly productDetailCache;
8
8
  private productsCache;
9
9
  private createMerchantProductProxy;
10
- private getAllProducts;
10
+ getAllProducts(): Promise<CategoryDetails[]>;
11
11
  getActiveProductTypes(): Promise<ProductType[]>;
12
12
  getMerchantNamesFromProductType(productType: string): Promise<string[]>;
13
13
  getProductTypesForMerchant(merchantName: string): Promise<ProductType[]>;
@@ -33,5 +33,4 @@ export declare class Merchants extends BaseApi {
33
33
  getPosTerminalConfiguration(terminalReference: string, merchantSource?: string): Promise<TerminalConfiguration>;
34
34
  getTerminalPaymentQrCodes(amountInCents: number, currency: Currency): Promise<TerminalPaymentQrCodes>;
35
35
  getTerminalPaymentQrCodeUrls(amountInCents: number, currency: Currency): Promise<TerminalPaymentQrCodeUrls>;
36
- uploadFile(request: MerchantFile): Promise<void>;
37
36
  }
@@ -226,6 +226,7 @@ export declare class MerchantFile {
226
226
  kybResults: KybFileResult[];
227
227
  reference?: string;
228
228
  yourReference?: string;
229
+ description?: string;
229
230
  fileName: string;
230
231
  mimeType: string;
231
232
  base64Data?: string;
@@ -494,7 +495,7 @@ export declare enum TerminalType {
494
495
  Verifone = "Verifone"
495
496
  }
496
497
  export declare class CategoryDetails {
497
- type: string;
498
+ type: ProductType;
498
499
  merchants: MerchantDetail[];
499
500
  }
500
501
  export declare class MerchantDetail {
@@ -506,8 +507,9 @@ export declare class ProductDetail {
506
507
  name: string;
507
508
  description?: string;
508
509
  unitLabel?: string;
509
- amountInCents: number;
510
- futureAmountInCents: number;
510
+ currency: Currency;
511
+ amountInCents?: number;
512
+ futureAmountInCents?: number;
511
513
  futureAmountEffectiveFromDate?: Date;
512
514
  fullAmountRequired: boolean;
513
515
  quantityRequired: boolean;
@@ -204,6 +204,7 @@ export declare class BankAccountDestinationResult {
204
204
  }
205
205
  /** A model to hold the details of a bill payment. */
206
206
  export declare class BillDestination {
207
+ terminalReference?: string;
207
208
  /** A globally unique product reference (UUID) that uniquely identifies a product that the system knows how to pay. */
208
209
  productReference: string;
209
210
  /** A dictionary of information related to the product referenced by <see cref="P:ZGA.Core.Models.Payments.BillDestination.ProductReference" />. */
@@ -244,6 +245,7 @@ export declare class BillDestination {
244
245
  }
245
246
  /** A model to hold the result of an attempt to pay a bill. */
246
247
  export declare class BillDestinationResult {
248
+ terminalReference?: string;
247
249
  /** The name of the product that the system attempted to pay. */
248
250
  productName?: string;
249
251
  /** A globally unique product reference (UUID) that uniquely identifies a product that the system knows how to pay. */
@@ -929,6 +931,8 @@ export declare class PaymentReceiptResponse {
929
931
  channel: Channel;
930
932
  /** The consumer reference of the consumer who made the payment. */
931
933
  consumerReference?: string;
934
+ /** Gets the unique identifier of the payment notification file, if available. */
935
+ notificationFileReference?: string;
932
936
  /** Optional details of the consumer who made the payment. */
933
937
  consumer?: BasicConsumer;
934
938
  /** A <see cref="T:ZGA.Core.Models.Payments.PaymentSourceResults" /> object containing all of the payment sources associated with the payment and several aggregated values related to those sources. */
@@ -995,6 +999,8 @@ export declare class PaymentStatusResponse {
995
999
  channel: Channel;
996
1000
  /** The consumer reference of the consumer who made the payment. */
997
1001
  consumerReference?: string;
1002
+ /** Gets the unique identifier of the payment notification file, if available. */
1003
+ notificationFileReference?: string;
998
1004
  /** Optional details of the consumer who made the payment. */
999
1005
  consumer?: BasicConsumer;
1000
1006
  /** A <see cref="T:ZGA.Core.Models.Payments.PaymentSourceResults" /> object containing all of the payment sources associated with the payment and several aggregated values related to those sources. */
@@ -1902,6 +1908,8 @@ export declare class EmailNotificationRequest {
1902
1908
  export declare class MerchantPaymentRequest {
1903
1909
  /** A collection of all of the payment sources that must be used to make this payment. */
1904
1910
  paymentSources?: PaymentSources;
1911
+ /** A collection of all of the bill payments that need to be included. */
1912
+ billPayments: BillDestination[];
1905
1913
  /** The optional terminal reference if this payment is being made from a merchant controlled device. */
1906
1914
  terminalReference?: string;
1907
1915
  /** The optional QR code reference if this payment is being made from a scanned QR code. */
@@ -50,7 +50,7 @@ export declare class TransactionDetailsResponse {
50
50
  summaryStatus: string;
51
51
  sourceStatus: string;
52
52
  destinationStatus: string;
53
- transactionIconType: TransactionIconType;
53
+ transactionIconType?: TransactionIconType;
54
54
  wasQrCodeInitiated: boolean;
55
55
  }
56
56
  export declare class TransactionMonthSummaryResponse {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vantagepay/vantagepay",
3
- "version": "0.17.3",
3
+ "version": "0.17.4",
4
4
  "description": "VantagePay API wrapper and SDK for integrating into VantagePay payment, consumer and merchant services.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@microsoft/signalr": "^10.0.0",
22
- "axios": "^1.13.4",
22
+ "axios": "^1.13.5",
23
23
  "axios-auth-refresh": "^3.3.6",
24
24
  "axios-retry": "^4.5.0",
25
25
  "pubsub-js": "^1.9.5",