| GET | /purchase-history/export |
|---|
import 'package:servicestack/servicestack.dart';
class ExportPurchaseHistoryRequest implements IConvertible
{
String? name;
int? workflowId;
int? equipmentId;
int? providerId;
DateTime? createdFrom;
DateTime? createdTo;
bool? onlyMissingEquipment;
ExportPurchaseHistoryRequest({this.name,this.workflowId,this.equipmentId,this.providerId,this.createdFrom,this.createdTo,this.onlyMissingEquipment});
ExportPurchaseHistoryRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
name = json['name'];
workflowId = json['workflowId'];
equipmentId = json['equipmentId'];
providerId = json['providerId'];
createdFrom = JsonConverters.fromJson(json['createdFrom'],'DateTime',context!);
createdTo = JsonConverters.fromJson(json['createdTo'],'DateTime',context!);
onlyMissingEquipment = json['onlyMissingEquipment'];
return this;
}
Map<String, dynamic> toJson() => {
'name': name,
'workflowId': workflowId,
'equipmentId': equipmentId,
'providerId': providerId,
'createdFrom': JsonConverters.toJson(createdFrom,'DateTime',context!),
'createdTo': JsonConverters.toJson(createdTo,'DateTime',context!),
'onlyMissingEquipment': onlyMissingEquipment
};
getTypeName() => "ExportPurchaseHistoryRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'etc_api.vsmlab.vn', types: <String, TypeInfo> {
'ExportPurchaseHistoryRequest': TypeInfo(TypeOf.Class, create:() => ExportPurchaseHistoryRequest()),
});
Dart ExportPurchaseHistoryRequest 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.
GET /purchase-history/export HTTP/1.1 Host: etc-api.vsmlab.vn Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length (byte[])