File tree 3 files changed +31
-0
lines changed
3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -93,12 +93,14 @@ const onScanID = () => {
93
93
licenseNumber: string;
94
94
expirationDate: string;
95
95
endorsementsCode: string;
96
+ endorsementsCodeDescription: string;
96
97
issuedBy: string;
97
98
firstName: string;
98
99
middleName: string;
99
100
lastName: string;
100
101
nameSuffix: string;
101
102
restrictionsCode: string;
103
+ restrictionsCodeDescription: string;
102
104
birthDate: string;
103
105
countryCode: string;
104
106
jurisdictionCode: string;
@@ -111,6 +113,9 @@ const onScanID = () => {
111
113
restrictionCode: string;
112
114
postalCode: string;
113
115
specification: string;
116
+ hazmateExpDate: string;
117
+ cardRevisionDate: string;
118
+ complianceType: string;
114
119
}
115
120
```
116
121
@@ -134,6 +139,23 @@ const onScanID = () => {
134
139
}
135
140
```
136
141
142
+ ### Platform Specific Attributes
143
+
144
+ ## Android
145
+
146
+ - ` restrictionsCodeDescription `
147
+ - ` endorsementsCodeDescription `
148
+ - ` restrictionsCode `
149
+ - ` specification `
150
+
151
+ ## iOS
152
+
153
+ - ` weight `
154
+ - ` issuerIdNum `
155
+ - ` restrictionsNum `
156
+ - ` cardRevisionDate `
157
+ - ` complianceType `
158
+
137
159
## Contributing
138
160
139
161
See the [ contributing guide] ( CONTRIBUTING.md ) to learn how to contribute to the repository and the development workflow.
Original file line number Diff line number Diff line change @@ -50,6 +50,9 @@ export function scan(
50
50
onScanComplete : ScanResult
51
51
) {
52
52
IdscanSdk . scan ( type , apiKeys , ( error : object , data : DLData ) => {
53
+ data . birthDate = data . birthDate || data . birthdate ;
54
+ data . IIN = data . IIN || data . iin ;
55
+ data . hazmateExpDate = data . HAZMATEExpDate ;
53
56
onScanComplete ( error , data ) ;
54
57
} ) ;
55
58
}
Original file line number Diff line number Diff line change 2
2
* Drivers License Data Format
3
3
*/
4
4
export type DLData = {
5
+ [ key : string ] : string ;
5
6
namePrefix : string ;
6
7
IIN : string ;
7
8
race : string ;
@@ -18,12 +19,14 @@ export type DLData = {
18
19
licenseNumber : string ;
19
20
expirationDate : string ;
20
21
endorsementsCode : string ;
22
+ endorsementsCodeDescription : string ;
21
23
issuedBy : string ;
22
24
firstName : string ;
23
25
middleName : string ;
24
26
lastName : string ;
25
27
nameSuffix : string ;
26
28
restrictionsCode : string ;
29
+ restrictionsCodeDescription : string ;
27
30
birthDate : string ;
28
31
countryCode : string ;
29
32
jurisdictionCode : string ;
@@ -36,6 +39,9 @@ export type DLData = {
36
39
restrictionCode : string ;
37
40
postalCode : string ;
38
41
specification : string ;
42
+ hazmateExpDate : string ;
43
+ cardRevisiondate : string ;
44
+ complianceType : string ;
39
45
} ;
40
46
41
47
/**
You can’t perform that action at this time.
0 commit comments