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

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

<SalesForceCancelInvoiceCollection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.SalesForce">
  <CancelInvoiceCollection>
    <SalesForceCancelInvoice>
      <CancelReason>String</CancelReason>
      <CancelledBy>String</CancelledBy>
      <ClassName>String</ClassName>
      <ClientId>0</ClientId>
      <CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime>
      <GroupId>String</GroupId>
      <InvoiceNumber>String</InvoiceNumber>
      <Notes>String</Notes>
      <OpportunityId>String</OpportunityId>
      <UniqueId>String</UniqueId>
    </SalesForceCancelInvoice>
  </CancelInvoiceCollection>
</SalesForceCancelInvoiceCollection>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SalesForceCancelInvoiceCollectionReply xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.SalesForce">
  <CancelInvoiceReply>
    <SalesForceCancelInvoiceReply>
      <ClassName>String</ClassName>
      <ClientId>0</ClientId>
      <CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime>
      <ErrorCode>0</ErrorCode>
      <ErrorMessage>String</ErrorMessage>
      <InvoiceNumber>String</InvoiceNumber>
      <UniqueId>String</UniqueId>
    </SalesForceCancelInvoiceReply>
  </CancelInvoiceReply>
</SalesForceCancelInvoiceCollectionReply>