@regulaforensics/cordova-plugin-document-reader-api 5.5.0 → 6.1.0

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,7 +1,7 @@
1
1
  #import <Foundation/Foundation.h>
2
- #import "JSONConstructor.h"
2
+ #import "RGLWJSONConstructor.h"
3
3
 
4
- @implementation JSONConstructor
4
+ @implementation RGLWJSONConstructor
5
5
 
6
6
  +(NSString*)dictToString:(NSMutableDictionary*)input {
7
7
  return [[NSString alloc] initWithData:[NSJSONSerialization dataWithJSONObject:input options:NSJSONWritingPrettyPrinted error:nil] encoding:NSUTF8StringEncoding];
@@ -62,6 +62,23 @@
62
62
  return result;
63
63
  }
64
64
 
65
+ +(NSMutableDictionary*)generateRfidNotificationCompletion:(NSInteger)notification {
66
+ NSMutableDictionary *result = [NSMutableDictionary new];
67
+
68
+ result[@"notification"] = [NSNumber numberWithInteger:notification];
69
+
70
+ return result;
71
+ }
72
+
73
+ +(NSMutableDictionary*)generateRfidNotificationCompletionWithError:(NSInteger)notification :(NSInteger)value {
74
+ NSMutableDictionary *result = [NSMutableDictionary new];
75
+
76
+ result[@"notification"] = [NSNumber numberWithInteger:notification];
77
+ result[@"value"] = [NSNumber numberWithInteger:value];
78
+
79
+ return result;
80
+ }
81
+
65
82
  +(NSInteger)generateDocReaderAction:(RGLDocReaderAction)input {
66
83
  NSInteger result = 0;
67
84
  switch (input) {
@@ -118,7 +135,6 @@
118
135
 
119
136
  switch (action) {
120
137
  case 0:
121
- result[@"results"] = [self generateResultsWithNotification:[self generateRGLRFIDNotify:notify]];
122
138
  break;
123
139
  case 1:
124
140
  result[@"results"] = [self generateRGLDocumentReaderResults:results];
@@ -147,7 +163,8 @@
147
163
  }
148
164
 
149
165
  result[@"action"] = [NSNumber numberWithInteger:action];
150
- result[@"error"] = [self generateNSError:error];
166
+ if(error != nil)
167
+ result[@"error"] = [self generateNSError:error];
151
168
 
152
169
  return result;
153
170
  }
@@ -168,6 +185,19 @@
168
185
  return result;
169
186
  }
170
187
 
188
+ +(NSString*)generateNSData:(NSData *)input {
189
+ return [NSKeyedUnarchiver unarchiveObjectWithData:input];
190
+ }
191
+
192
+ +(NSMutableDictionary* _Nonnull)generatePACertificateCompletion:(NSData *)serialNumber :(RGLPAResourcesIssuer *)issuer{
193
+ NSMutableDictionary *result = [NSMutableDictionary new];
194
+
195
+ result[@"serialNumber"] = [self generateNSData:serialNumber];
196
+ result[@"issuer"] = [self generateRGLPAResourcesIssuer:issuer];
197
+
198
+ return result;
199
+ }
200
+
171
201
  // To JSON
172
202
 
173
203
  +(NSMutableDictionary* _Nonnull)generateRGLDocumentReaderResults:(RGLDocumentReaderResults* _Nullable)input {
@@ -222,6 +252,8 @@
222
252
  result[@"elapsedTime"] = @(input.elapsedTime);
223
253
  result[@"elapsedTimeRFID"] = @(input.elapsedTimeRFID);
224
254
  result[@"rawResult"] = input.rawResult;
255
+ result[@"status"] = [self generateRGLDocumentReaderResultsStatus:input.status];
256
+ result[@"vdsncData"] = [self generateRGLVDSNCData:input.vdsncData];
225
257
 
226
258
  return result;
227
259
  }
@@ -851,6 +883,119 @@
851
883
  return result;
