| All Verbs | /GetVariantStockByGtinAndID |
|---|
import 'package:servicestack/servicestack.dart';
class GetVariantStockByGtinAndID implements IConvertible
{
/**
* Global Trade Item Number : usually is the barcode of product (EAN, UPC, Gencode, etc...)
*/
// @ApiMember(Description="Global Trade Item Number : usually is the barcode of product (EAN, UPC, Gencode, etc...)")
String? Gtin;
/**
* Id of this stock
*/
// @ApiMember(Description="Id of this stock")
int? StockID;
GetVariantStockByGtinAndID({this.Gtin,this.StockID});
GetVariantStockByGtinAndID.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Gtin = json['Gtin'];
StockID = json['StockID'];
return this;
}
Map<String, dynamic> toJson() => {
'Gtin': Gtin,
'StockID': StockID
};
getTypeName() => "GetVariantStockByGtinAndID";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'clouddemo.pickeos.com', types: <String, TypeInfo> {
'GetVariantStockByGtinAndID': TypeInfo(TypeOf.Class, create:() => GetVariantStockByGtinAndID()),
});
Dart GetVariantStockByGtinAndID 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.
POST /GetVariantStockByGtinAndID HTTP/1.1
Host: clouddemo.pickeos.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"Gtin":"String","StockID":0}