Portal

<back to all web services

BrowseLastCompliance

Requires Authentication
The following routes are available for this service:
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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<BrowseComplianceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Portal.ServiceDto">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Compliance>
    <ConcurrencyStamp>String</ConcurrencyStamp>
    <ActualOwnerComment>String</ActualOwnerComment>
    <AntiCorruptionMeasuresDescription>String</AntiCorruptionMeasuresDescription>
    <CriminalJudgement>String</CriminalJudgement>
    <IsActualOwner>false</IsActualOwner>
    <IsCorruptionInspection>false</IsCorruptionInspection>
    <IsOrganizationOwner>false</IsOrganizationOwner>
    <IsPartnerConvictedCorruption>false</IsPartnerConvictedCorruption>
    <IsPartnerCorrupt>false</IsPartnerCorrupt>
    <IsPartnerPEP>false</IsPartnerPEP>
    <IsPartnerPEPContact>false</IsPartnerPEPContact>
    <IsPreventCorruptionRisk>false</IsPreventCorruptionRisk>
    <IsPrivateOwner>false</IsPrivateOwner>
    <IsSelfExoneration>false</IsSelfExoneration>
    <Other>String</Other>
    <PartnerConvictedDetails>String</PartnerConvictedDetails>
    <PartnerConvictedEDocument>String</PartnerConvictedEDocument>
    <PartnerPEPContactDetails>String</PartnerPEPContactDetails>
    <PartnerPEPDetails>String</PartnerPEPDetails>
    <SelfExonerationDetails>String</SelfExonerationDetails>
    <ActualOwners>
      <ActualOwnerDetails>
        <ConcurrencyStamp>String</ConcurrencyStamp>
        <BirthDate>0001-01-01T00:00:00</BirthDate>
        <ComplianceId>0</ComplianceId>
        <Name>String</Name>
        <Ownership>0</Ownership>
        <Id>0</Id>
      </ActualOwnerDetails>
    </ActualOwners>
    <Id>0</Id>
    <IsSubmitted>false</IsSubmitted>
    <OrganizationOwners>
      <OrganizationOwnerDetails>
        <ConcurrencyStamp>String</ConcurrencyStamp>
        <Address>String</Address>
        <ComplianceId>0</ComplianceId>
        <CountryId>0</CountryId>
        <EstablishedDate>0001-01-01T00:00:00</EstablishedDate>
        <MainActivity>String</MainActivity>
        <Name>String</Name>
        <Ownership>0</Ownership>
        <RegistrationNumber>String</RegistrationNumber>
        <ShortName>String</ShortName>
        <VatNumber>String</VatNumber>
        <CountryCode>String</CountryCode>
        <CountryName>String</CountryName>
        <Id>0</Id>
      </OrganizationOwnerDetails>
    </OrganizationOwners>
    <PrivateOwners>
      <PrivateOwnerDetails>
        <ConcurrencyStamp>String</ConcurrencyStamp>
        <BirthDate>0001-01-01T00:00:00</BirthDate>
        <ComplianceId>0</ComplianceId>
        <Name>String</Name>
        <Ownership>0</Ownership>
        <Id>0</Id>
      </PrivateOwnerDetails>
    </PrivateOwners>
    <SubmissionDateTime>0001-01-01T00:00:00</SubmissionDateTime>
    <SubmittedById>0</SubmittedById>
  </Compliance>
</BrowseComplianceResponse>