Go-to-Light Service 4.0.0.2397 - 121 - API License to Cloud Demo

<back to all web services

UpdatePhysicalStockQuantity

Requires Authentication
The following routes are available for this service:
All Verbs/UpdatePhysicalStockQuantity
import 'package:servicestack/servicestack.dart';

class UpdatePhysicalStockQuantity 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;

    /**
    * Quantity moved (delta quantity)
    */
    // @ApiMember(Description="Quantity moved (delta quantity)")
    double? DeltaQuantity;

    UpdatePhysicalStockQuantity({this.Gtin,this.DeltaQuantity});
    UpdatePhysicalStockQuantity.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Gtin = json['Gtin'];
        DeltaQuantity = JsonConverters.toDouble(json['DeltaQuantity']);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Gtin': Gtin,
        'DeltaQuantity': DeltaQuantity
    };

    getTypeName() => "UpdatePhysicalStockQuantity";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'clouddemo.pickeos.com', types: <String, TypeInfo> {
    'UpdatePhysicalStockQuantity': TypeInfo(TypeOf.Class, create:() => UpdatePhysicalStockQuantity()),
});

Dart UpdatePhysicalStockQuantity DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /UpdatePhysicalStockQuantity HTTP/1.1 
Host: clouddemo.pickeos.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Gtin: String,
	DeltaQuantity: 0
}