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 .xml suffix or ?format=xml

HTTP + XML

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/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CallCenter1099GetResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NAV.ServiceModel">
  <AccountNumber>0</AccountNumber>
  <MerchandiseSales>0</MerchandiseSales>
  <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>
  <TotalActualWithholdingToDate>0</TotalActualWithholdingToDate>
  <TotalEarnings>0</TotalEarnings>
  <TotalFutureWithholdingToDate>0</TotalFutureWithholdingToDate>
  <TransactionDetails>
    <TransactionDetail>
      <Date>0001-01-01T00:00:00</Date>
      <Description>String</Description>
      <TransactionNumber>String</TransactionNumber>
      <Value1099>0</Value1099>
    </TransactionDetail>
  </TransactionDetails>
  <Year>0</Year>
</CallCenter1099GetResponse>