Portal

<back to all web services

EditProcurement

The following routes are available for this service:
PUT/tender/{tenderid}/user/{userid}/procurement/{procurementid}
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Portal.ServiceDto;

namespace Portal.ServiceDto
{
    public partial class EditProcurement
        : ModifyProcurementBase, IPut
    {
        public virtual int TenderId { get; set; }
        public virtual int UserId { get; set; }
        public virtual int ProcurementId { get; set; }
    }

    public partial class ModifyEntityResponse
        : ResponseBase
    {
        public virtual int Id { get; set; }
    }

    public partial class ModifyProcurementBase
        : ModifyRequestBase
    {
        public virtual bool? IsGroupMember { get; set; }
        public virtual string GroupName { get; set; }
        public virtual string GroupShortName { get; set; }
        public virtual int? CountryId { get; set; }
        public virtual string VatNumber { get; set; }
        public virtual string RegistrationNumber { get; set; }
        public virtual string Duns { get; set; }
        public virtual string Address { get; set; }
        public virtual string MainActivity { get; set; }
        public virtual DateTime? EstablishedDate { get; set; }
        public virtual int? Workforce { get; set; }
        public virtual string Website { get; set; }
        public virtual string SalesManagerName { get; set; }
        public virtual string SalesManagerPhone { get; set; }
        public virtual string SalesManagerEmail { get; set; }
        public virtual string CsrManagerName { get; set; }
        public virtual string CsrManagerPhone { get; set; }
        public virtual string CsrManagerEmail { get; set; }
        public virtual int? AccountCountryId { get; set; }
        public virtual string BankName { get; set; }
        public virtual string AccountNumber { get; set; }
        public virtual string Iban { get; set; }
        public virtual string Swift { get; set; }
        public virtual int? CurrencyId { get; set; }
        public virtual int? WorkForceN1 { get; set; }
        public virtual int? WorkForceN2 { get; set; }
        public virtual int? WorkForceN3 { get; set; }
        public virtual long? SubscribedCapital { get; set; }
        public virtual int? SubscribedCapitalCurrencyId { get; set; }
        public virtual long? RevenueN1 { get; set; }
        public virtual long? RevenueN2 { get; set; }
        public virtual long? RevenueN3 { get; set; }
        public virtual long? NetProfitN1 { get; set; }
        public virtual long? NetProfitN2 { get; set; }
        public virtual long? NetProfitN3 { get; set; }
        public virtual long? EquityN1 { get; set; }
        public virtual long? EquityN2 { get; set; }
        public virtual long? EquityN3 { get; set; }
        public virtual long? LiabilityN1 { get; set; }
        public virtual long? LiabilityN2 { get; set; }
        public virtual long? LiabilityN3 { get; set; }
        public virtual long? OperatingResultN1 { get; set; }
        public virtual long? OperatingResultN2 { get; set; }
        public virtual long? OperatingResultN3 { get; set; }
        public virtual string DBFailureScore { get; set; }
        public virtual bool? IsAuditedAccount { get; set; }
        public virtual string IsAuditedAccountComment { get; set; }
        public virtual bool? IsLiquidationProceedings { get; set; }
        public virtual string IsLiquidationProceedingsComment { get; set; }
        public virtual decimal? VeoliaAnnualRevenuesProportion { get; set; }
        public virtual bool? IsAntiCorruptionDocument { get; set; }
        public virtual bool? IsCorruptionRiskMap { get; set; }
        public virtual bool? IsThirdPartiesEvaluatingSystem { get; set; }
        public virtual bool? IsInternalRules { get; set; }
        public virtual bool? IsHumanRights { get; set; }
        public virtual bool? IsAntiCorruptionTraining { get; set; }
        public virtual bool? IsAntiCorruptionReportSystem { get; set; }
        public virtual bool? IsIso9001 { get; set; }
        public virtual bool? IsEcoVadisScorecard { get; set; }
        public virtual int? EcoVadisTotalScore { get; set; }
        public virtual bool? IsReduceEmployeeSafetyRisk { get; set; }
        public virtual bool? IsPromoteSocialIntegration { get; set; }
        public virtual bool? IsNondiscriminationPolicy { get; set; }
        public virtual bool? IsIso14001 { get; set; }
        public virtual bool? IsIdentifiedMajorEnvironmentalImpacts { get; set; }
        public virtual bool? IsUseWaterResources { get; set; }
        public virtual bool? IsConsumptionOfRawMaterials { get; set; }
        public virtual bool? IsEnergyConsumption { get; set; }
        public virtual bool? IsGreenhouseGasEmissions { get; set; }
        public virtual bool? IsAtmosphericEmissions { get; set; }
        public virtual bool? IsAqueousPollution { get; set; }
        public virtual bool? IsWasteGeneration { get; set; }
        public virtual bool? IsNaturalAreasPollution { get; set; }
        public virtual bool? IsPrivacyStatement { get; set; }
        public virtual bool? IsVeoliaSupplierCharter { get; set; }
        public virtual bool? IsVeoliaCoreStandards { get; set; }
    }

    public partial class ModifyRequestBase
        : IConcurrencyStamp
    {
        public virtual string ConcurrencyStamp { get; set; }
    }

    public partial class ResponseBase
    {
        public virtual ResponseStatus ResponseStatus { get; set; }
    }

}

C# EditProcurement DTOs

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

HTTP + 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
		}
	}
}