Trendsic Platform Service

<back to all web services

CloseoutItemPatchRequest

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

public class dtos
{

    public static class CloseoutItemPatchRequest
    {
        public Integer ProjectID = null;
        public Integer CloseoutItemID = null;
        public String Status = null;
        public String Detail = null;
        public Boolean IsApplicable = null;
        
        public Integer getProjectID() { return ProjectID; }
        public CloseoutItemPatchRequest setProjectID(Integer value) { this.ProjectID = value; return this; }
        public Integer getCloseoutItemID() { return CloseoutItemID; }
        public CloseoutItemPatchRequest setCloseoutItemID(Integer value) { this.CloseoutItemID = value; return this; }
        public String getStatus() { return Status; }
        public CloseoutItemPatchRequest setStatus(String value) { this.Status = value; return this; }
        public String getDetail() { return Detail; }
        public CloseoutItemPatchRequest setDetail(String value) { this.Detail = value; return this; }
        public Boolean getIsApplicable() { return IsApplicable; }
        public CloseoutItemPatchRequest setIsApplicable(Boolean value) { this.IsApplicable = 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 CloseoutItemPatchRequest DTOs

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

HTTP + OTHER

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

PUT /v1/projects/{ProjectID}/closeout/{CloseoutItemID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"ProjectID":0,"CloseoutItemID":0,"Status":"String","Detail":"String","IsApplicable":false}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"ProjectID":0,"Items":[{"CloseoutItemID":0,"CloseoutItemUID":"00000000000000000000000000000000","ProjectID":0,"ItemKey":"String","Label":"String","Detail":"String","Status":"String","IsApplicable":false,"SortOrder":0,"CompletedAt":"0001-01-01T00:00:00.0000000","CompletedBy":"String","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"}],"Status":{"ProjectID":0,"TotalItems":0,"DoneCount":0,"OutstandingCount":0,"AllClear":false,"RetainageAmount":0,"RetainageReleased":false,"ReleasedPayApplicationID":0,"ReleasedInvoiceID":0,"ReleasedAt":"0001-01-01T00:00:00.0000000"}}