Trendsic Platform Service

<back to all web services

CertifiedPayrollListRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/projects/{ProjectID}/certified-payroll
namespace CRM.AgencyPlatform.API.Internal

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type CertifiedPayrollLine() = 
        member val CertifiedPayrollLineID:Int32 = new Int32() with get,set
        member val CertifiedPayrollID:Int32 = new Int32() with get,set
        member val WorkerName:String = null with get,set
        member val ContactID:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val Classification:String = null with get,set
        member val HoursST:Decimal = new Decimal() with get,set
        member val HoursOT:Decimal = new Decimal() with get,set
        member val BaseRate:Decimal = new Decimal() with get,set
        member val FringeRate:Decimal = new Decimal() with get,set
        member val FringeCashRate:Decimal = new Decimal() with get,set
        member val FringePlanRate:Decimal = new Decimal() with get,set
        member val GrossPay:Decimal = new Decimal() with get,set
        member val Flagged:Boolean = new Boolean() with get,set
        member val RestitutionAmount:Decimal = new Decimal() with get,set
        member val RestitutionNote:String = null with get,set
        member val RequiredBase:Decimal = new Decimal() with get,set
        member val RequiredFringe:Decimal = new Decimal() with get,set
        member val SortOrder:Int32 = new Int32() with get,set

    [<AllowNullLiteral>]
    type CertifiedPayroll() = 
        member val CertifiedPayrollID:Int32 = new Int32() with get,set
        member val CertifiedPayrollUID:Guid = new Guid() with get,set
        member val ProjectID:Int32 = new Int32() with get,set
        member val PayrollNumber:Int32 = new Int32() with get,set
        member val WeekEnding:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val Status:String = null with get,set
        member val DbeParticipationPct:Decimal = new Decimal() with get,set
        member val DbeGoalPct:Decimal = new Decimal() with get,set
        member val OjtApprenticeHours:Decimal = new Decimal() with get,set
        member val OjtApprenticeGoalHours:Decimal = new Decimal() with get,set
        member val WorkerCount:Int32 = new Int32() with get,set
        member val TotalHoursST:Decimal = new Decimal() with get,set
        member val TotalHoursOT:Decimal = new Decimal() with get,set
        member val TotalGrossPay:Decimal = new Decimal() with get,set
        member val FlaggedCount:Int32 = new Int32() with get,set
        member val SubmittedBy:String = null with get,set
        member val SubmittedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val CreatedBy:String = null with get,set
        member val CreatedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val UpdatedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val Lines:ResizeArray<CertifiedPayrollLine> = new ResizeArray<CertifiedPayrollLine>() with get,set
        member val DeterminationNo:String = null with get,set
        member val DeterminationType:String = null with get,set

    [<AllowNullLiteral>]
    type CertifiedPayrollListResponse() = 
        member val ResponseStatus:ResponseStatus = null with get,set
        member val ProjectID:Int32 = new Int32() with get,set
        member val Payrolls:ResizeArray<CertifiedPayroll> = new ResizeArray<CertifiedPayroll>() with get,set

    [<AllowNullLiteral>]
    type CertifiedPayrollListRequest() = 
        member val ProjectID:Int32 = new Int32() with get,set

F# CertifiedPayrollListRequest DTOs

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

HTTP + XML

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

GET /v1/projects/{ProjectID}/certified-payroll HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CertifiedPayrollListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Payrolls>
    <CertifiedPayroll>
      <CertifiedPayrollID>0</CertifiedPayrollID>
      <CertifiedPayrollUID>00000000-0000-0000-0000-000000000000</CertifiedPayrollUID>
      <CreatedAt>0001-01-01T00:00:00</CreatedAt>
      <CreatedBy>String</CreatedBy>
      <DbeGoalPct>0</DbeGoalPct>
      <DbeParticipationPct>0</DbeParticipationPct>
      <DeterminationNo>String</DeterminationNo>
      <DeterminationType>String</DeterminationType>
      <FlaggedCount>0</FlaggedCount>
      <Lines>
        <CertifiedPayrollLine>
          <BaseRate>0</BaseRate>
          <CertifiedPayrollID>0</CertifiedPayrollID>
          <CertifiedPayrollLineID>0</CertifiedPayrollLineID>
          <Classification>String</Classification>
          <ContactID>0</ContactID>
          <Flagged>false</Flagged>
          <FringeCashRate>0</FringeCashRate>
          <FringePlanRate>0</FringePlanRate>
          <FringeRate>0</FringeRate>
          <GrossPay>0</GrossPay>
          <HoursOT>0</HoursOT>
          <HoursST>0</HoursST>
          <RequiredBase>0</RequiredBase>
          <RequiredFringe>0</RequiredFringe>
          <RestitutionAmount>0</RestitutionAmount>
          <RestitutionNote>String</RestitutionNote>
          <SortOrder>0</SortOrder>
          <WorkerName>String</WorkerName>
        </CertifiedPayrollLine>
      </Lines>
      <OjtApprenticeGoalHours>0</OjtApprenticeGoalHours>
      <OjtApprenticeHours>0</OjtApprenticeHours>
      <PayrollNumber>0</PayrollNumber>
      <ProjectID>0</ProjectID>
      <Status>String</Status>
      <SubmittedAt>0001-01-01T00:00:00</SubmittedAt>
      <SubmittedBy>String</SubmittedBy>
      <TotalGrossPay>0</TotalGrossPay>
      <TotalHoursOT>0</TotalHoursOT>
      <TotalHoursST>0</TotalHoursST>
      <UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
      <WeekEnding>0001-01-01T00:00:00</WeekEnding>
      <WorkerCount>0</WorkerCount>
    </CertifiedPayroll>
  </Payrolls>
  <ProjectID>0</ProjectID>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</CertifiedPayrollListResponse>