Billhighway Cloud API

<back to all web services

BillMeLaterSubscription

import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class BillMeLaterSubscription
    {
        public ApiClientHeader Header = null;
        public SubscriptionParameters SubscriptionInfo = null;
        public ArrayList<CampaignInformation> CampaignInfo = null;
        
        public ApiClientHeader getHeader() { return Header; }
        public BillMeLaterSubscription setHeader(ApiClientHeader value) { this.Header = value; return this; }
        public SubscriptionParameters getSubscriptionInfo() { return SubscriptionInfo; }
        public BillMeLaterSubscription setSubscriptionInfo(SubscriptionParameters value) { this.SubscriptionInfo = value; return this; }
        public ArrayList<CampaignInformation> getCampaignInfo() { return CampaignInfo; }
        public BillMeLaterSubscription setCampaignInfo(ArrayList<CampaignInformation> value) { this.CampaignInfo = value; return this; }
    }

    public static class ApiClientHeader
    {
        public Integer ClientId = null;
        public String Referrer = null;
        public String IpAddress = null;
        public Integer LoggedInUserId = null;
        public Integer GroupId = null;
        public String Task = null;
        public String Machine = null;
        public String Location = null;
        public Integer CreatedBy = null;
        public Integer CampaignId = null;
        public BigDecimal ReCaptchaScore = null;
        
        public Integer getClientId() { return ClientId; }
        public ApiClientHeader setClientId(Integer value) { this.ClientId = value; return this; }
        public String getReferrer() { return Referrer; }
        public ApiClientHeader setReferrer(String value) { this.Referrer = value; return this; }
        public String getIpAddress() { return IpAddress; }
        public ApiClientHeader setIpAddress(String value) { this.IpAddress = value; return this; }
        public Integer getLoggedInUserId() { return LoggedInUserId; }
        public ApiClientHeader setLoggedInUserId(Integer value) { this.LoggedInUserId = value; return this; }
        public Integer getGroupId() { return GroupId; }
        public ApiClientHeader setGroupId(Integer value) { this.GroupId = value; return this; }
        public String getTask() { return Task; }
        public ApiClientHeader setTask(String value) { this.Task = value; return this; }
        public String getMachine() { return Machine; }
        public ApiClientHeader setMachine(String value) { this.Machine = value; return this; }
        public String getLocation() { return Location; }
        public ApiClientHeader setLocation(String value) { this.Location = value; return this; }
        public Integer getCreatedBy() { return CreatedBy; }
        public ApiClientHeader setCreatedBy(Integer value) { this.CreatedBy = value; return this; }
        public Integer getCampaignId() { return CampaignId; }
        public ApiClientHeader setCampaignId(Integer value) { this.CampaignId = value; return this; }
        public BigDecimal getReCaptchaScore() { return ReCaptchaScore; }
        public ApiClientHeader setReCaptchaScore(BigDecimal value) { this.ReCaptchaScore = value; return this; }
    }

    public static class SubscriptionParameters
    {
        public Integer FormTemplateID = null;
        public Integer SubscriptionInvoiceID = null;
        public String ClientSubscriberId = null;
        public Integer SignupTypeID = null;
        public Integer FrequencyID = null;
        public Boolean AutoRenew = null;
        public Long CompanyID = null;
        public Integer UserID = null;
        public Long ChapMemPayID = null;
        public Long MemberSubscriptionInvID = null;
        public ArrayList<SubscriberFormField> Fields = null;
        public Integer CreatedBy = null;
        public Integer UpdatedBy = null;
        public Integer AptifyUpdateType = null;
        public Long RenewedMemberSubscriptionInvID = null;
        public Integer ChapId = null;
        
        public Integer getFormTemplateID() { return FormTemplateID; }
        public SubscriptionParameters setFormTemplateID(Integer value) { this.FormTemplateID = value; return this; }
        public Integer getSubscriptionInvoiceID() { return SubscriptionInvoiceID; }
        public SubscriptionParameters setSubscriptionInvoiceID(Integer value) { this.SubscriptionInvoiceID = value; return this; }
        public String getClientSubscriberId() { return ClientSubscriberId; }
        public SubscriptionParameters setClientSubscriberId(String value) { this.ClientSubscriberId = value; return this; }
        public Integer getSignupTypeID() { return SignupTypeID; }
        public SubscriptionParameters setSignupTypeID(Integer value) { this.SignupTypeID = value; return this; }
        public Integer getFrequencyID() { return FrequencyID; }
        public SubscriptionParameters setFrequencyID(Integer value) { this.FrequencyID = value; return this; }
        public Boolean isAutoRenew() { return AutoRenew; }
        public SubscriptionParameters setAutoRenew(Boolean value) { this.AutoRenew = value; return this; }
        public Long getCompanyID() { return CompanyID; }
        public SubscriptionParameters setCompanyID(Long value) { this.CompanyID = value; return this; }
        public Integer getUserID() { return UserID; }
        public SubscriptionParameters setUserID(Integer value) { this.UserID = value; return this; }
        public Long getChapMemPayID() { return ChapMemPayID; }
        public SubscriptionParameters setChapMemPayID(Long value) { this.ChapMemPayID = value; return this; }
        public Long getMemberSubscriptionInvID() { return MemberSubscriptionInvID; }
        public SubscriptionParameters setMemberSubscriptionInvID(Long value) { this.MemberSubscriptionInvID = value; return this; }
        public ArrayList<SubscriberFormField> getFields() { return Fields; }
        public SubscriptionParameters setFields(ArrayList<SubscriberFormField> value) { this.Fields = value; return this; }
        public Integer getCreatedBy() { return CreatedBy; }
        public SubscriptionParameters setCreatedBy(Integer value) { this.CreatedBy = value; return this; }
        public Integer getUpdatedBy() { return UpdatedBy; }
        public SubscriptionParameters setUpdatedBy(Integer value) { this.UpdatedBy = value; return this; }
        public Integer getAptifyUpdateType() { return AptifyUpdateType; }
        public SubscriptionParameters setAptifyUpdateType(Integer value) { this.AptifyUpdateType = value; return this; }
        public Long getRenewedMemberSubscriptionInvID() { return RenewedMemberSubscriptionInvID; }
        public SubscriptionParameters setRenewedMemberSubscriptionInvID(Long value) { this.RenewedMemberSubscriptionInvID = value; return this; }
        public Integer getChapId() { return ChapId; }
        public SubscriptionParameters setChapId(Integer value) { this.ChapId = 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 CampaignInformation
    {
        public Integer CampaignId = null;
        public String CampaignName = null;
        public BigDecimal Amount = null;
        public String ChapPayID = null;
        
        public Integer getCampaignId() { return CampaignId; }
        public CampaignInformation setCampaignId(Integer value) { this.CampaignId = value; return this; }
        public String getCampaignName() { return CampaignName; }
        public CampaignInformation setCampaignName(String value) { this.CampaignName = value; return this; }
        public BigDecimal getAmount() { return Amount; }
        public CampaignInformation setAmount(BigDecimal value) { this.Amount = value; return this; }
        public String getChapPayID() { return ChapPayID; }
        public CampaignInformation setChapPayID(String value) { this.ChapPayID = value; return this; }
    }

    public static class BillMePaymentResult extends BillMeCloudServiceResponse
    {
        public Long TransactionRecordID = null;
        
        public Long getTransactionRecordID() { return TransactionRecordID; }
        public BillMePaymentResult setTransactionRecordID(Long value) { this.TransactionRecordID = value; return this; }
    }

    public static class BillMeCloudServiceResponse
    {
        public Boolean IsDuplicate = null;
        public Boolean IsSuccessful = null;
        public String ErrorCode = null;
        public String Message = null;
        public Boolean IsError = null;
        
        public Boolean getIsDuplicate() { return IsDuplicate; }
        public BillMeCloudServiceResponse setIsDuplicate(Boolean value) { this.IsDuplicate = value; return this; }
        public Boolean getIsSuccessful() { return IsSuccessful; }
        public BillMeCloudServiceResponse setIsSuccessful(Boolean value) { this.IsSuccessful = value; return this; }
        public String getErrorCode() { return ErrorCode; }
        public BillMeCloudServiceResponse setErrorCode(String value) { this.ErrorCode = value; return this; }
        public String getMessage() { return Message; }
        public BillMeCloudServiceResponse setMessage(String value) { this.Message = value; return this; }
        public Boolean getIsError() { return IsError; }
        public BillMeCloudServiceResponse setIsError(Boolean value) { this.IsError = value; return this; }
    }

}

Java BillMeLaterSubscription 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 /csv/reply/BillMeLaterSubscription HTTP/1.1 
Host: devapi.billhighway.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Header":{"ClientId":0,"Referrer":"String","IpAddress":"String","LoggedInUserId":0,"GroupId":0,"Task":"String","Machine":"String","Location":"String","CreatedBy":0,"CampaignId":0,"ReCaptchaScore":0},"SubscriptionInfo":{"FormTemplateID":0,"SubscriptionInvoiceID":0,"ClientSubscriberId":"String","SignupTypeID":0,"FrequencyID":0,"AutoRenew":false,"CompanyID":0,"UserID":0,"ChapMemPayID":0,"MemberSubscriptionInvID":0,"Fields":[{"Name":"String","Value":"String"}],"CreatedBy":0,"UpdatedBy":0,"AptifyUpdateType":0,"RenewedMemberSubscriptionInvID":0,"ChapId":0},"CampaignInfo":[{"CampaignId":0,"CampaignName":"String","Amount":0,"ChapPayID":"String"}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"TransactionRecordID":0,"IsDuplicate":false,"IsSuccessful":false,"ErrorCode":"String","Message":"String","IsError":false}