@@ -330,6 +330,7 @@ abstract class GetAccountStatusModel {
330330 /// - `mt5_additional_kyc_required` : client tax information, place of birth and account opening reason is missing.
331331 /// - `poi_expiring_soon` : the POI documents of the client will get expired soon, allow them to reupload POI documents.
332332 /// - `poa_expiring_soon` : the POA documents of the client will get outdated soon, allow them to reupload POA documents.
333+ /// - `tin_manually_approved` : the client's tax_identification_number has been manually approved as client is not applicable for tax_identification_number
333334 final List <String > status;
334335
335336 /// Client risk classification: `low` , `standard` , `high` .
@@ -825,6 +826,7 @@ abstract class DocumentModel {
825826 this .authenticatedWithIdv,
826827 this .expiryDate,
827828 this .status,
829+ this .verifiedJurisdiction,
828830 });
829831
830832 /// This represents the current status of idv authentication for each mt5 jurisdiction.
@@ -835,6 +837,9 @@ abstract class DocumentModel {
835837
836838 /// This represents the current status of the proof of address document submitted for authentication.
837839 final DocumentStatusEnum ? status;
840+
841+ /// This represents the current status of authentication for each mt5 jurisdiction.
842+ final VerifiedJurisdiction ? verifiedJurisdiction;
838843}
839844
840845/// Document class.
@@ -844,6 +849,7 @@ class Document extends DocumentModel {
844849 super .authenticatedWithIdv,
845850 super .expiryDate,
846851 super .status,
852+ super .verifiedJurisdiction,
847853 });
848854
849855 /// Creates an instance from JSON.
@@ -855,6 +861,9 @@ class Document extends DocumentModel {
855861 status: json['status' ] == null
856862 ? null
857863 : documentStatusEnumMapper[json['status' ]],
864+ verifiedJurisdiction: json['verified_jurisdiction' ] == null
865+ ? null
866+ : VerifiedJurisdiction .fromJson (json['verified_jurisdiction' ]),
858867 );
859868
860869 /// Converts an instance to JSON.
@@ -869,6 +878,9 @@ class Document extends DocumentModel {
869878 .firstWhere ((MapEntry <String , DocumentStatusEnum > entry) =>
870879 entry.value == status)
871880 .key;
881+ if (verifiedJurisdiction != null ) {
882+ resultMap['verified_jurisdiction' ] = verifiedJurisdiction! .toJson ();
883+ }
872884
873885 return resultMap;
874886 }
@@ -878,11 +890,13 @@ class Document extends DocumentModel {
878890 AuthenticatedWithIdv ? authenticatedWithIdv,
879891 DateTime ? expiryDate,
880892 DocumentStatusEnum ? status,
893+ VerifiedJurisdiction ? verifiedJurisdiction,
881894 }) =>
882895 Document (
883896 authenticatedWithIdv: authenticatedWithIdv ?? this .authenticatedWithIdv,
884897 expiryDate: expiryDate ?? this .expiryDate,
885898 status: status ?? this .status,
899+ verifiedJurisdiction: verifiedJurisdiction ?? this .verifiedJurisdiction,
886900 );
887901}
888902
@@ -1018,6 +1032,138 @@ class AuthenticatedWithIdv extends AuthenticatedWithIdvModel {
10181032 );
10191033}
10201034
1035+ /// Verified jurisdiction model class.
1036+ abstract class VerifiedJurisdictionModel {
1037+ /// Initializes Verified jurisdiction model class .
1038+ const VerifiedJurisdictionModel ({
1039+ this .bvi,
1040+ this .dsl,
1041+ this .iom,
1042+ this .labuan,
1043+ this .malta,
1044+ this .maltainvest,
1045+ this .samoa,
1046+ this .samoaVirtual,
1047+ this .svg,
1048+ this .vanuatu,
1049+ this .virtual,
1050+ });
1051+
1052+ /// This represents whether the client is allowed or not to create an account under this jurisdiction
1053+ final bool ? bvi;
1054+
1055+ /// This represents whether the client is allowed or not to create an account under this jurisdiction
1056+ final bool ? dsl;
1057+
1058+ /// This represents whether the client is allowed or not to create an account under this jurisdiction
1059+ final bool ? iom;
1060+
1061+ /// This represents whether the client is allowed or not to create an account under this jurisdiction
1062+ final bool ? labuan;
1063+
1064+ /// This represents whether the client is allowed or not to create an account under this jurisdiction
1065+ final bool ? malta;
1066+
1067+ /// This represents whether the client is allowed or not to create an account under this jurisdiction
1068+ final bool ? maltainvest;
1069+
1070+ /// This represents whether the client is allowed or not to create an account under this jurisdiction
1071+ final bool ? samoa;
1072+
1073+ /// This represents whether the client is allowed or not to create an account under this jurisdiction
1074+ final bool ? samoaVirtual;
1075+
1076+ /// This represents whether the client is allowed or not to create an account under this jurisdiction
1077+ final bool ? svg;
1078+
1079+ /// This represents whether the client is allowed or not to create an account under this jurisdiction
1080+ final bool ? vanuatu;
1081+
1082+ /// This represents whether the client is allowed or not to create an account under this jurisdiction
1083+ final bool ? virtual;
1084+ }
1085+
1086+ /// Verified jurisdiction class.
1087+ class VerifiedJurisdiction extends VerifiedJurisdictionModel {
1088+ /// Initializes Verified jurisdiction class.
1089+ const VerifiedJurisdiction ({
1090+ super .bvi,
1091+ super .dsl,
1092+ super .iom,
1093+ super .labuan,
1094+ super .malta,
1095+ super .maltainvest,
1096+ super .samoa,
1097+ super .samoaVirtual,
1098+ super .svg,
1099+ super .vanuatu,
1100+ super .virtual,
1101+ });
1102+
1103+ /// Creates an instance from JSON.
1104+ factory VerifiedJurisdiction .fromJson (Map <String , dynamic > json) =>
1105+ VerifiedJurisdiction (
1106+ bvi: getBool (json['bvi' ]),
1107+ dsl: getBool (json['dsl' ]),
1108+ iom: getBool (json['iom' ]),
1109+ labuan: getBool (json['labuan' ]),
1110+ malta: getBool (json['malta' ]),
1111+ maltainvest: getBool (json['maltainvest' ]),
1112+ samoa: getBool (json['samoa' ]),
1113+ samoaVirtual: getBool (json['samoa-virtual' ]),
1114+ svg: getBool (json['svg' ]),
1115+ vanuatu: getBool (json['vanuatu' ]),
1116+ virtual: getBool (json['virtual' ]),
1117+ );
1118+
1119+ /// Converts an instance to JSON.
1120+ Map <String , dynamic > toJson () {
1121+ final Map <String , dynamic > resultMap = < String , dynamic > {};
1122+
1123+ resultMap['bvi' ] = bvi;
1124+ resultMap['dsl' ] = dsl;
1125+ resultMap['iom' ] = iom;
1126+ resultMap['labuan' ] = labuan;
1127+ resultMap['malta' ] = malta;
1128+ resultMap['maltainvest' ] = maltainvest;
1129+ resultMap['samoa' ] = samoa;
1130+ resultMap['samoa-virtual' ] = samoaVirtual;
1131+ resultMap['svg' ] = svg;
1132+ resultMap['vanuatu' ] = vanuatu;
1133+ resultMap['virtual' ] = virtual;
1134+
1135+ return resultMap;
1136+ }
1137+
1138+ /// Creates a copy of instance with given parameters.
1139+ VerifiedJurisdiction copyWith ({
1140+ bool ? bvi,
1141+ bool ? dsl,
1142+ bool ? iom,
1143+ bool ? labuan,
1144+ bool ? malta,
1145+ bool ? maltainvest,
1146+ bool ? samoa,
1147+ bool ? samoaVirtual,
1148+ bool ? svg,
1149+ bool ? vanuatu,
1150+ bool ? virtual,
1151+ }) =>
1152+ VerifiedJurisdiction (
1153+ bvi: bvi ?? this .bvi,
1154+ dsl: dsl ?? this .dsl,
1155+ iom: iom ?? this .iom,
1156+ labuan: labuan ?? this .labuan,
1157+ malta: malta ?? this .malta,
1158+ maltainvest: maltainvest ?? this .maltainvest,
1159+ samoa: samoa ?? this .samoa,
1160+ samoaVirtual: samoaVirtual ?? this .samoaVirtual,
1161+ svg: svg ?? this .svg,
1162+ vanuatu: vanuatu ?? this .vanuatu,
1163+ virtual: virtual ?? this .virtual,
1164+ );
1165+ }
1166+
10211167/// Identity model class.
10221168abstract class IdentityModel {
10231169 /// Initializes Identity model class .
@@ -1157,6 +1303,7 @@ abstract class IdvModel {
11571303 const IdvModel ({
11581304 this .expiryDate,
11591305 this .lastRejected,
1306+ this .reportAvailable,
11601307 this .reportedProperties,
11611308 this .status,
11621309 this .submissionsLeft,
@@ -1168,6 +1315,9 @@ abstract class IdvModel {
11681315 /// Show the last IDV reported reasons for the rejected cases
11691316 final List <String >? lastRejected;
11701317
1318+ /// Indicate if the verification report was returned by the provider
1319+ final bool ? reportAvailable;
1320+
11711321 /// Shows the latest document properties detected and reported by IDVS
11721322 final Map <String , dynamic >? reportedProperties;
11731323
@@ -1184,6 +1334,7 @@ class Idv extends IdvModel {
11841334 const Idv ({
11851335 super .expiryDate,
11861336 super .lastRejected,
1337+ super .reportAvailable,
11871338 super .reportedProperties,
11881339 super .status,
11891340 super .submissionsLeft,
@@ -1199,6 +1350,7 @@ class Idv extends IdvModel {
11991350 (dynamic item) => item,
12001351 ),
12011352 ),
1353+ reportAvailable: getBool (json['report_available' ]),
12021354 reportedProperties: json['reported_properties' ],
12031355 status:
12041356 json['status' ] == null ? null : idvStatusEnumMapper[json['status' ]],
@@ -1217,6 +1369,7 @@ class Idv extends IdvModel {
12171369 )
12181370 .toList ();
12191371 }
1372+ resultMap['report_available' ] = reportAvailable;
12201373 resultMap['reported_properties' ] = reportedProperties;
12211374 resultMap['status' ] = idvStatusEnumMapper.entries
12221375 .firstWhere (
@@ -1231,13 +1384,15 @@ class Idv extends IdvModel {
12311384 Idv copyWith ({
12321385 DateTime ? expiryDate,
12331386 List <String >? lastRejected,
1387+ bool ? reportAvailable,
12341388 Map <String , dynamic >? reportedProperties,
12351389 IdvStatusEnum ? status,
12361390 int ? submissionsLeft,
12371391 }) =>
12381392 Idv (
12391393 expiryDate: expiryDate ?? this .expiryDate,
12401394 lastRejected: lastRejected ?? this .lastRejected,
1395+ reportAvailable: reportAvailable ?? this .reportAvailable,
12411396 reportedProperties: reportedProperties ?? this .reportedProperties,
12421397 status: status ?? this .status,
12431398 submissionsLeft: submissionsLeft ?? this .submissionsLeft,
0 commit comments