Trendsic Platform Service

<back to all web services

CloseoutListRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/projects/{ProjectID}/closeout
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class CloseoutListRequest
    {
        public Integer ProjectID = null;
        
        public Integer getProjectID() { return ProjectID; }
        public CloseoutListRequest setProjectID(Integer value) { this.ProjectID = value; return this; }
    }

    public static class CloseoutListResponse
    {
        public ResponseStatus ResponseStatus = null;
        public Integer ProjectID = null;
        public ArrayList<CloseoutItem> Items = new ArrayList<CloseoutItem>();
        public CloseoutStatus Status = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public CloseoutListResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public Integer getProjectID() { return ProjectID; }
        public CloseoutListResponse setProjectID(Integer value) { this.ProjectID = value; return this; }
        public ArrayList<CloseoutItem> getItems() { return Items; }
        public CloseoutListResponse setItems(ArrayList<CloseoutItem> value) { this.Items = value; return this; }
        public CloseoutStatus getStatus() { return Status; }
        public CloseoutListResponse setStatus(CloseoutStatus value) { this.Status = value; return this; }
    }

    public static class CloseoutItem
    {
        public Integer CloseoutItemID = null;
        public UUID CloseoutItemUID = null;
        public Integer ProjectID = null;
        public String ItemKey = null;
        public String Label = null;
        public String Detail = null;
        public String Status = null;
        public Boolean IsApplicable = null;
        public Integer SortOrder = null;
        public Date CompletedAt = null;
        public String CompletedBy = null;
        public String CreatedBy = null;
        public Date CreatedAt = null;
        public Date UpdatedAt = null;
        
        public Integer getCloseoutItemID() { return CloseoutItemID; }
        public CloseoutItem setCloseoutItemID(Integer value) { this.CloseoutItemID = value; return this; }
        public UUID getCloseoutItemUID() { return CloseoutItemUID; }
        public CloseoutItem setCloseoutItemUID(UUID value) { this.CloseoutItemUID = value; return this; }
        public Integer getProjectID() { return ProjectID; }
        public CloseoutItem setProjectID(Integer value) { this.ProjectID = value; return this; }
        public String getItemKey() { return ItemKey; }
        public CloseoutItem setItemKey(String value) { this.ItemKey = value; return this; }
        public String getLabel() { return Label; }
        public CloseoutItem setLabel(String value) { this.Label = value; return this; }
        public String getDetail() { return Detail; }
        public CloseoutItem setDetail(String value) { this.Detail = value; return this; }
        public String getStatus() { return Status; }
        public CloseoutItem setStatus(String value) { this.Status = value; return this; }
        public Boolean getIsApplicable() { return IsApplicable; }
        public CloseoutItem setIsApplicable(Boolean value) { this.IsApplicable = value; return this; }
        public Integer getSortOrder() { return SortOrder; }
        public CloseoutItem setSortOrder(Integer value) { this.SortOrder = value; return this; }
        public Date getCompletedAt() { return CompletedAt; }
        public CloseoutItem setCompletedAt(Date value) { this.CompletedAt = value; return this; }
        public String getCompletedBy() { return CompletedBy; }
        public CloseoutItem setCompletedBy(String value) { this.CompletedBy = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public CloseoutItem setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public Date getCreatedAt() { return CreatedAt; }
        public CloseoutItem setCreatedAt(Date value) { this.CreatedAt = value; return this; }
        public Date getUpdatedAt() { return UpdatedAt; }
        public CloseoutItem setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
    }

    public static class CloseoutStatus
    {
        public Integer ProjectID = null;
        public Integer TotalItems = null;
        public Integer DoneCount = null;
        public Integer OutstandingCount = null;
        public Boolean AllClear = null;
        public BigDecimal RetainageAmount = null;
        public Boolean RetainageReleased = null;
        public Integer ReleasedPayApplicationID = null;
        public Integer ReleasedInvoiceID = null;
        public Date ReleasedAt = null;
        
        public Integer getProjectID() { return ProjectID; }
        public CloseoutStatus setProjectID(Integer value) { this.ProjectID = value; return this; }
        public Integer getTotalItems() { return TotalItems; }
        public CloseoutStatus setTotalItems(Integer value) { this.TotalItems = value; return this; }
        public Integer getDoneCount() { return DoneCount; }
        public CloseoutStatus setDoneCount(Integer value) { this.DoneCount = value; return this; }
        public Integer getOutstandingCount() { return OutstandingCount; }
        public CloseoutStatus setOutstandingCount(Integer value) { this.OutstandingCount = value; return this; }
        public Boolean isAllClear() { return AllClear; }
        public CloseoutStatus setAllClear(Boolean value) { this.AllClear = value; return this; }
        public BigDecimal getRetainageAmount() { return RetainageAmount; }
        public CloseoutStatus setRetainageAmount(BigDecimal value) { this.RetainageAmount = value; return this; }
        public Boolean isRetainageReleased() { return RetainageReleased; }
        public CloseoutStatus setRetainageReleased(Boolean value) { this.RetainageReleased = value; return this; }
        public Integer getReleasedPayApplicationID() { return ReleasedPayApplicationID; }
        public CloseoutStatus setReleasedPayApplicationID(Integer value) { this.ReleasedPayApplicationID = value; return this; }
        public Integer getReleasedInvoiceID() { return ReleasedInvoiceID; }
        public CloseoutStatus setReleasedInvoiceID(Integer value) { this.ReleasedInvoiceID = value; return this; }
        public Date getReleasedAt() { return ReleasedAt; }
        public CloseoutStatus setReleasedAt(Date value) { this.ReleasedAt = value; return this; }
    }

}

Java CloseoutListRequest 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}/closeout HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CloseoutListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Items>
    <CloseoutItem>
      <CloseoutItemID>0</CloseoutItemID>
      <CloseoutItemUID>00000000-0000-0000-0000-000000000000</CloseoutItemUID>
      <CompletedAt>0001-01-01T00:00:00</CompletedAt>
      <CompletedBy>String</CompletedBy>
      <CreatedAt>0001-01-01T00:00:00</CreatedAt>
      <CreatedBy>String</CreatedBy>
      <Detail>String</Detail>
      <IsApplicable>false</IsApplicable>
      <ItemKey>String</ItemKey>
      <Label>String</Label>
      <ProjectID>0</ProjectID>
      <SortOrder>0</SortOrder>
      <Status>String</Status>
      <UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
    </CloseoutItem>
  </Items>
  <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>
  <Status>
    <AllClear>false</AllClear>
    <DoneCount>0</DoneCount>
    <OutstandingCount>0</OutstandingCount>
    <ProjectID>0</ProjectID>
    <ReleasedAt>0001-01-01T00:00:00</ReleasedAt>
    <ReleasedInvoiceID>0</ReleasedInvoiceID>
    <ReleasedPayApplicationID>0</ReleasedPayApplicationID>
    <RetainageAmount>0</RetainageAmount>
    <RetainageReleased>false</RetainageReleased>
    <TotalItems>0</TotalItems>
  </Status>
</CloseoutListResponse>