| All Verbs | /ScanReturnsItemDataPoster |
|---|
import 'package:servicestack/servicestack.dart';
class StockAdditional implements IConvertible
{
int? StockID;
String? Gtin;
String? StockLocation;
double? PhysicalQuantityStockLocation;
StockAdditional({this.StockID,this.Gtin,this.StockLocation,this.PhysicalQuantityStockLocation});
StockAdditional.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
StockID = json['StockID'];
Gtin = json['Gtin'];
StockLocation = json['StockLocation'];
PhysicalQuantityStockLocation = JsonConverters.toDouble(json['PhysicalQuantityStockLocation']);
return this;
}
Map<String, dynamic> toJson() => {
'StockID': StockID,
'Gtin': Gtin,
'StockLocation': StockLocation,
'PhysicalQuantityStockLocation': PhysicalQuantityStockLocation
};
getTypeName() => "StockAdditional";
TypeContext? context = _ctx;
}
class Stock implements IConvertible
{
int? StockID;
String? ProductID;
String? ProductAttributeID;
String? Reference;
String? Gtin;
String? GtinAttribute;
String? Label;
String? StockLocation;
double? PhysicalQuantityStockLocation;
String? ReserveStockLocation;
double? PhysicalQuantityReserveStockLocation;
int? NbSKUInPackage;
String? PackageReference;
int? NbSKUInPackage2;
String? PackageReference2;
String? Weight;
bool? FillInBatchNumber;
bool? FillInDate;
String? PictureURL;
List<StockAdditional>? StockAdditionals = [];
String? SearchKey;
Stock({this.StockID,this.ProductID,this.ProductAttributeID,this.Reference,this.Gtin,this.GtinAttribute,this.Label,this.StockLocation,this.PhysicalQuantityStockLocation,this.ReserveStockLocation,this.PhysicalQuantityReserveStockLocation,this.NbSKUInPackage,this.PackageReference,this.NbSKUInPackage2,this.PackageReference2,this.Weight,this.FillInBatchNumber,this.FillInDate,this.PictureURL,this.StockAdditionals,this.SearchKey});
Stock.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
StockID = json['StockID'];
ProductID = json['ProductID'];
ProductAttributeID = json['ProductAttributeID'];
Reference = json['Reference'];
Gtin = json['Gtin'];
GtinAttribute = json['GtinAttribute'];
Label = json['Label'];
StockLocation = json['StockLocation'];
PhysicalQuantityStockLocation = JsonConverters.toDouble(json['PhysicalQuantityStockLocation']);
ReserveStockLocation = json['ReserveStockLocation'];
PhysicalQuantityReserveStockLocation = JsonConverters.toDouble(json['PhysicalQuantityReserveStockLocation']);
NbSKUInPackage = json['NbSKUInPackage'];
PackageReference = json['PackageReference'];
NbSKUInPackage2 = json['NbSKUInPackage2'];
PackageReference2 = json['PackageReference2'];
Weight = json['Weight'];
FillInBatchNumber = json['FillInBatchNumber'];
FillInDate = json['FillInDate'];
PictureURL = json['PictureURL'];
StockAdditionals = JsonConverters.fromJson(json['StockAdditionals'],'List<StockAdditional>',context!);
SearchKey = json['SearchKey'];
return this;
}
Map<String, dynamic> toJson() => {
'StockID': StockID,
'ProductID': ProductID,
'ProductAttributeID': ProductAttributeID,
'Reference': Reference,
'Gtin': Gtin,
'GtinAttribute': GtinAttribute,
'Label': Label,
'StockLocation': StockLocation,
'PhysicalQuantityStockLocation': PhysicalQuantityStockLocation,
'ReserveStockLocation': ReserveStockLocation,
'PhysicalQuantityReserveStockLocation': PhysicalQuantityReserveStockLocation,
'NbSKUInPackage': NbSKUInPackage,
'PackageReference': PackageReference,
'NbSKUInPackage2': NbSKUInPackage2,
'PackageReference2': PackageReference2,
'Weight': Weight,
'FillInBatchNumber': FillInBatchNumber,
'FillInDate': FillInDate,
'PictureURL': PictureURL,
'StockAdditionals': JsonConverters.toJson(StockAdditionals,'List<StockAdditional>',context!),
'SearchKey': SearchKey
};
getTypeName() => "Stock";
TypeContext? context = _ctx;
}
enum ReturnRackPositionStatus
{
EMPTY,
USED,
FULL,
}
class ReturnsDispatchingRackPosition implements IConvertible
{
int? ID;
int? ReturnsDispersionRackID;
String? Name;
String? EAN;
String? BatchNumber;
DateTime? ItemDate;
int? Quantity;
ReturnRackPositionStatus? Status;
ReturnsDispatchingRackPosition({this.ID,this.ReturnsDispersionRackID,this.Name,this.EAN,this.BatchNumber,this.ItemDate,this.Quantity,this.Status});
ReturnsDispatchingRackPosition.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ID = json['ID'];
ReturnsDispersionRackID = json['ReturnsDispersionRackID'];
Name = json['Name'];
EAN = json['EAN'];
BatchNumber = json['BatchNumber'];
ItemDate = JsonConverters.fromJson(json['ItemDate'],'DateTime',context!);
Quantity = json['Quantity'];
Status = JsonConverters.fromJson(json['Status'],'ReturnRackPositionStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ID': ID,
'ReturnsDispersionRackID': ReturnsDispersionRackID,
'Name': Name,
'EAN': EAN,
'BatchNumber': BatchNumber,
'ItemDate': JsonConverters.toJson(ItemDate,'DateTime',context!),
'Quantity': Quantity,
'Status': JsonConverters.toJson(Status,'ReturnRackPositionStatus',context!)
};
getTypeName() => "ReturnsDispatchingRackPosition";
TypeContext? context = _ctx;
}
class ReturnsResultInfo implements IConvertible
{
String? Result;
String? Error;
Stock? Stock;
ReturnsDispatchingRackPosition? RackPosition;
int? RackID;
String? EAN;
String? BatchNumber;
DateTime? ItemDate;
List<String>? SpecificCaseToBeTreated = [];
ReturnsResultInfo({this.Result,this.Error,this.Stock,this.RackPosition,this.RackID,this.EAN,this.BatchNumber,this.ItemDate,this.SpecificCaseToBeTreated});
ReturnsResultInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Result = json['Result'];
Error = json['Error'];
Stock = JsonConverters.fromJson(json['Stock'],'Stock',context!);
RackPosition = JsonConverters.fromJson(json['RackPosition'],'ReturnsDispatchingRackPosition',context!);
RackID = json['RackID'];
EAN = json['EAN'];
BatchNumber = json['BatchNumber'];
ItemDate = JsonConverters.fromJson(json['ItemDate'],'DateTime',context!);
SpecificCaseToBeTreated = JsonConverters.fromJson(json['SpecificCaseToBeTreated'],'List<String>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Result': Result,
'Error': Error,
'Stock': JsonConverters.toJson(Stock,'Stock',context!),
'RackPosition': JsonConverters.toJson(RackPosition,'ReturnsDispatchingRackPosition',context!),
'RackID': RackID,
'EAN': EAN,
'BatchNumber': BatchNumber,
'ItemDate': JsonConverters.toJson(ItemDate,'DateTime',context!),
'SpecificCaseToBeTreated': JsonConverters.toJson(SpecificCaseToBeTreated,'List<String>',context!)
};
getTypeName() => "ReturnsResultInfo";
TypeContext? context = _ctx;
}
class ScanReturnsItemDataPoster implements IConvertible
{
/**
* Returns rack result
*/
// @ApiMember(Description="Returns rack result ", IsRequired=true)
ReturnsResultInfo? ReturnsResult;
/**
* rack id
*/
// @ApiMember(Description="rack id", IsRequired=true)
int? RackID;
ScanReturnsItemDataPoster({this.ReturnsResult,this.RackID});
ScanReturnsItemDataPoster.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ReturnsResult = JsonConverters.fromJson(json['ReturnsResult'],'ReturnsResultInfo',context!);
RackID = json['RackID'];
return this;
}
Map<String, dynamic> toJson() => {
'ReturnsResult': JsonConverters.toJson(ReturnsResult,'ReturnsResultInfo',context!),
'RackID': RackID
};
getTypeName() => "ScanReturnsItemDataPoster";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'clouddemo.pickeos.com', types: <String, TypeInfo> {
'StockAdditional': TypeInfo(TypeOf.Class, create:() => StockAdditional()),
'Stock': TypeInfo(TypeOf.Class, create:() => Stock()),
'List<StockAdditional>': TypeInfo(TypeOf.Class, create:() => <StockAdditional>[]),
'ReturnRackPositionStatus': TypeInfo(TypeOf.Enum, enumValues:ReturnRackPositionStatus.values),
'ReturnsDispatchingRackPosition': TypeInfo(TypeOf.Class, create:() => ReturnsDispatchingRackPosition()),
'ReturnsResultInfo': TypeInfo(TypeOf.Class, create:() => ReturnsResultInfo()),
'ScanReturnsItemDataPoster': TypeInfo(TypeOf.Class, create:() => ScanReturnsItemDataPoster()),
});
Dart ScanReturnsItemDataPoster 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.
POST /ScanReturnsItemDataPoster HTTP/1.1
Host: clouddemo.pickeos.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"ReturnsResult":{"Result":"String","Error":"String","Stock":{"StockID":0,"ProductID":"String","ProductAttributeID":"String","Reference":"String","Gtin":"String","GtinAttribute":"String","Label":"String","StockLocation":"String","PhysicalQuantityStockLocation":0,"ReserveStockLocation":"String","PhysicalQuantityReserveStockLocation":0,"NbSKUInPackage":0,"PackageReference":"String","NbSKUInPackage2":0,"PackageReference2":"String","Weight":"String","FillInBatchNumber":false,"FillInDate":false,"PictureURL":"String","StockAdditionals":[{"StockID":0,"Gtin":"String","StockLocation":"String","PhysicalQuantityStockLocation":0}],"SearchKey":"String-String-String-String-String"},"RackPosition":{"ID":0,"ReturnsDispersionRackID":0,"Name":"String","EAN":"String","BatchNumber":"String","ItemDate":"\/Date(-62135596800000-0000)\/","Quantity":0,"Status":"EMPTY"},"RackID":0,"EAN":"String","BatchNumber":"String","ItemDate":"\/Date(-62135596800000-0000)\/","SpecificCaseToBeTreated":["String"]},"RackID":0}