Billhighway Cloud API

<back to all web services

SalesForceCancelInvoiceCollection

The following routes are available for this service:
POST/api/SalesForce/CancelInvoiceCollection
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class SalesForceCancelInvoiceCollection
    {
        public ArrayList<SalesForceCancelInvoice> CancelInvoiceCollection = null;
        
        public ArrayList<SalesForceCancelInvoice> getCancelInvoiceCollection() { return CancelInvoiceCollection; }
        public SalesForceCancelInvoiceCollection setCancelInvoiceCollection(ArrayList<SalesForceCancelInvoice> value) { this.CancelInvoiceCollection = value; return this; }
    }

    public static class SalesForceCancelInvoice
    {
        public String ClassName = null;
        public String UniqueId = null;
        public Date CreatedDateTime = null;
        public Integer ClientId = null;
        public String GroupId = null;
        public String OpportunityId = null;
        public String InvoiceNumber = null;
        public String CancelledBy = null;
        public String CancelReason = null;
        public String Notes = null;
        
        public String getClassName() { return ClassName; }
        public SalesForceCancelInvoice setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public SalesForceCancelInvoice setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public SalesForceCancelInvoice setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public SalesForceCancelInvoice setClientId(Integer value) { this.ClientId = value; return this; }
        public String getGroupId() { return GroupId; }
        public SalesForceCancelInvoice setGroupId(String value) { this.GroupId = value; return this; }
        public String getOpportunityId() { return OpportunityId; }
        public SalesForceCancelInvoice setOpportunityId(String value) { this.OpportunityId = value; return this; }
        public String getInvoiceNumber() { return InvoiceNumber; }
        public SalesForceCancelInvoice setInvoiceNumber(String value) { this.InvoiceNumber = value; return this; }
        public String getCancelledBy() { return CancelledBy; }
        public SalesForceCancelInvoice setCancelledBy(String value) { this.CancelledBy = value; return this; }
        public String getCancelReason() { return CancelReason; }
        public SalesForceCancelInvoice setCancelReason(String value) { this.CancelReason = value; return this; }
        public String getNotes() { return Notes; }
        public SalesForceCancelInvoice setNotes(String value) { this.Notes = value; return this; }
    }

    public static class SalesForceCancelInvoiceCollectionReply implements IHaveErrorField
    {
        public ArrayList<SalesForceCancelInvoiceReply> CancelInvoiceReply = null;
        public Boolean IsError = null;
        
        public ArrayList<SalesForceCancelInvoiceReply> getCancelInvoiceReply() { return CancelInvoiceReply; }
        public SalesForceCancelInvoiceCollectionReply setCancelInvoiceReply(ArrayList<SalesForceCancelInvoiceReply> value) { this.CancelInvoiceReply = value; return this; }
        public Boolean getIsError() { return IsError; }
        public SalesForceCancelInvoiceCollectionReply setIsError(Boolean value) { this.IsError = value; return this; }
    }

    public static class SalesForceCancelInvoiceReply implements IHaveErrorField
    {
        public String ClassName = null;
        public String UniqueId = null;
        public Date CreatedDateTime = null;
        public Integer ClientId = null;
        public Integer ErrorCode = null;
        public String ErrorMessage = null;
        public String InvoiceNumber = null;
        public Boolean IsError = null;
        
        public String getClassName() { return ClassName; }
        public SalesForceCancelInvoiceReply setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public SalesForceCancelInvoiceReply setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public SalesForceCancelInvoiceReply setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public SalesForceCancelInvoiceReply setClientId(Integer value) { this.ClientId = value; return this; }
        public Integer getErrorCode() { return ErrorCode; }
        public SalesForceCancelInvoiceReply setErrorCode(Integer value) { this.ErrorCode = value; return this; }
        public String getErrorMessage() { return ErrorMessage; }
        public SalesForceCancelInvoiceReply setErrorMessage(String value) { this.ErrorMessage = value; return this; }
        public String getInvoiceNumber() { return InvoiceNumber; }
        public SalesForceCancelInvoiceReply setInvoiceNumber(String value) { this.InvoiceNumber = value; return this; }
        public Boolean getIsError() { return IsError; }
        public SalesForceCancelInvoiceReply setIsError(Boolean value) { this.IsError = value; return this; }
    }

}

Java SalesForceCancelInvoiceCollection DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/SalesForce/CancelInvoiceCollection HTTP/1.1 
Host: devapi.billhighway.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	CancelInvoiceCollection: 
	[
		{
			ClassName: String,
			UniqueId: String,
			CreatedDateTime: 0001-01-01,
			ClientId: 0,
			GroupId: String,
			OpportunityId: String,
			InvoiceNumber: String,
			CancelledBy: String,
			CancelReason: String,
			Notes: String
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	CancelInvoiceReply: 
	[
		{
			ClassName: String,
			UniqueId: String,
			CreatedDateTime: 0001-01-01,
			ClientId: 0,
			ErrorCode: 0,
			ErrorMessage: String,
			InvoiceNumber: String,
			IsError: False
		}
	],
	IsError: False
}