852
884
  }
853
885
 
886
+ +(NSMutableDictionary* _Nonnull)generateRGLPAResourcesIssuer:(RGLPAResourcesIssuer* _Nullable)input {
887
+ NSMutableDictionary *result = [NSMutableDictionary new];
888
+ if(input == nil) return result;
889
+
890
+ result[@"data"] = [NSKeyedUnarchiver unarchiveObjectWithData:input.data];
891
+ result[@"friendlyName"] = input.friendlyName;
892
+ if(input.attributes != nil){
893
+ NSMutableArray *array = [NSMutableArray new];
894
+ for(RGLPAAttribute* item in input.attributes)
895
+ if(item != nil)
896
+ [array addObject:[self generateRGLPAAttribute:item]];
897
+ result[@"attributes"] = array;
898
+ }
899
+
900
+ return result;
901
+ }
902
+
903
+ +(NSMutableDictionary* _Nonnull)generateRGLPAAttribute:(RGLPAAttribute* _Nullable)input {
904
+ NSMutableDictionary *result = [NSMutableDictionary new];
905
+ if(input == nil) return result;
906
+
907
+ result[@"value"] = input.value;
908
+ result[@"type"] = input.type;
909
+
910
+ return result;
911
+ }
912
+
913
+ +(NSMutableDictionary* _Nonnull)generateRGLTAChallenge:(RGLTAChallenge* _Nullable)input {
914
+ NSMutableDictionary *result = [NSMutableDictionary new];
915
+ if(input == nil) return result;
916
+
917
+ result[@"data"] = [NSKeyedUnarchiver unarchiveObjectWithData:input.data];
918
+ result[@"auxPCD"] = input.auxPCD;
919
+ result[@"challengePICC"] = input.challengePICC;
920
+ result[@"hashPK"] = input.hashPK;
921
+ result[@"idPICC"] = input.idPICC;
922
+
923
+ return result;
924
+ }
925
+
926
+ +(NSMutableDictionary* _Nonnull)generateRGLDocumentReaderResultsStatus:(RGLDocumentReaderResultsStatus* _Nullable)input {
927
+ NSMutableDictionary *result = [NSMutableDictionary new];
928
+ if(input == nil) return result;
929
+
930
+ result[@"overallStatus"] = @(input.overallStatus);
931
+ result[@"optical"] = @(input.optical);
932
+ result[@"detailsOptical"] = [self generateRGLOpticalStatus:input.detailsOptical];
933
+ result[@"rfid"] = @(input.rfid);
934
+ result[@"detailsRFID"] = [self generateRGLRFIDSessionDataStatus:input.detailsRFID];
935
+ result[@"portrait"] = @(input.portrait);
936
+ result[@"stopList"] = @(input.stopList);
937
+
938
+ return result;
939
+ }
940
+
941
+ +(NSMutableDictionary* _Nonnull)generateRGLOpticalStatus:(RGLOpticalStatus* _Nullable)input {
942
+ NSMutableDictionary *result = [NSMutableDictionary new];
943
+ if(input == nil) return result;
944
+
945
+ result[@"overallStatus"] = @(input.overallStatus);
946
+ result[@"mrz"] = @(input.mrz);
947
+ result[@"text"] = @(input.text);
948
+ result[@"docType"] = @(input.docType);
949
+ result[@"security"] = @(input.security);
950
+ result[@"imageQA"] = @(input.imageQA);
951
+ result[@"expiry"] = @(input.expiry);
952
+ result[@"vds"] = @(input.vds);
953
+ result[@"pagesCount"] = @(input.pagesCount);
954
+
955
+ return result;
956
+ }
957
+
958
+ +(NSMutableDictionary* _Nonnull)generateRGLVDSNCData:(RGLVDSNCData* _Nullable)input {
959
+ NSMutableDictionary *result = [NSMutableDictionary new];
960
+ if(input == nil) return result;
961
+
962
+ result[@"type"] = input.type;
963
+ result[@"version"] = @(input.version);
964
+ result[@"issuingCountry"] = input.issuingCountry;
965
+ result[@"message"] = [self generateNSDictionary:input.message];
966
+ result[@"signatureAlgorithm"] = input.signatureAlgorithm;
967
+ result[@"signature"] = [self generateRGLBytesData:input.signature];
968
+ result[@"certificate"] = [self generateRGLBytesData:input.certificate];
969
+ if(input.certificateChain != nil){
970
+ NSMutableArray *array = [NSMutableArray new];
971
+ for(RGLCertificateChain* item in input.certificateChain)
972
+ if(item != nil)
973
+ [array addObject:[self generateRGLCertificateChain:item]];
974
+ result[@"certificateChain"] = array;
975
+ }
976
+ if(input.notifications != nil){
977
+ NSMutableArray *array = [NSMutableArray new];
978
+ for(NSNumber* item in input.notifications)
979
+ if(item != nil)
980
+ [array addObject:item];
981
+ result[@"notifications"] = array;
982
+ }
983
+
984
+ return result;
985
+ }
986
+
987
+ +(NSMutableDictionary* _Nonnull)generateRGLBytesData:(RGLBytesData* _Nullable)input {
988
+ NSMutableDictionary *result = [NSMutableDictionary new];
989
+ if(input == nil) return result;
990
+
991
+ result[@"data"] = input.data;
992
+ result[@"length"] = @(input.length);
993
+ result[@"status"] = @(input.status);
994
+ result[@"type"] = @(input.type);
995
+
996
+ return result;
997
+ }
998
+
854
999
  +(NSMutableDictionary* _Nonnull)generateRGLRFIDNotify:(RGLRFIDNotify* _Nullable)input {
855
1000
  NSMutableDictionary *result = [NSMutableDictionary new];
856
1001
  if(input == nil) return result;
@@ -19,5 +19,7 @@
19
19
  +(RGLePassportDataGroup*)RGLePassportDataGroupFromJson:(NSDictionary *) dict;
20
20
  +(RGLeIDDataGroup*)RGLeIDDataGroupFromJson:(NSDictionary*) dict;
21
21
  +(RGLeDLDataGroup*)RGLeDLDataGroupFromJson:(NSDictionary*) dict;
22
+ +(RGLImageQA*)ImageQAFromJson:(NSDictionary*) dict;
23
+ +(NSDictionary*)ImageQAToJson:(RGLImageQA*) input;
22
24
  @end
23
25
  #endif
@@ -284,6 +284,39 @@
284
284
  }
