Trendsic Platform Service

<back to all web services

SamGovWdImportRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/projects/{ProjectID}/wage-determinations/samgov-import

export class SamGovImportResult
{
    public WdNumber: string;
    public Revision: number;
    public ProjectWageDeterminationID: number;
    public ClassificationsImported: number;
    public EffectiveFrom: string;

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

export class ProjectWageDetermination
{
    public ProjectWageDeterminationID: number;
    public ProjectWageDeterminationUID: string;
    public ProjectID: number;
    public DeterminationNo: string;
    public DeterminationType: string;
    public EffectiveFrom?: string;
    public EffectiveTo?: string;
    public IsDefault: boolean;
    public SortOrder: number;
    public CreatedBy: string;
    public CreatedAt?: string;
    public UpdatedAt?: string;

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

export class SamGovWdImportResponse
{
    public ResponseStatus: ResponseStatus;
    public Result: SamGovImportResult;
    public Determinations: ProjectWageDetermination[] = [];

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

export class SamGovWdImportRequest
{
    public ProjectID: number;
    public WdNumber: string;
    public Revision: number;

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

TypeScript SamGovWdImportRequest 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.

POST /v1/projects/{ProjectID}/wage-determinations/samgov-import HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ProjectID: 0,
	WdNumber: String,
	Revision: 0
}
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
		}
	},
	Result: 
	{
		WdNumber: String,
		Revision: 0,
		ProjectWageDeterminationID: 0,
		ClassificationsImported: 0,
		EffectiveFrom: String
	},
	Determinations: 
	[
		{
			ProjectWageDeterminationID: 0,
			ProjectWageDeterminationUID: 00000000000000000000000000000000,
			ProjectID: 0,
			DeterminationNo: String,
			DeterminationType: String,
			EffectiveFrom: 0001-01-01,
			EffectiveTo: 0001-01-01,
			IsDefault: False,
			SortOrder: 0,
			CreatedBy: String,
			CreatedAt: 0001-01-01,
			UpdatedAt: 0001-01-01
		}
	]
}