GET | /user/{userid}/lastcompliance |
---|
import 'package:servicestack/servicestack.dart';
abstract class ResponseBase
{
ResponseStatus? ResponseStatus;
ResponseBase({this.ResponseStatus});
ResponseBase.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "ResponseBase";
TypeContext? context = _ctx;
}
abstract class ModifyRequestBase implements IConcurrencyStamp
{
String? ConcurrencyStamp;
ModifyRequestBase({this.ConcurrencyStamp});
ModifyRequestBase.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ConcurrencyStamp = json['ConcurrencyStamp'];
return this;
}
Map<String, dynamic> toJson() => {
'ConcurrencyStamp': ConcurrencyStamp
};
getTypeName() => "ModifyRequestBase";
TypeContext? context = _ctx;
}
abstract class ModifyComplianceBase extends ModifyRequestBase
{
bool? IsPreventCorruptionRisk;
String? AntiCorruptionMeasuresDescription;
bool? IsPartnerCorrupt;
bool? IsCorruptionInspection;
String? CriminalJudgement;
bool? IsPartnerConvictedCorruption;
String? PartnerConvictedEDocument;
String? PartnerConvictedDetails;
bool? IsSelfExoneration;
String? SelfExonerationDetails;
bool? IsPartnerPEPContact;
String? PartnerPEPContactDetails;
bool? IsPartnerPEP;
String? PartnerPEPDetails;
String? Other;
bool? IsActualOwner;
String? ActualOwnerComment;
bool? IsPrivateOwner;
bool? IsOrganizationOwner;
ModifyComplianceBase({this.IsPreventCorruptionRisk,this.AntiCorruptionMeasuresDescription,this.IsPartnerCorrupt,this.IsCorruptionInspection,this.CriminalJudgement,this.IsPartnerConvictedCorruption,this.PartnerConvictedEDocument,this.PartnerConvictedDetails,this.IsSelfExoneration,this.SelfExonerationDetails,this.IsPartnerPEPContact,this.PartnerPEPContactDetails,this.IsPartnerPEP,this.PartnerPEPDetails,this.Other,this.IsActualOwner,this.ActualOwnerComment,this.IsPrivateOwner,this.IsOrganizationOwner});
ModifyComplianceBase.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
IsPreventCorruptionRisk = json['IsPreventCorruptionRisk'];
AntiCorruptionMeasuresDescription = json['AntiCorruptionMeasuresDescription'];
IsPartnerCorrupt = json['IsPartnerCorrupt'];
IsCorruptionInspection = json['IsCorruptionInspection'];
CriminalJudgement = json['CriminalJudgement'];
IsPartnerConvictedCorruption = json['IsPartnerConvictedCorruption'];
PartnerConvictedEDocument = json['PartnerConvictedEDocument'];
PartnerConvictedDetails = json['PartnerConvictedDetails'];
IsSelfExoneration = json['IsSelfExoneration'];
SelfExonerationDetails = json['SelfExonerationDetails'];
IsPartnerPEPContact = json['IsPartnerPEPContact'];
PartnerPEPContactDetails = json['PartnerPEPContactDetails'];
IsPartnerPEP = json['IsPartnerPEP'];
PartnerPEPDetails = json['PartnerPEPDetails'];
Other = json['Other'];
IsActualOwner = json['IsActualOwner'];
ActualOwnerComment = json['ActualOwnerComment'];
IsPrivateOwner = json['IsPrivateOwner'];
IsOrganizationOwner = json['IsOrganizationOwner'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'IsPreventCorruptionRisk': IsPreventCorruptionRisk,
'AntiCorruptionMeasuresDescription': AntiCorruptionMeasuresDescription,
'IsPartnerCorrupt': IsPartnerCorrupt,
'IsCorruptionInspection': IsCorruptionInspection,
'CriminalJudgement': CriminalJudgement,
'IsPartnerConvictedCorruption': IsPartnerConvictedCorruption,
'PartnerConvictedEDocument': PartnerConvictedEDocument,
'PartnerConvictedDetails': PartnerConvictedDetails,
'IsSelfExoneration': IsSelfExoneration,
'SelfExonerationDetails': SelfExonerationDetails,
'IsPartnerPEPContact': IsPartnerPEPContact,
'PartnerPEPContactDetails': PartnerPEPContactDetails,
'IsPartnerPEP': IsPartnerPEP,
'PartnerPEPDetails': PartnerPEPDetails,
'Other': Other,
'IsActualOwner': IsActualOwner,
'ActualOwnerComment': ActualOwnerComment,
'IsPrivateOwner': IsPrivateOwner,
'IsOrganizationOwner': IsOrganizationOwner
});
getTypeName() => "ModifyComplianceBase";
TypeContext? context = _ctx;
}
abstract class ModifyPrivateOwnerBase extends ModifyRequestBase
{
int? ComplianceId;
String? Name;
DateTime? BirthDate;
double? Ownership;
ModifyPrivateOwnerBase({this.ComplianceId,this.Name,this.BirthDate,this.Ownership});
ModifyPrivateOwnerBase.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
ComplianceId = json['ComplianceId'];
Name = json['Name'];
BirthDate = JsonConverters.fromJson(json['BirthDate'],'DateTime',context!);
Ownership = JsonConverters.toDouble(json['Ownership']);
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'ComplianceId': ComplianceId,
'Name': Name,
'BirthDate': JsonConverters.toJson(BirthDate,'DateTime',context!),
'Ownership': Ownership
});
getTypeName() => "ModifyPrivateOwnerBase";
TypeContext? context = _ctx;
}
class PrivateOwnerDetails extends ModifyPrivateOwnerBase implements IConvertible
{
int? Id;
PrivateOwnerDetails({this.Id});
PrivateOwnerDetails.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
Id = json['Id'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'Id': Id
});
getTypeName() => "PrivateOwnerDetails";
TypeContext? context = _ctx;
}
abstract class ModifyActualOwnerBase extends ModifyRequestBase
{
int? ComplianceId;
String? Name;
DateTime? BirthDate;
double? Ownership;
ModifyActualOwnerBase({this.ComplianceId,this.Name,this.BirthDate,this.Ownership});
ModifyActualOwnerBase.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
ComplianceId = json['ComplianceId'];
Name = json['Name'];
BirthDate = JsonConverters.fromJson(json['BirthDate'],'DateTime',context!);
Ownership = JsonConverters.toDouble(json['Ownership']);
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'ComplianceId': ComplianceId,
'Name': Name,
'BirthDate': JsonConverters.toJson(BirthDate,'DateTime',context!),
'Ownership': Ownership
});
getTypeName() => "ModifyActualOwnerBase";
TypeContext? context = _ctx;
}
class ActualOwnerDetails extends ModifyActualOwnerBase implements IConvertible
{
int? Id;
ActualOwnerDetails({this.Id});
ActualOwnerDetails.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
Id = json['Id'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'Id': Id
});
getTypeName() => "ActualOwnerDetails";
TypeContext? context = _ctx;
}
abstract class ModifyOrganizationOwnerBase extends ModifyRequestBase
{
int? ComplianceId;
int? CountryId;
String? VatNumber;
String? RegistrationNumber;
String? Name;
String? ShortName;
String? Address;
String? MainActivity;
DateTime? EstablishedDate;
double? Ownership;
ModifyOrganizationOwnerBase({this.ComplianceId,this.CountryId,this.VatNumber,this.RegistrationNumber,this.Name,this.ShortName,this.Address,this.MainActivity,this.EstablishedDate,this.Ownership});
ModifyOrganizationOwnerBase.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
ComplianceId = json['ComplianceId'];
CountryId = json['CountryId'];
VatNumber = json['VatNumber'];
RegistrationNumber = json['RegistrationNumber'];
Name = json['Name'];
ShortName = json['ShortName'];
Address = json['Address'];
MainActivity = json['MainActivity'];
EstablishedDate = JsonConverters.fromJson(json['EstablishedDate'],'DateTime',context!);
Ownership = JsonConverters.toDouble(json['Ownership']);
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'ComplianceId': ComplianceId,
'CountryId': CountryId,
'VatNumber': VatNumber,
'RegistrationNumber': RegistrationNumber,
'Name': Name,
'ShortName': ShortName,
'Address': Address,
'MainActivity': MainActivity,
'EstablishedDate': JsonConverters.toJson(EstablishedDate,'DateTime',context!),
'Ownership': Ownership
});
getTypeName() => "ModifyOrganizationOwnerBase";
TypeContext? context = _ctx;
}
class OrganizationOwnerDetails extends ModifyOrganizationOwnerBase implements IConvertible
{
int? Id;
String? CountryName;
String? CountryCode;
OrganizationOwnerDetails({this.Id,this.CountryName,this.CountryCode});
OrganizationOwnerDetails.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
Id = json['Id'];
CountryName = json['CountryName'];
CountryCode = json['CountryCode'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'Id': Id,
'CountryName': CountryName,
'CountryCode': CountryCode
});
getTypeName() => "OrganizationOwnerDetails";
TypeContext? context = _ctx;
}
class ComplianceDetails extends ModifyComplianceBase implements IConvertible
{
int? Id;
int? SubmittedById;
DateTime? SubmissionDateTime;
bool? IsSubmitted;
List<PrivateOwnerDetails>? PrivateOwners;
List<ActualOwnerDetails>? ActualOwners;
List<OrganizationOwnerDetails>? OrganizationOwners;
ComplianceDetails({this.Id,this.SubmittedById,this.SubmissionDateTime,this.IsSubmitted,this.PrivateOwners,this.ActualOwners,this.OrganizationOwners});
ComplianceDetails.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
Id = json['Id'];
SubmittedById = json['SubmittedById'];
SubmissionDateTime = JsonConverters.fromJson(json['SubmissionDateTime'],'DateTime',context!);
IsSubmitted = json['IsSubmitted'];
PrivateOwners = JsonConverters.fromJson(json['PrivateOwners'],'List<PrivateOwnerDetails>',context!);
ActualOwners = JsonConverters.fromJson(json['ActualOwners'],'List<ActualOwnerDetails>',context!);
OrganizationOwners = JsonConverters.fromJson(json['OrganizationOwners'],'List<OrganizationOwnerDetails>',context!);
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'Id': Id,
'SubmittedById': SubmittedById,
'SubmissionDateTime': JsonConverters.toJson(SubmissionDateTime,'DateTime',context!),
'IsSubmitted': IsSubmitted,
'PrivateOwners': JsonConverters.toJson(PrivateOwners,'List<PrivateOwnerDetails>',context!),
'ActualOwners': JsonConverters.toJson(ActualOwners,'List<ActualOwnerDetails>',context!),
'OrganizationOwners': JsonConverters.toJson(OrganizationOwners,'List<OrganizationOwnerDetails>',context!)
});
getTypeName() => "ComplianceDetails";
TypeContext? context = _ctx;
}
class BrowseComplianceResponse extends ResponseBase implements IConvertible
{
ComplianceDetails? Compliance;
BrowseComplianceResponse({this.Compliance});
BrowseComplianceResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
Compliance = JsonConverters.fromJson(json['Compliance'],'ComplianceDetails',context!);
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'Compliance': JsonConverters.toJson(Compliance,'ComplianceDetails',context!)
});
getTypeName() => "BrowseComplianceResponse";
TypeContext? context = _ctx;
}
class BrowseLastCompliance implements IGet, IConvertible
{
int? UserId;
BrowseLastCompliance({this.UserId});
BrowseLastCompliance.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
UserId = json['UserId'];
return this;
}
Map<String, dynamic> toJson() => {
'UserId': UserId
};
getTypeName() => "BrowseLastCompliance";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'szallitoiportal_be.veolia.hu', types: <String, TypeInfo> {
'ResponseBase': TypeInfo(TypeOf.AbstractClass),
'ModifyRequestBase': TypeInfo(TypeOf.AbstractClass),
'ModifyComplianceBase': TypeInfo(TypeOf.AbstractClass),
'ModifyPrivateOwnerBase': TypeInfo(TypeOf.AbstractClass),
'PrivateOwnerDetails': TypeInfo(TypeOf.Class, create:() => PrivateOwnerDetails()),
'ModifyActualOwnerBase': TypeInfo(TypeOf.AbstractClass),
'ActualOwnerDetails': TypeInfo(TypeOf.Class, create:() => ActualOwnerDetails()),
'ModifyOrganizationOwnerBase': TypeInfo(TypeOf.AbstractClass),
'OrganizationOwnerDetails': TypeInfo(TypeOf.Class, create:() => OrganizationOwnerDetails()),
'ComplianceDetails': TypeInfo(TypeOf.Class, create:() => ComplianceDetails()),
'List<PrivateOwnerDetails>': TypeInfo(TypeOf.Class, create:() => <PrivateOwnerDetails>[]),
'List<ActualOwnerDetails>': TypeInfo(TypeOf.Class, create:() => <ActualOwnerDetails>[]),
'List<OrganizationOwnerDetails>': TypeInfo(TypeOf.Class, create:() => <OrganizationOwnerDetails>[]),
'BrowseComplianceResponse': TypeInfo(TypeOf.Class, create:() => BrowseComplianceResponse()),
'BrowseLastCompliance': TypeInfo(TypeOf.Class, create:() => BrowseLastCompliance()),
});
Dart BrowseLastCompliance DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /user/{userid}/lastcompliance HTTP/1.1 Host: szallitoiportal-be.veolia.hu Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"Compliance":{"Id":0,"SubmittedById":0,"SubmissionDateTime":"0001-01-01T00:00:00.0000000","IsSubmitted":false,"PrivateOwners":[{"Id":0,"ComplianceId":0,"Name":"String","BirthDate":"0001-01-01T00:00:00.0000000","Ownership":0,"ConcurrencyStamp":"String"}],"ActualOwners":[{"Id":0,"ComplianceId":0,"Name":"String","BirthDate":"0001-01-01T00:00:00.0000000","Ownership":0,"ConcurrencyStamp":"String"}],"OrganizationOwners":[{"Id":0,"CountryName":"String","CountryCode":"String","ComplianceId":0,"CountryId":0,"VatNumber":"String","RegistrationNumber":"String","Name":"String","ShortName":"String","Address":"String","MainActivity":"String","EstablishedDate":"0001-01-01T00:00:00.0000000","Ownership":0,"ConcurrencyStamp":"String"}],"IsPreventCorruptionRisk":false,"AntiCorruptionMeasuresDescription":"String","IsPartnerCorrupt":false,"IsCorruptionInspection":false,"CriminalJudgement":"String","IsPartnerConvictedCorruption":false,"PartnerConvictedEDocument":"String","PartnerConvictedDetails":"String","IsSelfExoneration":false,"SelfExonerationDetails":"String","IsPartnerPEPContact":false,"PartnerPEPContactDetails":"String","IsPartnerPEP":false,"PartnerPEPDetails":"String","Other":"String","IsActualOwner":false,"ActualOwnerComment":"String","IsPrivateOwner":false,"IsOrganizationOwner":false,"ConcurrencyStamp":"String"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}