Billhighway Cloud API

<back to all web services

SalesForceInvoiceCollection

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

public class dtos
{

    public static class SalesForceInvoiceCollection
    {
        public ArrayList<SalesForceInvoice> InvoiceCollection = null;
        
        public ArrayList<SalesForceInvoice> getInvoiceCollection() { return InvoiceCollection; }
        public SalesForceInvoiceCollection setInvoiceCollection(ArrayList<SalesForceInvoice> value) { this.InvoiceCollection = value; return this; }
    }

    public static class SalesForceInvoice
    {
        public String ClassName = null;
        public String UniqueId = null;
        public Date CreatedDateTime = null;
        public Integer ClientId = null;
        public String GroupId = null;
        public String UserId = null;
        public String OpportunityId = null;
        public Date InvoiceDueDate = null;
        public Integer Installments = null;
        public Integer Frequency = null;
        public Integer BhUserId = null;
        public String Description = null;
        public Boolean Deliver = null;
        public String CurrencyType = null;
        public ArrayList<SalesForceInvoiceItem> InvoiceItems = null;
        public Integer InvoiceNo = null;
        public BigDecimal InvoiceAmt = null;
        public String ExternalInvBatchNo = null;
        public Boolean ExemptFromLateFee = null;
        
        public String getClassName() { return ClassName; }
        public SalesForceInvoice setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public SalesForceInvoice setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public SalesForceInvoice setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public SalesForceInvoice setClientId(Integer value) { this.ClientId = value; return this; }
        public String getGroupId() { return GroupId; }
        public SalesForceInvoice setGroupId(String value) { this.GroupId = value; return this; }
        public String getUserId() { return UserId; }
        public SalesForceInvoice setUserId(String value) { this.UserId = value; return this; }
        public String getOpportunityId() { return OpportunityId; }
        public SalesForceInvoice setOpportunityId(String value) { this.OpportunityId = value; return this; }
        public Date getInvoiceDueDate() { return InvoiceDueDate; }
        public SalesForceInvoice setInvoiceDueDate(Date value) { this.InvoiceDueDate = value; return this; }
        public Integer getInstallments() { return Installments; }
        public SalesForceInvoice setInstallments(Integer value) { this.Installments = value; return this; }
        public Integer getFrequency() { return Frequency; }
        public SalesForceInvoice setFrequency(Integer value) { this.Frequency = value; return this; }
        public Integer getBhUserId() { return BhUserId; }
        public SalesForceInvoice setBhUserId(Integer value) { this.BhUserId = value; return this; }
        public String getDescription() { return Description; }
        public SalesForceInvoice setDescription(String value) { this.Description = value; return this; }
        public Boolean isDeliver() { return Deliver; }
        public SalesForceInvoice setDeliver(Boolean value) { this.Deliver = value; return this; }
        public String getCurrencyType() { return CurrencyType; }
        public SalesForceInvoice setCurrencyType(String value) { this.CurrencyType = value; return this; }
        public ArrayList<SalesForceInvoiceItem> getInvoiceItems() { return InvoiceItems; }
        public SalesForceInvoice setInvoiceItems(ArrayList<SalesForceInvoiceItem> value) { this.InvoiceItems = value; return this; }
        public Integer getInvoiceNo() { return InvoiceNo; }
        public SalesForceInvoice setInvoiceNo(Integer value) { this.InvoiceNo = value; return this; }
        public BigDecimal getInvoiceAmt() { return InvoiceAmt; }
        public SalesForceInvoice setInvoiceAmt(BigDecimal value) { this.InvoiceAmt = value; return this; }
        public String getExternalInvBatchNo() { return ExternalInvBatchNo; }
        public SalesForceInvoice setExternalInvBatchNo(String value) { this.ExternalInvBatchNo = value; return this; }
        public Boolean isExemptFromLateFee() { return ExemptFromLateFee; }
        public SalesForceInvoice setExemptFromLateFee(Boolean value) { this.ExemptFromLateFee = value; return this; }
    }

    public static class SalesForceInvoiceItem
    {
        public String ClassName = null;
        public String UniqueId = null;
        public Date CreatedDateTime = null;
        public Integer ClientId = null;
        public String ProductName = null;
        public String AmountDue = null;
        public String ProductType = null;
        public Integer ActPatternTypeId = null;
        public Date TermStartDate = null;
        public Date TermEndDate = null;
        public Integer RecognitionPeriod = null;
        public String RevenueAccount = null;
        public String AccountsReceivableAccount = null;
        public String LiabilityAccount = null;
        public String CreditExpenseAccount = null;
        public String InvoiceClearingAccount = null;
        public String CostCenter = null;
        public String Region = null;
        
