Portal

<back to all web services

AddProcurement

The following routes are available for this service:
POST/tender/{tenderid}/user/{userid}/procurement
namespace Portal.ServiceDto

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type ResponseBase() = 
        member val ResponseStatus:ResponseStatus = null with get,set

    [<AllowNullLiteral>]
    type ModifyEntityResponse() = 
        inherit ResponseBase()
        member val Id:Int32 = new Int32() with get,set

    [<AllowNullLiteral>]
    type ModifyRequestBase() = 
        member val ConcurrencyStamp:String = null with get,set

    [<AllowNullLiteral>]
    type ModifyProcurementBase() = 
        inherit ModifyRequestBase()
        member val IsGroupMember:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val GroupName:String = null with get,set
        member val GroupShortName:String = null with get,set
        member val CountryId:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val VatNumber:String = null with get,set
        member val RegistrationNumber:String = null with get,set
        member val Duns:String = null with get,set
        member val Address:String = null with get,set
        member val MainActivity:String = null with get,set
        member val EstablishedDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val Workforce:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val Website:String = null with get,set
        member val SalesManagerName:String = null with get,set
        member val SalesManagerPhone:String = null with get,set
        member val SalesManagerEmail:String = null with get,set
        member val CsrManagerName:String = null with get,set
        member val CsrManagerPhone:String = null with get,set
        member val CsrManagerEmail:String = null with get,set
        member val AccountCountryId:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val BankName:String = null with get,set
        member val AccountNumber:String = null with get,set
        member val Iban:String = null with get,set
        member val Swift:String = null with get,set
        member val CurrencyId:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val WorkForceN1:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val WorkForceN2:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val WorkForceN3:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val SubscribedCapital:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val SubscribedCapitalCurrencyId:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val RevenueN1:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val RevenueN2:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val RevenueN3:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val NetProfitN1:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val NetProfitN2:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val NetProfitN3:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val EquityN1:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val EquityN2:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val EquityN3:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val LiabilityN1:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val LiabilityN2:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val LiabilityN3:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val OperatingResultN1:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val OperatingResultN2:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val OperatingResultN3:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val DBFailureScore:String = null with get,set
        member val IsAuditedAccount:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsAuditedAccountComment:String = null with get,set
        member val IsLiquidationProceedings:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsLiquidationProceedingsComment:String = null with get,set
        member val VeoliaAnnualRevenuesProportion:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val IsAntiCorruptionDocument:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsCorruptionRiskMap:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsThirdPartiesEvaluatingSystem:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsInternalRules:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsHumanRights:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsAntiCorruptionTraining:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsAntiCorruptionReportSystem:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsIso9001:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsEcoVadisScorecard:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val EcoVadisTotalScore:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val IsReduceEmployeeSafetyRisk:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsPromoteSocialIntegration:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsNondiscriminationPolicy:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsIso14001:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsIdentifiedMajorEnvironmentalImpacts:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsUseWaterResources:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsConsumptionOfRawMaterials:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsEnergyConsumption:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsGreenhouseGasEmissions:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsAtmosphericEmissions:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsAqueousPollution:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsWasteGeneration:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsNaturalAreasPollution:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsPrivacyStatement:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsVeoliaSupplierCharter:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val IsVeoliaCoreStandards:Nullable<Boolean> = new Nullable<Boolean>() with get,set

    [<AllowNullLiteral>]
    type AddProcurementLegalRepresentative() = 
        member val Position:String = null with get,set
        member val Name:String = null with get,set
        member val Address:String = null with get,set
        member val BirthDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val Email:String = null with get,set

    [<AllowNullLiteral>]
    type AddProcurement() = 
        inherit ModifyProcurementBase()
        interface IPost
        member val TenderId:Int32 = new Int32() with get,set
        member val UserId:Int32 = new Int32() with get,set
        member val LegalRepresentatives:ResizeArray<AddProcurementLegalRepresentative> = new ResizeArray<AddProcurementLegalRepresentative>() with get,set

F# AddProcurement 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.

POST /tender/{tenderid}/user/{userid}/procurement HTTP/1.1 
Host: szallitoiportal-be.veolia.hu 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	TenderId: 0,
	UserId: 0,
	LegalRepresentatives: 
	[
		{
			Position: String,
			Name: String,
			Address: String,
			BirthDate: 0001-01-01,
			Email: String
		}
	],
	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
		}
	}
}