| All Verbs | /UpdateGtinStockByLocation |
|---|
import 'package:servicestack/servicestack.dart';
class UpdateGtinStockByLocation 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...)", IsRequired=true)
String? Gtin;
/**
* Location in stock where to change GTIN
*/
// @ApiMember(Description="Location in stock where to change GTIN", IsRequired=true)
String? StockLocation;
UpdateGtinStockByLocation({this.Gtin,this.StockLocation});
UpdateGtinStockByLocation.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Gtin = json['Gtin'];
StockLocation = json['StockLocation'];
return this;
}
Map<String, dynamic> toJson() => {
'Gtin': Gtin,
'StockLocation': StockLocation
};
getTypeName() => "UpdateGtinStockByLocation";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'clouddemo.pickeos.com', types: <String, TypeInfo> {
'UpdateGtinStockByLocation': TypeInfo(TypeOf.Class, create:() => UpdateGtinStockByLocation()),
});
Dart UpdateGtinStockByLocation DTOs
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.
POST /UpdateGtinStockByLocation HTTP/1.1
Host: clouddemo.pickeos.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<UpdateGtinStockByLocation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoToLightAPI">
<Gtin>String</Gtin>
<StockLocation>String</StockLocation>
</UpdateGtinStockByLocation>