285
285
  }
286
286
 
287
+ +(RGLImageQA*)ImageQAFromJson:(NSDictionary*)dict {
288
+ RGLImageQA *image = [RGLImageQA new];
289
+
290
+ if([dict valueForKey:@"dpiThreshold"] != nil)
291
+ image.dpiThreshold = [dict valueForKey:@"dpiThreshold"];
292
+ if([dict valueForKey:@"angleThreshold"] != nil)
293
+ image.angleThreshold = [dict valueForKey:@"angleThreshold"];
294
+ if([dict valueForKey:@"focusCheck"] != nil)
295
+ image.focusCheck = [dict valueForKey:@"focusCheck"];
296
+ if([dict valueForKey:@"glaresCheck"] != nil)
297
+ image.glaresCheck = [dict valueForKey:@"glaresCheck"];
298
+ if([dict valueForKey:@"colornessCheck"] != nil)
299
+ image.colornessCheck = [dict valueForKey:@"colornessCheck"];
300
+ if([dict valueForKey:@"moireCheck"] != nil)
301
+ image.moireCheck = [dict valueForKey:@"moireCheck"];
302
+
303
+ return image;
304
+ }
305
+
306
+ +(NSDictionary*)ImageQAToJson:(RGLImageQA*)input {
307
+ NSMutableDictionary *result = [NSMutableDictionary new];
308
+ if(input == nil) return result;
309
+
310
+ result[@"dpiThreshold"] = input.dpiThreshold;
311
+ result[@"angleThreshold"] = input.angleThreshold;
312
+ result[@"focusCheck"] = input.focusCheck;
313
+ result[@"glaresCheck"] = input.glaresCheck;
314
+ result[@"colornessCheck"] = input.colornessCheck;
315
+ result[@"moireCheck"] = input.moireCheck;
316
+
317
+ return result;
318
+ }
319
+
287
320
  +(RGLePassportDataGroup*)RGLePassportDataGroupFromJson:(NSDictionary*)dict {
288
321
  RGLePassportDataGroup *group = [[RGLePassportDataGroup alloc] init];
289
322
 
@@ -502,6 +535,8 @@
502
535
  customization.cameraFrameLandscapeAspectRatio = [[options valueForKey:@"cameraFrameLandscapeAspectRatio"] floatValue];
503
536
  if([options valueForKey:@"toolbarSize"] != nil)
504
537
  customization.toolbarSize = [[options valueForKey:@"toolbarSize"] floatValue];
538
+ if([options valueForKey:@"statusBackgroundColor"] != nil)
539
+ customization.statusBackgroundColor = [self getUIColorObjectFromHexString:[options valueForKey:@"statusBackgroundColor"] alpha:1];
505
540
  }
