| POST | /api/SalesForce/CreditCardPayment |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class SalesForceCreditCardPaymentCollection
{
public ArrayList<SalesForceCreditCardPayment> SalesForceCreditCardPaymentList = null;
public ArrayList<SalesForceCreditCardPayment> getSalesForceCreditCardPaymentList() { return SalesForceCreditCardPaymentList; }
public SalesForceCreditCardPaymentCollection setSalesForceCreditCardPaymentList(ArrayList<SalesForceCreditCardPayment> value) { this.SalesForceCreditCardPaymentList = 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 SalesForceCreditCardPaymentReply
{
public String ClassName = null;
public String UniqueId = null;
public Date CreatedDateTime = null;
public Integer ClientId = null;
public String TransactionId = null;
public Integer ErrorCode = null;
public String ErrorMessage = null;
public String getClassName() { return ClassName; }
public SalesForceCreditCardPaymentReply setClassName(String value) { this.ClassName = value; return this; }
public String getUniqueId() { return UniqueId; }
public SalesForceCreditCardPaymentReply setUniqueId(String value) { this.UniqueId = value; return this; }
public Date getCreatedDateTime() { return CreatedDateTime; }
public SalesForceCreditCardPaymentReply setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
public Integer getClientId() { return ClientId; }
public SalesForceCreditCardPaymentReply setClientId(Integer value) { this.ClientId = value; return this; }
public String getTransactionId() { return TransactionId; }
public SalesForceCreditCardPaymentReply setTransactionId(String value) { this.TransactionId = value; return this; }
public Integer getErrorCode() { return ErrorCode; }
public SalesForceCreditCardPaymentReply setErrorCode(Integer value) { this.ErrorCode = value; return this; }
public String getErrorMessage() { return ErrorMessage; }
public SalesForceCreditCardPaymentReply setErrorMessage(String value) { this.ErrorMessage = value; return this; }
}
}
Java SalesForceCreditCardPaymentCollection DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/SalesForce/CreditCardPayment HTTP/1.1
Host: devapi.billhighway.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"SalesForceCreditCardPaymentList":[{"ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","ClientId":0,"GroupId":"String","UserId":"String","BhUserId":0,"Amount":"String","AutoPay":false,"CurrencyType":"String","Country":"String","CardReferenceOrCardNumber":"String","StoreCardInfo":false,"Address1":"String","Address2":"String","BillingCity":"String","BillingState":"String","PreferredEmailAddress":"String","Memo":"String","OpportunityId":"String","ExpMonth":0,"ExpYear":0,"Cvv":"String","PostalCode":"String","Location":"String","NameOnCard":"String","CardType":"String","InvoiceList":[{"ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","ClientId":0,"Invoice":0,"AmountPaid":"String"}]}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","ClientId":0,"TransactionId":"String","ErrorCode":0,"ErrorMessage":"String"}