| POST,OPTIONS | /portal/{Token}/quote/approval |
|---|
import 'package:servicestack/servicestack.dart';
class PortalQuoteApprovalResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
String? Status;
bool? Applied;
PortalQuoteApprovalResponse({this.ResponseStatus,this.Status,this.Applied});
PortalQuoteApprovalResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
Status = json['Status'];
Applied = json['Applied'];
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'Status': Status,
'Applied': Applied
};
getTypeName() => "PortalQuoteApprovalResponse";
TypeContext? context = _ctx;
}
class PortalQuoteApprovalRequest implements IConvertible
{
String? Token;
String? Decision;
String? ApprovedByName;
String? DeclineReason;
PortalQuoteApprovalRequest({this.Token,this.Decision,this.ApprovedByName,this.DeclineReason});
PortalQuoteApprovalRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Token = json['Token'];
Decision = json['Decision'];
ApprovedByName = json['ApprovedByName'];
DeclineReason = json['DeclineReason'];
return this;
}
Map<String, dynamic> toJson() => {
'Token': Token,
'Decision': Decision,
'ApprovedByName': ApprovedByName,
'DeclineReason': DeclineReason
};
getTypeName() => "PortalQuoteApprovalRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'PortalQuoteApprovalResponse': TypeInfo(TypeOf.Class, create:() => PortalQuoteApprovalResponse()),
'PortalQuoteApprovalRequest': TypeInfo(TypeOf.Class, create:() => PortalQuoteApprovalRequest()),
});
Dart PortalQuoteApprovalRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /portal/{Token}/quote/approval HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<PortalQuoteApprovalRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<ApprovedByName>String</ApprovedByName>
<Decision>String</Decision>
<DeclineReason>String</DeclineReason>
<Token>String</Token>
</PortalQuoteApprovalRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<PortalQuoteApprovalResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Applied>false</Applied>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<Status>String</Status>
</PortalQuoteApprovalResponse>