| All Verbs | /MissionAddDetail/{MissionName}/{Reference}/{Label}/{Quantity} |
|---|
import 'package:servicestack/servicestack.dart';
class MissionAddDetail implements IConvertible
{
/**
* Mission name
*/
// @ApiMember(Description="Mission name", IsRequired=true)
String? MissionName;
/**
* Detail reference
*/
// @ApiMember(Description="Detail reference", IsRequired=true)
String? Reference;
/**
* Detail label
*/
// @ApiMember(Description="Detail label", IsRequired=true)
String? Label;
/**
* Quantity
*/
// @ApiMember(Description="Quantity", IsRequired=true)
double? Quantity;
/**
* QuantityPrepared
*/
// @ApiMember(Description="QuantityPrepared")
double? QuantityPrepared;
/**
* Mission info
*/
// @ApiMember(Description="Mission info")
String? MissionInfo;
/**
* Tray key
*/
// @ApiMember(Description="Tray key")
String? Tray;
/**
* Stock Location
*/
// @ApiMember(Description="Stock Location")
String? StockLocation;
/**
* To be used to identify with certitude a specific line in the mission result repport.
*/
// @ApiMember(Description="To be used to identify with certitude a specific line in the mission result repport.")
int? LineNumber;
/**
* Info about article (Max 100 chars)
*/
// @ApiMember(Description="Info about article (Max 100 chars)")
String? Info;
/**
* Position of article (Max 50 chars)
*/
// @ApiMember(Description="Position of article (Max 50 chars)")
String? GTIN;
/**
* Product reference used by supplier
*/
// @ApiMember(Description="Product reference used by supplier")
String? SupplierReference;
/**
* Can be used to optimize picking. The mission will be sorted using this value
*/
// @ApiMember(Description="Can be used to optimize picking. The mission will be sorted using this value")
int? PickingIndex;
/**
* Defines if an article is substitutable
*/
// @ApiMember(Description="Defines if an article is substitutable")
bool? Substitutable;
/**
* Defines the new Reference of substituted article
*/
// @ApiMember(Description="Defines the new Reference of substituted article")
String? SubstitutionRef;
/**
* Unique reference of a containing package
*/
// @ApiMember(Description="Unique reference of a containing package")
String? PackageReference;
/**
* Number of articles contained in the package
*/
// @ApiMember(Description="Number of articles contained in the package")
int? NbSKUInPackage;
/**
* Unique reference of a containing package (additional)
*/
// @ApiMember(Description="Unique reference of a containing package (additional)")
String? PackageReference2;
/**
* Number of articles contained in the package (additional)
*/
// @ApiMember(Description="Number of articles contained in the package (additional)")
int? NbSKUInPackage2;
/**
* Uses GTIN to resovle StockLocation from Stock DB Table. Takes only the first stock location found in Stock DB.
*/
// @ApiMember(Description="Uses GTIN to resovle StockLocation from Stock DB Table. Takes only the first stock location found in Stock DB.")
bool? ResolveStockLocation;
/**
* Weight per Item in Kg
*/
// @ApiMember(Description="Weight per Item in Kg")
double? WeightPerItemInKg;
/**
* Volume per Item in m3
*/
// @ApiMember(Description="Volume per Item in m3")
double? VolumePerItemInM3;
/**
* URL of picture
*/
// @ApiMember(Description="URL of picture")
String? PictureURL;
/**
* Mesure of the item if it is by weight or by piece
*/
// @ApiMember(Description="Mesure of the item if it is by weight or by piece")
String? QuantityUnit;
/**
* Product versions
*/
// @ApiMember(Description="Product versions")
List<String>? Versions = [];
/**
* Use to know if product need force scan EAN or not
*/
// @ApiMember(Description="Use to know if product need force scan EAN or not")
bool? IsProductCritical;
/**
* Mission type
*/
// @ApiMember(Description="Mission type")
String? MissionType;
MissionAddDetail({this.MissionName,this.Reference,this.Label,this.Quantity,this.QuantityPrepared,this.MissionInfo,this.Tray,this.StockLocation,this.LineNumber,this.Info,this.GTIN,this.SupplierReference,this.PickingIndex,this.Substitutable,this.SubstitutionRef,this.PackageReference,this.NbSKUInPackage,this.PackageReference2,this.NbSKUInPackage2,this.ResolveStockLocation,this.WeightPerItemInKg,this.VolumePerItemInM3,this.PictureURL,this.QuantityUnit,this.Versions,this.IsProductCritical,this.MissionType});
MissionAddDetail.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
MissionName = json['MissionName'];
Reference = json['Reference'];
Label = json['Label'];
Quantity = JsonConverters.toDouble(json['Quantity']);
QuantityPrepared = JsonConverters.toDouble(json['QuantityPrepared']);
MissionInfo = json['MissionInfo'];
Tray = json['Tray'];
StockLocation = json['StockLocation'];
LineNumber = json['LineNumber'];
Info = json['Info'];
GTIN = json['GTIN'];
SupplierReference = json['SupplierReference'];
PickingIndex = json['PickingIndex'];
Substitutable = json['Substitutable'];
SubstitutionRef = json['SubstitutionRef'];
PackageReference = json['PackageReference'];
NbSKUInPackage = json['NbSKUInPackage'];
PackageReference2 = json['PackageReference2'];
NbSKUInPackage2 = json['NbSKUInPackage2'];
ResolveStockLocation = json['ResolveStockLocation'];
WeightPerItemInKg = JsonConverters.toDouble(json['WeightPerItemInKg']);
VolumePerItemInM3 = JsonConverters.toDouble(json['VolumePerItemInM3']);
PictureURL = json['PictureURL'];
QuantityUnit = json['QuantityUnit'];
Versions = JsonConverters.fromJson(json['Versions'],'List<String>',context!);
IsProductCritical = json['IsProductCritical'];
MissionType = json['MissionType'];
return this;
}
Map<String, dynamic> toJson() => {
'MissionName': MissionName,
'Reference': Reference,
'Label': Label,
'Quantity': Quantity,
'QuantityPrepared': QuantityPrepared,
'MissionInfo': MissionInfo,
'Tray': Tray,
'StockLocation': StockLocation,
'LineNumber': LineNumber,
'Info': Info,
'GTIN': GTIN,
'SupplierReference': SupplierReference,
'PickingIndex': PickingIndex,
'Substitutable': Substitutable,
'SubstitutionRef': SubstitutionRef,
'PackageReference': PackageReference,
'NbSKUInPackage': NbSKUInPackage,
'PackageReference2': PackageReference2,
'NbSKUInPackage2': NbSKUInPackage2,
'ResolveStockLocation': ResolveStockLocation,
'WeightPerItemInKg': WeightPerItemInKg,
'VolumePerItemInM3': VolumePerItemInM3,
'PictureURL': PictureURL,
'QuantityUnit': QuantityUnit,
'Versions': JsonConverters.toJson(Versions,'List<String>',context!),
'IsProductCritical': IsProductCritical,
'MissionType': MissionType
};
getTypeName() => "MissionAddDetail";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'clouddemo.pickeos.com', types: <String, TypeInfo> {
'MissionAddDetail': TypeInfo(TypeOf.Class, create:() => MissionAddDetail()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /MissionAddDetail/{MissionName}/{Reference}/{Label}/{Quantity} HTTP/1.1
Host: clouddemo.pickeos.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
MissionName: String,
Reference: String,
Label: String,
Quantity: 0,
QuantityPrepared: 0,
MissionInfo: String,
Tray: String,
StockLocation: String,
LineNumber: 0,
Info: String,
GTIN: String,
SupplierReference: String,
PickingIndex: 0,
Substitutable: False,
SubstitutionRef: String,
PackageReference: String,
NbSKUInPackage: 0,
PackageReference2: String,
NbSKUInPackage2: 0,
ResolveStockLocation: False,
WeightPerItemInKg: 0,
VolumePerItemInM3: 0,
PictureURL: String,
QuantityUnit: String,
Versions:
[
String
],
IsProductCritical: False,
MissionType: String
}