Trendsic Platform Service

<back to all web services

InvoiceWorkChangesDecideRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
POST,OPTIONS/v1/invoice/workchanges/{ProjectUID}/decide
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class InvoiceWorkChangesDecideRequest
    {
        public UUID ProjectUID = null;
        public Integer InvoiceID = null;
        public String Decision = null;
        public Boolean Remember = null;
        public ArrayList<InvoiceWorkChangeKey> Sources = new ArrayList<InvoiceWorkChangeKey>();
        
        public UUID getProjectUID() { return ProjectUID; }
        public InvoiceWorkChangesDecideRequest setProjectUID(UUID value) { this.ProjectUID = value; return this; }
        public Integer getInvoiceID() { return InvoiceID; }
        public InvoiceWorkChangesDecideRequest setInvoiceID(Integer value) { this.InvoiceID = value; return this; }
        public String getDecision() { return Decision; }
        public InvoiceWorkChangesDecideRequest setDecision(String value) { this.Decision = value; return this; }
        public Boolean isRemember() { return Remember; }
        public InvoiceWorkChangesDecideRequest setRemember(Boolean value) { this.Remember = value; return this; }
        public ArrayList<InvoiceWorkChangeKey> getSources() { return Sources; }
        public InvoiceWorkChangesDecideRequest setSources(ArrayList<InvoiceWorkChangeKey> value) { this.Sources = value; return this; }
    }

    public static class InvoiceWorkChangeKey
    {
        public String SourceType = null;
        public Integer SourceID = null;
        public Integer JobID = null;
        public String WorkDay = null;
        
        public String getSourceType() { return SourceType; }
        public InvoiceWorkChangeKey setSourceType(String value) { this.SourceType = value; return this; }
        public Integer getSourceID() { return SourceID; }
        public InvoiceWorkChangeKey setSourceID(Integer value) { this.SourceID = value; return this; }
        public Integer getJobID() { return JobID; }
        public InvoiceWorkChangeKey setJobID(Integer value) { this.JobID = value; return this; }
        public String getWorkDay() { return WorkDay; }
        public InvoiceWorkChangeKey setWorkDay(String value) { this.WorkDay = value; return this; }
    }

    public static class InvoiceWorkChangesResponse
    {
        public ResponseStatus ResponseStatus = null;
        public Boolean Success = null;
        public ArrayList<InvoiceWorkChange> Changes = new ArrayList<InvoiceWorkChange>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public InvoiceWorkChangesResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public Boolean isSuccess() { return Success; }
        public InvoiceWorkChangesResponse setSuccess(Boolean value) { this.Success = value; return this; }
        public ArrayList<InvoiceWorkChange> getChanges() { return Changes; }
        public InvoiceWorkChangesResponse setChanges(ArrayList<InvoiceWorkChange> value) { this.Changes = value; return this; }
    }

    public static class InvoiceWorkChange
    {
        public String SourceType = null;
        public Integer SourceID = null;
        public Integer JobID = null;
        public Date WorkDate = null;
        public String WorkDay = null;
        public String DisplayDay = null;
        public String Label = null;
        public String JobName = null;
        public Date DisplayDate = null;
        public String Unit = null;
        public BigDecimal Billed = null;
        public BigDecimal NowQuantity = null;
        public BigDecimal OverBilled = null;
        public BigDecimal UnitFactor = null;
        public BigDecimal Price = null;
        public BigDecimal Amount = null;
        public String LineType = null;
        public Boolean IsTaxable = null;
        public Integer InvoiceID = null;
        public UUID InvoiceUID = null;
        public String InvoiceNumber = null;
        public BigDecimal InvoiceTotal = null;
        public Boolean InvoiceIsLocked = null;
        public Boolean InvoiceIsPaid = null;
        public String State = null;
        public String Remembered = null;
        public String DecidedByName = null;
        public Date DecidedAt = null;
        
        public String getSourceType() { return SourceType; }
        public InvoiceWorkChange setSourceType(String value) { this.SourceType = value; return this; }
        public Integer getSourceID() { return SourceID; }
        public InvoiceWorkChange setSourceID(Integer value) { this.SourceID = value; return this; }
        public Integer getJobID() { return JobID; }
        public InvoiceWorkChange setJobID(Integer value) { this.JobID = value; return this; }
        public Date getWorkDate() { return WorkDate; }
        public InvoiceWorkChange setWorkDate(Date value) { this.WorkDate = value; return this; }
        public String getWorkDay() { return WorkDay; }
        public InvoiceWorkChange setWorkDay(String value) { this.WorkDay = value; return this; }
        public String getDisplayDay() { return DisplayDay; }
        public InvoiceWorkChange setDisplayDay(String value) { this.DisplayDay = value; return this; }
        public String getLabel() { return Label; }
        public InvoiceWorkChange setLabel(String value) { this.Label = value; return this; }
        public String getJobName() { return JobName; }
        public InvoiceWorkChange setJobName(String value) { this.JobName = value; return this; }
        public Date getDisplayDate() { return DisplayDate; }
        public InvoiceWorkChange setDisplayDate(Date value) { this.DisplayDate = value; return this; }
        public String getUnit() { return Unit; }
        public InvoiceWorkChange setUnit(String value) { this.Unit = value; return this; }
        public BigDecimal getBilled() { return Billed; }
        public InvoiceWorkChange setBilled(BigDecimal value) { this.Billed = value; return this; }
        public BigDecimal getNowQuantity() { return NowQuantity; }
        public InvoiceWorkChange setNowQuantity(BigDecimal value) { this.NowQuantity = value; return this; }
        public BigDecimal getOverBilled() { return OverBilled; }
        public InvoiceWorkChange setOverBilled(BigDecimal value) { this.OverBilled = value; return this; }
        public BigDecimal getUnitFactor() { return UnitFactor; }
        public InvoiceWorkChange setUnitFactor(BigDecimal value) { this.UnitFactor = value; return this; }
        public BigDecimal getPrice() { return Price; }
        public InvoiceWorkChange setPrice(BigDecimal value) { this.Price = value; return this; }
        public BigDecimal getAmount() { return Amount; }
        public InvoiceWorkChange setAmount(BigDecimal value) { this.Amount = value; return this; }
        public String getLineType() { return LineType; }
        public InvoiceWorkChange setLineType(String value) { this.LineType = value; return this; }
        public Boolean getIsTaxable() { return IsTaxable; }
        public InvoiceWorkChange setIsTaxable(Boolean value) { this.IsTaxable = value; return this; }
        public Integer getInvoiceID() { return InvoiceID; }
        public InvoiceWorkChange setInvoiceID(Integer value) { this.InvoiceID = value; return this; }
        public UUID getInvoiceUID() { return InvoiceUID; }
        public InvoiceWorkChange setInvoiceUID(UUID value) { this.InvoiceUID = value; return this; }
        public String getInvoiceNumber() { return InvoiceNumber; }
        public InvoiceWorkChange setInvoiceNumber(String value) { this.InvoiceNumber = value; return this; }
        public BigDecimal getInvoiceTotal() { return InvoiceTotal; }
        public InvoiceWorkChange setInvoiceTotal(BigDecimal value) { this.InvoiceTotal = value; return this; }
        public Boolean isInvoiceIsLocked() { return InvoiceIsLocked; }
        public InvoiceWorkChange setInvoiceIsLocked(Boolean value) { this.InvoiceIsLocked = value; return this; }
        public Boolean isInvoiceIsPaid() { return InvoiceIsPaid; }
        public InvoiceWorkChange setInvoiceIsPaid(Boolean value) { this.InvoiceIsPaid = value; return this; }
        public String getState() { return State; }
        public InvoiceWorkChange setState(String value) { this.State = value; return this; }
        public String getRemembered() { return Remembered; }
        public InvoiceWorkChange setRemembered(String value) { this.Remembered = value; return this; }
        public String getDecidedByName() { return DecidedByName; }
        public InvoiceWorkChange setDecidedByName(String value) { this.DecidedByName = value; return this; }
        public Date getDecidedAt() { return DecidedAt; }
        public InvoiceWorkChange setDecidedAt(Date value) { this.DecidedAt = value; return this; }
    }

}

