ServiceStack Home (Live)

<back to all web services

PurchaseSubscription

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

public class dtos
{

    public static class PurchaseSubscription implements ICardInfo, IAddress
    {
        public String code = null;
        public String coupon = null;
        public String renewalRef = null;
        public String upgradeRef = null;
        public Integer quantity = null;
        public String userAuthId = null;
        public Integer skuId = null;
        public Boolean isSmallCompany = null;
        public Boolean isNonProfit = null;
        public Boolean agreeTerms = null;
        public String firstName = null;
        public String lastName = null;
        public String email = null;
        public String password = null;
        public String company = null;
        public String phoneNumber = null;
        public String addressLine1 = null;
        public String addressLine2 = null;
        public String addressCity = null;
        public String addressZip = null;
        public String addressState = null;
        public String addressCountry = null;
        public String licenseName = null;
        public String licenseEmail = null;
        public String licenseAddress = null;
        public String cardNumber = null;
        public String cvc = null;
        public Integer expMonth = null;
        public Integer expYear = null;
        public String notes = null;
        
        public String getCode() { return code; }
        public PurchaseSubscription setCode(String value) { this.code = value; return this; }
        public String getCoupon() { return coupon; }
        public PurchaseSubscription setCoupon(String value) { this.coupon = value; return this; }
        public String getRenewalRef() { return renewalRef; }
        public PurchaseSubscription setRenewalRef(String value) { this.renewalRef = value; return this; }
        public String getUpgradeRef() { return upgradeRef; }
        public PurchaseSubscription setUpgradeRef(String value) { this.upgradeRef = value; return this; }
        public Integer getQuantity() { return quantity; }
        public PurchaseSubscription setQuantity(Integer value) { this.quantity = value; return this; }
        public String getUserAuthId() { return userAuthId; }
        public PurchaseSubscription setUserAuthId(String value) { this.userAuthId = value; return this; }
        public Integer getSkuId() { return skuId; }
        public PurchaseSubscription setSkuId(Integer value) { this.skuId = value; return this; }
        public Boolean getIsSmallCompany() { return isSmallCompany; }
        public PurchaseSubscription setIsSmallCompany(Boolean value) { this.isSmallCompany = value; return this; }
        public Boolean getIsNonProfit() { return isNonProfit; }
        public PurchaseSubscription setIsNonProfit(Boolean value) { this.isNonProfit = value; return this; }
        public Boolean isAgreeTerms() { return agreeTerms; }
        public PurchaseSubscription setAgreeTerms(Boolean value) { this.agreeTerms = value; return this; }
        public String getFirstName() { return firstName; }
        public PurchaseSubscription setFirstName(String value) { this.firstName = value; return this; }
        public String getLastName() { return lastName; }
        public PurchaseSubscription setLastName(String value) { this.lastName = value; return this; }
        public String getEmail() { return email; }
        public PurchaseSubscription setEmail(String value) { this.email = value; return this; }
        public String getPassword() { return password; }
        public PurchaseSubscription setPassword(String value) { this.password = value; return this; }
        public String getCompany() { return company; }
        public PurchaseSubscription setCompany(String value) { this.company = value; return this; }
        public String getPhoneNumber() { return phoneNumber; }
        public PurchaseSubscription setPhoneNumber(String value) { this.phoneNumber = value; return this; }
        public String getAddressLine1() { return addressLine1; }
        public PurchaseSubscription setAddressLine1(String value) { this.addressLine1 = value; return this; }
        public String getAddressLine2() { return addressLine2; }
        public PurchaseSubscription setAddressLine2(String value) { this.addressLine2 = value; return this; }
        public String getAddressCity() { return addressCity; }
        public PurchaseSubscription setAddressCity(String value) { this.addressCity = value; return this; }
        public String getAddressZip() { return addressZip; }
        public PurchaseSubscription setAddressZip(String value) { this.addressZip = value; return this; }
        public String getAddressState() { return addressState; }
        public PurchaseSubscription setAddressState(String value) { this.addressState = value; return this; }
        public String getAddressCountry() { return addressCountry; }
        public PurchaseSubscription setAddressCountry(String value) { this.addressCountry = value; return this; }
        public String getLicenseName() { return licenseName; }
        public PurchaseSubscription setLicenseName(String value) { this.licenseName = value; return this; }
        public String getLicenseEmail() { return licenseEmail; }
        public PurchaseSubscription setLicenseEmail(String value) { this.licenseEmail = value; return this; }
        public String getLicenseAddress() { return licenseAddress; }
        public PurchaseSubscription setLicenseAddress(String value) { this.licenseAddress = value; return this; }
        public String getCardNumber() { return cardNumber; }
        public PurchaseSubscription setCardNumber(String value) { this.cardNumber = value; return this; }
        public String getCvc() { return cvc; }
        public PurchaseSubscription setCvc(String value) { this.cvc = value; return this; }
        public Integer getExpMonth() { return expMonth; }
        public PurchaseSubscription setExpMonth(Integer value) { this.expMonth = value; return this; }
        public Integer getExpYear() { return expYear; }
        public PurchaseSubscription setExpYear(Integer value) { this.expYear = value; return this; }
        public String getNotes() { return notes; }
        public PurchaseSubscription setNotes(String value) { this.notes = value; return this; }
    }

    public static class Subscriptions
    {
        public String section = null;
        public Boolean success = null;
        public Boolean activated = null;
        public Integer purchasedOrderId = null;
        
        public String getSection() { return section; }
        public Subscriptions setSection(String value) { this.section = value; return this; }
        public Boolean isSuccess() { return success; }
        public Subscriptions setSuccess(Boolean value) { this.success = value; return this; }
        public Boolean isActivated() { return activated; }
        public Subscriptions setActivated(Boolean value) { this.activated = value; return this; }
        public Integer getPurchasedOrderId() { return purchasedOrderId; }
        public Subscriptions setPurchasedOrderId(Integer value) { this.purchasedOrderId = value; return this; }
    }

}

Java PurchaseSubscription DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /PurchaseSubscription HTTP/1.1 
Host: account.servicestack.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"code":"String","coupon":"String","renewalRef":"String","upgradeRef":"String","quantity":0,"userAuthId":"String","skuId":0,"isSmallCompany":false,"isNonProfit":false,"agreeTerms":false,"firstName":"String","lastName":"String","email":"String","password":"String","company":"String","phoneNumber":"String","addressLine1":"String","addressLine2":"String","addressCity":"String","addressZip":"String","addressState":"String","addressCountry":"String","licenseName":"String","licenseEmail":"String","licenseAddress":"String","cardNumber":"String","cvc":"String","expMonth":0,"expYear":0,"notes":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"section":"String","success":false,"activated":false,"purchasedOrderId":0}