/* Options: Date: 2025-09-07 08:30:09 Version: 8.81 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://account.servicestack.net //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: QuerySubscriptions.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; import com.google.gson.annotations.*; import com.google.gson.reflect.*; public class dtos { @Route(Path="/query/subscriptions") @ValidateRequest(Validator="IsAdmin") @AutoQueryViewer(DefaultSearchField="Email", DefaultSearchType="Contains", IconUrl="material-icons:person_outline", Title="Subscriptions") public static class QuerySubscriptions extends QueryDb implements IReturn> { private static Object responseType = new TypeToken>(){}.getType(); public Object getResponseType() { return responseType; } } @DataContract public static class QueryResponse { @DataMember(Order=1) public Integer offset = null; @DataMember(Order=2) public Integer total = null; @DataMember(Order=3) public ArrayList results = new ArrayList(); @DataMember(Order=4) public HashMap meta = null; @DataMember(Order=5) public ResponseStatus responseStatus = null; public Integer getOffset() { return offset; } public QueryResponse setOffset(Integer value) { this.offset = value; return this; } public Integer getTotal() { return total; } public QueryResponse setTotal(Integer value) { this.total = value; return this; } public ArrayList getResults() { return results; } public QueryResponse setResults(ArrayList value) { this.results = value; return this; } public HashMap getMeta() { return meta; } public QueryResponse setMeta(HashMap value) { this.meta = value; return this; } public ResponseStatus getResponseStatus() { return responseStatus; } public QueryResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } } public static class QueryDb extends QueryBase { } public static enum SkuType { Product, PerDev, PerCore, Site, Support, Training, Register, Payment; } public static enum LicenseType { Free, FreeIndividual, FreeOpenSource, Indie, Business, Enterprise, TextIndie, TextBusiness, OrmLiteIndie, OrmLiteBusiness, RedisIndie, RedisBusiness, AwsIndie, AwsBusiness, Trial, Site, TextSite, RedisSite, OrmLiteSite; } public static class LicenseKey { public String ref = null; public String name = null; public LicenseType type = null; public Long meta = null; public String hash = null; public String halg = null; public Date expiry = null; public String getRef() { return ref; } public LicenseKey setRef(String value) { this.ref = value; return this; } public String getName() { return name; } public LicenseKey setName(String value) { this.name = value; return this; } public LicenseType getType() { return type; } public LicenseKey setType(LicenseType value) { this.type = value; return this; } public Long getMeta() { return meta; } public LicenseKey setMeta(Long value) { this.meta = value; return this; } public String getHash() { return hash; } public LicenseKey setHash(String value) { this.hash = value; return this; } public String getHalg() { return halg; } public LicenseKey setHalg(String value) { this.halg = value; return this; } public Date getExpiry() { return expiry; } public LicenseKey setExpiry(Date value) { this.expiry = value; return this; } } @DataContract public static class QueryBase { @DataMember(Order=1) public Integer skip = null; @DataMember(Order=2) public Integer take = null; @DataMember(Order=3) public String orderBy = null; @DataMember(Order=4) public String orderByDesc = null; @DataMember(Order=5) public String include = null; @DataMember(Order=6) public String fields = null; @DataMember(Order=7) public HashMap meta = null; public Integer getSkip() { return skip; } public QueryBase setSkip(Integer value) { this.skip = value; return this; } public Integer getTake() { return take; } public QueryBase setTake(Integer value) { this.take = value; return this; } public String getOrderBy() { return orderBy; } public QueryBase setOrderBy(String value) { this.orderBy = value; return this; } public String getOrderByDesc() { return orderByDesc; } public QueryBase setOrderByDesc(String value) { this.orderByDesc = value; return this; } public String getInclude() { return include; } public QueryBase setInclude(String value) { this.include = value; return this; } public String getFields() { return fields; } public QueryBase setFields(String value) { this.fields = value; return this; } public HashMap getMeta() { return meta; } public QueryBase setMeta(HashMap value) { this.meta = value; return this; } } public static class Subscription { public Integer id = null; public Integer customerId = null; public String email = null; public Integer skuId = null; public String skuName = null; public SkuType skuType = null; public String code = null; public Integer quantity = null; public Integer supportQuantity = null; public Integer total = null; public Boolean isPlan = null; public Boolean isRenewal = null; public Integer subscriptionDurationDays = null; public Date renewalDate = null; public String licenseRef = null; public String licenseName = null; public String licenseAddress = null; public LicenseType licenseType = null; public Date expiryDate = null; public LicenseKey licenseKey = null; public String licenseKeyText = null; public Date createdDate = null; public Date modifiedDate = null; public Date cancelledDate = null; public String stripeSubscriptionId = null; public Integer emailId = null; public Integer emailRenewalId = null; public Integer emailExpiredId = null; public Integer renewalSubscriptionId = null; public String externalRef = null; public String notes = null; public String error = null; public Integer getId() { return id; } public Subscription setId(Integer value) { this.id = value; return this; } public Integer getCustomerId() { return customerId; } public Subscription setCustomerId(Integer value) { this.customerId = value; return this; } public String getEmail() { return email; } public Subscription setEmail(String value) { this.email = value; return this; } public Integer getSkuId() { return skuId; } public Subscription setSkuId(Integer value) { this.skuId = value; return this; } public String getSkuName() { return skuName; } public Subscription setSkuName(String value) { this.skuName = value; return this; } public SkuType getSkuType() { return skuType; } public Subscription setSkuType(SkuType value) { this.skuType = value; return this; } public String getCode() { return code; } public Subscription setCode(String value) { this.code = value; return this; } public Integer getQuantity() { return quantity; } public Subscription setQuantity(Integer value) { this.quantity = value; return this; } public Integer getSupportQuantity() { return supportQuantity; } public Subscription setSupportQuantity(Integer value) { this.supportQuantity = value; return this; } public Integer getTotal() { return total; } public Subscription setTotal(Integer value) { this.total = value; return this; } public Boolean getIsPlan() { return isPlan; } public Subscription setIsPlan(Boolean value) { this.isPlan = value; return this; } public Boolean getIsRenewal() { return isRenewal; } public Subscription setIsRenewal(Boolean value) { this.isRenewal = value; return this; } public Integer getSubscriptionDurationDays() { return subscriptionDurationDays; } public Subscription setSubscriptionDurationDays(Integer value) { this.subscriptionDurationDays = value; return this; } public Date getRenewalDate() { return renewalDate; } public Subscription setRenewalDate(Date value) { this.renewalDate = value; return this; } public String getLicenseRef() { return licenseRef; } public Subscription setLicenseRef(String value) { this.licenseRef = value; return this; } public String getLicenseName() { return licenseName; } public Subscription setLicenseName(String value) { this.licenseName = value; return this; } public String getLicenseAddress() { return licenseAddress; } public Subscription setLicenseAddress(String value) { this.licenseAddress = value; return this; } public LicenseType getLicenseType() { return licenseType; } public Subscription setLicenseType(LicenseType value) { this.licenseType = value; return this; } public Date getExpiryDate() { return expiryDate; } public Subscription setExpiryDate(Date value) { this.expiryDate = value; return this; } public LicenseKey getLicenseKey() { return licenseKey; } public Subscription setLicenseKey(LicenseKey value) { this.licenseKey = value; return this; } public String getLicenseKeyText() { return licenseKeyText; } public Subscription setLicenseKeyText(String value) { this.licenseKeyText = value; return this; } public Date getCreatedDate() { return createdDate; } public Subscription setCreatedDate(Date value) { this.createdDate = value; return this; } public Date getModifiedDate() { return modifiedDate; } public Subscription setModifiedDate(Date value) { this.modifiedDate = value; return this; } public Date getCancelledDate() { return cancelledDate; } public Subscription setCancelledDate(Date value) { this.cancelledDate = value; return this; } public String getStripeSubscriptionId() { return stripeSubscriptionId; } public Subscription setStripeSubscriptionId(String value) { this.stripeSubscriptionId = value; return this; } public Integer getEmailId() { return emailId; } public Subscription setEmailId(Integer value) { this.emailId = value; return this; } public Integer getEmailRenewalId() { return emailRenewalId; } public Subscription setEmailRenewalId(Integer value) { this.emailRenewalId = value; return this; } public Integer getEmailExpiredId() { return emailExpiredId; } public Subscription setEmailExpiredId(Integer value) { this.emailExpiredId = value; return this; } public Integer getRenewalSubscriptionId() { return renewalSubscriptionId; } public Subscription setRenewalSubscriptionId(Integer value) { this.renewalSubscriptionId = value; return this; } public String getExternalRef() { return externalRef; } public Subscription setExternalRef(String value) { this.externalRef = value; return this; } public String getNotes() { return notes; } public Subscription setNotes(String value) { this.notes = value; return this; } public String getError() { return error; } public Subscription setError(String value) { this.error = value; return this; } } }