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

GET /portal/{Token}/quote HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PortalQuoteResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <ApprovedAt>0001-01-01T00:00:00</ApprovedAt>
  <ApprovedByName>String</ApprovedByName>
  <Currency>String</Currency>
  <DeclineReason>String</DeclineReason>
  <DeclinedAt>0001-01-01T00:00:00</DeclinedAt>
  <DeclinedByName>String</DeclinedByName>
  <ExpiresAt>0001-01-01T00:00:00</ExpiresAt>
  <FinalPriceAfterCompletion>false</FinalPriceAfterCompletion>
  <FromAddress>String</FromAddress>
  <FromName>String</FromName>
  <IsLocked>false</IsLocked>
  <LineItems>
    <QuoteItem>
      <Description>String</Description>
      <DisplayOrder>0</DisplayOrder>
      <IsDeleted>false</IsDeleted>
      <IsTaxable>false</IsTaxable>
      <ItemType>String</ItemType>
      <JobID>0</JobID>
      <Name>String</Name>
      <Quantity>0</Quantity>
      <QuoteID>0</QuoteID>
      <QuoteItemID>0</QuoteItemID>
      <SourceRefId>0</SourceRefId>
      <UnitPrice>0</UnitPrice>
    </QuoteItem>
  </LineItems>
  <Name>String</Name>
  <Notes>String</Notes>
  <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>
  <Status>String</Status>
  <ToAddress>String</ToAddress>
  <ToName>String</ToName>
  <Total>0</Total>
</PortalQuoteResponse>