| Requires any of the roles: | Agent, Administrator |
| POST,OPTIONS | /v1/Rfp/{RfpDocumentUID}/Documents/{ChildRfpDocumentUID}/Deactivate |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class RfpDocument implements IConvertible
{
int? RfpDocumentID;
String? RfpDocumentUID;
String? FileName;
String? ContentType;
int? ContentLength;
String? S3Key;
String? Status;
String? ErrorMessage;
String? CreatedBy;
DateTime? CreatedAt;
DateTime? UpdatedAt;
int? ParentRfpDocumentID;
String? DocumentType;
bool? IsActive;
RfpDocument({this.RfpDocumentID,this.RfpDocumentUID,this.FileName,this.ContentType,this.ContentLength,this.S3Key,this.Status,this.ErrorMessage,this.CreatedBy,this.CreatedAt,this.UpdatedAt,this.ParentRfpDocumentID,this.DocumentType,this.IsActive});
RfpDocument.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
RfpDocumentID = json['RfpDocumentID'];
RfpDocumentUID = json['RfpDocumentUID'];
FileName = json['FileName'];
ContentType = json['ContentType'];
ContentLength = json['ContentLength'];
S3Key = json['S3Key'];
Status = json['Status'];
ErrorMessage = json['ErrorMessage'];
CreatedBy = json['CreatedBy'];
CreatedAt = JsonConverters.fromJson(json['CreatedAt'],'DateTime',context!);
UpdatedAt = JsonConverters.fromJson(json['UpdatedAt'],'DateTime',context!);
ParentRfpDocumentID = json['ParentRfpDocumentID'];
DocumentType = json['DocumentType'];
IsActive = json['IsActive'];
return this;
}
Map<String, dynamic> toJson() => {
'RfpDocumentID': RfpDocumentID,
'RfpDocumentUID': RfpDocumentUID,
'FileName': FileName,
'ContentType': ContentType,
'ContentLength': ContentLength,
'S3Key': S3Key,
'Status': Status,
'ErrorMessage': ErrorMessage,
'CreatedBy': CreatedBy,
'CreatedAt': JsonConverters.toJson(CreatedAt,'DateTime',context!),
'UpdatedAt': JsonConverters.toJson(UpdatedAt,'DateTime',context!),
'ParentRfpDocumentID': ParentRfpDocumentID,
'DocumentType': DocumentType,
'IsActive': IsActive
};
getTypeName() => "RfpDocument";
TypeContext? context = _ctx;
}
class RfpChildrenResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
int? RfpDocumentID;
List<RfpDocument>? Documents = [];
RfpChildrenResponse({this.ResponseStatus,this.RfpDocumentID,this.Documents});
RfpChildrenResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
RfpDocumentID = json['RfpDocumentID'];
Documents = JsonConverters.fromJson(json['Documents'],'List<RfpDocument>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'RfpDocumentID': RfpDocumentID,
'Documents': JsonConverters.toJson(Documents,'List<RfpDocument>',context!)
};
getTypeName() => "RfpChildrenResponse";
TypeContext? context = _ctx;
}
class RfpDeactivateDocumentRequest implements IConvertible
{
String? RfpDocumentUID;
String? ChildRfpDocumentUID;
RfpDeactivateDocumentRequest({this.RfpDocumentUID,this.ChildRfpDocumentUID});
RfpDeactivateDocumentRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
RfpDocumentUID = json['RfpDocumentUID'];
ChildRfpDocumentUID = json['ChildRfpDocumentUID'];
return this;
}
Map<String, dynamic> toJson() => {
'RfpDocumentUID': RfpDocumentUID,
'ChildRfpDocumentUID': ChildRfpDocumentUID
};
getTypeName() => "RfpDeactivateDocumentRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'RfpDocument': TypeInfo(TypeOf.Class, create:() => RfpDocument()),
'RfpChildrenResponse': TypeInfo(TypeOf.Class, create:() => RfpChildrenResponse()),
'List<RfpDocument>': TypeInfo(TypeOf.Class, create:() => <RfpDocument>[]),
'RfpDeactivateDocumentRequest': TypeInfo(TypeOf.Class, create:() => RfpDeactivateDocumentRequest()),
});
Dart RfpDeactivateDocumentRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/Rfp/{RfpDocumentUID}/Documents/{ChildRfpDocumentUID}/Deactivate HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
RfpDocumentUID: 00000000000000000000000000000000,
ChildRfpDocumentUID: 00000000000000000000000000000000
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
RfpDocumentID: 0,
Documents:
[
{
RfpDocumentID: 0,
RfpDocumentUID: 00000000000000000000000000000000,
FileName: String,
ContentType: String,
ContentLength: 0,
S3Key: String,
Status: String,
ErrorMessage: String,
CreatedBy: String,
CreatedAt: 0001-01-01,
UpdatedAt: 0001-01-01,
ParentRfpDocumentID: 0,
DocumentType: String,
IsActive: False
}
]
}