506
541
 
507
542
  +(void)setFunctionality:(NSDictionary*)options :(RGLFunctionality*)functionality {
@@ -562,21 +597,23 @@
562
597
  functionality.zoomFactor = [[options valueForKey:@"zoomFactor"] floatValue];
563
598
  if([options valueForKey:@"recordScanningProcess"] != nil)
564
599
  functionality.recordScanningProcess = [[options valueForKey:@"recordScanningProcess"] boolValue];
600
+ if([options valueForKey:@"manualMultipageMode"] != nil)
601
+ functionality.manualMultipageMode = [[options valueForKey:@"manualMultipageMode"] boolValue];
565
602
  }
566
603
 
567
604
  +(void)setProcessParams:(NSDictionary*)options :(RGLProcessParams*)processParams {
568
605
  if([options valueForKey:@"multipageProcessing"] != nil)
569
- processParams.multipageProcessing = [[options valueForKey:@"multipageProcessing"] boolValue];
606
+ processParams.multipageProcessing = [NSNumber numberWithBool:[[options valueForKey:@"multipageProcessing"] boolValue]];
570
607
  if([options valueForKey:@"dateFormat"] != nil)
571
608
  processParams.dateFormat = [options valueForKey:@"dateFormat"];
572
609
  if([options valueForKey:@"logs"] != nil)
573
- processParams.logs = [[options valueForKey:@"logs"] boolValue];
610
+ processParams.logs = [NSNumber numberWithBool:[[options valueForKey:@"logs"] boolValue]];
574
611
  if([options valueForKey:@"debugSaveImages"] != nil)
575
- processParams.debugSaveImages = [[options valueForKey:@"debugSaveImages"] boolValue];
612
+ processParams.debugSaveImages = [NSNumber numberWithBool:[[options valueForKey:@"debugSaveImages"] boolValue]];
576
613
  if([options valueForKey:@"debugSaveCroppedImages"] != nil)
577
- processParams.debugSaveCroppedImages = [[options valueForKey:@"debugSaveCroppedImages"] boolValue];
614
+ processParams.debugSaveCroppedImages = [NSNumber numberWithBool:[[options valueForKey:@"debugSaveCroppedImages"] boolValue]];
578
615
  if([options valueForKey:@"debugSaveLogs"] != nil)
579
- processParams.debugSaveLogs = [[options valueForKey:@"debugSaveLogs"] boolValue];
616
+ processParams.debugSaveLogs = [NSNumber numberWithBool:[[options valueForKey:@"debugSaveLogs"] boolValue]];
580
617
  if([options valueForKey:@"scenario"] != nil)
581
618
  processParams.scenario = [options valueForKey:@"scenario"];
582
619
  if([options valueForKey:@"barcodeTypes"] != nil)
@@ -586,43 +623,81 @@
586
623
  if([options valueForKey:@"fieldTypesFilter"] != nil)
587
624
  processParams.fieldTypesFilter = [options valueForKey:@"fieldTypesFilter"];
588
625
  if([options valueForKey:@"disableFocusingCheck"] != nil)
589
- processParams.disableFocusingCheck = [[options valueForKey:@"disableFocusingCheck"] boolValue];
626
+ processParams.disableFocusingCheck = [NSNumber numberWithBool:[[options valueForKey:@"disableFocusingCheck"] boolValue]];
590
627
  if([options valueForKey:@"captureButtonScenario"] != nil)
591
628
  processParams.captureButtonScenario = [options valueForKey:@"captureButtonScenario"];
592
- if([options valueForKey:@"sessionLogFolder"] != nil)
593
- [processParams setSessionLogFolder:[[options valueForKey:@"sessionLogFolder"] stringValue]];
594
629
  if([options valueForKey:@"measureSystem"] != nil)
595
630
  processParams.measureSystem = [[options valueForKey:@"measureSystem"] integerValue];
596
631
  if([options valueForKey:@"returnUncroppedImage"] != nil)
597
- processParams.returnUncroppedImage = [[options valueForKey:@"returnUncroppedImage"] boolValue];
632
+ processParams.returnUncroppedImage = [NSNumber numberWithBool:[[options valueForKey:@"returnUncroppedImage"] boolValue]];
598
633
  if([options valueForKey:@"customParams"] != nil)
599
634
  processParams.customParams = [options objectForKey:@"customParams"];
600
635
  if([options valueForKey:@"debugSaveRFIDSession"] != nil)
601
- processParams.debugSaveRFIDSession = [[options valueForKey:@"debugSaveRFIDSession"] boolValue];
636
+ processParams.debugSaveRFIDSession = [NSNumber numberWithBool:[[options valueForKey:@"debugSaveRFIDSession"] boolValue]];
602
637
  if([options valueForKey:@"doublePageSpread"] != nil)
603
- processParams.doublePageSpread = [[options valueForKey:@"doublePageSpread"] boolValue];
638
+ processParams.doublePageSpread = [NSNumber numberWithBool:[[options valueForKey:@"doublePageSpread"] boolValue]];
604
639
  if([options valueForKey:@"barcodeParserType"] != nil)
605
- processParams.barcodeParserType = [[options valueForKey:@"barcodeParserType"] integerValue];
640
+ processParams.barcodeParserType = [NSNumber numberWithInteger:[[options valueForKey:@"barcodeParserType"] integerValue]];
606
641
  if([options valueForKey:@"timeout"] != nil)
607
- processParams.timeout = [[options valueForKey:@"timeout"] doubleValue];
642
+ processParams.timeout = [NSNumber numberWithDouble:[[options valueForKey:@"timeout"] doubleValue]];
608
643
  if([options valueForKey:@"timeoutFromFirstDetect"] != nil)
609
- processParams.timeoutFromFirstDetect = [[options valueForKey:@"timeoutFromFirstDetect"] doubleValue];
644
+ processParams.timeoutFromFirstDetect = [NSNumber numberWithDouble:[[options valueForKey:@"timeoutFromFirstDetect"] doubleValue]];
610
645
  if([options valueForKey:@"timeoutFromFirstDocType"] != nil)
611
- processParams.timeoutFromFirstDocType = [[options valueForKey:@"timeoutFromFirstDocType"] doubleValue];
646
+ processParams.timeoutFromFirstDocType = [NSNumber numberWithDouble:[[options valueForKey:@"timeoutFromFirstDocType"] doubleValue]];
612
647
  if([options valueForKey:@"manualCrop"] != nil)
613
- processParams.manualCrop = [[options valueForKey:@"manualCrop"] boolValue];
648
+ processParams.manualCrop = [NSNumber numberWithBool:[[options valueForKey:@"manualCrop"] boolValue]];
614
649
  if([options valueForKey:@"perspectiveAngle"] != nil)
615
- processParams.perspectiveAngle = [[options valueForKey:@"perspectiveAngle"] integerValue];
650
+ processParams.perspectiveAngle = [NSNumber numberWithInteger:[[options valueForKey:@"perspectiveAngle"] integerValue]];
616
651
  if([options valueForKey:@"minDPI"] != nil)
617
- processParams.minDPI = [[options valueForKey:@"minDPI"] integerValue];
652
+ processParams.minDPI = [NSNumber numberWithInteger:[[options valueForKey:@"minDPI"] integerValue]];
618
653
  if([options valueForKey:@"integralImage"] != nil)
619
- processParams.integralImage = [[options valueForKey:@"integralImage"] boolValue];
654
+ processParams.integralImage = [NSNumber numberWithBool:[[options valueForKey:@"integralImage"] boolValue]];
620
655
  if([options valueForKey:@"returnCroppedBarcode"] != nil)
621
- processParams.returnCroppedBarcode = [[options valueForKey:@"returnCroppedBarcode"] boolValue];
656
+ processParams.returnCroppedBarcode = [NSNumber numberWithBool:[[options valueForKey:@"returnCroppedBarcode"] boolValue]];
622
657
  if([options valueForKey:@"checkHologram"] != nil)
623
- processParams.checkHologram = [[options valueForKey:@"checkHologram"] boolValue];
658
+ processParams.checkHologram = [NSNumber numberWithBool:[[options valueForKey:@"checkHologram"] boolValue]];
624
659
  if([options valueForKey:@"checkRequiredTextFields"] != nil)
625
- processParams.checkRequiredTextFields = [[options valueForKey:@"checkRequiredTextFields"] boolValue];
660
+ processParams.checkRequiredTextFields = [NSNumber numberWithBool:[[options valueForKey:@"checkRequiredTextFields"] boolValue]];
661
+ if([options valueForKey:@"depersonalizeLog"] != nil)
662
+ processParams.depersonalizeLog = [options valueForKey:@"depersonalizeLog"];
663
+ if([options valueForKey:@"resultTypeOutput"] != nil)
664
+ processParams.resultTypeOutput = [options valueForKey:@"resultTypeOutput"];
665
+ if([options valueForKey:@"generateDoublePageSpreadImage"] != nil)
666
+ processParams.generateDoublePageSpreadImage = [options valueForKey:@"generateDoublePageSpreadImage"];
667
+ if([options valueForKey:@"imageDpiOutMax"] != nil)
668
+ processParams.imageDpiOutMax = [options valueForKey:@"imageDpiOutMax"];
669
+ if([options valueForKey:@"alreadyCropped"] != nil)
670
+ processParams.alreadyCropped = [options valueForKey:@"alreadyCropped"];
671
+ if([options valueForKey:@"forceDocID"] != nil)
672
+ processParams.forceDocID = [options valueForKey:@"forceDocID"];
673
+ if([options valueForKey:@"matchTextFieldMask"] != nil)
674
+ processParams.matchTextFieldMask = [options valueForKey:@"matchTextFieldMask"];
675
+ if([options valueForKey:@"fastDocDetect"] != nil)
676
+ processParams.fastDocDetect = [options valueForKey:@"fastDocDetect"];
677
+ if([options valueForKey:@"updateOCRValidityByGlare"] != nil)
678
+ processParams.updateOCRValidityByGlare = [options valueForKey:@"updateOCRValidityByGlare"];
679
+ if([options valueForKey:@"imageQA"] != nil)
680
+ processParams.imageQA = [RegulaConfig ImageQAFromJson:[options valueForKey:@"imageQA"]];
681
+ if([options valueForKey:@"forceDocFormat"] != nil)
682
+ processParams.forceDocFormat = [options valueForKey:@"forceDocFormat"];
683
+ if([options valueForKey:@"noGraphics"] != nil)
684
+ processParams.noGraphics = [options valueForKey:@"noGraphics"];
685
+ if([options valueForKey:@"documentAreaMin"] != nil)
686
+ processParams.documentAreaMin = [options valueForKey:@"documentAreaMin"];
687
+ if([options valueForKey:@"multiDocOnImage"] != nil)
688
+ processParams.multiDocOnImage = [options valueForKey:@"multiDocOnImage"];
689
+ if([options valueForKey:@"shiftExpiryDate"] != nil)
690
+ processParams.shiftExpiryDate = [options valueForKey:@"shiftExpiryDate"];
691
+ if([options valueForKey:@"minimalHolderAge"] != nil)
692
+ processParams.minimalHolderAge = [options valueForKey:@"minimalHolderAge"];
693
+ if([options valueForKey:@"mrzFormatsFilter"] != nil)
694
+ processParams.mrzFormatsFilter = [options valueForKey:@"mrzFormatsFilter"];
695
+ if([options valueForKey:@"forceReadMrzBeforeLocate"] != nil)
696
+ processParams.forceReadMrzBeforeLocate = [options valueForKey:@"forceReadMrzBeforeLocate"];
697
+ if([options valueForKey:@"parseBarcodes"] != nil)
698
+ processParams.parseBarcodes = [options valueForKey:@"parseBarcodes"];
699
+ if([options valueForKey:@"shouldReturnPackageForReprocess"] != nil)
700
+ processParams.shouldReturnPackageForReprocess = [options valueForKey:@"shouldReturnPackageForReprocess"];
626
701
  }
