Billhighway Cloud API

<back to all web services

SalesForcePmi

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

public class dtos
{

    public static class SalesForcePmi
    {
        public String ClassName = null;
        public String UniqueId = null;
        public Date CreatedDateTime = null;
        public Integer ClientId = null;
        public Integer GroupId = null;
        public SalesForceMember MemberInfo = null;
        public ArrayList<SalesForceInvoice> InvoiceCollection = null;
        public SalesForceCreditCardPayment CcPaymentInfo = null;
        public SalesForceCreateApplyCredit CreditInfo = null;
        public AchPayment AchPaymentInfo = null;
        public Long LockboxId = null;
        
        public String getClassName() { return ClassName; }
        public SalesForcePmi setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public SalesForcePmi setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public SalesForcePmi setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public SalesForcePmi setClientId(Integer value) { this.ClientId = value; return this; }
        public Integer getGroupId() { return GroupId; }
        public SalesForcePmi setGroupId(Integer value) { this.GroupId = value; return this; }
        public SalesForceMember getMemberInfo() { return MemberInfo; }
        public SalesForcePmi setMemberInfo(SalesForceMember value) { this.MemberInfo = value; return this; }
        public ArrayList<SalesForceInvoice> getInvoiceCollection() { return InvoiceCollection; }
        public SalesForcePmi setInvoiceCollection(ArrayList<SalesForceInvoice> value) { this.InvoiceCollection = value; return this; }
        public SalesForceCreditCardPayment getCcPaymentInfo() { return CcPaymentInfo; }
        public SalesForcePmi setCcPaymentInfo(SalesForceCreditCardPayment value) { this.CcPaymentInfo = value; return this; }
        public SalesForceCreateApplyCredit getCreditInfo() { return CreditInfo; }
        public SalesForcePmi setCreditInfo(SalesForceCreateApplyCredit value) { this.CreditInfo = value; return this; }
        public AchPayment getAchPaymentInfo() { return AchPaymentInfo; }
        public SalesForcePmi setAchPaymentInfo(AchPayment value) { this.AchPaymentInfo = value; return this; }
        public Long getLockboxId() { return LockboxId; }
        public SalesForcePmi setLockboxId(Long value) { this.LockboxId = value; return this; }
    }

    public static class SalesForceMember
    {
        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 AlternateUserId = null;
        public Integer BhUserId = null;
        public String FirstName = null;
        public String LastName = null;
        public String MiddleName = null;
        public String PreferredEmailAddress = null;
        public String OtherEmailAddress = null;
        public String PreferredPhoneNumber = null;
        public String PreferredAddress1 = null;
        public String PreferredAddress2 = null;
        public String PreferredCity = null;
        public String PreferredState = null;
        public String PreferredZip = null;
        public String PreferredCountry = null;
        public String AccessLevel = null;
        public String MemberStatus = null;
        public String MemberTypeClient = null;
        public String BillingType = null;
        public Integer FiscalYear = null;
        public String WorkLocation = null;
        public Date DOB = null;
        public String Paperless = null;
        public String DisplayName = null;
        public String DisableLogin = null;
        public RecurringInvoiceSettings RecurringInvoiceSettings = null;
        public ArrayList<SubscriberFormField> FormFields = null;
        public ArrayList<AttributeItem> Attributes = null;
        public ArrayList<Chapter> GroupList = null;
        