Java InvoiceWorkChangesDecideRequest 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.

POST /v1/invoice/workchanges/{ProjectUID}/decide HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<InvoiceWorkChangesDecideRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Decision>String</Decision>
  <InvoiceID>0</InvoiceID>
  <ProjectUID>00000000-0000-0000-0000-000000000000</ProjectUID>
  <Remember>false</Remember>
  <Sources>
    <InvoiceWorkChangeKey>
      <JobID>0</JobID>
      <SourceID>0</SourceID>
      <SourceType>String</SourceType>
      <WorkDay>String</WorkDay>
    </InvoiceWorkChangeKey>
  </Sources>
</InvoiceWorkChangesDecideRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<InvoiceWorkChangesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Changes>
    <InvoiceWorkChange>
      <Amount>0</Amount>
      <Billed>0</Billed>
      <DecidedAt>0001-01-01T00:00:00</DecidedAt>
      <DecidedByName>String</DecidedByName>
      <DisplayDate>0001-01-01T00:00:00</DisplayDate>
      <DisplayDay>String</DisplayDay>
      <InvoiceID>0</InvoiceID>
      <InvoiceIsLocked>false</InvoiceIsLocked>
      <InvoiceIsPaid>false</InvoiceIsPaid>
      <InvoiceNumber>String</InvoiceNumber>
      <InvoiceTotal>0</InvoiceTotal>
      <InvoiceUID>00000000-0000-0000-0000-000000000000</InvoiceUID>
      <IsTaxable>false</IsTaxable>
      <JobID>0</JobID>
      <JobName>String</JobName>
      <Label>String</Label>
      <LineType>String</LineType>
      <NowQuantity>0</NowQuantity>
      <OverBilled>0</OverBilled>
      <Price>0</Price>
      <Remembered>String</Remembered>
      <SourceID>0</SourceID>
      <SourceType>String</SourceType>
      <State>String</State>
      <Unit>String</Unit>
      <UnitFactor>0</UnitFactor>
      <WorkDate>0001-01-01T00:00:00</WorkDate>
      <WorkDay>String</WorkDay>
    </InvoiceWorkChange>
  </Changes>
  <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>
  <Success>false</Success>
</InvoiceWorkChangesResponse>