627
702
 
628
703
  +(NSMutableDictionary *)getCustomization:(RGLCustomization*)customization {
@@ -683,6 +758,8 @@
683
758
  result[@"tintColor"] = [self hexStringFromUIColor:customization.tintColor];
684
759
  if(customization.resultStatusTextColor != nil)
685
760
  result[@"resultStatusTextColor"] = [self hexStringFromUIColor:customization.resultStatusTextColor];
761
+ if(customization.statusBackgroundColor != nil)
762
+ result[@"statusBackgroundColor"] = [self hexStringFromUIColor:customization.statusBackgroundColor];
686
763
 
687
764
  return result;
688
765
  }
@@ -713,6 +790,7 @@
713
790
  result[@"isZoomEnabled"] = [NSNumber numberWithBool:functionality.isZoomEnabled];
714
791
  result[@"zoomFactor"] = [NSNumber numberWithBool:functionality.zoomFactor];
715
792
  result[@"recordScanningProcess"] = [NSNumber numberWithBool:functionality.recordScanningProcess];
793
+ result[@"manualMultipageMode"] = [NSNumber numberWithBool:functionality.manualMultipageMode];
716
794
 
717
795
  return result;
718
796
  }
@@ -738,20 +816,37 @@
738
816
  result[@"customParams"] = processParams.customParams;
