Trendsic Platform Service

<back to all web services

EstimateMarkupDefaultPutRequest

Requires Authentication
The following routes are available for this service:
PUT,OPTIONS/v1/Rfp/Estimate/MarkupDefault
import 'package:servicestack/servicestack.dart';

class EstimateMarkupDefaultView implements IConvertible
{
    bool? IsSet;
    double? OhpPct;
    double? CrewOhpPct;
    double? EquipmentOhpPct;
    double? MaterialOhpPct;
    double? SubcontractOhpPct;
    String? Line;
    bool? SameAsEstimate;
    String? SaveQuestion;

    EstimateMarkupDefaultView({this.IsSet,this.OhpPct,this.CrewOhpPct,this.EquipmentOhpPct,this.MaterialOhpPct,this.SubcontractOhpPct,this.Line,this.SameAsEstimate,this.SaveQuestion});
    EstimateMarkupDefaultView.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        IsSet = json['IsSet'];
        OhpPct = JsonConverters.toDouble(json['OhpPct']);
        CrewOhpPct = JsonConverters.toDouble(json['CrewOhpPct']);
        EquipmentOhpPct = JsonConverters.toDouble(json['EquipmentOhpPct']);
        MaterialOhpPct = JsonConverters.toDouble(json['MaterialOhpPct']);
        SubcontractOhpPct = JsonConverters.toDouble(json['SubcontractOhpPct']);
        Line = json['Line'];
        SameAsEstimate = json['SameAsEstimate'];
        SaveQuestion = json['SaveQuestion'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'IsSet': IsSet,
        'OhpPct': OhpPct,
        'CrewOhpPct': CrewOhpPct,
        'EquipmentOhpPct': EquipmentOhpPct,
        'MaterialOhpPct': MaterialOhpPct,
        'SubcontractOhpPct': SubcontractOhpPct,
        'Line': Line,
        'SameAsEstimate': SameAsEstimate,
        'SaveQuestion': SaveQuestion
    };

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

class EstimateMarkupDefaultResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;
    EstimateMarkupDefaultView? MarkupDefault;

    EstimateMarkupDefaultResponse({this.ResponseStatus,this.MarkupDefault});
    EstimateMarkupDefaultResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        MarkupDefault = JsonConverters.fromJson(json['MarkupDefault'],'EstimateMarkupDefaultView',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
        'MarkupDefault': JsonConverters.toJson(MarkupDefault,'EstimateMarkupDefaultView',context!)
    };

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

class EstimateMarkupDefaultPutRequest implements IConvertible
{
    double? OhpPct;
    double? CrewOhpPct;
    double? EquipmentOhpPct;
    double? MaterialOhpPct;
    double? SubcontractOhpPct;
    String? RfpDocumentUID;

    EstimateMarkupDefaultPutRequest({this.OhpPct,this.CrewOhpPct,this.EquipmentOhpPct,this.MaterialOhpPct,this.SubcontractOhpPct,this.RfpDocumentUID});
    EstimateMarkupDefaultPutRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        OhpPct = JsonConverters.toDouble(json['OhpPct']);
        CrewOhpPct = JsonConverters.toDouble(json['CrewOhpPct']);
        EquipmentOhpPct = JsonConverters.toDouble(json['EquipmentOhpPct']);
        MaterialOhpPct = JsonConverters.toDouble(json['MaterialOhpPct']);
        SubcontractOhpPct = JsonConverters.toDouble(json['SubcontractOhpPct']);
        RfpDocumentUID = json['RfpDocumentUID'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'OhpPct': OhpPct,
        'CrewOhpPct': CrewOhpPct,
        'EquipmentOhpPct': EquipmentOhpPct,
        'MaterialOhpPct': MaterialOhpPct,
        'SubcontractOhpPct': SubcontractOhpPct,
        'RfpDocumentUID': RfpDocumentUID
    };

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

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'EstimateMarkupDefaultView': TypeInfo(TypeOf.Class, create:() => EstimateMarkupDefaultView()),
    'EstimateMarkupDefaultResponse': TypeInfo(TypeOf.Class, create:() => EstimateMarkupDefaultResponse()),
    'EstimateMarkupDefaultPutRequest': TypeInfo(TypeOf.Class, create:() => EstimateMarkupDefaultPutRequest()),
});

Dart EstimateMarkupDefaultPutRequest DTOs

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

HTTP + OTHER

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

PUT /v1/Rfp/Estimate/MarkupDefault HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"OhpPct":0,"CrewOhpPct":0,"EquipmentOhpPct":0,"MaterialOhpPct":0,"SubcontractOhpPct":0,"RfpDocumentUID":"00000000000000000000000000000000"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"MarkupDefault":{"IsSet":false,"OhpPct":0,"CrewOhpPct":0,"EquipmentOhpPct":0,"MaterialOhpPct":0,"SubcontractOhpPct":0,"Line":"String","SameAsEstimate":false,"SaveQuestion":"String"}}