        public String getClassName() { return ClassName; }
        public SalesForceMember setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public SalesForceMember setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public SalesForceMember setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public SalesForceMember setClientId(Integer value) { this.ClientId = value; return this; }
        public String getGroupId() { return GroupId; }
        public SalesForceMember setGroupId(String value) { this.GroupId = value; return this; }
        public String getUserId() { return UserId; }
        public SalesForceMember setUserId(String value) { this.UserId = value; return this; }
        public String getAlternateUserId() { return AlternateUserId; }
        public SalesForceMember setAlternateUserId(String value) { this.AlternateUserId = value; return this; }
        public Integer getBhUserId() { return BhUserId; }
        public SalesForceMember setBhUserId(Integer value) { this.BhUserId = value; return this; }
        public String getFirstName() { return FirstName; }
        public SalesForceMember setFirstName(String value) { this.FirstName = value; return this; }
        public String getLastName() { return LastName; }
        public SalesForceMember setLastName(String value) { this.LastName = value; return this; }
        public String getMiddleName() { return MiddleName; }
        public SalesForceMember setMiddleName(String value) { this.MiddleName = value; return this; }
        public String getPreferredEmailAddress() { return PreferredEmailAddress; }
        public SalesForceMember setPreferredEmailAddress(String value) { this.PreferredEmailAddress = value; return this; }
        public String getOtherEmailAddress() { return OtherEmailAddress; }
        public SalesForceMember setOtherEmailAddress(String value) { this.OtherEmailAddress = value; return this; }
        public String getPreferredPhoneNumber() { return PreferredPhoneNumber; }
        public SalesForceMember setPreferredPhoneNumber(String value) { this.PreferredPhoneNumber = value; return this; }
        public String getPreferredAddress1() { return PreferredAddress1; }
        public SalesForceMember setPreferredAddress1(String value) { this.PreferredAddress1 = value; return this; }
        public String getPreferredAddress2() { return PreferredAddress2; }
        public SalesForceMember setPreferredAddress2(String value) { this.PreferredAddress2 = value; return this; }
        public String getPreferredCity() { return PreferredCity; }
        public SalesForceMember setPreferredCity(String value) { this.PreferredCity = value; return this; }
        public String getPreferredState() { return PreferredState; }
        public SalesForceMember setPreferredState(String value) { this.PreferredState = value; return this; }
        public String getPreferredZip() { return PreferredZip; }
        public SalesForceMember setPreferredZip(String value) { this.PreferredZip = value; return this; }
        public String getPreferredCountry() { return PreferredCountry; }
        public SalesForceMember setPreferredCountry(String value) { this.PreferredCountry = value; return this; }
        public String getAccessLevel() { return AccessLevel; }
        public SalesForceMember setAccessLevel(String value) { this.AccessLevel = value; return this; }
        public String getMemberStatus() { return MemberStatus; }
        public SalesForceMember setMemberStatus(String value) { this.MemberStatus = value; return this; }
        public String getMemberTypeClient() { return MemberTypeClient; }
        public SalesForceMember setMemberTypeClient(String value) { this.MemberTypeClient = value; return this; }
        public String getBillingType() { return BillingType; }
        public SalesForceMember setBillingType(String value) { this.BillingType = value; return this; }
        public Integer getFiscalYear() { return FiscalYear; }
        public SalesForceMember setFiscalYear(Integer value) { this.FiscalYear = value; return this; }
        public String getWorkLocation() { return WorkLocation; }
        public SalesForceMember setWorkLocation(String value) { this.WorkLocation = value; return this; }
        public Date getDob() { return DOB; }
        public SalesForceMember setDob(Date value) { this.DOB = value; return this; }
        public String getPaperless() { return Paperless; }
        public SalesForceMember setPaperless(String value) { this.Paperless = value; return this; }
        public String getDisplayName() { return DisplayName; }
        public SalesForceMember setDisplayName(String value) { this.DisplayName = value; return this; }
        public String getDisableLogin() { return DisableLogin; }
        public SalesForceMember setDisableLogin(String value) { this.DisableLogin = value; return this; }
        public RecurringInvoiceSettings getRecurringInvoiceSettings() { return RecurringInvoiceSettings; }
        public SalesForceMember setRecurringInvoiceSettings(RecurringInvoiceSettings value) { this.RecurringInvoiceSettings = value; return this; }
        public ArrayList<SubscriberFormField> getFormFields() { return FormFields; }
        public SalesForceMember setFormFields(ArrayList<SubscriberFormField> value) { this.FormFields = value; return this; }
        public ArrayList<AttributeItem> getAttributes() { return Attributes; }
        public SalesForceMember setAttributes(ArrayList<AttributeItem> value) { this.Attributes = value; return this; }
        public ArrayList<Chapter> getGroupList() { return GroupList; }
        public SalesForceMember setGroupList(ArrayList<Chapter> value) { this.GroupList = value; return this; }
    }

