| Requires any of the roles: | Agent, Administrator |
| DELETE,OPTIONS | /v1/customercheckins/{Id}/notes/{NoteId} |
|---|
import 'package:servicestack/servicestack.dart';
class CustomerNote implements IConvertible
{
int? NoteId;
String? Scope;
String? Text;
bool? IsPriority;
String? CreatedByUserId;
String? CreatedByName;
DateTime? CreatedAt;
DateTime? DoneAt;
bool? IsCarry;
DateTime? ShownAt;
CustomerNote({this.NoteId,this.Scope,this.Text,this.IsPriority,this.CreatedByUserId,this.CreatedByName,this.CreatedAt,this.DoneAt,this.IsCarry,this.ShownAt});
CustomerNote.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
NoteId = json['NoteId'];
Scope = json['Scope'];
Text = json['Text'];
IsPriority = json['IsPriority'];
CreatedByUserId = json['CreatedByUserId'];
CreatedByName = json['CreatedByName'];
CreatedAt = JsonConverters.fromJson(json['CreatedAt'],'DateTime',context!);
DoneAt = JsonConverters.fromJson(json['DoneAt'],'DateTime',context!);
IsCarry = json['IsCarry'];
ShownAt = JsonConverters.fromJson(json['ShownAt'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'NoteId': NoteId,
'Scope': Scope,
'Text': Text,
'IsPriority': IsPriority,
'CreatedByUserId': CreatedByUserId,
'CreatedByName': CreatedByName,
'CreatedAt': JsonConverters.toJson(CreatedAt,'DateTime',context!),
'DoneAt': JsonConverters.toJson(DoneAt,'DateTime',context!),
'IsCarry': IsCarry,
'ShownAt': JsonConverters.toJson(ShownAt,'DateTime',context!)
};
getTypeName() => "CustomerNote";
TypeContext? context = _ctx;
}
class CustomerNoteResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
List<CustomerNote>? Notes = [];
List<CustomerNote>? Carry = [];
bool? CanPriority;
CustomerNote? Note;
CustomerNoteResponse({this.ResponseStatus,this.Notes,this.Carry,this.CanPriority,this.Note});
CustomerNoteResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
Notes = JsonConverters.fromJson(json['Notes'],'List<CustomerNote>',context!);
Carry = JsonConverters.fromJson(json['Carry'],'List<CustomerNote>',context!);
CanPriority = json['CanPriority'];
Note = JsonConverters.fromJson(json['Note'],'CustomerNote',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'Notes': JsonConverters.toJson(Notes,'List<CustomerNote>',context!),
'Carry': JsonConverters.toJson(Carry,'List<CustomerNote>',context!),
'CanPriority': CanPriority,
'Note': JsonConverters.toJson(Note,'CustomerNote',context!)
};
getTypeName() => "CustomerNoteResponse";
TypeContext? context = _ctx;
}
class CustomerNoteDeleteRequest implements IConvertible
{
String? Id;
int? NoteId;
CustomerNoteDeleteRequest({this.Id,this.NoteId});
CustomerNoteDeleteRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
NoteId = json['NoteId'];
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'NoteId': NoteId
};
getTypeName() => "CustomerNoteDeleteRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'CustomerNote': TypeInfo(TypeOf.Class, create:() => CustomerNote()),
'CustomerNoteResponse': TypeInfo(TypeOf.Class, create:() => CustomerNoteResponse()),
'List<CustomerNote>': TypeInfo(TypeOf.Class, create:() => <CustomerNote>[]),
'CustomerNoteDeleteRequest': TypeInfo(TypeOf.Class, create:() => CustomerNoteDeleteRequest()),
});
Dart CustomerNoteDeleteRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
DELETE /v1/customercheckins/{Id}/notes/{NoteId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
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"}},"Notes":[{"NoteId":0,"Scope":"String","Text":"String","IsPriority":false,"CreatedByUserId":"00000000000000000000000000000000","CreatedByName":"String","CreatedAt":"0001-01-01T00:00:00.0000000","DoneAt":"0001-01-01T00:00:00.0000000","IsCarry":false,"ShownAt":"0001-01-01T00:00:00.0000000"}],"Carry":[{"NoteId":0,"Scope":"String","Text":"String","IsPriority":false,"CreatedByUserId":"00000000000000000000000000000000","CreatedByName":"String","CreatedAt":"0001-01-01T00:00:00.0000000","DoneAt":"0001-01-01T00:00:00.0000000","IsCarry":false,"ShownAt":"0001-01-01T00:00:00.0000000"}],"CanPriority":false,"Note":{"NoteId":0,"Scope":"String","Text":"String","IsPriority":false,"CreatedByUserId":"00000000000000000000000000000000","CreatedByName":"String","CreatedAt":"0001-01-01T00:00:00.0000000","DoneAt":"0001-01-01T00:00:00.0000000","IsCarry":false,"ShownAt":"0001-01-01T00:00:00.0000000"}}