GET | /call-center/activities/{AccountNumber}/{TransactionType}/{Page} | ||
---|---|---|---|
GET | /call-center/activities/{AccountNumber}/{TransactionType} |
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class CallCenterActivityTrackerGetList implements IGet
{
public BigDecimal accountNumber = null;
public String transactionType = null;
public Integer page = null;
public BigDecimal getAccountNumber() { return accountNumber; }
public CallCenterActivityTrackerGetList setAccountNumber(BigDecimal value) { this.accountNumber = value; return this; }
public String getTransactionType() { return transactionType; }
public CallCenterActivityTrackerGetList setTransactionType(String value) { this.transactionType = value; return this; }
public Integer getPage() { return page; }
public CallCenterActivityTrackerGetList setPage(Integer value) { this.page = value; return this; }
}
public static class CallCenterActivityTrackerGetListResponse extends GetListResponse<CallCenterActivityViewModel>
{
public Integer page = null;
public Boolean morePages = null;
public Integer getPage() { return page; }
public CallCenterActivityTrackerGetListResponse setPage(Integer value) { this.page = value; return this; }
public Boolean isMorePages() { return morePages; }
public CallCenterActivityTrackerGetListResponse setMorePages(Boolean value) { this.morePages = value; return this; }
}
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 CallCenterActivityViewModel
{
public String transactionType = null;
public BigDecimal transactionAmount = null;
public String transactionDescription = null;
public String transactionDate = null;
public Date transactionTime = null;
public BigDecimal transactionNet = null;
public BigDecimal earningPercentage = null;
public BigDecimal totalPaymentAmount = null;
public BigDecimal balance = null;
public String transactionCode = null;
public String campaign = null;
public BigDecimal freeAmount = null;
public BigDecimal bonusAmount = null;
public BigDecimal discountPercentage = null;
public BigDecimal taxRate = null;
public String invoiceNumber = null;
public String orderNumber = null;
public BigDecimal retailAmount = null;
public BigDecimal customerServed = null;
public BigDecimal customerPrice = null;
public String operatorId = null;
public BigDecimal shippingFee = null;
public BigDecimal localTax = null;
public Date shipDate = null;
public String carrier = null;
public BigDecimal estimatedWeight = null;
public String cartonNumber = null;
public String valueBefore = null;
public String valueAfter = null;
public String getTransactionType() { return transactionType; }
public CallCenterActivityViewModel setTransactionType(String value) { this.transactionType = value; return this; }
public BigDecimal getTransactionAmount() { return transactionAmount; }
public CallCenterActivityViewModel setTransactionAmount(BigDecimal value) { this.transactionAmount = value; return this; }
public String getTransactionDescription() { return transactionDescription; }
public CallCenterActivityViewModel setTransactionDescription(String value) { this.transactionDescription = value; return this; }
public String getTransactionDate() { return transactionDate; }
public CallCenterActivityViewModel setTransactionDate(String value) { this.transactionDate = value; return this; }
public Date getTransactionTime() { return transactionTime; }
public CallCenterActivityViewModel setTransactionTime(Date value) { this.transactionTime = value; return this; }
public BigDecimal getTransactionNet() { return transactionNet; }
public CallCenterActivityViewModel setTransactionNet(BigDecimal value) { this.transactionNet = value; return this; }
public BigDecimal getEarningPercentage() { return earningPercentage; }
public CallCenterActivityViewModel setEarningPercentage(BigDecimal value) { this.earningPercentage = value; return this; }
public BigDecimal getTotalPaymentAmount() { return totalPaymentAmount; }
public CallCenterActivityViewModel setTotalPaymentAmount(BigDecimal value) { this.totalPaymentAmount = value; return this; }
public BigDecimal getBalance() { return balance; }
public CallCenterActivityViewModel setBalance(BigDecimal value) { this.balance = value; return this; }
public String getTransactionCode() { return transactionCode; }
public CallCenterActivityViewModel setTransactionCode(String value) { this.transactionCode = value; return this; }
public String getCampaign() { return campaign; }
public CallCenterActivityViewModel setCampaign(String value) { this.campaign = value; return this; }
public BigDecimal getFreeAmount() { return freeAmount; }
public CallCenterActivityViewModel setFreeAmount(BigDecimal value) { this.freeAmount = value; return this; }
public BigDecimal getBonusAmount() { return bonusAmount; }
public CallCenterActivityViewModel setBonusAmount(BigDecimal value) { this.bonusAmount = value; return this; }
public BigDecimal getDiscountPercentage() { return discountPercentage; }
public CallCenterActivityViewModel setDiscountPercentage(BigDecimal value) { this.discountPercentage = value; return this; }
public BigDecimal getTaxRate() { return taxRate; }
public CallCenterActivityViewModel setTaxRate(BigDecimal value) { this.taxRate = value; return this; }
public String getInvoiceNumber() { return invoiceNumber; }
public CallCenterActivityViewModel setInvoiceNumber(String value) { this.invoiceNumber = value; return this; }
public String getOrderNumber() { return orderNumber; }
public CallCenterActivityViewModel setOrderNumber(String value) { this.orderNumber = value; return this; }
public BigDecimal getRetailAmount() { return retailAmount; }
public CallCenterActivityViewModel setRetailAmount(BigDecimal value) { this.retailAmount = value; return this; }
public BigDecimal getCustomerServed() { return customerServed; }
public CallCenterActivityViewModel setCustomerServed(BigDecimal value) { this.customerServed = value; return this; }
public BigDecimal getCustomerPrice() { return customerPrice; }
public CallCenterActivityViewModel setCustomerPrice(BigDecimal value) { this.customerPrice = value; return this; }
public String getOperatorId() { return operatorId; }
public CallCenterActivityViewModel setOperatorId(String value) { this.operatorId = value; return this; }
public BigDecimal getShippingFee() { return shippingFee; }
public CallCenterActivityViewModel setShippingFee(BigDecimal value) { this.shippingFee = value; return this; }
public BigDecimal getLocalTax() { return localTax; }
public CallCenterActivityViewModel setLocalTax(BigDecimal value) { this.localTax = value; return this; }
public Date getShipDate() { return shipDate; }
public CallCenterActivityViewModel setShipDate(Date value) { this.shipDate = value; return this; }
public String getCarrier() { return carrier; }
public CallCenterActivityViewModel setCarrier(String value) { this.carrier = value; return this; }
public BigDecimal getEstimatedWeight() { return estimatedWeight; }
public CallCenterActivityViewModel setEstimatedWeight(BigDecimal value) { this.estimatedWeight = value; return this; }
public String getCartonNumber() { return cartonNumber; }
public CallCenterActivityViewModel setCartonNumber(String value) { this.cartonNumber = value; return this; }
public String getValueBefore() { return valueBefore; }
public CallCenterActivityViewModel setValueBefore(String value) { this.valueBefore = value; return this; }
public String getValueAfter() { return valueAfter; }
public CallCenterActivityViewModel setValueAfter(String value) { this.valueAfter = value; return this; }
}
}
Java CallCenterActivityTrackerGetList DTOs
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 /call-center/activities/{AccountNumber}/{TransactionType}/{Page} HTTP/1.1 Host: extensions.avon.ca Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <CallCenterActivityTrackerGetListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NAV.ServiceModel"> <Items> <CallCenterActivityViewModel> <Balance>0</Balance> <BonusAmount>0</BonusAmount> <Campaign>String</Campaign> <Carrier>String</Carrier> <CartonNumber>String</CartonNumber> <CustomerPrice>0</CustomerPrice> <CustomerServed>0</CustomerServed> <DiscountPercentage>0</DiscountPercentage> <EarningPercentage>0</EarningPercentage> <EstimatedWeight>0</EstimatedWeight> <FreeAmount>0</FreeAmount> <InvoiceNumber>String</InvoiceNumber> <LocalTax>0</LocalTax> <OperatorId>String</OperatorId> <OrderNumber>String</OrderNumber> <RetailAmount>0</RetailAmount> <ShipDate>0001-01-01T00:00:00</ShipDate> <ShippingFee>0</ShippingFee> <TaxRate>0</TaxRate> <TotalPaymentAmount>0</TotalPaymentAmount> <TransactionAmount>0</TransactionAmount> <TransactionCode>String</TransactionCode> <TransactionDate>String</TransactionDate> <TransactionDescription>String</TransactionDescription> <TransactionNet>0</TransactionNet> <TransactionTime>0001-01-01T00:00:00</TransactionTime> <TransactionType>String</TransactionType> <ValueAfter>String</ValueAfter> <ValueBefore>String</ValueBefore> </CallCenterActivityViewModel> </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> <MorePages>false</MorePages> <Page>0</Page> </CallCenterActivityTrackerGetListResponse>