| POST,OPTIONS | /v1/pursuits |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class PursuitCreateRequest
{
public String Name = null;
public String ClientOwner = null;
public String WorkType = null;
public String Solicitation = null;
public String Location = null;
public String Scope = null;
public BigDecimal BidValue = null;
public BigDecimal EstCost = null;
public BigDecimal WinProbability = null;
public BigDecimal CostOfPursuit = null;
public Date DueDate = null;
public String EstimatorRfpRef = null;
public String getName() { return Name; }
public PursuitCreateRequest setName(String value) { this.Name = value; return this; }
public String getClientOwner() { return ClientOwner; }
public PursuitCreateRequest setClientOwner(String value) { this.ClientOwner = value; return this; }
public String getWorkType() { return WorkType; }
public PursuitCreateRequest setWorkType(String value) { this.WorkType = value; return this; }
public String getSolicitation() { return Solicitation; }
public PursuitCreateRequest setSolicitation(String value) { this.Solicitation = value; return this; }
public String getLocation() { return Location; }
public PursuitCreateRequest setLocation(String value) { this.Location = value; return this; }
public String getScope() { return Scope; }
public PursuitCreateRequest setScope(String value) { this.Scope = value; return this; }
public BigDecimal getBidValue() { return BidValue; }
public PursuitCreateRequest setBidValue(BigDecimal value) { this.BidValue = value; return this; }
public BigDecimal getEstCost() { return EstCost; }
public PursuitCreateRequest setEstCost(BigDecimal value) { this.EstCost = value; return this; }
public BigDecimal getWinProbability() { return WinProbability; }
public PursuitCreateRequest setWinProbability(BigDecimal value) { this.WinProbability = value; return this; }
public BigDecimal getCostOfPursuit() { return CostOfPursuit; }
public PursuitCreateRequest setCostOfPursuit(BigDecimal value) { this.CostOfPursuit = value; return this; }
public Date getDueDate() { return DueDate; }
public PursuitCreateRequest setDueDate(Date value) { this.DueDate = value; return this; }
public String getEstimatorRfpRef() { return EstimatorRfpRef; }
public PursuitCreateRequest setEstimatorRfpRef(String value) { this.EstimatorRfpRef = value; return this; }
}
public static class PursuitResponse
{
public ResponseStatus ResponseStatus = null;
public Pursuit Pursuit = null;
public Integer AwardedProjectID = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public PursuitResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public Pursuit getPursuit() { return Pursuit; }
public PursuitResponse setPursuit(Pursuit value) { this.Pursuit = value; return this; }
public Integer getAwardedProjectID() { return AwardedProjectID; }
public PursuitResponse setAwardedProjectID(Integer value) { this.AwardedProjectID = value; return this; }
}
public static class Pursuit
{
public Integer PursuitID = null;
public UUID PursuitUID = null;
public String PursuitNumber = null;
public String Name = null;
public String ClientOwner = null;
public String WorkType = null;
public String Solicitation = null;
public String Location = null;
public String Scope = null;
public String Stage = null;
public String Outcome = null;
public BigDecimal BidValue = null;
public BigDecimal EstCost = null;
public BigDecimal WinProbability = null;
public BigDecimal CostOfPursuit = null;
public Date DueDate = null;
public String EstimatorRfpRef = null;
public Integer AwardedProjectID = null;
public Date OpenedAt = null;
public Date SubmittedAt = null;
public Date DecidedAt = null;
public String CreatedBy = null;
public Date CreatedAt = null;
public Date UpdatedAt = null;
public Integer DaysOpen = null;
public BigDecimal WeightedValue = null;
public ArrayList<PursuitActivity> Activity = new ArrayList<PursuitActivity>();
public Integer getPursuitID() { return PursuitID; }
public Pursuit setPursuitID(Integer value) { this.PursuitID = value; return this; }
public UUID getPursuitUID() { return PursuitUID; }
public Pursuit setPursuitUID(UUID value) { this.PursuitUID = value; return this; }
public String getPursuitNumber() { return PursuitNumber; }
public Pursuit setPursuitNumber(String value) { this.PursuitNumber = value; return this; }
public String getName() { return Name; }
public Pursuit setName(String value) { this.Name = value; return this; }
public String getClientOwner() { return ClientOwner; }
public Pursuit setClientOwner(String value) { this.ClientOwner = value; return this; }
public String getWorkType() { return WorkType; }
public Pursuit setWorkType(String value) { this.WorkType = value; return this; }
public String getSolicitation() { return Solicitation; }
public Pursuit setSolicitation(String value) { this.Solicitation = value; return this; }
public String getLocation() { return Location; }
public Pursuit setLocation(String value) { this.Location = value; return this; }
public String getScope() { return Scope; }
public Pursuit setScope(String value) { this.Scope = value; return this; }
public String getStage() { return Stage; }
public Pursuit setStage(String value) { this.Stage = value; return this; }
public String getOutcome() { return Outcome; }
public Pursuit setOutcome(String value) { this.Outcome = value; return this; }
public BigDecimal getBidValue() { return BidValue; }
public Pursuit setBidValue(BigDecimal value) { this.BidValue = value; return this; }
public BigDecimal getEstCost() { return EstCost; }
public Pursuit setEstCost(BigDecimal value) { this.EstCost = value; return this; }
public BigDecimal getWinProbability() { return WinProbability; }
public Pursuit setWinProbability(BigDecimal value) { this.WinProbability = value; return this; }
public BigDecimal getCostOfPursuit() { return CostOfPursuit; }
public Pursuit setCostOfPursuit(BigDecimal value) { this.CostOfPursuit = value; return this; }
public Date getDueDate() { return DueDate; }
public Pursuit setDueDate(Date value) { this.DueDate = value; return this; }
public String getEstimatorRfpRef() { return EstimatorRfpRef; }
public Pursuit setEstimatorRfpRef(String value) { this.EstimatorRfpRef = value; return this; }
public Integer getAwardedProjectID() { return AwardedProjectID; }
public Pursuit setAwardedProjectID(Integer value) { this.AwardedProjectID = value; return this; }
public Date getOpenedAt() { return OpenedAt; }
public Pursuit setOpenedAt(Date value) { this.OpenedAt = value; return this; }
public Date getSubmittedAt() { return SubmittedAt; }
public Pursuit setSubmittedAt(Date value) { this.SubmittedAt = value; return this; }
public Date getDecidedAt() { return DecidedAt; }
public Pursuit setDecidedAt(Date value) { this.DecidedAt = value; return this; }
public String getCreatedBy() { return CreatedBy; }
public Pursuit setCreatedBy(String value) { this.CreatedBy = value; return this; }
public Date getCreatedAt() { return CreatedAt; }
public Pursuit setCreatedAt(Date value) { this.CreatedAt = value; return this; }
public Date getUpdatedAt() { return UpdatedAt; }
public Pursuit setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
public Integer getDaysOpen() { return DaysOpen; }
public Pursuit setDaysOpen(Integer value) { this.DaysOpen = value; return this; }
public BigDecimal getWeightedValue() { return WeightedValue; }
public Pursuit setWeightedValue(BigDecimal value) { this.WeightedValue = value; return this; }
public ArrayList<PursuitActivity> getActivity() { return Activity; }
public Pursuit setActivity(ArrayList<PursuitActivity> value) { this.Activity = value; return this; }
}
public static class PursuitActivity
{
public Integer PursuitActivityID = null;
public Integer PursuitID = null;
public String Kind = null;
public String Label = null;
public String Detail = null;
public String Actor = null;
public Date CreatedAt = null;
public Integer getPursuitActivityID() { return PursuitActivityID; }
public PursuitActivity setPursuitActivityID(Integer value) { this.PursuitActivityID = value; return this; }
public Integer getPursuitID() { return PursuitID; }
public PursuitActivity setPursuitID(Integer value) { this.PursuitID = value; return this; }
public String getKind() { return Kind; }
public PursuitActivity setKind(String value) { this.Kind = value; return this; }
public String getLabel() { return Label; }
public PursuitActivity setLabel(String value) { this.Label = value; return this; }
public String getDetail() { return Detail; }
public PursuitActivity setDetail(String value) { this.Detail = value; return this; }
public String getActor() { return Actor; }
public PursuitActivity setActor(String value) { this.Actor = value; return this; }
public Date getCreatedAt() { return CreatedAt; }
public PursuitActivity setCreatedAt(Date value) { this.CreatedAt = value; return this; }
}
}
Java PursuitCreateRequest 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/pursuits HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Name":"String","ClientOwner":"String","WorkType":"String","Solicitation":"String","Location":"String","Scope":"String","BidValue":0,"EstCost":0,"WinProbability":0,"CostOfPursuit":0,"DueDate":"0001-01-01T00:00:00.0000000","EstimatorRfpRef":"String"}
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"}},"Pursuit":{"PursuitID":0,"PursuitUID":"00000000000000000000000000000000","PursuitNumber":"String","Name":"String","ClientOwner":"String","WorkType":"String","Solicitation":"String","Location":"String","Scope":"String","Stage":"String","Outcome":"String","BidValue":0,"EstCost":0,"WinProbability":0,"CostOfPursuit":0,"DueDate":"0001-01-01T00:00:00.0000000","EstimatorRfpRef":"String","AwardedProjectID":0,"OpenedAt":"0001-01-01T00:00:00.0000000","SubmittedAt":"0001-01-01T00:00:00.0000000","DecidedAt":"0001-01-01T00:00:00.0000000","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000","DaysOpen":0,"WeightedValue":0,"Activity":[{"PursuitActivityID":0,"PursuitID":0,"Kind":"String","Label":"String","Detail":"String","Actor":"String","CreatedAt":"0001-01-01T00:00:00.0000000"}]},"AwardedProjectID":0}