        public String getClassName() { return ClassName; }
        public SalesForceInvoiceItem setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public SalesForceInvoiceItem setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public SalesForceInvoiceItem setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public SalesForceInvoiceItem setClientId(Integer value) { this.ClientId = value; return this; }
        public String getProductName() { return ProductName; }
        public SalesForceInvoiceItem setProductName(String value) { this.ProductName = value; return this; }
        public String getAmountDue() { return AmountDue; }
        public SalesForceInvoiceItem setAmountDue(String value) { this.AmountDue = value; return this; }
        public String getProductType() { return ProductType; }
        public SalesForceInvoiceItem setProductType(String value) { this.ProductType = value; return this; }
        public Integer getActPatternTypeId() { return ActPatternTypeId; }
        public SalesForceInvoiceItem setActPatternTypeId(Integer value) { this.ActPatternTypeId = value; return this; }
        public Date getTermStartDate() { return TermStartDate; }
        public SalesForceInvoiceItem setTermStartDate(Date value) { this.TermStartDate = value; return this; }
        public Date getTermEndDate() { return TermEndDate; }
        public SalesForceInvoiceItem setTermEndDate(Date value) { this.TermEndDate = value; return this; }
        public Integer getRecognitionPeriod() { return RecognitionPeriod; }
        public SalesForceInvoiceItem setRecognitionPeriod(Integer value) { this.RecognitionPeriod = value; return this; }
        public String getRevenueAccount() { return RevenueAccount; }
        public SalesForceInvoiceItem setRevenueAccount(String value) { this.RevenueAccount = value; return this; }
        public String getAccountsReceivableAccount() { return AccountsReceivableAccount; }
        public SalesForceInvoiceItem setAccountsReceivableAccount(String value) { this.AccountsReceivableAccount = value; return this; }
        public String getLiabilityAccount() { return LiabilityAccount; }
        public SalesForceInvoiceItem setLiabilityAccount(String value) { this.LiabilityAccount = value; return this; }
        public String getCreditExpenseAccount() { return CreditExpenseAccount; }
        public SalesForceInvoiceItem setCreditExpenseAccount(String value) { this.CreditExpenseAccount = value; return this; }
        public String getInvoiceClearingAccount() { return InvoiceClearingAccount; }
        public SalesForceInvoiceItem setInvoiceClearingAccount(String value) { this.InvoiceClearingAccount = value; return this; }
        public String getCostCenter() { return CostCenter; }
        public SalesForceInvoiceItem setCostCenter(String value) { this.CostCenter = value; return this; }
        public String getRegion() { return Region; }
        public SalesForceInvoiceItem setRegion(String value) { this.Region = value; return this; }
    }

    public static class SalesForceInvoiceCollectionReply implements IHaveErrorField
    {
        public ArrayList<SalesForceInvoiceReply> InvoiceReply = null;
        public Boolean IsError = null;
        
        public ArrayList<SalesForceInvoiceReply> getInvoiceReply() { return InvoiceReply; }
        public SalesForceInvoiceCollectionReply setInvoiceReply(ArrayList<SalesForceInvoiceReply> value) { this.InvoiceReply = value; return this; }
        public Boolean getIsError() { return IsError; }
        public SalesForceInvoiceCollectionReply setIsError(Boolean value) { this.IsError = value; return this; }
    }

    public static class SalesForceInvoiceReply
    {
        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 Integer InvBatchNo = null;
        public BigDecimal InvAmount = null;
        
        public String getClassName() { return ClassName; }
        public SalesForceInvoiceReply setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public SalesForceInvoiceReply setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public SalesForceInvoiceReply setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public SalesForceInvoiceReply setClientId(Integer value) { this.ClientId = value; return this; }
        public Integer getErrorCode() { return ErrorCode; }
        public SalesForceInvoiceReply setErrorCode(Integer value) { this.ErrorCode = value; return this; }
        public String getErrorMessage() { return ErrorMessage; }
        public SalesForceInvoiceReply setErrorMessage(String value) { this.ErrorMessage = value; return this; }
        public Integer getInvBatchNo() { return InvBatchNo; }
        public SalesForceInvoiceReply setInvBatchNo(Integer value) { this.InvBatchNo = value; return this; }
        public BigDecimal getInvAmount() { return InvAmount; }
        public SalesForceInvoiceReply setInvAmount(BigDecimal value) { this.InvAmount = value; return this; }
    }

}

Java SalesForceInvoiceCollection DTOs

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

HTTP + CSV

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

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

{"InvoiceCollection":[{"ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","ClientId":0,"GroupId":"String","UserId":"String","OpportunityId":"String","InvoiceDueDate":"0001-01-01T00:00:00.0000000","Installments":0,"Frequency":0,"BhUserId":0,"Description":"String","Deliver":false,"CurrencyType":"String","InvoiceItems":[{"ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","ClientId":0,"ProductName":"String","AmountDue":"String","ProductType":"String","ActPatternTypeId":0,"TermStartDate":"0001-01-01T00:00:00.0000000","TermEndDate":"0001-01-01T00:00:00.0000000","RecognitionPeriod":0,"RevenueAccount":"String","AccountsReceivableAccount":"String","LiabilityAccount":"String","CreditExpenseAccount":"String","InvoiceClearingAccount":"String","CostCenter":"String","Region":"String"}],"InvoiceNo":0,"InvoiceAmt":0,"ExternalInvBatchNo":"String","ExemptFromLateFee":false}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"InvoiceReply":[{"ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","ClientId":0,"ErrorCode":0,"ErrorMessage":"String","InvBatchNo":0,"InvAmount":0}],"IsError":false}