| POST | /uplift/finalise |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class FinaliseUplift extends ApiServiceRequest
{
public Integer upliftId = null;
public UUID incompleteUpliftId = null;
public Integer getUpliftId() { return upliftId; }
public FinaliseUplift setUpliftId(Integer value) { this.upliftId = value; return this; }
public UUID getIncompleteUpliftId() { return incompleteUpliftId; }
public FinaliseUplift setIncompleteUpliftId(UUID value) { this.incompleteUpliftId = value; return this; }
}
public static class ApiServiceRequest implements IServiceRequest, IHasApiKey, IHasDeviceInfo
{
/**
* The API Key required for authentication
*/
@ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true)
public String apiKey = null;
/**
* Latitude of the user making this request
*/
@ApiMember(DataType="double", Description="Latitude of the user making this request")
public Double latitude = null;
/**
* Longitude of the user making this request
*/
@ApiMember(DataType="double", Description="Longitude of the user making this request")
public Double longitude = null;
public String getApiKey() { return apiKey; }
public ApiServiceRequest setApiKey(String value) { this.apiKey = value; return this; }
public Double getLatitude() { return latitude; }
public ApiServiceRequest setLatitude(Double value) { this.latitude = value; return this; }
public Double getLongitude() { return longitude; }
public ApiServiceRequest setLongitude(Double value) { this.longitude = value; return this; }
}
public static class SaveUpliftResponse extends ApiServiceResponse
{
public Integer upliftId = null;
public UUID upliftAuthRequestId = null;
public ArrayList<UpliftSealData> seals = null;
public UpliftSealData unbaggedItems = null;
public ArrayList<UpliftClaimData> claims = null;
public Boolean deleteFromDevice = null;
public ArrayList<String> imageIds = null;
public Boolean invalidAntelSeal = null;
public Integer getUpliftId() { return upliftId; }
public SaveUpliftResponse setUpliftId(Integer value) { this.upliftId = value; return this; }
public UUID getUpliftAuthRequestId() { return upliftAuthRequestId; }
public SaveUpliftResponse setUpliftAuthRequestId(UUID value) { this.upliftAuthRequestId = value; return this; }
public ArrayList<UpliftSealData> getSeals() { return seals; }
public SaveUpliftResponse setSeals(ArrayList<UpliftSealData> value) { this.seals = value; return this; }
public UpliftSealData getUnbaggedItems() { return unbaggedItems; }
public SaveUpliftResponse setUnbaggedItems(UpliftSealData value) { this.unbaggedItems = value; return this; }
public ArrayList<UpliftClaimData> getClaims() { return claims; }
public SaveUpliftResponse setClaims(ArrayList<UpliftClaimData> value) { this.claims = value; return this; }
public Boolean isDeleteFromDevice() { return deleteFromDevice; }
public SaveUpliftResponse setDeleteFromDevice(Boolean value) { this.deleteFromDevice = value; return this; }
public ArrayList<String> getImageIds() { return imageIds; }
public SaveUpliftResponse setImageIds(ArrayList<String> value) { this.imageIds = value; return this; }
public Boolean isInvalidAntelSeal() { return invalidAntelSeal; }
public SaveUpliftResponse setInvalidAntelSeal(Boolean value) { this.invalidAntelSeal = value; return this; }
}
public static class ApiServiceResponse implements IServiceResponse
{
/**
* Information about the response.
*/
@ApiMember(Description="Information about the response.", IsRequired=true)
public String description = null;
/**
* Heading or summary of the response.
*/
@ApiMember(Description="Heading or summary of the response.", IsRequired=true)
public String heading = null;
/**
* Did the intended operation for this response complete successfully?
*/
@ApiMember(DataType="boolean", Description="Did the intended operation for this response complete successfully?", IsRequired=true)
public Boolean wasSuccessful = null;
public ResponseStatus responseStatus = null;
public String getDescription() { return description; }
public ApiServiceResponse setDescription(String value) { this.description = value; return this; }
public String getHeading() { return heading; }
public ApiServiceResponse setHeading(String value) { this.heading = value; return this; }
public Boolean isWasSuccessful() { return wasSuccessful; }
public ApiServiceResponse setWasSuccessful(Boolean value) { this.wasSuccessful = value; return this; }
public ResponseStatus getResponseStatus() { return responseStatus; }
public ApiServiceResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
}
public static class UpliftSealData
{
public Boolean unbagged = null;
public String sealNumber = null;
public String antelSealNumber = null;
public ArrayList<UpliftProductData> products = null;
public Double totalPrice = null;
public Double totalQuantity = null;
public Double netWeight = null;
public Double grossWeight = null;
public Boolean billableSeal = null;
public Boolean invalidAntelSealNumber = null;
public Boolean isUnbagged() { return unbagged; }
public UpliftSealData setUnbagged(Boolean value) { this.unbagged = value; return this; }
public String getSealNumber() { return sealNumber; }
public UpliftSealData setSealNumber(String value) { this.sealNumber = value; return this; }
public String getAntelSealNumber() { return antelSealNumber; }
public UpliftSealData setAntelSealNumber(String value) { this.antelSealNumber = value; return this; }
public ArrayList<UpliftProductData> getProducts() { return products; }
public UpliftSealData setProducts(ArrayList<UpliftProductData> value) { this.products = value; return this; }
public Double getTotalPrice() { return totalPrice; }
public UpliftSealData setTotalPrice(Double value) { this.totalPrice = value; return this; }
public Double getTotalQuantity() { return totalQuantity; }
public UpliftSealData setTotalQuantity(Double value) { this.totalQuantity = value; return this; }
public Double getNetWeight() { return netWeight; }
public UpliftSealData setNetWeight(Double value) { this.netWeight = value; return this; }
public Double getGrossWeight() { return grossWeight; }
public UpliftSealData setGrossWeight(Double value) { this.grossWeight = value; return this; }
public Boolean isBillableSeal() { return billableSeal; }
public UpliftSealData setBillableSeal(Boolean value) { this.billableSeal = value; return this; }
public Boolean isInvalidAntelSealNumber() { return invalidAntelSealNumber; }
public UpliftSealData setInvalidAntelSealNumber(Boolean value) { this.invalidAntelSealNumber = value; return this; }
}
public static class UpliftProductData
{
public Integer upliftProductId = null;
public Integer upliftId = null;
public Integer productId = null;
public BigDecimal unitPrice = null;
public String name = null;
public String category = null;
public String unitBarcode = null;
public String unitSize = null;
public BigDecimal unitWeight = null;
public String code = null;
public ArrayList<Object> upliftImages = null;
public Double quantity = null;
public BigDecimal value = null;
public Boolean priceOverMax = null;
public Boolean quantityOverMax = null;
public Boolean quantityOverRequirement = null;
public String serialNumber = null;
public String batchCode = null;
public Integer stockStatusId = null;
public String lotNumber = null;
public String expiryDate = null;
public String manufactureDate = null;
public Integer getUpliftProductId() { return upliftProductId; }
public UpliftProductData setUpliftProductId(Integer value) { this.upliftProductId = value; return this; }
public Integer getUpliftId() { return upliftId; }
public UpliftProductData setUpliftId(Integer value) { this.upliftId = value; return this; }
public Integer getProductId() { return productId; }
public UpliftProductData setProductId(Integer value) { this.productId = value; return this; }
public BigDecimal getUnitPrice() { return unitPrice; }
public UpliftProductData setUnitPrice(BigDecimal value) { this.unitPrice = value; return this; }
public String getName() { return name; }
public UpliftProductData setName(String value) { this.name = value; return this; }
public String getCategory() { return category; }
public UpliftProductData setCategory(String value) { this.category = value; return this; }
public String getUnitBarcode() { return unitBarcode; }
public UpliftProductData setUnitBarcode(String value) { this.unitBarcode = value; return this; }
public String getUnitSize() { return unitSize; }
public UpliftProductData setUnitSize(String value) { this.unitSize = value; return this; }
public BigDecimal getUnitWeight() { return unitWeight; }
public UpliftProductData setUnitWeight(BigDecimal value) { this.unitWeight = value; return this; }
public String getCode() { return code; }
public UpliftProductData setCode(String value) { this.code = value; return this; }
public ArrayList<Object> getUpliftImages() { return upliftImages; }
public UpliftProductData setUpliftImages(ArrayList<Object> value) { this.upliftImages = value; return this; }
public Double getQuantity() { return quantity; }
public UpliftProductData setQuantity(Double value) { this.quantity = value; return this; }
public BigDecimal getValue() { return value; }
public UpliftProductData setValue(BigDecimal value) { this.value = value; return this; }
public Boolean isPriceOverMax() { return priceOverMax; }
public UpliftProductData setPriceOverMax(Boolean value) { this.priceOverMax = value; return this; }
public Boolean isQuantityOverMax() { return quantityOverMax; }
public UpliftProductData setQuantityOverMax(Boolean value) { this.quantityOverMax = value; return this; }
public Boolean isQuantityOverRequirement() { return quantityOverRequirement; }
public UpliftProductData setQuantityOverRequirement(Boolean value) { this.quantityOverRequirement = value; return this; }
public String getSerialNumber() { return serialNumber; }
public UpliftProductData setSerialNumber(String value) { this.serialNumber = value; return this; }
public String getBatchCode() { return batchCode; }
public UpliftProductData setBatchCode(String value) { this.batchCode = value; return this; }
public Integer getStockStatusId() { return stockStatusId; }
public UpliftProductData setStockStatusId(Integer value) { this.stockStatusId = value; return this; }
public String getLotNumber() { return lotNumber; }
public UpliftProductData setLotNumber(String value) { this.lotNumber = value; return this; }
public String getExpiryDate() { return expiryDate; }
public UpliftProductData setExpiryDate(String value) { this.expiryDate = value; return this; }
public String getManufactureDate() { return manufactureDate; }
public UpliftProductData setManufactureDate(String value) { this.manufactureDate = value; return this; }
}
public static class UpliftClaimData
{
public Integer upliftClaimId = null;
public Integer claimUnits = null;
public String claimNumber = null;
public BigDecimal claimValue = null;
public ArrayList<Object> claimDocumentImages = null;
public String returnOrderNumber = null;
public Integer lineCount = null;
public Integer getUpliftClaimId() { return upliftClaimId; }
public UpliftClaimData setUpliftClaimId(Integer value) { this.upliftClaimId = value; return this; }
public Integer getClaimUnits() { return claimUnits; }
public UpliftClaimData setClaimUnits(Integer value) { this.claimUnits = value; return this; }
public String getClaimNumber() { return claimNumber; }
public UpliftClaimData setClaimNumber(String value) { this.claimNumber = value; return this; }
public BigDecimal getClaimValue() { return claimValue; }
public UpliftClaimData setClaimValue(BigDecimal value) { this.claimValue = value; return this; }
public ArrayList<Object> getClaimDocumentImages() { return claimDocumentImages; }
public UpliftClaimData setClaimDocumentImages(ArrayList<Object> value) { this.claimDocumentImages = value; return this; }
public String getReturnOrderNumber() { return returnOrderNumber; }
public UpliftClaimData setReturnOrderNumber(String value) { this.returnOrderNumber = value; return this; }
public Integer getLineCount() { return lineCount; }
public UpliftClaimData setLineCount(Integer value) { this.lineCount = value; return this; }
}
}
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 /uplift/finalise HTTP/1.1
Host: antel.api.dev.86degrees.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"upliftId":0,"apiKey":"String","latitude":0,"longitude":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"upliftId":0,"seals":[{"unbagged":false,"sealNumber":"String","antelSealNumber":"String","products":[{"upliftProductId":0,"upliftId":0,"productId":0,"unitPrice":0,"name":"String","category":"String","unitBarcode":"String","unitSize":"String","unitWeight":0,"code":"String","upliftImages":[{}],"quantity":0,"value":0,"priceOverMax":false,"quantityOverMax":false,"quantityOverRequirement":false,"serialNumber":"String","batchCode":"String","stockStatusId":0,"lotNumber":"String","expiryDate":"String","manufactureDate":"String"}],"totalPrice":0,"totalQuantity":0,"netWeight":0,"grossWeight":0,"billableSeal":false,"invalidAntelSealNumber":false}],"unbaggedItems":{"unbagged":false,"sealNumber":"String","antelSealNumber":"String","products":[{"upliftProductId":0,"upliftId":0,"productId":0,"unitPrice":0,"name":"String","category":"String","unitBarcode":"String","unitSize":"String","unitWeight":0,"code":"String","upliftImages":[{}],"quantity":0,"value":0,"priceOverMax":false,"quantityOverMax":false,"quantityOverRequirement":false,"serialNumber":"String","batchCode":"String","stockStatusId":0,"lotNumber":"String","expiryDate":"String","manufactureDate":"String"}],"totalPrice":0,"totalQuantity":0,"netWeight":0,"grossWeight":0,"billableSeal":false,"invalidAntelSealNumber":false},"claims":[{"upliftClaimId":0,"claimUnits":0,"claimNumber":"String","claimValue":0,"claimDocumentImages":[{}],"returnOrderNumber":"String","lineCount":0}],"deleteFromDevice":false,"imageIds":["String"],"invalidAntelSeal":false,"description":"String","heading":"String","wasSuccessful":false,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}