| All Verbs | /UpdateStock | ||
|---|---|---|---|
| All Verbs | /StockUpdate |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class StockUpdate
{
/**
* Internal DB identifier
*/
@ApiMember(Description="Internal DB identifier", IsRequired=true)
public Integer StockID = null;
/**
* 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)
public String Gtin = null;
/**
* Location of main stock or stock address
*/
@ApiMember(Description="Location of main stock or stock address")
public String StockLocation = null;
/**
* Quantity physically stocked at this location
*/
@ApiMember(Description="Quantity physically stocked at this location")
public Double PhysicalQuantityStockLocation = null;
/**
* Location of reserve stock (2nd stock location address)
*/
@ApiMember(Description="Location of reserve stock (2nd stock location address)")
public String ReserveStockLocation = null;
/**
* Quantity physically stocked at this location
*/
@ApiMember(Description="Quantity physically stocked at this location")
public Double PhysicalQuantityReserveStockLocation = null;
/**
* Product ID
*/
@ApiMember(Description="Product ID")
public String ProductID = null;
/**
* Second product ID E.g. in case of variant
*/
@ApiMember(Description="Second product ID E.g. in case of variant")
public String ProductAttributeID = null;
/**
* Product reference
*/
@ApiMember(Description="Product reference")
public String Reference = null;
/**
* GTIN of variant
*/
@ApiMember(Description="GTIN of variant")
public String GtinAttribute = null;
/**
* Product label
*/
@ApiMember(Description="Product label")
public String Label = null;
/**
* NbSKUInPackage
*/
@ApiMember(Description="NbSKUInPackage")
public Integer NbSKUInPackage = null;
/**
* PackageReference
*/
@ApiMember(Description="PackageReference")
public String PackageReference = null;
/**
* NbSKUInPackage2
*/
@ApiMember(Description="NbSKUInPackage2")
public Integer NbSKUInPackage2 = null;
/**
* PackageReference2
*/
@ApiMember(Description="PackageReference2")
public String PackageReference2 = null;
/**
* Weight
*/
@ApiMember(Description="Weight")
public String Weight = null;
/**
* List of stock Additional
*/
@ApiMember(Description="List of stock Additional")
public ArrayList<StockAdditional> StockAdditionals = new ArrayList<StockAdditional>();
public Integer getStockID() { return StockID; }
public StockUpdate setStockID(Integer value) { this.StockID = value; return this; }
public String getGtin() { return Gtin; }
public StockUpdate setGtin(String value) { this.Gtin = value; return this; }
public String getStockLocation() { return StockLocation; }
public StockUpdate setStockLocation(String value) { this.StockLocation = value; return this; }
public Double getPhysicalQuantityStockLocation() { return PhysicalQuantityStockLocation; }
public StockUpdate setPhysicalQuantityStockLocation(Double value) { this.PhysicalQuantityStockLocation = value; return this; }
public String getReserveStockLocation() { return ReserveStockLocation; }
public StockUpdate setReserveStockLocation(String value) { this.ReserveStockLocation = value; return this; }
public Double getPhysicalQuantityReserveStockLocation() { return PhysicalQuantityReserveStockLocation; }
public StockUpdate setPhysicalQuantityReserveStockLocation(Double value) { this.PhysicalQuantityReserveStockLocation = value; return this; }
public String getProductID() { return ProductID; }
public StockUpdate setProductID(String value) { this.ProductID = value; return this; }
public String getProductAttributeID() { return ProductAttributeID; }
public StockUpdate setProductAttributeID(String value) { this.ProductAttributeID = value; return this; }
public String getReference() { return Reference; }
public StockUpdate setReference(String value) { this.Reference = value; return this; }
public String getGtinAttribute() { return GtinAttribute; }
public StockUpdate setGtinAttribute(String value) { this.GtinAttribute = value; return this; }
public String getLabel() { return Label; }
public StockUpdate setLabel(String value) { this.Label = value; return this; }
public Integer getNbSKUInPackage() { return NbSKUInPackage; }
public StockUpdate setNbSKUInPackage(Integer value) { this.NbSKUInPackage = value; return this; }
public String getPackageReference() { return PackageReference; }
public StockUpdate setPackageReference(String value) { this.PackageReference = value; return this; }
public Integer getNbSKUInPackage2() { return NbSKUInPackage2; }
public StockUpdate setNbSKUInPackage2(Integer value) { this.NbSKUInPackage2 = value; return this; }
public String getPackageReference2() { return PackageReference2; }
public StockUpdate setPackageReference2(String value) { this.PackageReference2 = value; return this; }
public String getWeight() { return Weight; }
public StockUpdate setWeight(String value) { this.Weight = value; return this; }
public ArrayList<StockAdditional> getStockAdditionals() { return StockAdditionals; }
public StockUpdate setStockAdditionals(ArrayList<StockAdditional> value) { this.StockAdditionals = value; return this; }
}
public static class StockAdditional
{
public Integer StockID = null;
public String Gtin = null;
public String StockLocation = null;
public Double PhysicalQuantityStockLocation = null;
public Integer getStockID() { return StockID; }
public StockAdditional setStockID(Integer value) { this.StockID = value; return this; }
public String getGtin() { return Gtin; }
public StockAdditional setGtin(String value) { this.Gtin = value; return this; }
public String getStockLocation() { return StockLocation; }
public StockAdditional setStockLocation(String value) { this.StockLocation = value; return this; }
public Double getPhysicalQuantityStockLocation() { return PhysicalQuantityStockLocation; }
public StockAdditional setPhysicalQuantityStockLocation(Double value) { this.PhysicalQuantityStockLocation = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /UpdateStock HTTP/1.1
Host: clouddemo.pickeos.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"StockID":0,"Gtin":"String","StockLocation":"String","PhysicalQuantityStockLocation":0,"ReserveStockLocation":"String","PhysicalQuantityReserveStockLocation":0,"ProductID":"String","ProductAttributeID":"String","Reference":"String","GtinAttribute":"String","Label":"String","NbSKUInPackage":0,"PackageReference":"String","NbSKUInPackage2":0,"PackageReference2":"String","Weight":"String","StockAdditionals":[{"StockID":0,"Gtin":"String","StockLocation":"String","PhysicalQuantityStockLocation":0}]}