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>[]),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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/xml
Content-Type: application/xml
Content-Length: length
<AddCompliance xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Portal.ServiceDto">
<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>
<AddComplianceActualOwner>
<BirthDate>0001-01-01T00:00:00</BirthDate>
<Name>String</Name>
<Ownership>0</Ownership>
</AddComplianceActualOwner>
</ActualOwners>
<OrganizationOwners>
<AddComplianceOrganizationOwner>
<Address>String</Address>
<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>
</AddComplianceOrganizationOwner>
</OrganizationOwners>
<PrivateOwners>
<AddCompliancePrivateOwner>
<BirthDate>0001-01-01T00:00:00</BirthDate>
<Name>String</Name>
<Ownership>0</Ownership>
</AddCompliancePrivateOwner>
</PrivateOwners>
<TenderId>0</TenderId>
<UserId>0</UserId>
</AddCompliance>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ModifyEntityResponse 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> <Id>0</Id> </ModifyEntityResponse>