react-native-hyperkyc-sdk 0.2.0-alpha2 → 0.2.1-alpha1

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.
@@ -45,7 +45,7 @@ class Hyperkyc: NSObject {
45
45
 
46
46
  func processHyperKycResult(hyperKycResult: HyperKycResult) -> [String : Any] {
47
47
 
48
- let resultEnum = hyperKycResult.result! as KYCResult
48
+ let resultEnum = hyperKycResult.status!
49
49
  var resultEnumString = ""
50
50
  var kycData = [
51
51
  "selectedCountryId" : "",
@@ -135,7 +135,7 @@ class Hyperkyc: NSObject {
135
135
 
136
136
  kycData["faceMatchDataResultList"] = faceMatchDataResultList
137
137
 
138
- if let errorMsg = hyperKycResult.errorMessage {
138
+ if let errorMsg = hyperKycResult.reason {
139
139
  errorMessage = errorMsg
140
140
  }
141
141
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-hyperkyc-sdk",
3
- "version": "0.2.0-alpha2",
3
+ "version": "0.2.1-alpha1",
4
4
  "description": "React Native wrapper for HyperKYC SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",