| Requires any of the roles: | Agent, Administrator |
| PUT,OPTIONS | /v1/estimating/policy |
|---|
import 'package:servicestack/servicestack.dart';
class EstimatingPolicyResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
bool? HonorSourceStatus;
EstimatingPolicyResponse({this.ResponseStatus,this.HonorSourceStatus});
EstimatingPolicyResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
HonorSourceStatus = json['HonorSourceStatus'];
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'HonorSourceStatus': HonorSourceStatus
};
getTypeName() => "EstimatingPolicyResponse";
TypeContext? context = _ctx;
}
class EstimatingPolicyPutRequest implements IConvertible
{
bool? HonorSourceStatus;
EstimatingPolicyPutRequest({this.HonorSourceStatus});
EstimatingPolicyPutRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
HonorSourceStatus = json['HonorSourceStatus'];
return this;
}
Map<String, dynamic> toJson() => {
'HonorSourceStatus': HonorSourceStatus
};
getTypeName() => "EstimatingPolicyPutRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'EstimatingPolicyResponse': TypeInfo(TypeOf.Class, create:() => EstimatingPolicyResponse()),
'EstimatingPolicyPutRequest': TypeInfo(TypeOf.Class, create:() => EstimatingPolicyPutRequest()),
});
Dart EstimatingPolicyPutRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /v1/estimating/policy HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"HonorSourceStatus":false}
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"}},"HonorSourceStatus":false}