NAV

<back to all web services

CallCenter1099Get

The following routes are available for this service:
GET/call-center/1099/{AccountNumber}/{Year}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class CallCenter1099Get implements IGet
    {
        public BigDecimal accountNumber = null;
        public Integer year = null;
        
        public BigDecimal getAccountNumber() { return accountNumber; }
        public CallCenter1099Get setAccountNumber(BigDecimal value) { this.accountNumber = value; return this; }
        public Integer getYear() { return year; }
        public CallCenter1099Get setYear(Integer value) { this.year = value; return this; }
    }

    public static class CallCenter1099GetResponse
    {
        public BigDecimal accountNumber = null;
        public Integer year = null;
        public BigDecimal merchandiseSales = null;
        public BigDecimal totalActualWithholdingToDate = null;
        public BigDecimal totalFutureWithholdingToDate = null;
        public BigDecimal totalEarnings = null;
        public ArrayList<TransactionDetail> transactionDetails = null;
        public ResponseStatus responseStatus = null;
        
        public BigDecimal getAccountNumber() { return accountNumber; }
        public CallCenter1099GetResponse setAccountNumber(BigDecimal value) { this.accountNumber = value; return this; }
        public Integer getYear() { return year; }
        public CallCenter1099GetResponse setYear(Integer value) { this.year = value; return this; }
        public BigDecimal getMerchandiseSales() { return merchandiseSales; }
        public CallCenter1099GetResponse setMerchandiseSales(BigDecimal value) { this.merchandiseSales = value; return this; }
        public BigDecimal getTotalActualWithholdingToDate() { return totalActualWithholdingToDate; }
        public CallCenter1099GetResponse setTotalActualWithholdingToDate(BigDecimal value) { this.totalActualWithholdingToDate = value; return this; }
        public BigDecimal getTotalFutureWithholdingToDate() { return totalFutureWithholdingToDate; }
        public CallCenter1099GetResponse setTotalFutureWithholdingToDate(BigDecimal value) { this.totalFutureWithholdingToDate = value; return this; }
        public BigDecimal getTotalEarnings() { return totalEarnings; }
        public CallCenter1099GetResponse setTotalEarnings(BigDecimal value) { this.totalEarnings = value; return this; }
        public ArrayList<TransactionDetail> getTransactionDetails() { return transactionDetails; }
        public CallCenter1099GetResponse setTransactionDetails(ArrayList<TransactionDetail> value) { this.transactionDetails = value; return this; }
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public CallCenter1099GetResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

    public static class TransactionDetail
    {
        public Date date = null;
        public String transactionNumber = null;
        public String description = null;
        public BigDecimal value1099 = null;
        
        public Date getDate() { return date; }
        public TransactionDetail setDate(Date value) { this.date = value; return this; }
        public String getTransactionNumber() { return transactionNumber; }
        public TransactionDetail setTransactionNumber(String value) { this.transactionNumber = value; return this; }
        public String getDescription() { return description; }
        public TransactionDetail setDescription(String value) { this.description = value; return this; }
        public BigDecimal getValue1099() { return value1099; }
        public TransactionDetail setValue1099(BigDecimal value) { this.value1099 = value; return this; }
    }

}

Java CallCenter1099Get 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 /call-center/1099/{AccountNumber}/{Year} HTTP/1.1 
Host: extensions.avon.ca 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"accountNumber":0,"year":0,"merchandiseSales":0,"totalActualWithholdingToDate":0,"totalFutureWithholdingToDate":0,"totalEarnings":0,"transactionDetails":[{"date":"0001-01-01T00:00:00.0000000","transactionNumber":"String","description":"String","value1099":0}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}