/* Options: Date: 2025-09-07 10:40:27 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: QueryOrders.* //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 { @ValidateRequest(Validator="IsAdmin") public static class QueryOrders 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 interface IAddress { 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 static class QueryDb extends QueryBase { } public static class OrderDetail { public Integer id = null; public Integer orderId = null; public Integer skuId = null; public SkuType skuType = null; public Integer price = null; public String description = null; public Integer quantity = null; public Integer total = null; public Integer getId() { return id; } public OrderDetail setId(Integer value) { this.id = value; return this; } public Integer getOrderId() { return orderId; } public OrderDetail setOrderId(Integer value) { this.orderId = value; return this; } public Integer getSkuId() { return skuId; } public OrderDetail setSkuId(Integer value) { this.skuId = value; return this; } public SkuType getSkuType() { return skuType; } public OrderDetail setSkuType(SkuType value) { this.skuType = value; return this; } public Integer getPrice() { return price; } public OrderDetail setPrice(Integer value) { this.price = value; return this; } public String getDescription() { return description; } public OrderDetail setDescription(String value) { this.description = value; return this; } public Integer getQuantity() { return quantity; } public OrderDetail setQuantity(Integer value) { this.quantity = value; return this; } public Integer getTotal() { return total; } public OrderDetail setTotal(Integer value) { this.total = value; return this; } } public static enum SkuType { Product, PerDev, PerCore, Site, Support, Training, Register, Payment; } @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 Order implements IAddress { public Integer id = null; public Integer customerId = null; public String productName = null; public String firstName = null; public String lastName = null; public String email = 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 Boolean agreeTerms = null; public String notes = null; public String last4 = null; public Integer subTotal = null; public String couponId = null; public Integer discount = null; public Integer tax = null; public Integer total = null; public Integer itemQuantity = null; public Integer authorizedQuantity = null; public Integer subscriptionId = null; public String licenseRef = null; public Integer paymentId = null; public Integer emailId = null; public Boolean paid = null; public Date createdDate = null; public Date modifiedDate = null; public String modifiedBy = null; public Date cancelledDate = null; public String cancelledReason = null; public String ipAddress = null; public ArrayList orderDetails = null; public Integer getId() { return id; } public Order setId(Integer value) { this.id = value; return this; } public Integer getCustomerId() { return customerId; } public Order setCustomerId(Integer value) { this.customerId = value; return this; } public String getProductName() { return productName; } public Order setProductName(String value) { this.productName = value; return this; } public String getFirstName() { return firstName; } public Order setFirstName(String value) { this.firstName = value; return this; } public String getLastName() { return lastName; } public Order setLastName(String value) { this.lastName = value; return this; } public String getEmail() { return email; } public Order setEmail(String value) { this.email = value; return this; } public String getCompany() { return company; } public Order setCompany(String value) { this.company = value; return this; } public String getPhoneNumber() { return phoneNumber; } public Order setPhoneNumber(String value) { this.phoneNumber = value; return this; } public String getAddressLine1() { return addressLine1; } public Order setAddressLine1(String value) { this.addressLine1 = value; return this; } public String getAddressLine2() { return addressLine2; } public Order setAddressLine2(String value) { this.addressLine2 = value; return this; } public String getAddressCity() { return addressCity; } public Order setAddressCity(String value) { this.addressCity = value; return this; } public String getAddressZip() { return addressZip; } public Order setAddressZip(String value) { this.addressZip = value; return this; } public String getAddressState() { return addressState; } public Order setAddressState(String value) { this.addressState = value; return this; } public String getAddressCountry() { return addressCountry; } public Order setAddressCountry(String value) { this.addressCountry = value; return this; } public Boolean isAgreeTerms() { return agreeTerms; } public Order setAgreeTerms(Boolean value) { this.agreeTerms = value; return this; } public String getNotes() { return notes; } public Order setNotes(String value) { this.notes = value; return this; } public String getLast4() { return last4; } public Order setLast4(String value) { this.last4 = value; return this; } public Integer getSubTotal() { return subTotal; } public Order setSubTotal(Integer value) { this.subTotal = value; return this; } public String getCouponId() { return couponId; } public Order setCouponId(String value) { this.couponId = value; return this; } public Integer getDiscount() { return discount; } public Order setDiscount(Integer value) { this.discount = value; return this; } public Integer getTax() { return tax; } public Order setTax(Integer value) { this.tax = value; return this; } public Integer getTotal() { return total; } public Order setTotal(Integer value) { this.total = value; return this; } public Integer getItemQuantity() { return itemQuantity; } public Order setItemQuantity(Integer value) { this.itemQuantity = value; return this; } public Integer getAuthorizedQuantity() { return authorizedQuantity; } public Order setAuthorizedQuantity(Integer value) { this.authorizedQuantity = value; return this; } public Integer getSubscriptionId() { return subscriptionId; } public Order setSubscriptionId(Integer value) { this.subscriptionId = value; return this; } public String getLicenseRef() { return licenseRef; } public Order setLicenseRef(String value) { this.licenseRef = value; return this; } public Integer getPaymentId() { return paymentId; } public Order setPaymentId(Integer value) { this.paymentId = value; return this; } public Integer getEmailId() { return emailId; } public Order setEmailId(Integer value) { this.emailId = value; return this; } public Boolean isPaid() { return paid; } public Order setPaid(Boolean value) { this.paid = value; return this; } public Date getCreatedDate() { return createdDate; } public Order setCreatedDate(Date value) { this.createdDate = value; return this; } public Date getModifiedDate() { return modifiedDate; } public Order setModifiedDate(Date value) { this.modifiedDate = value; return this; } public String getModifiedBy() { return modifiedBy; } public Order setModifiedBy(String value) { this.modifiedBy = value; return this; } public Date getCancelledDate() { return cancelledDate; } public Order setCancelledDate(Date value) { this.cancelledDate = value; return this; } public String getCancelledReason() { return cancelledReason; } public Order setCancelledReason(String value) { this.cancelledReason = value; return this; } public String getIpAddress() { return ipAddress; } public Order setIpAddress(String value) { this.ipAddress = value; return this; } public ArrayList getOrderDetails() { return orderDetails; } public Order setOrderDetails(ArrayList value) { this.orderDetails = value; return this; } } }