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 .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/InvoiceCollection HTTP/1.1 
Host: devapi.billhighway.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<SalesForceInvoiceCollection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.SalesForce">
  <InvoiceCollection>
    <SalesForceInvoice>
      <BhUserId>0</BhUserId>
      <ClassName>String</ClassName>
      <ClientId>0</ClientId>
      <CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime>
      <CurrencyType>String</CurrencyType>
      <Deliver>false</Deliver>
      <Description>String</Description>
      <ExemptFromLateFee>false</ExemptFromLateFee>
      <ExternalInvBatchNo>String</ExternalInvBatchNo>
      <Frequency>0</Frequency>
      <GroupId>String</GroupId>
      <Installments>0</Installments>
      <InvoiceAmt>0</InvoiceAmt>
      <InvoiceDueDate>0001-01-01T00:00:00</InvoiceDueDate>
      <InvoiceItems>
        <SalesForceInvoiceItem>
          <AccountsReceivableAccount>String</AccountsReceivableAccount>
          <ActPatternTypeId>0</ActPatternTypeId>
          <AmountDue>String</AmountDue>
          <ClassName>String</ClassName>
          <ClientId>0</ClientId>
          <CostCenter>String</CostCenter>
          <CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime>
          <CreditExpenseAccount>String</CreditExpenseAccount>
          <InvoiceClearingAccount>String</InvoiceClearingAccount>
          <LiabilityAccount>String</LiabilityAccount>
          <ProductName>String</ProductName>
          <ProductType>String</ProductType>
          <RecognitionPeriod>0</RecognitionPeriod>
          <Region>String</Region>
          <RevenueAccount>String</RevenueAccount>
          <TermEndDate>0001-01-01T00:00:00</TermEndDate>
          <TermStartDate>0001-01-01T00:00:00</TermStartDate>
          <UniqueId>String</UniqueId>
        </SalesForceInvoiceItem>
      </InvoiceItems>
      <InvoiceNo>0</InvoiceNo>
      <OpportunityId>String</OpportunityId>
      <UniqueId>String</UniqueId>
      <UserId>String</UserId>
    </SalesForceInvoice>
  </InvoiceCollection>
</SalesForceInvoiceCollection>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

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