Portal

<back to all web services

AddCompliance

The following routes are available for this service:
POST/tender/{tenderid}/user/{userid}/compliance
import 'package:servicestack/servicestack.dart';

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 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;
}

class ModifyEntityResponse extends ResponseBase implements IConvertible
{
    int? Id;

    ModifyEntityResponse({this.Id});
    ModifyEntityResponse.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() => "ModifyEntityResponse";
    TypeContext? context = _ctx;
}

class AddCompliancePrivateOwner implements IConvertible
{
    String? Name;
    DateTime? BirthDate;
    double? Ownership;

    AddCompliancePrivateOwner({this.Name,this.BirthDate,this.Ownership});
    AddCompliancePrivateOwner.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Name = json['Name'];
        BirthDate = JsonConverters.fromJson(json['BirthDate'],'DateTime',context!);
        Ownership = JsonConverters.toDouble(json['Ownership']);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Name': Name,
        'BirthDate': JsonConverters.toJson(BirthDate,'DateTime',context!),
        'Ownership': Ownership
    };

    getTypeName() => "AddCompliancePrivateOwner";
    TypeContext? context = _ctx;
}

class AddComplianceActualOwner implements IConvertible
{
    String? Name;
    DateTime? BirthDate;
    double? Ownership;

    AddComplianceActualOwner({this.Name,this.BirthDate,this.Ownership});
    AddComplianceActualOwner.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Name = json['Name'];
        BirthDate = JsonConverters.fromJson(json['BirthDate'],'DateTime',context!);
        Ownership = JsonConverters.toDouble(json['Ownership']);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Name': Name,
        'BirthDate': JsonConverters.toJson(BirthDate,'DateTime',context!),
        'Ownership': Ownership
    };

    getTypeName() => "AddComplianceActualOwner";
    TypeContext? context = _ctx;
}

class AddComplianceOrganizationOwner implements IConvertible
{
    int? CountryId;
    String? VatNumber;
    String? RegistrationNumber;
    String? Name;
    String? ShortName;
    String? Address;
    String? MainActivity;
    DateTime? EstablishedDate;
    double? Ownership;

    AddComplianceOrganizationOwner({this.CountryId,this.VatNumber,this.RegistrationNumber,this.Name,this.ShortName,this.Address,this.MainActivity,this.EstablishedDate,this.Ownership});
    AddComplianceOrganizationOwner.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        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() => {
        'CountryId': CountryId,
        'VatNumber': VatNumber,
        'RegistrationNumber': RegistrationNumber,
        'Name': Name,
        'ShortName': ShortName,
        'Address': Address,
        'MainActivity': MainActivity,
        'EstablishedDate': JsonConverters.toJson(EstablishedDate,'DateTime',context!),
        'Ownership': Ownership
    };

    getTypeName() => "AddComplianceOrganizationOwner";
    TypeContext? context = _ctx;
}

class AddCompliance extends ModifyComplianceBase implements IPost, IConvertible
{
    int? TenderId;
    int? UserId;
    List<AddCompliancePrivateOwner>? PrivateOwners;
    List<AddComplianceActualOwner>? ActualOwners;
    List<AddComplianceOrganizationOwner>? OrganizationOwners;

    AddCompliance({this.TenderId,this.UserId,this.PrivateOwners,this.ActualOwners,this.OrganizationOwners});
    AddCompliance.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        TenderId = json['TenderId'];
        UserId = json['UserId'];
        PrivateOwners = JsonConverters.fromJson(json['PrivateOwners'],'List<AddCompliancePrivateOwner>',context!);
        ActualOwners = JsonConverters.fromJson(json['ActualOwners'],'List<AddComplianceActualOwner>',context!);
        OrganizationOwners = JsonConverters.fromJson(json['OrganizationOwners'],'List<AddComplianceOrganizationOwner>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'TenderId': TenderId,
        'UserId': UserId,
        'PrivateOwners': JsonConverters.toJson(PrivateOwners,'List<AddCompliancePrivateOwner>',context!),
        'ActualOwners': JsonConverters.toJson(ActualOwners,'List<AddComplianceActualOwner>',context!),
        'OrganizationOwners': JsonConverters.toJson(OrganizationOwners,'List<AddComplianceOrganizationOwner>',context!)
    });

    getTypeName() => "AddCompliance";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'szallitoiportal_be.veolia.hu', types: <String, TypeInfo> {
    'ModifyRequestBase': TypeInfo(TypeOf.AbstractClass),
    'ModifyComplianceBase': TypeInfo(TypeOf.AbstractClass),
    'ResponseBase': TypeInfo(TypeOf.AbstractClass),
    'ModifyEntityResponse': TypeInfo(TypeOf.Class, create:() => ModifyEntityResponse()),
    'AddCompliancePrivateOwner': TypeInfo(TypeOf.Class, create:() => AddCompliancePrivateOwner()),
    'AddComplianceActualOwner': TypeInfo(TypeOf.Class, create:() => AddComplianceActualOwner()),
    'AddComplianceOrganizationOwner': TypeInfo(TypeOf.Class, create:() => AddComplianceOrganizationOwner()),
    'AddCompliance': TypeInfo(TypeOf.Class, create:() => AddCompliance()),
    'List<AddCompliancePrivateOwner>': TypeInfo(TypeOf.Class, create:() => <AddCompliancePrivateOwner>[]),
    'List<AddComplianceActualOwner>': TypeInfo(TypeOf.Class, create:() => <AddComplianceActualOwner>[]),
    'List<AddComplianceOrganizationOwner>': TypeInfo(TypeOf.Class, create:() => <AddComplianceOrganizationOwner>[]),
});

Dart AddCompliance DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /tender/{tenderid}/user/{userid}/compliance HTTP/1.1 
Host: szallitoiportal-be.veolia.hu 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"TenderId":0,"UserId":0,"PrivateOwners":[{"Name":"String","BirthDate":"0001-01-01T00:00:00.0000000","Ownership":0}],"ActualOwners":[{"Name":"String","BirthDate":"0001-01-01T00:00:00.0000000","Ownership":0}],"OrganizationOwners":[{"CountryId":0,"VatNumber":"String","RegistrationNumber":"String","Name":"String","ShortName":"String","Address":"String","MainActivity":"String","EstablishedDate":"0001-01-01T00:00:00.0000000","Ownership":0}],"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"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Id":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}