AIM Web Services

<back to all web services

GetPOSTotalsRequest

In development, not yet for public use.

The following routes are available for this service:
POST/api/GetPOSTotals
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    /**
    * In development, not yet for public use.
    */
    @DataContract
    public static class GetPOSTotalsRequest extends BaseSecureRequest
    {
        @DataMember
        public Integer Acct = null;

        @DataMember
        public Long LocId = null;

        @DataMember
        public Long TaxId = null;

        @DataMember
        public ArrayList<PosLineItem> Items = null;

        /**
        * MANUAL, BLANKET_PERCENT, BLANKET_AMOUNT, BACK_INTO_TOTAL, or BACK_INTO_TOTAL_WITH_TAX. Defaults to Manual. No line item discounts can be set unless this is MANUAL.
        */
        @DataMember
        @ApiMember(Description="MANUAL, BLANKET_PERCENT, BLANKET_AMOUNT, BACK_INTO_TOTAL, or BACK_INTO_TOTAL_WITH_TAX. Defaults to Manual. No line item discounts can be set unless this is MANUAL.", Name="DiscountMode", ParameterType="query")
        public String DiscountMode = null;

        @DataMember
        public BigDecimal DiscountDetail = null;
        
        public Integer getAcct() { return Acct; }
        public GetPOSTotalsRequest setAcct(Integer value) { this.Acct = value; return this; }
        public Long getLocId() { return LocId; }
        public GetPOSTotalsRequest setLocId(Long value) { this.LocId = value; return this; }
        public Long getTaxId() { return TaxId; }
        public GetPOSTotalsRequest setTaxId(Long value) { this.TaxId = value; return this; }
        public ArrayList<PosLineItem> getItems() { return Items; }
        public GetPOSTotalsRequest setItems(ArrayList<PosLineItem> value) { this.Items = value; return this; }
        public String getDiscountMode() { return DiscountMode; }
        public GetPOSTotalsRequest setDiscountMode(String value) { this.DiscountMode = value; return this; }
        public BigDecimal getDiscountDetail() { return DiscountDetail; }
        public GetPOSTotalsRequest setDiscountDetail(BigDecimal value) { this.DiscountDetail = value; return this; }
    }

    @DataContract
    public static class BaseSecureRequest extends BaseRequest
    {
        /**
        * 
        */
        @DataMember
        @ApiMember(DataType="string", Description="", Name="Token", ParameterType="Header")
        public String Token = null;

        /**
        * 
        */
        @DataMember
        @ApiMember(DataType="string", Description="", Name="DeviceId", ParameterType="Header")
        public String DeviceId = null;

        /**
        * 
        */
        @DataMember
        @ApiMember(DataType="string", Description="", IsRequired=true, Name="AppId", ParameterType="Header")
        public String AppId = null;
        
        public String getToken() { return Token; }
        public BaseSecureRequest setToken(String value) { this.Token = value; return this; }
        public String getDeviceId() { return DeviceId; }
        public BaseSecureRequest setDeviceId(String value) { this.DeviceId = value; return this; }
        public String getAppId() { return AppId; }
        public BaseSecureRequest setAppId(String value) { this.AppId = value; return this; }
    }

    @DataContract
    public static class BaseRequest
    {
        /**
        * This is your AIM API Key provided by Tri-Tech
        */
        @DataMember
        @ApiMember(DataType="string", Description="This is your AIM API Key provided by Tri-Tech", IsRequired=true, Name="ApiKey", ParameterType="header")
        public String ApiKey = null;

        @DataMember
        @ApiMember(DataType="string", Name="OAuthToken", ParameterType="header")
        public String OAuthToken = null;
        
        public String getApiKey() { return ApiKey; }
        public BaseRequest setApiKey(String value) { this.ApiKey = value; return this; }
        public String getOAuthToken() { return OAuthToken; }
        public BaseRequest setOAuthToken(String value) { this.OAuthToken = value; return this; }
    }

    @DataContract
    public static class PosLineItem implements IScanItem
    {
        @DataMember
        public Long SkuPk = null;

        @DataMember
        public Long SasPk = null;

        @DataMember
        public String Sku = null;

        @DataMember
        public String Serial = null;

        @DataMember
        public BigDecimal Quantity = null;

        @DataMember
        public ExceptionInfo ExceptionInfo = null;

        @DataMember
        public BigDecimal Discount = null;

        @DataMember
        public Integer NicsCat = null;

        @DataMember
        public Integer NicsSub = null;

        @DataMember
        public BigDecimal PriceOverride = null;

        @DataMember
        public Boolean AllowPriceOverrideToIgnoreMinPrice = null;

        @DataMember
        public String Notes = null;
        
        public Long getSkuPk() { return SkuPk; }
        public PosLineItem setSkuPk(Long value) { this.SkuPk = value; return this; }
        public Long getSasPk() { return SasPk; }
        public PosLineItem setSasPk(Long value) { this.SasPk = value; return this; }
        public String getSku() { return Sku; }
        public PosLineItem setSku(String value) { this.Sku = value; return this; }
        public String getSerial() { return Serial; }
        public PosLineItem setSerial(String value) { this.Serial = value; return this; }
        public BigDecimal getQuantity() { return Quantity; }
        public PosLineItem setQuantity(BigDecimal value) { this.Quantity = value; return this; }
        public ExceptionInfo getExceptionInfo() { return ExceptionInfo; }
        public PosLineItem setExceptionInfo(ExceptionInfo value) { this.ExceptionInfo = value; return this; }
        public BigDecimal getDiscount() { return Discount; }
        public PosLineItem setDiscount(BigDecimal value) { this.Discount = value; return this; }
        public Integer getNicsCat() { return NicsCat; }
        public PosLineItem setNicsCat(Integer value) { this.NicsCat = value; return this; }
        public Integer getNicsSub() { return NicsSub; }
        public PosLineItem setNicsSub(Integer value) { this.NicsSub = value; return this; }
        public BigDecimal getPriceOverride() { return PriceOverride; }
        public PosLineItem setPriceOverride(BigDecimal value) { this.PriceOverride = value; return this; }
        public Boolean isAllowPriceOverrideToIgnoreMinPrice() { return AllowPriceOverrideToIgnoreMinPrice; }
        public PosLineItem setAllowPriceOverrideToIgnoreMinPrice(Boolean value) { this.AllowPriceOverrideToIgnoreMinPrice = value; return this; }
        public String getNotes() { return Notes; }
        public PosLineItem setNotes(String value) { this.Notes = value; return this; }
    }

    @DataContract
    public static class ExceptionInfo
    {
        @DataMember
        public String Barcode = null;

        @DataMember
        public String Description = null;

        @DataMember
        public String Base64Image = null;

        @DataMember
        public Integer Category = null;

        @DataMember
        public Integer SubCategory = null;
        
        public String getBarcode() { return Barcode; }
        public ExceptionInfo setBarcode(String value) { this.Barcode = value; return this; }
        public String getDescription() { return Description; }
        public ExceptionInfo setDescription(String value) { this.Description = value; return this; }
        public String getBase64Image() { return Base64Image; }
        public ExceptionInfo setBase64Image(String value) { this.Base64Image = value; return this; }
        public Integer getCategory() { return Category; }
        public ExceptionInfo setCategory(Integer value) { this.Category = value; return this; }
        public Integer getSubCategory() { return SubCategory; }
        public ExceptionInfo setSubCategory(Integer value) { this.SubCategory = value; return this; }
    }

    @DataContract
    public static class GetPOSTotalsResponse extends BaseResponse
    {
        @DataMember
        public BigDecimal SubTotal = null;

        @DataMember
        public BigDecimal TaxTotal = null;

        @DataMember
        public BigDecimal Total = null;

        @DataMember
        public ArrayList<PosResponseItem> Items = null;
        
        public BigDecimal getSubTotal() { return SubTotal; }
        public GetPOSTotalsResponse setSubTotal(BigDecimal value) { this.SubTotal = value; return this; }
        public BigDecimal getTaxTotal() { return TaxTotal; }
        public GetPOSTotalsResponse setTaxTotal(BigDecimal value) { this.TaxTotal = value; return this; }
        public BigDecimal getTotal() { return Total; }
        public GetPOSTotalsResponse setTotal(BigDecimal value) { this.Total = value; return this; }
        public ArrayList<PosResponseItem> getItems() { return Items; }
        public GetPOSTotalsResponse setItems(ArrayList<PosResponseItem> value) { this.Items = value; return this; }
    }

    @DataContract
    public static class BaseResponse
    {
        /**
        * 
        */
        @DataMember
        @ApiMember(DataType="BaseResponseResult", Description="", Name="Status", ParameterType="body")
        public BaseResponseResult Status = null;
        
        public BaseResponseResult getStatus() { return Status; }
        public BaseResponse setStatus(BaseResponseResult value) { this.Status = value; return this; }
    }

    @DataContract
    public static class BaseResponseResult
    {
        /**
        * 
        */
        @DataMember
        @ApiMember(DataType="string", Description="", Name="StatusCode", ParameterType="body")
        public String StatusCode = null;

        /**
        * 
        */
        @DataMember
        @ApiMember(DataType="string", Description="", Name="Login", ParameterType="body")
        public String Login = null;

        /**
        * 
        */
        @DataMember
        @ApiMember(DataType="string", Description="", Name="ErrorCode", ParameterType="body")
        public String ErrorCode = null;

        /**
        * 
        */
        @DataMember
        @ApiMember(DataType="string", Description="", Name="ErrorDisplayText", ParameterType="body")
        public String ErrorDisplayText = null;

        /**
        * 
        */
        @DataMember
        @ApiMember(DataType="string", Description="", Name="ErrorMessage", ParameterType="body")
        public String ErrorMessage = null;

        /**
        * 
        */
        @DataMember
        @ApiMember(DataType="string", Description="", ExcludeInSchema=true, Name="DomainName", ParameterType="body")
        public String DomainName = null;

        /**
        * 
        */
        @DataMember
        @ApiMember(DataType="string", Description="", ExcludeInSchema=true, Name="IPAddress", ParameterType="body")
        public String IpAddress = null;
        
        public String getStatusCode() { return StatusCode; }
        public BaseResponseResult setStatusCode(String value) { this.StatusCode = value; return this; }
        public String getLogin() { return Login; }
        public BaseResponseResult setLogin(String value) { this.Login = value; return this; }
        public String getErrorCode() { return ErrorCode; }
        public BaseResponseResult setErrorCode(String value) { this.ErrorCode = value; return this; }
        public String getErrorDisplayText() { return ErrorDisplayText; }
        public BaseResponseResult setErrorDisplayText(String value) { this.ErrorDisplayText = value; return this; }
        public String getErrorMessage() { return ErrorMessage; }
        public BaseResponseResult setErrorMessage(String value) { this.ErrorMessage = value; return this; }
        public String getDomainName() { return DomainName; }
        public BaseResponseResult setDomainName(String value) { this.DomainName = value; return this; }
        public String getIpAddress() { return IpAddress; }
        public BaseResponseResult setIpAddress(String value) { this.IpAddress = value; return this; }
    }

    @DataContract
    public static class PosResponseItem extends PosLineItem
    {
        @DataMember
        public BigDecimal PriceEach = null;

        @DataMember
        public BigDecimal Price = null;

        @DataMember
        public Boolean Discountable = null;

        @DataMember
        public String ErrorMessage = null;
        
        public BigDecimal getPriceEach() { return PriceEach; }
        public PosResponseItem setPriceEach(BigDecimal value) { this.PriceEach = value; return this; }
        public BigDecimal getPrice() { return Price; }
        public PosResponseItem setPrice(BigDecimal value) { this.Price = value; return this; }
        public Boolean isDiscountable() { return Discountable; }
        public PosResponseItem setDiscountable(Boolean value) { this.Discountable = value; return this; }
        public String getErrorMessage() { return ErrorMessage; }
        public PosResponseItem setErrorMessage(String value) { this.ErrorMessage = value; return this; }
    }

}

