Trendsic Platform Service

<back to all web services

PayAppG702Request

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/projects/{ProjectID}/pay-apps/{PeriodNumber}/g702

export class DocField
{
    public Label: string;
    public Value: string;
    public Ref: string;
    public Emphasis: boolean;

    public constructor(init?: Partial<DocField>) { (Object as any).assign(this, init); }
}

export class DocColumn
{
    public Key: string;
    public Label: string;
    public Align: string;
    public Width: number;

    public constructor(init?: Partial<DocColumn>) { (Object as any).assign(this, init); }
}

export class DocTable
{
    public Caption: string;
    public Columns: DocColumn[] = [];
    public Rows: string[][] = [];
    public Footer: string[][] = [];

    public constructor(init?: Partial<DocTable>) { (Object as any).assign(this, init); }
}

export class DocBlock
{
    public Type: string;
    public Text: string;
    public Level: number;
    public Fields: DocField[] = [];
    public Columns: number;
    public Table: DocTable;
    public Signatures: string[] = [];

    public constructor(init?: Partial<DocBlock>) { (Object as any).assign(this, init); }
}

export class DocIssue
{
    public Severity: string;
    public Code: string;
    public Message: string;

    public constructor(init?: Partial<DocIssue>) { (Object as any).assign(this, init); }
}

export class PrintDocument
{
    public Kind: string;
    public Title: string;
    public Subtitle: string;
    public FileName: string;
    public Landscape: boolean;
    public GeneratedAtUtc: string;
    public GeneratedBy: string;
    public Meta: DocField[] = [];
    public Blocks: DocBlock[] = [];
    public Issues: DocIssue[] = [];
    public CanPrint: boolean;

    public constructor(init?: Partial<PrintDocument>) { (Object as any).assign(this, init); }
}

export class PrintableResponse
{
    public ResponseStatus: ResponseStatus;
    public Document: PrintDocument;

    public constructor(init?: Partial<PrintableResponse>) { (Object as any).assign(this, init); }
}

export class PayAppG702Request
{
    public ProjectID: number;
    public PeriodNumber: number;

    public constructor(init?: Partial<PayAppG702Request>) { (Object as any).assign(this, init); }
}

TypeScript PayAppG702Request DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/projects/{ProjectID}/pay-apps/{PeriodNumber}/g702 HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Document: 
	{
		Kind: String,
		Title: String,
		Subtitle: String,
		FileName: String,
		Landscape: False,
		GeneratedAtUtc: 0001-01-01,
		GeneratedBy: String,
		Meta: 
		[
			{
				Label: String,
				Value: String,
				Ref: String,
				Emphasis: False
			}
		],
		Blocks: 
		[
			{
				Type: String,
				Text: String,
				Level: 0,
				Fields: 
				[
					{
						Label: String,
						Value: String,
						Ref: String,
						Emphasis: False
					}
				],
				Columns: 0,
				Table: 
				{
					Caption: String,
					Columns: 
					[
						{
							Key: String,
							Label: String,
							Align: String,
							Width: 0
						}
					],
					Rows: 
					[
						[
							String
						]
					],
					Footer: 
					[
						[
							String
						]
					]
				},
				Signatures: 
				[
					String
				]
			}
		],
		Issues: 
		[
			{
				Severity: String,
				Code: String,
				Message: String
			}
		],
		CanPrint: True
	}
}