@vantagepay/vantagepay 0.15.2 → 0.15.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.
@@ -1,10 +1,14 @@
1
1
  import { BaseApi } from '../baseApi';
2
+ import { FaceCheckResult } from '../common/types';
3
+ import { FaceMovementDetectionLevel } from '../lookups/types';
2
4
  import { TokenResponse } from './types';
3
5
  export declare class Authentication extends BaseApi {
4
6
  isLoggedIn(): boolean;
5
7
  login(username: string, password: string): Promise<TokenResponse>;
6
8
  logout(): Promise<void>;
7
9
  refresh(token?: string): Promise<TokenResponse>;
10
+ checkLiveness(base64Images: string[]): Promise<FaceMovementDetectionLevel>;
11
+ checkFace(base64Image: string): Promise<FaceCheckResult>;
8
12
  changePassword(oldPassword: string, newPassword: string): Promise<TokenResponse>;
9
13
  forgotPassword(username: string): Promise<void>;
10
14
  validateOtp(otpValue: string): Promise<void>;
@@ -12,6 +12,9 @@ export declare class ChangePasswordRequest {
12
12
  export declare class ForgotPasswordRequest {
13
13
  username: string;
14
14
  }
15
+ export declare class LivenessRequest {
16
+ base64Images: string[];
17
+ }
15
18
  /** Model to hold login information that can be used to access the system and generate tokens. */
16
19
  export declare class LoginCredentials {
17
20
  /** Gets or sets the username (required). */
@@ -56,6 +59,9 @@ export declare class OtpVerificationResponse {
56
59
  userAccountExists: boolean;
57
60
  accessToken: string;
58
61
  }
62
+ export declare class SelfieRequest {
63
+ base64Image?: string;
64
+ }
59
65
  /** Provides token information for successful login and refresh operations. */
60
66
  export declare class TokenResponse {
61
67
  /** Gets or sets a JWT Refresh token that can be used to request a new Access tokens. */
@@ -41,6 +41,12 @@ export declare enum BankAccountType {
41
41
  MONEYMARKET = "MONEYMARKET",
42
42
  CODA = "CODA"
43
43
  }
44
+ /** Model to capture generic contact/lead data. */
45
+ export declare class ContactDetails {
46
+ details: {
47
+ [key: string]: string;
48
+ };
49
+ }
44
50
  export declare class FaceCheckResult {
45
51
  faceCount: number;
46
52
  containsNoise: boolean;
@@ -1,4 +1,5 @@
1
1
  import { BaseApi } from '../baseApi';
2
+ import { ContactDetails } from '../common/types';
2
3
  import { Consumer, Message } from './types';
3
4
  export declare class Consumers extends BaseApi {
4
5
  createConsumer(request: Consumer): Promise<Consumer>;
@@ -8,4 +9,5 @@ export declare class Consumers extends BaseApi {
8
9
  submitFeedback(description: string): Promise<void>;
9
10
  getMessage(messageReference: string): Promise<Message>;
10
11
  deleteMessage(messageReference: string): Promise<void>;
12
+ contactSupport(request: ContactDetails): Promise<void>;
11
13
  }
@@ -231,7 +231,7 @@ export declare enum ConsumerAttribute {
231
231
  }
232
232
  /** Model to hold various attributes about a consumer. */
233
233
  export declare class ConsumerAttributeValue {
234
- name: string;
234
+ name?: string;
235
235
  attribute: ConsumerAttribute;
236
236
  value: string;
237
237
  }
package/dist/index.d.ts CHANGED
@@ -9,6 +9,16 @@ import { Log } from './log';
9
9
  import { System } from './system';
10
10
  import { Content } from './content/index';
11
11
  import { Reports } from './reports/index';
12
+ export * from './authentication/types';
13
+ export * from './common/types';
14
+ export * from './consumers/types';
15
+ export * from './devices/types';
16
+ export * from './log/types';
17
+ export * from './lookups/types';
18
+ export * from './merchants/types';
19
+ export * from './payments/types';
20
+ export * from './reports/types';
21
+ export * from './tokens/types';
12
22
  export * from './eventTypes';
13
23
  export * from './apiError';
14
24
  export * from './apiConfig';