| GET,OPTIONS | /v1/pursuits/pipeline |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class PursuitPipelineRequest
{
}
public static class PursuitListResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<Pursuit> Pursuits = new ArrayList<Pursuit>();
public PursuitPipelineSummary Summary = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public PursuitListResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<Pursuit> getPursuits() { return Pursuits; }
public PursuitListResponse setPursuits(ArrayList<Pursuit> value) { this.Pursuits = value; return this; }
public PursuitPipelineSummary getSummary() { return Summary; }
public PursuitListResponse setSummary(PursuitPipelineSummary value) { this.Summary = 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; }
}
public static class PursuitPipelineSummary
{
public Integer ActivePursuits = null;
public BigDecimal PipelineValue = null;
public BigDecimal WeightedValue = null;
public Integer WonCount = null;
public Integer DecidedCount = null;
public BigDecimal WinRate = null;
public Integer ClosingThisWeek = null;
public Integer getActivePursuits() { return ActivePursuits; }
public PursuitPipelineSummary setActivePursuits(Integer value) { this.ActivePursuits = value; return this; }
public BigDecimal getPipelineValue() { return PipelineValue; }
public PursuitPipelineSummary setPipelineValue(BigDecimal value) { this.PipelineValue = value; return this; }
public BigDecimal getWeightedValue() { return WeightedValue; }
public PursuitPipelineSummary setWeightedValue(BigDecimal value) { this.WeightedValue = value; return this; }
public Integer getWonCount() { return WonCount; }
public PursuitPipelineSummary setWonCount(Integer value) { this.WonCount = value; return this; }
public Integer getDecidedCount() { return DecidedCount; }
public PursuitPipelineSummary setDecidedCount(Integer value) { this.DecidedCount = value; return this; }
public BigDecimal getWinRate() { return WinRate; }
public PursuitPipelineSummary setWinRate(BigDecimal value) { this.WinRate = value; return this; }
public Integer getClosingThisWeek() { return ClosingThisWeek; }
public PursuitPipelineSummary setClosingThisWeek(Integer value) { this.ClosingThisWeek = value; return this; }
}
}
Java PursuitPipelineRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/pursuits/pipeline HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Pursuits":[{"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"}]}],"Summary":{"ActivePursuits":0,"PipelineValue":0,"WeightedValue":0,"WonCount":0,"DecidedCount":0,"WinRate":0,"ClosingThisWeek":0}}