    public static class RecurringInvoiceSettings
    {
        public String DonationAmount = null;
        
        public String getDonationAmount() { return DonationAmount; }
        public RecurringInvoiceSettings setDonationAmount(String value) { this.DonationAmount = value; return this; }
    }

    public static class SubscriberFormField
    {
        public String Name = null;
        public String Value = null;
        
        public String getName() { return Name; }
        public SubscriberFormField setName(String value) { this.Name = value; return this; }
        public String getValue() { return Value; }
        public SubscriberFormField setValue(String value) { this.Value = value; return this; }
    }

    public static class AttributeItem
    {
        public String Name = null;
        public String Value = null;
        
        public String getName() { return Name; }
        public AttributeItem setName(String value) { this.Name = value; return this; }
        public String getValue() { return Value; }
        public AttributeItem setValue(String value) { this.Value = value; return this; }
    }

    public static class Chapter
    {
        public String GroupId = null;
        
        public String getGroupId() { return GroupId; }
        public Chapter setGroupId(String value) { this.GroupId = 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 SalesForceCreditCardPayment
    {
        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 Integer BhUserId = null;
        public String Amount = null;
        public Boolean AutoPay = null;
        public String CurrencyType = null;
        public String Country = null;
        public String CardReferenceOrCardNumber = null;
        public Boolean StoreCardInfo = null;
        public String Address1 = null;
        public String Address2 = null;
        public String BillingCity = null;
        public String BillingState = null;
        public String PreferredEmailAddress = null;
        public String Memo = null;
        public String OpportunityId = null;
        public Integer ExpMonth = null;
        public Integer ExpYear = null;
        public String Cvv = null;
        public String PostalCode = null;
        public String Location = null;
        public String NameOnCard = null;
        public String CardType = null;
        public ArrayList<SalesForceMemberPaymentInvoiceDetail> InvoiceList = null;
        
        public String getClassName() { return ClassName; }
        public SalesForceCreditCardPayment setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public SalesForceCreditCardPayment setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public SalesForceCreditCardPayment setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public SalesForceCreditCardPayment setClientId(Integer value) { this.ClientId = value; return this; }
        public String getGroupId() { return GroupId; }
        public SalesForceCreditCardPayment setGroupId(String value) { this.GroupId = value; return this; }
        public String getUserId() { return UserId; }
        public SalesForceCreditCardPayment setUserId(String value) { this.UserId = value; return this; }
        public Integer getBhUserId() { return BhUserId; }
        public SalesForceCreditCardPayment setBhUserId(Integer value) { this.BhUserId = value; return this; }
        public String getAmount() { return Amount; }
        public SalesForceCreditCardPayment setAmount(String value) { this.Amount = value; return this; }
        public Boolean isAutoPay() { return AutoPay; }
        public SalesForceCreditCardPayment setAutoPay(Boolean value) { this.AutoPay = value; return this; }
        public String getCurrencyType() { return CurrencyType; }
        public SalesForceCreditCardPayment setCurrencyType(String value) { this.CurrencyType = value; return this; }
        public String getCountry() { return Country; }
        public SalesForceCreditCardPayment setCountry(String value) { this.Country = value; return this; }
        public String getCardReferenceOrCardNumber() { return CardReferenceOrCardNumber; }
        public SalesForceCreditCardPayment setCardReferenceOrCardNumber(String value) { this.CardReferenceOrCardNumber = value; return this; }
        public Boolean isStoreCardInfo() { return StoreCardInfo; }
        public SalesForceCreditCardPayment setStoreCardInfo(Boolean value) { this.StoreCardInfo = value; return this; }
        public String getAddress1() { return Address1; }
        public SalesForceCreditCardPayment setAddress1(String value) { this.Address1 = value; return this; }
        public String getAddress2() { return Address2; }
        public SalesForceCreditCardPayment setAddress2(String value) { this.Address2 = value; return this; }
        public String getBillingCity() { return BillingCity; }
        public SalesForceCreditCardPayment setBillingCity(String value) { this.BillingCity = value; return this; }
        public String getBillingState() { return BillingState; }
        public SalesForceCreditCardPayment setBillingState(String value) { this.BillingState = value; return this; }
        public String getPreferredEmailAddress() { return PreferredEmailAddress; }
        public SalesForceCreditCardPayment setPreferredEmailAddress(String value) { this.PreferredEmailAddress = value; return this; }
        public String getMemo() { return Memo; }
        public SalesForceCreditCardPayment setMemo(String value) { this.Memo = value; return this; }
        public String getOpportunityId() { return OpportunityId; }
        public SalesForceCreditCardPayment setOpportunityId(String value) { this.OpportunityId = value; return this; }
        public Integer getExpMonth() { return ExpMonth; }
        public SalesForceCreditCardPayment setExpMonth(Integer value) { this.ExpMonth = value; return this; }
        public Integer getExpYear() { return ExpYear; }
        public SalesForceCreditCardPayment setExpYear(Integer value) { this.ExpYear = value; return this; }
        public String getCvv() { return Cvv; }
        public SalesForceCreditCardPayment setCvv(String value) { this.Cvv = value; return this; }
        public String getPostalCode() { return PostalCode; }
        public SalesForceCreditCardPayment setPostalCode(String value) { this.PostalCode = value; return this; }
        public String getLocation() { return Location; }
        public SalesForceCreditCardPayment setLocation(String value) { this.Location = value; return this; }
        public String getNameOnCard() { return NameOnCard; }
        public SalesForceCreditCardPayment setNameOnCard(String value) { this.NameOnCard = value; return this; }
        public String getCardType() { return CardType; }
        public SalesForceCreditCardPayment setCardType(String value) { this.CardType = value; return this; }
        public ArrayList<SalesForceMemberPaymentInvoiceDetail> getInvoiceList() { return InvoiceList; }
        public SalesForceCreditCardPayment setInvoiceList(ArrayList<SalesForceMemberPaymentInvoiceDetail> value) { this.InvoiceList = value; return this; }
    }

    public static class SalesForceMemberPaymentInvoiceDetail
    {
        public String ClassName = null;
        public String UniqueId = null;
        public Date CreatedDateTime = null;
        public Integer ClientId = null;
        public Integer Invoice = null;
        public String AmountPaid = null;
        
        public String getClassName() { return ClassName; }
        public SalesForceMemberPaymentInvoiceDetail setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public SalesForceMemberPaymentInvoiceDetail setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public SalesForceMemberPaymentInvoiceDetail setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public SalesForceMemberPaymentInvoiceDetail setClientId(Integer value) { this.ClientId = value; return this; }
        public Integer getInvoice() { return Invoice; }
        public SalesForceMemberPaymentInvoiceDetail setInvoice(Integer value) { this.Invoice = value; return this; }
        public String getAmountPaid() { return AmountPaid; }
        public SalesForceMemberPaymentInvoiceDetail setAmountPaid(String value) { this.AmountPaid = value; return this; }
    }

    public static class SalesForceCreateApplyCredit
    {
        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 Integer BhUserId = null;
        public Integer CreditId = null;
        public String CurrencyType = null;
        public String CreditType = null;
        public String Notes = null;
        public ArrayList<SalesForceCreditInvoiceDetails> InvoiceDetails = null;
        
        public String getClassName() { return ClassName; }
        public SalesForceCreateApplyCredit setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public SalesForceCreateApplyCredit setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public SalesForceCreateApplyCredit setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public SalesForceCreateApplyCredit setClientId(Integer value) { this.ClientId = value; return this; }
        public String getGroupId() { return GroupId; }
        public SalesForceCreateApplyCredit setGroupId(String value) { this.GroupId = value; return this; }
        public String getUserId() { return UserId; }
        public SalesForceCreateApplyCredit setUserId(String value) { this.UserId = value; return this; }
        public Integer getBhUserId() { return BhUserId; }
        public SalesForceCreateApplyCredit setBhUserId(Integer value) { this.BhUserId = value; return this; }
        public Integer getCreditId() { return CreditId; }
        public SalesForceCreateApplyCredit setCreditId(Integer value) { this.CreditId = value; return this; }
        public String getCurrencyType() { return CurrencyType; }
        public SalesForceCreateApplyCredit setCurrencyType(String value) { this.CurrencyType = value; return this; }
        public String getCreditType() { return CreditType; }
        public SalesForceCreateApplyCredit setCreditType(String value) { this.CreditType = value; return this; }
        public String getNotes() { return Notes; }
        public SalesForceCreateApplyCredit setNotes(String value) { this.Notes = value; return this; }
        public ArrayList<SalesForceCreditInvoiceDetails> getInvoiceDetails() { return InvoiceDetails; }
        public SalesForceCreateApplyCredit setInvoiceDetails(ArrayList<SalesForceCreditInvoiceDetails> value) { this.InvoiceDetails = value; return this; }
    }

    public static class SalesForceCreditInvoiceDetails
    {
        public Long Invoice = null;
        public BigDecimal AmountPaid = null;
        public String Region = null;
        public String CostCenter = null;
        
        public Long getInvoice() { return Invoice; }
        public SalesForceCreditInvoiceDetails setInvoice(Long value) { this.Invoice = value; return this; }
        public BigDecimal getAmountPaid() { return AmountPaid; }
        public SalesForceCreditInvoiceDetails setAmountPaid(BigDecimal value) { this.AmountPaid = value; return this; }
        public String getRegion() { return Region; }
        public SalesForceCreditInvoiceDetails setRegion(String value) { this.Region = value; return this; }
        public String getCostCenter() { return CostCenter; }
        public SalesForceCreditInvoiceDetails setCostCenter(String value) { this.CostCenter = value; return this; }
    }

    public static class AchPayment
    {
        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 Integer BhUserId = null;
        public BigDecimal Amount = null;
        public String CurrencyType = null;
        public String Country = null;
        public String RoutingNumber = null;
        public String AccountNumber = null;
        public String AchReference = null;
        public String AccountType = null;
        public Boolean IsSavingsAccount = null;
        public String PayerName = null;
        public String CheckNumber = null;
        public String PreferredEmailAddress = null;
        public String Memo = null;
        public ArrayList<SalesForceMemberPaymentInvoiceDetail> InvoiceList = null;
        public Boolean AutoPay = null;
        public Boolean StoreAchInfo = null;
        public Integer EncryptionTypeId = null;
        
        public String getClassName() { return ClassName; }
        public AchPayment setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public AchPayment setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public AchPayment setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public AchPayment setClientId(Integer value) { this.ClientId = value; return this; }
        public String getGroupId() { return GroupId; }
        public AchPayment setGroupId(String value) { this.GroupId = value; return this; }
        public String getUserId() { return UserId; }
        public AchPayment setUserId(String value) { this.UserId = value; return this; }
        public Integer getBhUserId() { return BhUserId; }
        public AchPayment setBhUserId(Integer value) { this.BhUserId = value; return this; }
        public BigDecimal getAmount() { return Amount; }
        public AchPayment setAmount(BigDecimal value) { this.Amount = value; return this; }
        public String getCurrencyType() { return CurrencyType; }
        public AchPayment setCurrencyType(String value) { this.CurrencyType = value; return this; }
        public String getCountry() { return Country; }
        public AchPayment setCountry(String value) { this.Country = value; return this; }
        public String getRoutingNumber() { return RoutingNumber; }
        public AchPayment setRoutingNumber(String value) { this.RoutingNumber = value; return this; }
        public String getAccountNumber() { return AccountNumber; }
        public AchPayment setAccountNumber(String value) { this.AccountNumber = value; return this; }
        public String getAchReference() { return AchReference; }
        public AchPayment setAchReference(String value) { this.AchReference = value; return this; }
        public String getAccountType() { return AccountType; }
        public AchPayment setAccountType(String value) { this.AccountType = value; return this; }
        public Boolean getIsSavingsAccount() { return IsSavingsAccount; }
        public AchPayment setIsSavingsAccount(Boolean value) { this.IsSavingsAccount = value; return this; }
        public String getPayerName() { return PayerName; }
        public AchPayment setPayerName(String value) { this.PayerName = value; return this; }
        public String getCheckNumber() { return CheckNumber; }
        public AchPayment setCheckNumber(String value) { this.CheckNumber = value; return this; }
        public String getPreferredEmailAddress() { return PreferredEmailAddress; }
        public AchPayment setPreferredEmailAddress(String value) { this.PreferredEmailAddress = value; return this; }
        public String getMemo() { return Memo; }
        public AchPayment setMemo(String value) { this.Memo = value; return this; }
        public ArrayList<SalesForceMemberPaymentInvoiceDetail> getInvoiceList() { return InvoiceList; }
        public AchPayment setInvoiceList(ArrayList<SalesForceMemberPaymentInvoiceDetail> value) { this.InvoiceList = value; return this; }
        public Boolean isAutoPay() { return AutoPay; }
        public AchPayment setAutoPay(Boolean value) { this.AutoPay = value; return this; }
        public Boolean isStoreAchInfo() { return StoreAchInfo; }
        public AchPayment setStoreAchInfo(Boolean value) { this.StoreAchInfo = value; return this; }
        public Integer getEncryptionTypeId() { return EncryptionTypeId; }
        public AchPayment setEncryptionTypeId(Integer value) { this.EncryptionTypeId = value; return this; }
    }

    public static class SalesForcePmiReply implements IHaveErrorField
    {
        public String ClassName = null;
        public String UniqueId = null;
        public Date CreatedDateTime = null;
        public Integer ClientId = null;
        public String BillhighwayPaymentConfirmationNumber = null;
        public Integer BillhighwayUserId = null;
        public ArrayList<Integer> BhInvoiceBatchId = null;
        public Long ChapMemPayid = null;
        public Integer ErrorCode = null;
        public String ErrorMessage = null;
        public Boolean IsError = null;
        
        public String getClassName() { return ClassName; }
        public SalesForcePmiReply setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public SalesForcePmiReply setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public SalesForcePmiReply setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public SalesForcePmiReply setClientId(Integer value) { this.ClientId = value; return this; }
        public String getBillhighwayPaymentConfirmationNumber() { return BillhighwayPaymentConfirmationNumber; }
        public SalesForcePmiReply setBillhighwayPaymentConfirmationNumber(String value) { this.BillhighwayPaymentConfirmationNumber = value; return this; }
        public Integer getBillhighwayUserId() { return BillhighwayUserId; }
        public SalesForcePmiReply setBillhighwayUserId(Integer value) { this.BillhighwayUserId = value; return this; }
        public ArrayList<Integer> getBhInvoiceBatchId() { return BhInvoiceBatchId; }
        public SalesForcePmiReply setBhInvoiceBatchId(ArrayList<Integer> value) { this.BhInvoiceBatchId = value; return this; }
        public Long getChapMemPayid() { return ChapMemPayid; }
        public SalesForcePmiReply setChapMemPayid(Long value) { this.ChapMemPayid = value; return this; }
        public Integer getErrorCode() { return ErrorCode; }
        public SalesForcePmiReply setErrorCode(Integer value) { this.ErrorCode = value; return this; }
        public String getErrorMessage() { return ErrorMessage; }
        public SalesForcePmiReply setErrorMessage(String value) { this.ErrorMessage = value; return this; }
        public Boolean getIsError() { return IsError; }
        public SalesForcePmiReply setIsError(Boolean value) { this.IsError = value; return this; }
    }

}

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

<SalesForcePmi xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.SalesForce">
  <AchPaymentInfo>
    <AccountNumber>String</AccountNumber>
    <AccountType>String</AccountType>
    <AchReference>String</AchReference>
    <Amount>0</Amount>
    <AutoPay>false</AutoPay>
    <BhUserId>0</BhUserId>
    <CheckNumber>String</CheckNumber>
    <ClassName>String</ClassName>
    <ClientId>0</ClientId>
    <Country>String</Country>
    <CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime>
    <CurrencyType>String</CurrencyType>
    <EncryptionTypeId>0</EncryptionTypeId>
    <GroupId>String</GroupId>
    <InvoiceList>
      <SalesForceMemberPaymentInvoiceDetail>
        <AmountPaid>String</AmountPaid>
        <ClassName>String</ClassName>
        <ClientId>0</ClientId>
        <CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime>
        <Invoice>0</Invoice>
        <UniqueId>String</UniqueId>
      </SalesForceMemberPaymentInvoiceDetail>
    </InvoiceList>
    <Memo>String</Memo>
    <PayerName>String</PayerName>
    <PreferredEmailAddress>String</PreferredEmailAddress>
    <RoutingNumber>String</RoutingNumber>
    <StoreAchInfo>false</StoreAchInfo>
    <UniqueId>String</UniqueId>
    <UserId>String</UserId>
  </AchPaymentInfo>
  <CcPaymentInfo>
    <Address1>String</Address1>
    <Address2>String</Address2>
    <Amount>String</Amount>
    <AutoPay>false</AutoPay>
    <BhUserId>0</BhUserId>
    <BillingCity>String</BillingCity>
    <BillingState>String</BillingState>
    <CardReferenceOrCardNumber>String</CardReferenceOrCardNumber>
    <CardType>String</CardType>
    <ClassName>String</ClassName>
    <ClientId>0</ClientId>
    <Country>String</Country>
    <CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime>
    <CurrencyType>String</CurrencyType>
    <Cvv>String</Cvv>
    <ExpMonth>0</ExpMonth>
    <ExpYear>0</ExpYear>
    <GroupId>String</GroupId>
    <InvoiceList>
      <SalesForceMemberPaymentInvoiceDetail>
        <AmountPaid>String</AmountPaid>
        <ClassName>String</ClassName>
        <ClientId>0</ClientId>
        <CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime>
        <Invoice>0</Invoice>
        <UniqueId>String</UniqueId>
      </SalesForceMemberPaymentInvoiceDetail>
    </InvoiceList>
    <Location>String</Location>
    <Memo>String</Memo>
    <NameOnCard>String</NameOnCard>
    <OpportunityId>String</OpportunityId>
    <PostalCode>String</PostalCode>
    <PreferredEmailAddress>String</PreferredEmailAddress>
    <StoreCardInfo>false</StoreCardInfo>
    <UniqueId>String</UniqueId>
    <UserId>String</UserId>
  </CcPaymentInfo>
  <ClassName>String</ClassName>
  <ClientId>0</ClientId>
  <CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime>
  <CreditInfo>
    <BhUserId>0</BhUserId>
    <ClassName>String</ClassName>
    <ClientId>0</ClientId>
    <CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime>
    <CreditId>0</CreditId>
    <CreditType>String</CreditType>
    <CurrencyType>String</CurrencyType>
    <GroupId>String</GroupId>
    <InvoiceDetails>
      <SalesForceCreditInvoiceDetails>
        <AmountPaid>0</AmountPaid>
        <CostCenter>String</CostCenter>
        <Invoice>0</Invoice>
        <Region>String</Region>
      </SalesForceCreditInvoiceDetails>
    </InvoiceDetails>
    <Notes>String</Notes>
    <UniqueId>String</UniqueId>
    <UserId>String</UserId>
  </CreditInfo>
  <GroupId>0</GroupId>
  <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>
  <LockboxId>0</LockboxId>
  <MemberInfo>
    <AccessLevel>String</AccessLevel>
    <AlternateUserId>String</AlternateUserId>
    <Attributes xmlns:d3p1="https://www.billhighway.com/api">
      <d3p1:AttributeItem>
        <d3p1:Name>String</d3p1:Name>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:AttributeItem>
    </Attributes>
    <BhUserId>0</BhUserId>
    <BillingType>String</BillingType>
    <ClassName>String</ClassName>
    <ClientId>0</ClientId>
    <CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime>
    <DOB>0001-01-01T00:00:00</DOB>
    <DisableLogin>String</DisableLogin>
    <DisplayName>String</DisplayName>
    <FirstName>String</FirstName>
    <FiscalYear>0</FiscalYear>
    <FormFields>
      <SubscriberFormField>
        <_x003C_Name_x003E_k__BackingField>String</_x003C_Name_x003E_k__BackingField>
        <_x003C_Value_x003E_k__BackingField>String</_x003C_Value_x003E_k__BackingField>
      </SubscriberFormField>
    </FormFields>
    <GroupId>String</GroupId>
    <GroupList xmlns:d3p1="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common.DTO">
      <d3p1:Chapter>
        <d3p1:GroupId>String</d3p1:GroupId>
      </d3p1:Chapter>
    </GroupList>
    <LastName>String</LastName>
    <MemberStatus>String</MemberStatus>
    <MemberTypeClient>String</MemberTypeClient>
    <MiddleName>String</MiddleName>
    <OtherEmailAddress>String</OtherEmailAddress>
    <Paperless>String</Paperless>
    <PreferredAddress1>String</PreferredAddress1>
    <PreferredAddress2>String</PreferredAddress2>
    <PreferredCity>String</PreferredCity>
    <PreferredCountry>String</PreferredCountry>
    <PreferredEmailAddress>String</PreferredEmailAddress>
    <PreferredPhoneNumber>String</PreferredPhoneNumber>
    <PreferredState>String</PreferredState>
    <PreferredZip>String</PreferredZip>
    <RecurringInvoiceSettings xmlns:d3p1="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common.DTO.Member">
      <d3p1:DonationAmount>String</d3p1:DonationAmount>
    </RecurringInvoiceSettings>
    <UniqueId>String</UniqueId>
    <UserId>String</UserId>
    <WorkLocation>String</WorkLocation>
  </MemberInfo>
  <UniqueId>String</UniqueId>
</SalesForcePmi>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SalesForcePmiReply xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.SalesForce">
  <BhInvoiceBatchId xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>0</d2p1:int>
  </BhInvoiceBatchId>
  <BillhighwayPaymentConfirmationNumber>String</BillhighwayPaymentConfirmationNumber>
  <BillhighwayUserId>0</BillhighwayUserId>
  <ChapMemPayid>0</ChapMemPayid>
  <ClassName>String</ClassName>
  <ClientId>0</ClientId>
  <CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime>
  <ErrorCode>0</ErrorCode>
  <ErrorMessage>String</ErrorMessage>
  <UniqueId>String</UniqueId>
</SalesForcePmiReply>