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
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class SamGovWdImportRequest
{
    open var ProjectID:Int? = null
    open var WdNumber:String? = null
    open var Revision:Int? = null
}

open class SamGovWdImportResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var Result:SamGovImportResult? = null
    open var Determinations:ArrayList<ProjectWageDetermination> = ArrayList<ProjectWageDetermination>()
}

open class SamGovImportResult
{
    open var WdNumber:String? = null
    open var Revision:Int? = null
    open var ProjectWageDeterminationID:Int? = null
    open var ClassificationsImported:Int? = null
    open var EffectiveFrom:String? = null
}

open class ProjectWageDetermination
{
    open var ProjectWageDeterminationID:Int? = null
    open var ProjectWageDeterminationUID:UUID? = null
    open var ProjectID:Int? = null
    open var DeterminationNo:String? = null
    open var DeterminationType:String? = null
    open var EffectiveFrom:Date? = null
    open var EffectiveTo:Date? = null
    open var IsDefault:Boolean? = null
    open var SortOrder:Int? = null
    open var CreatedBy:String? = null
    open var CreatedAt:Date? = null
    open var UpdatedAt:Date? = null
}

Kotlin SamGovWdImportRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
Content-Length: length

{"ProjectID":0,"WdNumber":"String","Revision":0}
HTTP/1.1 200 OK
Content-Type: application/json
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-01T00:00:00.0000000","EffectiveTo":"0001-01-01T00:00:00.0000000","IsDefault":false,"SortOrder":0,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"}]}