| GET,OPTIONS | /v1/qbo/pending |
|---|
import 'package:servicestack/servicestack.dart';
class QboPendingInvoice implements IConvertible
{
int? InvoiceID;
String? InvoiceUID;
String? InvoiceNumber;
DateTime? InvoiceDate;
double? Total;
String? CustomerName;
bool? IsPaid;
String? SyncStatus;
String? ExternalRef;
QboPendingInvoice({this.InvoiceID,this.InvoiceUID,this.InvoiceNumber,this.InvoiceDate,this.Total,this.CustomerName,this.IsPaid,this.SyncStatus,this.ExternalRef});
QboPendingInvoice.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
InvoiceID = json['InvoiceID'];
InvoiceUID = json['InvoiceUID'];
InvoiceNumber = json['InvoiceNumber'];
InvoiceDate = JsonConverters.fromJson(json['InvoiceDate'],'DateTime',context!);
Total = JsonConverters.toDouble(json['Total']);
CustomerName = json['CustomerName'];
IsPaid = json['IsPaid'];
SyncStatus = json['SyncStatus'];
ExternalRef = json['ExternalRef'];
return this;
}
Map<String, dynamic> toJson() => {
'InvoiceID': InvoiceID,
'InvoiceUID': InvoiceUID,
'InvoiceNumber': InvoiceNumber,
'InvoiceDate': JsonConverters.toJson(InvoiceDate,'DateTime',context!),
'Total': Total,
'CustomerName': CustomerName,
'IsPaid': IsPaid,
'SyncStatus': SyncStatus,
'ExternalRef': ExternalRef
};
getTypeName() => "QboPendingInvoice";
TypeContext? context = _ctx;
}
class QboPendingResponse implements IConvertible
{
List<QboPendingInvoice>? Invoices = [];
ResponseStatus? ResponseStatus;
QboPendingResponse({this.Invoices,this.ResponseStatus});
QboPendingResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Invoices = JsonConverters.fromJson(json['Invoices'],'List<QboPendingInvoice>',context!);
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Invoices': JsonConverters.toJson(Invoices,'List<QboPendingInvoice>',context!),
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "QboPendingResponse";
TypeContext? context = _ctx;
}
class QboPendingRequest implements IConvertible
{
QboPendingRequest();
QboPendingRequest.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "QboPendingRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'QboPendingInvoice': TypeInfo(TypeOf.Class, create:() => QboPendingInvoice()),
'QboPendingResponse': TypeInfo(TypeOf.Class, create:() => QboPendingResponse()),
'List<QboPendingInvoice>': TypeInfo(TypeOf.Class, create:() => <QboPendingInvoice>[]),
'QboPendingRequest': TypeInfo(TypeOf.Class, create:() => QboPendingRequest()),
});
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.
GET /v1/qbo/pending HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<QboPendingResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Invoices>
<QboPendingInvoice>
<CustomerName>String</CustomerName>
<ExternalRef>String</ExternalRef>
<InvoiceDate>0001-01-01T00:00:00</InvoiceDate>
<InvoiceID>0</InvoiceID>
<InvoiceNumber>String</InvoiceNumber>
<InvoiceUID>00000000-0000-0000-0000-000000000000</InvoiceUID>
<IsPaid>false</IsPaid>
<SyncStatus>String</SyncStatus>
<Total>0</Total>
</QboPendingInvoice>
</Invoices>
<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>
</QboPendingResponse>