Billhighway Cloud API

<back to all web services

MemberSubscriptionCollection

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

public class dtos
{

    public static class MemberSubscriptionCollection
    {
        public ArrayList<MemberSubscription> MemberSubscriptions = null;
        
        public ArrayList<MemberSubscription> getMemberSubscriptions() { return MemberSubscriptions; }
        public MemberSubscriptionCollection setMemberSubscriptions(ArrayList<MemberSubscription> value) { this.MemberSubscriptions = value; return this; }
    }

    public static class MemberSubscription
    {
        public String UniqueId = null;
        public Integer ClientId = null;
        public String GroupId = null;
        public String UserID = null;
        public String ClientCompanyID = null;
        public Long ClientOrderID = null;
        public Long ClientMemberSubscriberID = null;
        public String ClientSubscriptionTemplate = null;
        public Long SubscriptionID = null;
        public Date StartDate = null;
        public Date EndDate = null;
        
        public String getUniqueId() { return UniqueId; }
        public MemberSubscription setUniqueId(String value) { this.UniqueId = value; return this; }
        public Integer getClientId() { return ClientId; }
        public MemberSubscription setClientId(Integer value) { this.ClientId = value; return this; }
        public String getGroupId() { return GroupId; }
        public MemberSubscription setGroupId(String value) { this.GroupId = value; return this; }
        public String getUserID() { return UserID; }
        public MemberSubscription setUserID(String value) { this.UserID = value; return this; }
        public String getClientCompanyID() { return ClientCompanyID; }
        public MemberSubscription setClientCompanyID(String value) { this.ClientCompanyID = value; return this; }
        public Long getClientOrderID() { return ClientOrderID; }
        public MemberSubscription setClientOrderID(Long value) { this.ClientOrderID = value; return this; }
        public Long getClientMemberSubscriberID() { return ClientMemberSubscriberID; }
        public MemberSubscription setClientMemberSubscriberID(Long value) { this.ClientMemberSubscriberID = value; return this; }
        public String getClientSubscriptionTemplate() { return ClientSubscriptionTemplate; }
        public MemberSubscription setClientSubscriptionTemplate(String value) { this.ClientSubscriptionTemplate = value; return this; }
        public Long getSubscriptionID() { return SubscriptionID; }
        public MemberSubscription setSubscriptionID(Long value) { this.SubscriptionID = value; return this; }
        public Date getStartDate() { return StartDate; }
        public MemberSubscription setStartDate(Date value) { this.StartDate = value; return this; }
        public Date getEndDate() { return EndDate; }
        public MemberSubscription setEndDate(Date value) { this.EndDate = value; return this; }
    }

    public static class MemberSubscriptionReplyCollection implements IHaveErrorField
    {
        public ArrayList<MemberSubscriptionReply> MemberSubscriptionReply = null;
        public Boolean IsError = null;
        
        public ArrayList<MemberSubscriptionReply> getMemberSubscriptionReply() { return MemberSubscriptionReply; }
        public MemberSubscriptionReplyCollection setMemberSubscriptionReply(ArrayList<MemberSubscriptionReply> value) { this.MemberSubscriptionReply = value; return this; }
        public Boolean getIsError() { return IsError; }
        public MemberSubscriptionReplyCollection setIsError(Boolean value) { this.IsError = value; return this; }
    }

    public static class MemberSubscriptionReply
    {
        public String UniqueId = null;
        public Integer ClientId = null;
        public Integer MemberSubscriptionInvoiceId = null;
        public Integer ErrorCode = null;
        public String ErrorMessage = null;
        
        public String getUniqueId() { return UniqueId; }
        public MemberSubscriptionReply setUniqueId(String value) { this.UniqueId = value; return this; }
        public Integer getClientId() { return ClientId; }
        public MemberSubscriptionReply setClientId(Integer value) { this.ClientId = value; return this; }
        public Integer getMemberSubscriptionInvoiceId() { return MemberSubscriptionInvoiceId; }
        public MemberSubscriptionReply setMemberSubscriptionInvoiceId(Integer value) { this.MemberSubscriptionInvoiceId = value; return this; }
        public Integer getErrorCode() { return ErrorCode; }
        public MemberSubscriptionReply setErrorCode(Integer value) { this.ErrorCode = value; return this; }
        public String getErrorMessage() { return ErrorMessage; }
        public MemberSubscriptionReply setErrorMessage(String value) { this.ErrorMessage = value; return this; }
    }

}

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

{"MemberSubscriptions":[{"UniqueId":"String","ClientId":0,"GroupId":"String","UserID":"String","ClientCompanyID":"String","ClientOrderID":0,"ClientMemberSubscriberID":0,"ClientSubscriptionTemplate":"String","SubscriptionID":0,"StartDate":"0001-01-01T00:00:00.0000000","EndDate":"0001-01-01T00:00:00.0000000"}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"MemberSubscriptionReply":[{"UniqueId":"String","ClientId":0,"MemberSubscriptionInvoiceId":0,"ErrorCode":0,"ErrorMessage":"String"}],"IsError":false}