Portal

<back to all web services

AddTenderRound

Requires Authentication
Required role:VeoliaAdmin
The following routes are available for this service:
POST/tender/{tenderid}/round
import 'package:servicestack/servicestack.dart';

abstract class TenderRoundBase
{
    String? Name;
    bool? IsQuestionEnabled;
    DateTime? QuestionDeadline;
    DateTime? AnswerDeadline;
    DateTime? SubmissionDeadline;
    bool? IsSupplementaryEnabled;
    DateTime? SupplementaryRequestDeadline;
    DateTime? SupplementaryDeadline;
    DateTime? AnnouncementDateTime;

    TenderRoundBase({this.Name,this.IsQuestionEnabled,this.QuestionDeadline,this.AnswerDeadline,this.SubmissionDeadline,this.IsSupplementaryEnabled,this.SupplementaryRequestDeadline,this.SupplementaryDeadline,this.AnnouncementDateTime});
    TenderRoundBase.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Name = json['Name'];
        IsQuestionEnabled = json['IsQuestionEnabled'];
        QuestionDeadline = JsonConverters.fromJson(json['QuestionDeadline'],'DateTime',context!);
        AnswerDeadline = JsonConverters.fromJson(json['AnswerDeadline'],'DateTime',context!);
        SubmissionDeadline = JsonConverters.fromJson(json['SubmissionDeadline'],'DateTime',context!);
        IsSupplementaryEnabled = json['IsSupplementaryEnabled'];
        SupplementaryRequestDeadline = JsonConverters.fromJson(json['SupplementaryRequestDeadline'],'DateTime',context!);
        SupplementaryDeadline = JsonConverters.fromJson(json['SupplementaryDeadline'],'DateTime',context!);
        AnnouncementDateTime = JsonConverters.fromJson(json['AnnouncementDateTime'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Name': Name,
        'IsQuestionEnabled': IsQuestionEnabled,
        'QuestionDeadline': JsonConverters.toJson(QuestionDeadline,'DateTime',context!),
        'AnswerDeadline': JsonConverters.toJson(AnswerDeadline,'DateTime',context!),
        'SubmissionDeadline': JsonConverters.toJson(SubmissionDeadline,'DateTime',context!),
        'IsSupplementaryEnabled': IsSupplementaryEnabled,
        'SupplementaryRequestDeadline': JsonConverters.toJson(SupplementaryRequestDeadline,'DateTime',context!),
        'SupplementaryDeadline': JsonConverters.toJson(SupplementaryDeadline,'DateTime',context!),
        'AnnouncementDateTime': JsonConverters.toJson(AnnouncementDateTime,'DateTime',context!)
    };

    getTypeName() => "TenderRoundBase";
    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 AddTenderRound extends TenderRoundBase implements IPost, IConvertible
{
    int? TenderId;
    bool? IsStarter;

    AddTenderRound({this.TenderId,this.IsStarter});
    AddTenderRound.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        TenderId = json['TenderId'];
        IsStarter = json['IsStarter'];
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'TenderId': TenderId,
        'IsStarter': IsStarter
    });

    getTypeName() => "AddTenderRound";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'szallitoiportal_be.veolia.hu', types: <String, TypeInfo> {
    'TenderRoundBase': TypeInfo(TypeOf.AbstractClass),
    'ResponseBase': TypeInfo(TypeOf.AbstractClass),
    'ModifyEntityResponse': TypeInfo(TypeOf.Class, create:() => ModifyEntityResponse()),
    'AddTenderRound': TypeInfo(TypeOf.Class, create:() => AddTenderRound()),
});

Dart AddTenderRound DTOs

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

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /tender/{tenderid}/round HTTP/1.1 
Host: szallitoiportal-be.veolia.hu 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"TenderId":0,"IsStarter":false,"Name":"String","IsQuestionEnabled":false,"QuestionDeadline":"0001-01-01T00:00:00.0000000","AnswerDeadline":"0001-01-01T00:00:00.0000000","SubmissionDeadline":"0001-01-01T00:00:00.0000000","IsSupplementaryEnabled":false,"SupplementaryRequestDeadline":"0001-01-01T00:00:00.0000000","SupplementaryDeadline":"0001-01-01T00:00:00.0000000","AnnouncementDateTime":"0001-01-01T00:00:00.0000000"}
HTTP/1.1 200 OK
Content-Type: text/csv
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"}}}