POST | /tender/{tenderid}/user/{userid}/procurement |
---|
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 ModifyProcurementBase extends ModifyRequestBase
{
bool? IsGroupMember;
String? GroupName;
String? GroupShortName;
int? CountryId;
String? VatNumber;
String? RegistrationNumber;
String? Duns;
String? Address;
String? MainActivity;
DateTime? EstablishedDate;
int? Workforce;
String? Website;
String? SalesManagerName;
String? SalesManagerPhone;
String? SalesManagerEmail;
String? CsrManagerName;
String? CsrManagerPhone;
String? CsrManagerEmail;
int? AccountCountryId;
String? BankName;
String? AccountNumber;
String? Iban;
String? Swift;
int? CurrencyId;
int? WorkForceN1;
int? WorkForceN2;
int? WorkForceN3;
int? SubscribedCapital;
int? SubscribedCapitalCurrencyId;
int? RevenueN1;
int? RevenueN2;
int? RevenueN3;
int? NetProfitN1;
int? NetProfitN2;
int? NetProfitN3;
int? EquityN1;
int? EquityN2;
int? EquityN3;
int? LiabilityN1;
int? LiabilityN2;
int? LiabilityN3;
int? OperatingResultN1;
int? OperatingResultN2;
int? OperatingResultN3;
String? DBFailureScore;
bool? IsAuditedAccount;
String? IsAuditedAccountComment;
bool? IsLiquidationProceedings;
String? IsLiquidationProceedingsComment;
double? VeoliaAnnualRevenuesProportion;
bool? IsAntiCorruptionDocument;
bool? IsCorruptionRiskMap;
bool? IsThirdPartiesEvaluatingSystem;
bool? IsInternalRules;
bool? IsHumanRights;
bool? IsAntiCorruptionTraining;
bool? IsAntiCorruptionReportSystem;
bool? IsIso9001;
bool? IsEcoVadisScorecard;
int? EcoVadisTotalScore;
bool? IsReduceEmployeeSafetyRisk;
bool? IsPromoteSocialIntegration;
bool? IsNondiscriminationPolicy;
bool? IsIso14001;
bool? IsIdentifiedMajorEnvironmentalImpacts;
bool? IsUseWaterResources;
bool? IsConsumptionOfRawMaterials;
bool? IsEnergyConsumption;
bool? IsGreenhouseGasEmissions;
bool? IsAtmosphericEmissions;
bool? IsAqueousPollution;
bool? IsWasteGeneration;
bool? IsNaturalAreasPollution;
bool? IsPrivacyStatement;
bool? IsVeoliaSupplierCharter;
bool? IsVeoliaCoreStandards;
ModifyProcurementBase({this.IsGroupMember,this.GroupName,this.GroupShortName,this.CountryId,this.VatNumber,this.RegistrationNumber,this.Duns,this.Address,this.MainActivity,this.EstablishedDate,this.Workforce,this.Website,this.SalesManagerName,this.SalesManagerPhone,this.SalesManagerEmail,this.CsrManagerName,this.CsrManagerPhone,this.CsrManagerEmail,this.AccountCountryId,this.BankName,this.AccountNumber,this.Iban,this.Swift,this.CurrencyId,this.WorkForceN1,this.WorkForceN2,this.WorkForceN3,this.SubscribedCapital,this.SubscribedCapitalCurrencyId,this.RevenueN1,this.RevenueN2,this.RevenueN3,this.NetProfitN1,this.NetProfitN2,this.NetProfitN3,this.EquityN1,this.EquityN2,this.EquityN3,this.LiabilityN1,this.LiabilityN2,this.LiabilityN3,this.OperatingResultN1,this.OperatingResultN2,this.OperatingResultN3,this.DBFailureScore,this.IsAuditedAccount,this.IsAuditedAccountComment,this.IsLiquidationProceedings,this.IsLiquidationProceedingsComment,this.VeoliaAnnualRevenuesProportion,this.IsAntiCorruptionDocument,this.IsCorruptionRiskMap,this.IsThirdPartiesEvaluatingSystem,this.IsInternalRules,this.IsHumanRights,this.IsAntiCorruptionTraining,this.IsAntiCorruptionReportSystem,this.IsIso9001,this.IsEcoVadisScorecard,this.EcoVadisTotalScore,this.IsReduceEmployeeSafetyRisk,this.IsPromoteSocialIntegration,this.IsNondiscriminationPolicy,this.IsIso14001,this.IsIdentifiedMajorEnvironmentalImpacts,this.IsUseWaterResources,this.IsConsumptionOfRawMaterials,this.IsEnergyConsumption,this.IsGreenhouseGasEmissions,this.IsAtmosphericEmissions,this.IsAqueousPollution,this.IsWasteGeneration,this.IsNaturalAreasPollution,this.IsPrivacyStatement,this.IsVeoliaSupplierCharter,this.IsVeoliaCoreStandards});
ModifyProcurementBase.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
IsGroupMember = json['IsGroupMember'];
GroupName = json['GroupName'];
GroupShortName = json['GroupShortName'];
CountryId = json['CountryId'];
VatNumber = json['VatNumber'];
RegistrationNumber = json['RegistrationNumber'];
Duns = json['Duns'];
Address = json['Address'];
MainActivity = json['MainActivity'];
EstablishedDate = JsonConverters.fromJson(json['EstablishedDate'],'DateTime',context!);
Workforce = json['Workforce'];
Website = json['Website'];
SalesManagerName = json['SalesManagerName'];
SalesManagerPhone = json['SalesManagerPhone'];
SalesManagerEmail = json['SalesManagerEmail'];
CsrManagerName = json['CsrManagerName'];
CsrManagerPhone = json['CsrManagerPhone'];
CsrManagerEmail = json['CsrManagerEmail'];
AccountCountryId = json['AccountCountryId'];
BankName = json['BankName'];
AccountNumber = json['AccountNumber'];
Iban = json['Iban'];
Swift = json['Swift'];
CurrencyId = json['CurrencyId'];
WorkForceN1 = json['WorkForceN1'];
WorkForceN2 = json['WorkForceN2'];
WorkForceN3 = json['WorkForceN3'];
SubscribedCapital = json['SubscribedCapital'];
SubscribedCapitalCurrencyId = json['SubscribedCapitalCurrencyId'];
RevenueN1 = json['RevenueN1'];
RevenueN2 = json['RevenueN2'];
RevenueN3 = json['RevenueN3'];
NetProfitN1 = json['NetProfitN1'];
NetProfitN2 = json['NetProfitN2'];
NetProfitN3 = json['NetProfitN3'];
EquityN1 = json['EquityN1'];
EquityN2 = json['EquityN2'];
EquityN3 = json['EquityN3'];
LiabilityN1 = json['LiabilityN1'];
LiabilityN2 = json['LiabilityN2'];
LiabilityN3 = json['LiabilityN3'];
OperatingResultN1 = json['OperatingResultN1'];
OperatingResultN2 = json['OperatingResultN2'];
OperatingResultN3 = json['OperatingResultN3'];
DBFailureScore = json['DBFailureScore'];
IsAuditedAccount = json['IsAuditedAccount'];
IsAuditedAccountComment = json['IsAuditedAccountComment'];
IsLiquidationProceedings = json['IsLiquidationProceedings'];
IsLiquidationProceedingsComment = json['IsLiquidationProceedingsComment'];
VeoliaAnnualRevenuesProportion = JsonConverters.toDouble(json['VeoliaAnnualRevenuesProportion']);
IsAntiCorruptionDocument = json['IsAntiCorruptionDocument'];
IsCorruptionRiskMap = json['IsCorruptionRiskMap'];
IsThirdPartiesEvaluatingSystem = json['IsThirdPartiesEvaluatingSystem'];
IsInternalRules = json['IsInternalRules'];
IsHumanRights = json['IsHumanRights'];
IsAntiCorruptionTraining = json['IsAntiCorruptionTraining'];
IsAntiCorruptionReportSystem = json['IsAntiCorruptionReportSystem'];
IsIso9001 = json['IsIso9001'];
IsEcoVadisScorecard = json['IsEcoVadisScorecard'];
EcoVadisTotalScore = json['EcoVadisTotalScore'];
IsReduceEmployeeSafetyRisk = json['IsReduceEmployeeSafetyRisk'];
IsPromoteSocialIntegration = json['IsPromoteSocialIntegration'];
IsNondiscriminationPolicy = json['IsNondiscriminationPolicy'];
IsIso14001 = json['IsIso14001'];
IsIdentifiedMajorEnvironmentalImpacts = json['IsIdentifiedMajorEnvironmentalImpacts'];
IsUseWaterResources = json['IsUseWaterResources'];
IsConsumptionOfRawMaterials = json['IsConsumptionOfRawMaterials'];
IsEnergyConsumption = json['IsEnergyConsumption'];
IsGreenhouseGasEmissions = json['IsGreenhouseGasEmissions'];
IsAtmosphericEmissions = json['IsAtmosphericEmissions'];
IsAqueousPollution = json['IsAqueousPollution'];
IsWasteGeneration = json['IsWasteGeneration'];
IsNaturalAreasPollution = json['IsNaturalAreasPollution'];
IsPrivacyStatement = json['IsPrivacyStatement'];
IsVeoliaSupplierCharter = json['IsVeoliaSupplierCharter'];
IsVeoliaCoreStandards = json['IsVeoliaCoreStandards'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'IsGroupMember': IsGroupMember,
'GroupName': GroupName,
'GroupShortName': GroupShortName,
'CountryId': CountryId,
'VatNumber': VatNumber,
'RegistrationNumber': RegistrationNumber,
'Duns': Duns,
'Address': Address,
'MainActivity': MainActivity,
'EstablishedDate': JsonConverters.toJson(EstablishedDate,'DateTime',context!),
'Workforce': Workforce,
'Website': Website,
'SalesManagerName': SalesManagerName,
'SalesManagerPhone': SalesManagerPhone,
'SalesManagerEmail': SalesManagerEmail,
'CsrManagerName': CsrManagerName,
'CsrManagerPhone': CsrManagerPhone,
'CsrManagerEmail': CsrManagerEmail,
'AccountCountryId': AccountCountryId,
'BankName': BankName,
'AccountNumber': AccountNumber,
'Iban': Iban,
'Swift': Swift,
'CurrencyId': CurrencyId,
'WorkForceN1': WorkForceN1,
'WorkForceN2': WorkForceN2,
'WorkForceN3': WorkForceN3,
'SubscribedCapital': SubscribedCapital,
'SubscribedCapitalCurrencyId': SubscribedCapitalCurrencyId,
'RevenueN1': RevenueN1,
'RevenueN2': RevenueN2,
'RevenueN3': RevenueN3,
'NetProfitN1': NetProfitN1,
'NetProfitN2': NetProfitN2,
'NetProfitN3': NetProfitN3,
'EquityN1': EquityN1,
'EquityN2': EquityN2,
'EquityN3': EquityN3,
'LiabilityN1': LiabilityN1,
'LiabilityN2': LiabilityN2,
'LiabilityN3': LiabilityN3,
'OperatingResultN1': OperatingResultN1,
'OperatingResultN2': OperatingResultN2,
'OperatingResultN3': OperatingResultN3,
'DBFailureScore': DBFailureScore,
'IsAuditedAccount': IsAuditedAccount,
'IsAuditedAccountComment': IsAuditedAccountComment,
'IsLiquidationProceedings': IsLiquidationProceedings,
'IsLiquidationProceedingsComment': IsLiquidationProceedingsComment,
'VeoliaAnnualRevenuesProportion': VeoliaAnnualRevenuesProportion,
'IsAntiCorruptionDocument': IsAntiCorruptionDocument,
'IsCorruptionRiskMap': IsCorruptionRiskMap,
'IsThirdPartiesEvaluatingSystem': IsThirdPartiesEvaluatingSystem,
'IsInternalRules': IsInternalRules,
'IsHumanRights': IsHumanRights,
'IsAntiCorruptionTraining': IsAntiCorruptionTraining,
'IsAntiCorruptionReportSystem': IsAntiCorruptionReportSystem,
'IsIso9001': IsIso9001,
'IsEcoVadisScorecard': IsEcoVadisScorecard,
'EcoVadisTotalScore': EcoVadisTotalScore,
'IsReduceEmployeeSafetyRisk': IsReduceEmployeeSafetyRisk,
'IsPromoteSocialIntegration': IsPromoteSocialIntegration,
'IsNondiscriminationPolicy': IsNondiscriminationPolicy,
'IsIso14001': IsIso14001,
'IsIdentifiedMajorEnvironmentalImpacts': IsIdentifiedMajorEnvironmentalImpacts,
'IsUseWaterResources': IsUseWaterResources,
'IsConsumptionOfRawMaterials': IsConsumptionOfRawMaterials,
'IsEnergyConsumption': IsEnergyConsumption,
'IsGreenhouseGasEmissions': IsGreenhouseGasEmissions,
'IsAtmosphericEmissions': IsAtmosphericEmissions,
'IsAqueousPollution': IsAqueousPollution,
'IsWasteGeneration': IsWasteGeneration,
'IsNaturalAreasPollution': IsNaturalAreasPollution,
'IsPrivacyStatement': IsPrivacyStatement,
'IsVeoliaSupplierCharter': IsVeoliaSupplierCharter,
'IsVeoliaCoreStandards': IsVeoliaCoreStandards
});
getTypeName() => "ModifyProcurementBase";
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 AddProcurementLegalRepresentative implements IConvertible
{
String? Position;
String? Name;
String? Address;
DateTime? BirthDate;
String? Email;
AddProcurementLegalRepresentative({this.Position,this.Name,this.Address,this.BirthDate,this.Email});
AddProcurementLegalRepresentative.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Position = json['Position'];
Name = json['Name'];
Address = json['Address'];
BirthDate = JsonConverters.fromJson(json['BirthDate'],'DateTime',context!);
Email = json['Email'];
return this;
}
Map<String, dynamic> toJson() => {
'Position': Position,
'Name': Name,
'Address': Address,
'BirthDate': JsonConverters.toJson(BirthDate,'DateTime',context!),
'Email': Email
};
getTypeName() => "AddProcurementLegalRepresentative";
TypeContext? context = _ctx;
}
class AddProcurement extends ModifyProcurementBase implements IPost, IConvertible
{
int? TenderId;
int? UserId;
List<AddProcurementLegalRepresentative>? LegalRepresentatives;
AddProcurement({this.TenderId,this.UserId,this.LegalRepresentatives});
AddProcurement.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
TenderId = json['TenderId'];
UserId = json['UserId'];
LegalRepresentatives = JsonConverters.fromJson(json['LegalRepresentatives'],'List<AddProcurementLegalRepresentative>',context!);
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'TenderId': TenderId,
'UserId': UserId,
'LegalRepresentatives': JsonConverters.toJson(LegalRepresentatives,'List<AddProcurementLegalRepresentative>',context!)
});
getTypeName() => "AddProcurement";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'szallitoiportal_be.veolia.hu', types: <String, TypeInfo> {
'ModifyRequestBase': TypeInfo(TypeOf.AbstractClass),
'ModifyProcurementBase': TypeInfo(TypeOf.AbstractClass),
'ResponseBase': TypeInfo(TypeOf.AbstractClass),
'ModifyEntityResponse': TypeInfo(TypeOf.Class, create:() => ModifyEntityResponse()),
'AddProcurementLegalRepresentative': TypeInfo(TypeOf.Class, create:() => AddProcurementLegalRepresentative()),
'AddProcurement': TypeInfo(TypeOf.Class, create:() => AddProcurement()),
'List<AddProcurementLegalRepresentative>': TypeInfo(TypeOf.Class, create:() => <AddProcurementLegalRepresentative>[]),
});
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}/procurement HTTP/1.1
Host: szallitoiportal-be.veolia.hu
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<AddProcurement xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Portal.ServiceDto">
<ConcurrencyStamp>String</ConcurrencyStamp>
<AccountCountryId>0</AccountCountryId>
<AccountNumber>String</AccountNumber>
<Address>String</Address>
<BankName>String</BankName>
<CountryId>0</CountryId>
<CsrManagerEmail>String</CsrManagerEmail>
<CsrManagerName>String</CsrManagerName>
<CsrManagerPhone>String</CsrManagerPhone>
<CurrencyId>0</CurrencyId>
<DBFailureScore>String</DBFailureScore>
<Duns>String</Duns>
<EcoVadisTotalScore>0</EcoVadisTotalScore>
<EquityN1>0</EquityN1>
<EquityN2>0</EquityN2>
<EquityN3>0</EquityN3>
<EstablishedDate>0001-01-01T00:00:00</EstablishedDate>
<GroupName>String</GroupName>
<GroupShortName>String</GroupShortName>
<Iban>String</Iban>
<IsAntiCorruptionDocument>false</IsAntiCorruptionDocument>
<IsAntiCorruptionReportSystem>false</IsAntiCorruptionReportSystem>
<IsAntiCorruptionTraining>false</IsAntiCorruptionTraining>
<IsAqueousPollution>false</IsAqueousPollution>
<IsAtmosphericEmissions>false</IsAtmosphericEmissions>
<IsAuditedAccount>false</IsAuditedAccount>
<IsAuditedAccountComment>String</IsAuditedAccountComment>
<IsConsumptionOfRawMaterials>false</IsConsumptionOfRawMaterials>
<IsCorruptionRiskMap>false</IsCorruptionRiskMap>
<IsEcoVadisScorecard>false</IsEcoVadisScorecard>
<IsEnergyConsumption>false</IsEnergyConsumption>
<IsGreenhouseGasEmissions>false</IsGreenhouseGasEmissions>
<IsGroupMember>false</IsGroupMember>
<IsHumanRights>false</IsHumanRights>
<IsIdentifiedMajorEnvironmentalImpacts>false</IsIdentifiedMajorEnvironmentalImpacts>
<IsInternalRules>false</IsInternalRules>
<IsIso14001>false</IsIso14001>
<IsIso9001>false</IsIso9001>
<IsLiquidationProceedings>false</IsLiquidationProceedings>
<IsLiquidationProceedingsComment>String</IsLiquidationProceedingsComment>
<IsNaturalAreasPollution>false</IsNaturalAreasPollution>
<IsNondiscriminationPolicy>false</IsNondiscriminationPolicy>
<IsPrivacyStatement>false</IsPrivacyStatement>
<IsPromoteSocialIntegration>false</IsPromoteSocialIntegration>
<IsReduceEmployeeSafetyRisk>false</IsReduceEmployeeSafetyRisk>
<IsThirdPartiesEvaluatingSystem>false</IsThirdPartiesEvaluatingSystem>
<IsUseWaterResources>false</IsUseWaterResources>
<IsVeoliaCoreStandards>false</IsVeoliaCoreStandards>
<IsVeoliaSupplierCharter>false</IsVeoliaSupplierCharter>
<IsWasteGeneration>false</IsWasteGeneration>
<LiabilityN1>0</LiabilityN1>
<LiabilityN2>0</LiabilityN2>
<LiabilityN3>0</LiabilityN3>
<MainActivity>String</MainActivity>
<NetProfitN1>0</NetProfitN1>
<NetProfitN2>0</NetProfitN2>
<NetProfitN3>0</NetProfitN3>
<OperatingResultN1>0</OperatingResultN1>
<OperatingResultN2>0</OperatingResultN2>
<OperatingResultN3>0</OperatingResultN3>
<RegistrationNumber>String</RegistrationNumber>
<RevenueN1>0</RevenueN1>
<RevenueN2>0</RevenueN2>
<RevenueN3>0</RevenueN3>
<SalesManagerEmail>String</SalesManagerEmail>
<SalesManagerName>String</SalesManagerName>
<SalesManagerPhone>String</SalesManagerPhone>
<SubscribedCapital>0</SubscribedCapital>
<SubscribedCapitalCurrencyId>0</SubscribedCapitalCurrencyId>
<Swift>String</Swift>
<VatNumber>String</VatNumber>
<VeoliaAnnualRevenuesProportion>0</VeoliaAnnualRevenuesProportion>
<Website>String</Website>
<WorkForceN1>0</WorkForceN1>
<WorkForceN2>0</WorkForceN2>
<WorkForceN3>0</WorkForceN3>
<Workforce>0</Workforce>
<LegalRepresentatives>
<AddProcurementLegalRepresentative>
<Address>String</Address>
<BirthDate>0001-01-01T00:00:00</BirthDate>
<Email>String</Email>
<Name>String</Name>
<Position>String</Position>
</AddProcurementLegalRepresentative>
</LegalRepresentatives>
<TenderId>0</TenderId>
<UserId>0</UserId>
</AddProcurement>
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>