PUT | /tender/{tenderid}/user/{userid}/procurement/{procurementid} |
---|
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 EditProcurement extends ModifyProcurementBase implements IPut, IConvertible
{
int? TenderId;
int? UserId;
int? ProcurementId;
EditProcurement({this.TenderId,this.UserId,this.ProcurementId});
EditProcurement.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
TenderId = json['TenderId'];
UserId = json['UserId'];
ProcurementId = json['ProcurementId'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'TenderId': TenderId,
'UserId': UserId,
'ProcurementId': ProcurementId
});
getTypeName() => "EditProcurement";
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()),
'EditProcurement': TypeInfo(TypeOf.Class, create:() => EditProcurement()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /tender/{tenderid}/user/{userid}/procurement/{procurementid} HTTP/1.1
Host: szallitoiportal-be.veolia.hu
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
TenderId: 0,
UserId: 0,
ProcurementId: 0,
IsGroupMember: False,
GroupName: String,
GroupShortName: String,
CountryId: 0,
VatNumber: String,
RegistrationNumber: String,
Duns: String,
Address: String,
MainActivity: String,
EstablishedDate: 0001-01-01,
Workforce: 0,
Website: String,
SalesManagerName: String,
SalesManagerPhone: String,
SalesManagerEmail: String,
CsrManagerName: String,
CsrManagerPhone: String,
CsrManagerEmail: String,
AccountCountryId: 0,
BankName: String,
AccountNumber: String,
Iban: String,
Swift: String,
CurrencyId: 0,
WorkForceN1: 0,
WorkForceN2: 0,
WorkForceN3: 0,
SubscribedCapital: 0,
SubscribedCapitalCurrencyId: 0,
RevenueN1: 0,
RevenueN2: 0,
RevenueN3: 0,
NetProfitN1: 0,
NetProfitN2: 0,
NetProfitN3: 0,
EquityN1: 0,
EquityN2: 0,
EquityN3: 0,
LiabilityN1: 0,
LiabilityN2: 0,
LiabilityN3: 0,
OperatingResultN1: 0,
OperatingResultN2: 0,
OperatingResultN3: 0,
DBFailureScore: String,
IsAuditedAccount: False,
IsAuditedAccountComment: String,
IsLiquidationProceedings: False,
IsLiquidationProceedingsComment: String,
VeoliaAnnualRevenuesProportion: 0,
IsAntiCorruptionDocument: False,
IsCorruptionRiskMap: False,
IsThirdPartiesEvaluatingSystem: False,
IsInternalRules: False,
IsHumanRights: False,
IsAntiCorruptionTraining: False,
IsAntiCorruptionReportSystem: False,
IsIso9001: False,
IsEcoVadisScorecard: False,
EcoVadisTotalScore: 0,
IsReduceEmployeeSafetyRisk: False,
IsPromoteSocialIntegration: False,
IsNondiscriminationPolicy: False,
IsIso14001: False,
IsIdentifiedMajorEnvironmentalImpacts: False,
IsUseWaterResources: False,
IsConsumptionOfRawMaterials: False,
IsEnergyConsumption: False,
IsGreenhouseGasEmissions: False,
IsAtmosphericEmissions: False,
IsAqueousPollution: False,
IsWasteGeneration: False,
IsNaturalAreasPollution: False,
IsPrivacyStatement: False,
IsVeoliaSupplierCharter: False,
IsVeoliaCoreStandards: False,
ConcurrencyStamp: String
}
HTTP/1.1 200 OK Content-Type: text/jsv 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 } } }