// @ApiResponse(Description="Communications Data for synching to Framework")
export class GetCommunicationDataResponse
{
/** @description Bin Row Version of the last update */
// @ApiMember(DataType="byte[]", Description="Bin Row Version of the last update", Name="BinRowVersion")
public BinRowVersion: string;
/** @description Communication Data string (compressed/zipped) */
// @ApiMember(DataType="string", Description="Communication Data string (compressed/zipped)", Name="Communications")
public Communications: string;
public ResponseStatus: ResponseStatus;
public constructor(init?: Partial<GetCommunicationDataResponse>) { (Object as any).assign(this, init); }
}
/** @description Retrieves communications from the Communication database to be saved to Framework */
// @Api(Description="Retrieves communications from the Communication database to be saved to Framework")
export class GetCommunicationData implements ISubscription
{
/** @description Bin Row Version of the last update */
// @ApiMember(DataType="byte[]", Description="Bin Row Version of the last update", Name="BinRowVersion")
public BinRowVersion: string;
/** @description Suite Data Source Instance Id to determine which licensees data to retrieve. */
// @ApiMember(DataType="Guid", Description="Suite Data Source Instance Id to determine which licensees data to retrieve.", Name="SuiteDataSourceInstanceId")
public SuiteDataSourceInstanceId: string;
/** @description Batch Call Number. */
// @ApiMember(DataType="int", Description="Batch Call Number.", Name="BatchNumber")
public BatchNumber: number;
/** @description Number of records to retrieve per call. */
// @ApiMember(DataType="int", Description="Number of records to retrieve per call.", Name="BatchSize")
public BatchSize: number;
public IgnoreValidation: boolean;
public constructor(init?: Partial<GetCommunicationData>) { (Object as any).assign(this, init); }
}
TypeScript GetCommunicationData DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsonl/reply/GetCommunicationData HTTP/1.1
Host: gatewayframeworkapi.pstpf.com.au
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"BinRowVersion":"AA==","BatchNumber":0,"BatchSize":0,"IgnoreValidation":true}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"BinRowVersion":"AA==","Communications":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}