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; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <NAVOpenOrderGetListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NAV.ServiceModel"> <Items> <NAVOpenOrderViewModel> <CampaignOfOrder>String</CampaignOfOrder> <CommissionableValueEarned>0</CommissionableValueEarned> <Created>0001-01-01T00:00:00</Created> <FinalTax>0</FinalTax> <OrderId>0</OrderId> <OrderNumber>String</OrderNumber> <OrderStatus>String</OrderStatus> <OrderStatusId>0</OrderStatusId> <OrderType>String</OrderType> <QualifyingValueEarned>0</QualifyingValueEarned> <ShippingCost>0</ShippingCost> <Subtotal>0</Subtotal> </NAVOpenOrderViewModel> </Items> <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types"> <d2p1:ErrorCode>String</d2p1:ErrorCode> <d2p1:Message>String</d2p1:Message> <d2p1:StackTrace>String</d2p1:StackTrace> <d2p1:Errors> <d2p1:ResponseError> <d2p1:ErrorCode>String</d2p1:ErrorCode> <d2p1:FieldName>String</d2p1:FieldName> <d2p1:Message>String</d2p1:Message> <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringstring> <d5p1:Key>String</d5p1:Key> <d5p1:Value>String</d5p1:Value> </d5p1:KeyValueOfstringstring> </d2p1:Meta> </d2p1:ResponseError> </d2p1:Errors> <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:KeyValueOfstringstring> <d3p1:Key>String</d3p1:Key> <d3p1:Value>String</d3p1:Value> </d3p1:KeyValueOfstringstring> </d2p1:Meta> </ResponseStatus> </NAVOpenOrderGetListResponse>