Java GetPOSTotalsRequest DTOs

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

HTTP + OTHER

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

POST /api/GetPOSTotals HTTP/1.1 
Host: active-ewebservice.biz 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Acct":0,"LocId":0,"TaxId":0,"Items":[{"SkuPk":0,"SasPk":0,"Sku":"String","Serial":"String","Quantity":0,"ExceptionInfo":{"Barcode":"String","Description":"String","Base64Image":"String","Category":0,"SubCategory":0},"Discount":0,"NicsCat":0,"NicsSub":0,"PriceOverride":0,"AllowPriceOverrideToIgnoreMinPrice":false,"Notes":"String"}],"DiscountMode":"String","DiscountDetail":0,"Token":"String","DeviceId":"String","AppId":"String","ApiKey":"String","OAuthToken":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"SubTotal":0,"TaxTotal":0,"Total":0,"Items":[{"PriceEach":0,"Price":0,"Discountable":false,"ErrorMessage":"String","SkuPk":0,"SasPk":0,"Sku":"String","Serial":"String","Quantity":0,"ExceptionInfo":{"Barcode":"String","Description":"String","Base64Image":"String","Category":0,"SubCategory":0},"Discount":0,"NicsCat":0,"NicsSub":0,"PriceOverride":0,"AllowPriceOverrideToIgnoreMinPrice":false,"Notes":"String"}],"Status":{"StatusCode":"String","Login":"String","ErrorCode":"String","ErrorDisplayText":"String","ErrorMessage":"String","DomainName":"String","IpAddress":"String"}}