739
817
  result[@"debugSaveRFIDSession"] = [NSNumber numberWithBool:processParams.debugSaveRFIDSession];
740
818
  result[@"doublePageSpread"] = [NSNumber numberWithBool:processParams.doublePageSpread];
741
- result[@"barcodeParserType"] = [NSNumber numberWithInteger:processParams.barcodeParserType];
742
- result[@"processParamsDictionary"] = [[NSString alloc] initWithData:[NSJSONSerialization dataWithJSONObject:processParams.processParamsDictionary options:NSJSONWritingPrettyPrinted error:nil] encoding:NSUTF8StringEncoding];
743
- result[@"coreParamsDictionary"] = [[NSString alloc] initWithData:[NSJSONSerialization dataWithJSONObject:processParams.coreParamsDictionary options:NSJSONWritingPrettyPrinted error:nil] encoding:NSUTF8StringEncoding];
744
- result[@"rfidParamsDictionary"] = [[NSString alloc] initWithData:[NSJSONSerialization dataWithJSONObject:processParams.rfidParamsDictionary options:NSJSONWritingPrettyPrinted error:nil] encoding:NSUTF8StringEncoding];
745
- result[@"timeout"] = [NSNumber numberWithDouble:processParams.timeout];
746
- result[@"timeoutFromFirstDetect"] = [NSNumber numberWithDouble:processParams.timeoutFromFirstDetect];
747
- result[@"timeoutFromFirstDocType"] = [NSNumber numberWithDouble:processParams.timeoutFromFirstDocType];
819
+ result[@"barcodeParserType"] = processParams.barcodeParserType;
820
+ result[@"timeout"] = processParams.timeout;
821
+ result[@"timeoutFromFirstDetect"] = processParams.timeoutFromFirstDetect;
822
+ result[@"timeoutFromFirstDocType"] = processParams.timeoutFromFirstDocType;
748
823
  result[@"manualCrop"] = [NSNumber numberWithBool:processParams.manualCrop];
