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 .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 /PurchaseSubscription HTTP/1.1 
Host: account.servicestack.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<PurchaseSubscription xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyApp.ServiceModel">
  <AddressCity>String</AddressCity>
  <AddressCountry>String</AddressCountry>
  <AddressLine1>String</AddressLine1>
  <AddressLine2>String</AddressLine2>
  <AddressState>String</AddressState>
  <AddressZip>String</AddressZip>
  <AgreeTerms>false</AgreeTerms>
  <CardNumber>String</CardNumber>
  <Code>String</Code>
  <Company>String</Company>
  <Coupon>String</Coupon>
  <Cvc>String</Cvc>
  <Email>String</Email>
  <ExpMonth>0</ExpMonth>
  <ExpYear>0</ExpYear>
  <FirstName>String</FirstName>
  <IsNonProfit>false</IsNonProfit>
  <IsSmallCompany>false</IsSmallCompany>
  <LastName>String</LastName>
  <LicenseAddress>String</LicenseAddress>
  <LicenseEmail>String</LicenseEmail>
  <LicenseName>String</LicenseName>
  <Notes>String</Notes>
  <Password>String</Password>
  <PhoneNumber>String</PhoneNumber>
  <Quantity>0</Quantity>
  <RenewalRef>String</RenewalRef>
  <SkuId>0</SkuId>
  <UpgradeRef>String</UpgradeRef>
  <UserAuthId>String</UserAuthId>
</PurchaseSubscription>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<Subscriptions xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyApp.ServiceModel">
  <Activated>false</Activated>
  <PurchasedOrderId>0</PurchasedOrderId>
  <Section>String</Section>
  <Success>false</Success>
</Subscriptions>