| GET | /call-center/1099/{AccountNumber}/{Year} |
|---|
export class TransactionDetail
{
public date?: string;
public transactionNumber?: string;
public description?: string;
public value1099?: number;
public constructor(init?: Partial<TransactionDetail>) { (Object as any).assign(this, init); }
}
export class CallCenter1099GetResponse
{
public accountNumber?: number;
public year?: number;
public merchandiseSales?: number;
public totalActualWithholdingToDate?: number;
public totalFutureWithholdingToDate?: number;
public totalEarnings?: number;
public transactionDetails?: TransactionDetail[];
public responseStatus?: ResponseStatus;
public constructor(init?: Partial<CallCenter1099GetResponse>) { (Object as any).assign(this, init); }
}
export class CallCenter1099Get implements IGet
{
public accountNumber?: number;
public year?: number;
public constructor(init?: Partial<CallCenter1099Get>) { (Object as any).assign(this, init); }
}
TypeScript CallCenter1099Get DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
accountNumber: 0,
year: 0,
merchandiseSales: 0,
totalActualWithholdingToDate: 0,
totalFutureWithholdingToDate: 0,
totalEarnings: 0,
transactionDetails:
[
{
date: 0001-01-01T00:00:00,
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
}
}
}