749
- result[@"perspectiveAngle"] = [NSNumber numberWithInteger:processParams.perspectiveAngle];
750
- result[@"minDPI"] = [NSNumber numberWithInteger:processParams.minDPI];
824
+ result[@"perspectiveAngle"] = processParams.perspectiveAngle;
825
+ result[@"minDPI"] = processParams.minDPI;
751
826
  result[@"integralImage"] = [NSNumber numberWithBool:processParams.integralImage];
752
827
  result[@"returnCroppedBarcode"] = [NSNumber numberWithBool:processParams.returnCroppedBarcode];
753
828
  result[@"checkHologram"] = [NSNumber numberWithBool:processParams.checkHologram];
754
829
  result[@"checkRequiredTextFields"] = [NSNumber numberWithBool:processParams.checkRequiredTextFields];
830
+ result[@"depersonalizeLog"] = processParams.depersonalizeLog;
831
+ result[@"resultTypeOutput"] = processParams.resultTypeOutput;
832
+ result[@"generateDoublePageSpreadImage"] = processParams.generateDoublePageSpreadImage;
833
+ result[@"imageDpiOutMax"] = processParams.imageDpiOutMax;
834
+ result[@"alreadyCropped"] = processParams.alreadyCropped;
835
+ result[@"forceDocID"] = processParams.forceDocID;
836
+ result[@"matchTextFieldMask"] = processParams.matchTextFieldMask;
837
+ result[@"fastDocDetect"] = processParams.fastDocDetect;
838
+ result[@"updateOCRValidityByGlare"] = processParams.updateOCRValidityByGlare;
839
+ result[@"imageQA"] = [RegulaConfig ImageQAToJson:processParams.imageQA];
840
+ result[@"forceDocFormat"] = processParams.forceDocFormat;
841
+ result[@"noGraphics"] = processParams.noGraphics;
842
+ result[@"documentAreaMin"] = processParams.documentAreaMin;
843
+ result[@"multiDocOnImage"] = processParams.multiDocOnImage;
844
+ result[@"shiftExpiryDate"] = processParams.shiftExpiryDate;
845
+ result[@"minimalHolderAge"] = processParams.minimalHolderAge;
846
+ result[@"mrzFormatsFilter"] = processParams.mrzFormatsFilter;
847
+ result[@"forceReadMrzBeforeLocate"] = processParams.forceReadMrzBeforeLocate;
848
+ result[@"parseBarcodes"] = processParams.parseBarcodes;
849
+ result[@"shouldReturnPackageForReprocess"] = processParams.shouldReturnPackageForReprocess;
755
850
 
756
851
  return result;
757
852
  }