Trendsic Platform Service

<back to all web services

PortalInvoiceRequest

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

public class dtos
{

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

    public static class PortalInvoiceResponse
    {
        public ResponseStatus ResponseStatus = null;
        public String InvoiceNumber = null;
        public Date InvoiceDate = null;
        public Date DueDate = null;
        public String FromName = null;
        public String FromAddress = null;
        public String ToName = null;
        public String ToAddress = null;
        public String Currency = null;
        public BigDecimal Total = null;
        public BigDecimal AmountPaid = null;
        public BigDecimal Balance = null;
        public Boolean IsPaid = null;
        public ArrayList<InvoiceLineItem> LineItems = new ArrayList<InvoiceLineItem>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public PortalInvoiceResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public String getInvoiceNumber() { return InvoiceNumber; }
        public PortalInvoiceResponse setInvoiceNumber(String value) { this.InvoiceNumber = value; return this; }
        public Date getInvoiceDate() { return InvoiceDate; }
        public PortalInvoiceResponse setInvoiceDate(Date value) { this.InvoiceDate = value; return this; }
        public Date getDueDate() { return DueDate; }
        public PortalInvoiceResponse setDueDate(Date value) { this.DueDate = value; return this; }
        public String getFromName() { return FromName; }
        public PortalInvoiceResponse setFromName(String value) { this.FromName = value; return this; }
        public String getFromAddress() { return FromAddress; }
        public PortalInvoiceResponse setFromAddress(String value) { this.FromAddress = value; return this; }
        public String getToName() { return ToName; }
        public PortalInvoiceResponse setToName(String value) { this.ToName = value; return this; }
        public String getToAddress() { return ToAddress; }
        public PortalInvoiceResponse setToAddress(String value) { this.ToAddress = value; return this; }
        public String getCurrency() { return Currency; }
        public PortalInvoiceResponse setCurrency(String value) { this.Currency = value; return this; }
        public BigDecimal getTotal() { return Total; }
        public PortalInvoiceResponse setTotal(BigDecimal value) { this.Total = value; return this; }
        public BigDecimal getAmountPaid() { return AmountPaid; }
        public PortalInvoiceResponse setAmountPaid(BigDecimal value) { this.AmountPaid = value; return this; }
        public BigDecimal getBalance() { return Balance; }
        public PortalInvoiceResponse setBalance(BigDecimal value) { this.Balance = value; return this; }
        public Boolean getIsPaid() { return IsPaid; }
        public PortalInvoiceResponse setIsPaid(Boolean value) { this.IsPaid = value; return this; }
        public ArrayList<InvoiceLineItem> getLineItems() { return LineItems; }
        public PortalInvoiceResponse setLineItems(ArrayList<InvoiceLineItem> value) { this.LineItems = value; return this; }
    }

    public static class InvoiceLineItem
    {
        public Integer InvoiceLineItemID = null;
        public Integer InvoiceID = null;
        public String Type = null;
        public String Name = null;
        public Integer Quantity = null;
        public BigDecimal PercentageAdjust = null;
        public BigDecimal AmountAdjust = null;
        public BigDecimal Price = null;
        public String Description = null;
        public String Notes = null;
        public Boolean IsTaxable = null;
        public Integer DisplayOrder = null;
        public Boolean IsLocked = null;
        public Boolean IsDeleted = null;
        public Boolean IsPaid = null;
        public Date CreatedDate = null;
        public Date ModifiedDate = null;
        public UUID CreatedByUID = null;
        
