NAV

<back to all web services

NAVOpenOrderGetList

The following routes are available for this service:
GET/pendingOrders/{BeeNumber}/{Days}
GET/pendingOrders/{BeeNumber}/{Days}/{Status}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class NAVOpenOrderGetList implements IGet
    {
        public BigDecimal beeNumber = null;
        public Integer days = null;
        public String status = null;
        
        public BigDecimal getBeeNumber() { return beeNumber; }
        public NAVOpenOrderGetList setBeeNumber(BigDecimal value) { this.beeNumber = value; return this; }
        public Integer getDays() { return days; }
        public NAVOpenOrderGetList setDays(Integer value) { this.days = value; return this; }
        public String getStatus() { return status; }
        public NAVOpenOrderGetList setStatus(String value) { this.status = value; return this; }
    }

    public static class NAVOpenOrderGetListResponse extends GetListResponse<NAVOpenOrderViewModel>
    {
        
    }

    public static class GetListResponse<TEntity>
    {
        public ArrayList<TEntity> items = null;
        public ResponseStatus responseStatus = null;
        
        public ArrayList<TEntity> getItems() { return items; }
        public GetListResponse<TEntity> setItems(ArrayList<TEntity> value) { this.items = value; return this; }
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public GetListResponse<TEntity> setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

    public static class NAVOpenOrderViewModel
    {
        public String orderNumber = null;
        public Integer orderId = null;
        public Integer orderStatusId = null;
        public String orderStatus = null;
        public Date created = null;
        public String orderType = null;
        public BigDecimal subtotal = null;
        public BigDecimal shippingCost = null;
        public BigDecimal finalTax = null;
        public BigDecimal commissionableValueEarned = null;
        public BigDecimal qualifyingValueEarned = null;
        public String campaignOfOrder = null;
        
        public String getOrderNumber() { return orderNumber; }
        public NAVOpenOrderViewModel setOrderNumber(String value) { this.orderNumber = value; return this; }
        public Integer getOrderId() { return orderId; }
        public NAVOpenOrderViewModel setOrderId(Integer value) { this.orderId = value; return this; }
        public Integer getOrderStatusId() { return orderStatusId; }
        public NAVOpenOrderViewModel setOrderStatusId(Integer value) { this.orderStatusId = value; return this; }
        public String getOrderStatus() { return orderStatus; }
        public NAVOpenOrderViewModel setOrderStatus(String value) { this.orderStatus = value; return this; }
        public Date getCreated() { return created; }
        public NAVOpenOrderViewModel setCreated(Date value) { this.created = value; return this; }
        public String getOrderType() { return orderType; }
        public NAVOpenOrderViewModel setOrderType(String value) { this.orderType = value; return this; }
        public BigDecimal getSubtotal() { return subtotal; }
        public NAVOpenOrderViewModel setSubtotal(BigDecimal value) { this.subtotal = value; return this; }
        public BigDecimal getShippingCost() { return shippingCost; }
        public NAVOpenOrderViewModel setShippingCost(BigDecimal value) { this.shippingCost = value; return this; }
        public BigDecimal getFinalTax() { return finalTax; }
        public NAVOpenOrderViewModel setFinalTax(BigDecimal value) { this.finalTax = value; return this; }
        public BigDecimal getCommissionableValueEarned() { return commissionableValueEarned; }
        public NAVOpenOrderViewModel setCommissionableValueEarned(BigDecimal value) { this.commissionableValueEarned = value; return this; }
        public BigDecimal getQualifyingValueEarned() { return qualifyingValueEarned; }
        public NAVOpenOrderViewModel setQualifyingValueEarned(BigDecimal value) { this.qualifyingValueEarned = value; return this; }
        public String getCampaignOfOrder() { return campaignOfOrder; }
        public NAVOpenOrderViewModel setCampaignOfOrder(String value) { this.campaignOfOrder = value; return this; }
    }

}

Java NAVOpenOrderGetList DTOs

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

HTTP + JSON

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

GET /pendingOrders/{BeeNumber}/{Days} HTTP/1.1 
Host: extensions.avon.ca 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"items":[{"orderNumber":"String","orderId":0,"orderStatusId":0,"orderStatus":"String","created":"0001-01-01T00:00:00.0000000","orderType":"String","subtotal":0,"shippingCost":0,"finalTax":0,"commissionableValueEarned":0,"qualifyingValueEarned":0,"campaignOfOrder":"String"}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}