Trendsic Platform Service

<back to all web services

QcHoldPointCreateRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/projects/{ProjectID}/hold-points
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class QcHoldPoint implements IConvertible
{
    int? QcHoldPointID;
    String? QcHoldPointUID;
    int? ProjectID;
    String? Description;
    String? ResponsibleParty;
    String? CostCode;
    DateTime? ScheduledDate;
    String? Status;
    String? ReleasedBy;
    DateTime? ReleasedAt;
    String? Notes;
    String? CreatedBy;
    DateTime? CreatedAt;
    DateTime? UpdatedAt;

    QcHoldPoint({this.QcHoldPointID,this.QcHoldPointUID,this.ProjectID,this.Description,this.ResponsibleParty,this.CostCode,this.ScheduledDate,this.Status,this.ReleasedBy,this.ReleasedAt,this.Notes,this.CreatedBy,this.CreatedAt,this.UpdatedAt});
    QcHoldPoint.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        QcHoldPointID = json['QcHoldPointID'];
        QcHoldPointUID = json['QcHoldPointUID'];
        ProjectID = json['ProjectID'];
        Description = json['Description'];
        ResponsibleParty = json['ResponsibleParty'];
        CostCode = json['CostCode'];
        ScheduledDate = JsonConverters.fromJson(json['ScheduledDate'],'DateTime',context!);
        Status = json['Status'];
        ReleasedBy = json['ReleasedBy'];
        ReleasedAt = JsonConverters.fromJson(json['ReleasedAt'],'DateTime',context!);
        Notes = json['Notes'];
        CreatedBy = json['CreatedBy'];
        CreatedAt = JsonConverters.fromJson(json['CreatedAt'],'DateTime',context!);
        UpdatedAt = JsonConverters.fromJson(json['UpdatedAt'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'QcHoldPointID': QcHoldPointID,
        'QcHoldPointUID': QcHoldPointUID,
        'ProjectID': ProjectID,
        'Description': Description,
        'ResponsibleParty': ResponsibleParty,
        'CostCode': CostCode,
        'ScheduledDate': JsonConverters.toJson(ScheduledDate,'DateTime',context!),
        'Status': Status,
        'ReleasedBy': ReleasedBy,
        'ReleasedAt': JsonConverters.toJson(ReleasedAt,'DateTime',context!),
        'Notes': Notes,
        'CreatedBy': CreatedBy,
        'CreatedAt': JsonConverters.toJson(CreatedAt,'DateTime',context!),
        'UpdatedAt': JsonConverters.toJson(UpdatedAt,'DateTime',context!)
    };

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

class QcHoldPointResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;
    QcHoldPoint? HoldPoint;

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

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

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

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

class QcHoldPointCreateRequest implements IConvertible
{
    int? ProjectID;
    String? Description;
    String? ResponsibleParty;
    String? CostCode;
    DateTime? ScheduledDate;

    QcHoldPointCreateRequest({this.ProjectID,this.Description,this.ResponsibleParty,this.CostCode,this.ScheduledDate});
    QcHoldPointCreateRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ProjectID = json['ProjectID'];
        Description = json['Description'];
        ResponsibleParty = json['ResponsibleParty'];
        CostCode = json['CostCode'];
        ScheduledDate = JsonConverters.fromJson(json['ScheduledDate'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ProjectID': ProjectID,
        'Description': Description,
        'ResponsibleParty': ResponsibleParty,
        'CostCode': CostCode,
        'ScheduledDate': JsonConverters.toJson(ScheduledDate,'DateTime',context!)
    };

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

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

Dart QcHoldPointCreateRequest 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 /v1/projects/{ProjectID}/hold-points HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"ProjectID":0,"Description":"String","ResponsibleParty":"String","CostCode":"String","ScheduledDate":"0001-01-01T00:00:00.0000000"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"HoldPoint":{"QcHoldPointID":0,"QcHoldPointUID":"00000000000000000000000000000000","ProjectID":0,"Description":"String","ResponsibleParty":"String","CostCode":"String","ScheduledDate":"0001-01-01T00:00:00.0000000","Status":"String","ReleasedBy":"String","ReleasedAt":"0001-01-01T00:00:00.0000000","Notes":"String","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"}}