        public Integer getInvoiceLineItemID() { return InvoiceLineItemID; }
        public InvoiceLineItem setInvoiceLineItemID(Integer value) { this.InvoiceLineItemID = value; return this; }
        public Integer getInvoiceID() { return InvoiceID; }
        public InvoiceLineItem setInvoiceID(Integer value) { this.InvoiceID = value; return this; }
        public String getType() { return Type; }
        public InvoiceLineItem setType(String value) { this.Type = value; return this; }
        public String getName() { return Name; }
        public InvoiceLineItem setName(String value) { this.Name = value; return this; }
        public Integer getQuantity() { return Quantity; }
        public InvoiceLineItem setQuantity(Integer value) { this.Quantity = value; return this; }
        public BigDecimal getPercentageAdjust() { return PercentageAdjust; }
        public InvoiceLineItem setPercentageAdjust(BigDecimal value) { this.PercentageAdjust = value; return this; }
        public BigDecimal getAmountAdjust() { return AmountAdjust; }
        public InvoiceLineItem setAmountAdjust(BigDecimal value) { this.AmountAdjust = value; return this; }
        public BigDecimal getPrice() { return Price; }
        public InvoiceLineItem setPrice(BigDecimal value) { this.Price = value; return this; }
        public String getDescription() { return Description; }
        public InvoiceLineItem setDescription(String value) { this.Description = value; return this; }
        public String getNotes() { return Notes; }
        public InvoiceLineItem setNotes(String value) { this.Notes = value; return this; }
        public Boolean getIsTaxable() { return IsTaxable; }
        public InvoiceLineItem setIsTaxable(Boolean value) { this.IsTaxable = value; return this; }
        public Integer getDisplayOrder() { return DisplayOrder; }
        public InvoiceLineItem setDisplayOrder(Integer value) { this.DisplayOrder = value; return this; }
        public Boolean getIsLocked() { return IsLocked; }
        public InvoiceLineItem setIsLocked(Boolean value) { this.IsLocked = value; return this; }
        public Boolean getIsDeleted() { return IsDeleted; }
        public InvoiceLineItem setIsDeleted(Boolean value) { this.IsDeleted = value; return this; }
        public Boolean getIsPaid() { return IsPaid; }
        public InvoiceLineItem setIsPaid(Boolean value) { this.IsPaid = value; return this; }
        public Date getCreatedDate() { return CreatedDate; }
        public InvoiceLineItem setCreatedDate(Date value) { this.CreatedDate = value; return this; }
        public Date getModifiedDate() { return ModifiedDate; }
        public InvoiceLineItem setModifiedDate(Date value) { this.ModifiedDate = value; return this; }
        public UUID getCreatedByUID() { return CreatedByUID; }
        public InvoiceLineItem setCreatedByUID(UUID value) { this.CreatedByUID = value; return this; }
    }

}

Java PortalInvoiceRequest 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}/invoice HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PortalInvoiceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <AmountPaid>0</AmountPaid>
  <Balance>0</Balance>
  <Currency>String</Currency>
  <DueDate>0001-01-01T00:00:00</DueDate>
  <FromAddress>String</FromAddress>
  <FromName>String</FromName>
  <InvoiceDate>0001-01-01T00:00:00</InvoiceDate>
  <InvoiceNumber>String</InvoiceNumber>
  <IsPaid>false</IsPaid>
  <LineItems>
    <InvoiceLineItem>
      <AmountAdjust>0</AmountAdjust>
      <CreatedByUID>00000000-0000-0000-0000-000000000000</CreatedByUID>
      <CreatedDate>0001-01-01T00:00:00</CreatedDate>
      <Description>String</Description>
      <DisplayOrder>0</DisplayOrder>
      <InvoiceID>0</InvoiceID>
      <InvoiceLineItemID>0</InvoiceLineItemID>
      <IsDeleted>false</IsDeleted>
      <IsLocked>false</IsLocked>
      <IsPaid>false</IsPaid>
      <IsTaxable>false</IsTaxable>
      <ModifiedDate>0001-01-01T00:00:00</ModifiedDate>
      <Name>String</Name>
      <Notes>String</Notes>
      <PercentageAdjust>0</PercentageAdjust>
      <Price>0</Price>
      <Quantity>0</Quantity>
      <Type>String</Type>
    </InvoiceLineItem>
  </LineItems>
  <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>
  <ToAddress>String</ToAddress>
  <ToName>String</ToName>
  <Total>0</Total>
</PortalInvoiceResponse>