react-native-mdl-verification 1.0.1 → 1.0.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.
@@ -51,6 +51,11 @@ class MdlVerificationBridge(reactContext: ReactApplicationContext) :
51
51
  map.putString("msoValid", response.msoValid ?: "")
52
52
  map.putString("cert", response.cert ?: "")
53
53
  map.putString("ica_cert", response.ica_cert ?: "")
54
+ if (successMesg?.indexOf(INVALID_LIC") >=0) {
55
+ map.putString("licenseKey", response.licenseKey?: "")
56
+ map.putString("applicationId", response.applicationId?: "")
57
+ }
58
+
54
59
 
55
60
  // Add convenience boolean for easy checking
56
61
  map.putBoolean("isSuccessful", response.success == "Y")
package/index.d.ts CHANGED
@@ -1,8 +1,15 @@
1
1
  declare module 'react-native-mdl-verification' {
2
2
  export interface VerificationOptions {
3
- stan: string;
4
- terminalId: string;
5
- merchantId: string;
3
+ command?: string;
4
+ stan?: string;
5
+ terminalId?: string;
6
+ merchantId?: string;
7
+ testHostResponse?: string;
8
+ minAge: string;
9
+ mdlToken?: string;
10
+ timeout: string;
11
+ demoMode?: boolean;
12
+ onlyVerified?: boolean;
6
13
  }
7
14
 
8
15
  export interface VerificationResponse {
@@ -22,8 +29,11 @@ declare module 'react-native-mdl-verification' {
22
29
  cert?: string;
23
30
  ica_cert?: string;
24
31
  isSuccessful?: boolean;
32
+ applicationId?: string;
33
+ license_key?: string;
25
34
  }
26
35
 
36
+
27
37
  export interface ProgressResponse {
28
38
  command?: string;
29
39
  status?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-mdl-verification",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "React Native bridge for MDL (Mobile Driver's License) verification using CheckMDL SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",