Trendsic Platform Service

<back to all web services

PortalQuoteRequest

The following routes are available for this service:
GET,OPTIONS/portal/{Token}/quote
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class PortalQuoteRequest
    {
        public String Token = null;
        
        public String getToken() { return Token; }
        public PortalQuoteRequest setToken(String value) { this.Token = value; return this; }
    }

    public static class PortalQuoteResponse
    {
        public ResponseStatus ResponseStatus = null;
        public String Name = null;
        public String Status = null;
        public String Currency = null;
        public BigDecimal Total = null;
        public String Notes = null;
        public String FromName = null;
        public String FromAddress = null;
        public String ToName = null;
        public String ToAddress = null;
        public Date ExpiresAt = null;
        public Boolean IsLocked = null;
        public Boolean FinalPriceAfterCompletion = null;
        public String ApprovedByName = null;
        public Date ApprovedAt = null;
        public String DeclinedByName = null;
        public Date DeclinedAt = null;
        public String DeclineReason = null;
        public ArrayList<QuoteItem> LineItems = new ArrayList<QuoteItem>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public PortalQuoteResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public String getName() { return Name; }
        public PortalQuoteResponse setName(String value) { this.Name = value; return this; }
        public String getStatus() { return Status; }
        public PortalQuoteResponse setStatus(String value) { this.Status = value; return this; }
        public String getCurrency() { return Currency; }
        public PortalQuoteResponse setCurrency(String value) { this.Currency = value; return this; }
        public BigDecimal getTotal() { return Total; }
        public PortalQuoteResponse setTotal(BigDecimal value) { this.Total = value; return this; }
        public String getNotes() { return Notes; }
        public PortalQuoteResponse setNotes(String value) { this.Notes = value; return this; }
        public String getFromName() { return FromName; }
        public PortalQuoteResponse setFromName(String value) { this.FromName = value; return this; }
        public String getFromAddress() { return FromAddress; }
        public PortalQuoteResponse setFromAddress(String value) { this.FromAddress = value; return this; }
        public String getToName() { return ToName; }
        public PortalQuoteResponse setToName(String value) { this.ToName = value; return this; }
        public String getToAddress() { return ToAddress; }
        public PortalQuoteResponse setToAddress(String value) { this.ToAddress = value; return this; }
        public Date getExpiresAt() { return ExpiresAt; }
        public PortalQuoteResponse setExpiresAt(Date value) { this.ExpiresAt = value; return this; }
        public Boolean getIsLocked() { return IsLocked; }
        public PortalQuoteResponse setIsLocked(Boolean value) { this.IsLocked = value; return this; }
        public Boolean isFinalPriceAfterCompletion() { return FinalPriceAfterCompletion; }
        public PortalQuoteResponse setFinalPriceAfterCompletion(Boolean value) { this.FinalPriceAfterCompletion = value; return this; }
        public String getApprovedByName() { return ApprovedByName; }
        public PortalQuoteResponse setApprovedByName(String value) { this.ApprovedByName = value; return this; }
        public Date getApprovedAt() { return ApprovedAt; }
        public PortalQuoteResponse setApprovedAt(Date value) { this.ApprovedAt = value; return this; }
        public String getDeclinedByName() { return DeclinedByName; }
        public PortalQuoteResponse setDeclinedByName(String value) { this.DeclinedByName = value; return this; }
        public Date getDeclinedAt() { return DeclinedAt; }
        public PortalQuoteResponse setDeclinedAt(Date value) { this.DeclinedAt = value; return this; }
        public String getDeclineReason() { return DeclineReason; }
        public PortalQuoteResponse setDeclineReason(String value) { this.DeclineReason = value; return this; }
        public ArrayList<QuoteItem> getLineItems() { return LineItems; }
        public PortalQuoteResponse setLineItems(ArrayList<QuoteItem> value) { this.LineItems = value; return this; }
    }

    public static class QuoteItem
    {
        public Integer QuoteItemID = null;
        public Integer QuoteID = null;
        public String ItemType = null;
        public Integer SourceRefId = null;
        public Integer JobID = null;
        public String Name = null;
        public String Description = null;
        public BigDecimal Quantity = null;
        public BigDecimal UnitPrice = null;
        public Boolean IsTaxable = null;
        public Integer DisplayOrder = null;
        public Boolean IsDeleted = null;
        
        public Integer getQuoteItemID() { return QuoteItemID; }
        public QuoteItem setQuoteItemID(Integer value) { this.QuoteItemID = value; return this; }
        public Integer getQuoteID() { return QuoteID; }
        public QuoteItem setQuoteID(Integer value) { this.QuoteID = value; return this; }
        public String getItemType() { return ItemType; }
        public QuoteItem setItemType(String value) { this.ItemType = value; return this; }
        public Integer getSourceRefId() { return SourceRefId; }
        public QuoteItem setSourceRefId(Integer value) { this.SourceRefId = value; return this; }
        public Integer getJobID() { return JobID; }
        public QuoteItem setJobID(Integer value) { this.JobID = value; return this; }
        public String getName() { return Name; }
        public QuoteItem setName(String value) { this.Name = value; return this; }
        public String getDescription() { return Description; }
        public QuoteItem setDescription(String value) { this.Description = value; return this; }
        public BigDecimal getQuantity() { return Quantity; }
        public QuoteItem setQuantity(BigDecimal value) { this.Quantity = value; return this; }
        public BigDecimal getUnitPrice() { return UnitPrice; }
        public QuoteItem setUnitPrice(BigDecimal value) { this.UnitPrice = value; return this; }
        public Boolean getIsTaxable() { return IsTaxable; }
        public QuoteItem setIsTaxable(Boolean value) { this.IsTaxable = value; return this; }
        public Integer getDisplayOrder() { return DisplayOrder; }
        public QuoteItem setDisplayOrder(Integer value) { this.DisplayOrder = value; return this; }
        public Boolean getIsDeleted() { return IsDeleted; }
        public QuoteItem setIsDeleted(Boolean value) { this.IsDeleted = value; return this; }
    }

}

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

GET /portal/{Token}/quote HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
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"}},"Name":"String","Status":"String","Currency":"String","Total":0,"Notes":"String","FromName":"String","FromAddress":"String","ToName":"String","ToAddress":"String","ExpiresAt":"0001-01-01T00:00:00.0000000","IsLocked":false,"FinalPriceAfterCompletion":false,"ApprovedByName":"String","ApprovedAt":"0001-01-01T00:00:00.0000000","DeclinedByName":"String","DeclinedAt":"0001-01-01T00:00:00.0000000","DeclineReason":"String","LineItems":[{"QuoteItemID":0,"QuoteID":0,"ItemType":"String","SourceRefId":0,"JobID":0,"Name":"String","Description":"String","Quantity":0,"UnitPrice":0,"IsTaxable":false,"DisplayOrder":0,"IsDeleted":false}]}