@@ -330,6 +330,7 @@ abstract class GetAccountStatusModel {
330
330
/// - `mt5_additional_kyc_required` : client tax information, place of birth and account opening reason is missing.
331
331
/// - `poi_expiring_soon` : the POI documents of the client will get expired soon, allow them to reupload POI documents.
332
332
/// - `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
333
334
final List <String > status;
334
335
335
336
/// Client risk classification: `low` , `standard` , `high` .
@@ -825,6 +826,7 @@ abstract class DocumentModel {
825
826
this .authenticatedWithIdv,
826
827
this .expiryDate,
827
828
this .status,
829
+ this .verifiedJurisdiction,
828
830
});
829
831
830
832
/// This represents the current status of idv authentication for each mt5 jurisdiction.
@@ -835,6 +837,9 @@ abstract class DocumentModel {
835
837
836
838
/// This represents the current status of the proof of address document submitted for authentication.
837
839
final DocumentStatusEnum ? status;
840
+
841
+ /// This represents the current status of authentication for each mt5 jurisdiction.
842
+ final VerifiedJurisdiction ? verifiedJurisdiction;
838
843
}
839
844
840
845
/// Document class.
@@ -844,6 +849,7 @@ class Document extends DocumentModel {
844
849
super .authenticatedWithIdv,
845
850
super .expiryDate,
846
851
super .status,
852
+ super .verifiedJurisdiction,
847
853
});
848
854
849
855
/// Creates an instance from JSON.
@@ -855,6 +861,9 @@ class Document extends DocumentModel {
855
861
status: json['status' ] == null
856
862
? null
857
863
: documentStatusEnumMapper[json['status' ]],
864
+ verifiedJurisdiction: json['verified_jurisdiction' ] == null
865
+ ? null
866
+ : VerifiedJurisdiction .fromJson (json['verified_jurisdiction' ]),
858
867
);
859
868
860
869
/// Converts an instance to JSON.
@@ -869,6 +878,9 @@ class Document extends DocumentModel {
869
878
.firstWhere ((MapEntry <String , DocumentStatusEnum > entry) =>
870
879
entry.value == status)
871
880
.key;
881
+ if (verifiedJurisdiction != null ) {
882
+ resultMap['verified_jurisdiction' ] = verifiedJurisdiction! .toJson ();
883
+ }
872
884
873
885
return resultMap;
874
886
}
@@ -878,11 +890,13 @@ class Document extends DocumentModel {
878
890
AuthenticatedWithIdv ? authenticatedWithIdv,
879
891
DateTime ? expiryDate,
880
892
DocumentStatusEnum ? status,
893
+ VerifiedJurisdiction ? verifiedJurisdiction,
881
894
}) =>
882
895
Document (
883
896
authenticatedWithIdv: authenticatedWithIdv ?? this .authenticatedWithIdv,
884
897
expiryDate: expiryDate ?? this .expiryDate,
885
898
status: status ?? this .status,
899
+ verifiedJurisdiction: verifiedJurisdiction ?? this .verifiedJurisdiction,
886
900
);
887
901
}
888
902
@@ -1018,6 +1032,138 @@ class AuthenticatedWithIdv extends AuthenticatedWithIdvModel {
1018
1032
);
1019
1033
}
1020
1034
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
+
1021
1167
/// Identity model class.
1022
1168
abstract class IdentityModel {
1023
1169
/// Initializes Identity model class .
@@ -1157,6 +1303,7 @@ abstract class IdvModel {
1157
1303
const IdvModel ({
1158
1304
this .expiryDate,
1159
1305
this .lastRejected,
1306
+ this .reportAvailable,
1160
1307
this .reportedProperties,
1161
1308
this .status,
1162
1309
this .submissionsLeft,
@@ -1168,6 +1315,9 @@ abstract class IdvModel {
1168
1315
/// Show the last IDV reported reasons for the rejected cases
1169
1316
final List <String >? lastRejected;
1170
1317
1318
+ /// Indicate if the verification report was returned by the provider
1319
+ final bool ? reportAvailable;
1320
+
1171
1321
/// Shows the latest document properties detected and reported by IDVS
1172
1322
final Map <String , dynamic >? reportedProperties;
1173
1323
@@ -1184,6 +1334,7 @@ class Idv extends IdvModel {
1184
1334
const Idv ({
1185
1335
super .expiryDate,
1186
1336
super .lastRejected,
1337
+ super .reportAvailable,
1187
1338
super .reportedProperties,
1188
1339
super .status,
1189
1340
super .submissionsLeft,
@@ -1199,6 +1350,7 @@ class Idv extends IdvModel {
1199
1350
(dynamic item) => item,
1200
1351
),
1201
1352
),
1353
+ reportAvailable: getBool (json['report_available' ]),
1202
1354
reportedProperties: json['reported_properties' ],
1203
1355
status:
1204
1356
json['status' ] == null ? null : idvStatusEnumMapper[json['status' ]],
@@ -1217,6 +1369,7 @@ class Idv extends IdvModel {
1217
1369
)
1218
1370
.toList ();
1219
1371
}
1372
+ resultMap['report_available' ] = reportAvailable;
1220
1373
resultMap['reported_properties' ] = reportedProperties;
1221
1374
resultMap['status' ] = idvStatusEnumMapper.entries
1222
1375
.firstWhere (
@@ -1231,13 +1384,15 @@ class Idv extends IdvModel {
1231
1384
Idv copyWith ({
1232
1385
DateTime ? expiryDate,
1233
1386
List <String >? lastRejected,
1387
+ bool ? reportAvailable,
1234
1388
Map <String , dynamic >? reportedProperties,
1235
1389
IdvStatusEnum ? status,
1236
1390
int ? submissionsLeft,
1237
1391
}) =>
1238
1392
Idv (
1239
1393
expiryDate: expiryDate ?? this .expiryDate,
1240
1394
lastRejected: lastRejected ?? this .lastRejected,
1395
+ reportAvailable: reportAvailable ?? this .reportAvailable,
1241
1396
reportedProperties: reportedProperties ?? this .reportedProperties,
1242
1397
status: status ?? this .status,
1243
1398
submissionsLeft: submissionsLeft ?? this .submissionsLeft,
0 commit comments