/* Options: Date: 2025-05-10 01:52:24 Version: 8.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://active-ewebservice.biz/aeservices30/api //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: History360Request.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { /** * History360Requires active-e Customer Service. */ @Route(Path="/History360", Verbs="GET") @DataContract public static class History360Request extends BaseSecureRequest implements IReturn { @DataMember public Integer CustomerAccount = null; @DataMember public Boolean IncludeInvoices = null; @DataMember public Boolean IncludeOrders = null; @DataMember public Boolean IncludeWorkOrders = null; @DataMember public Boolean IncludeContracts = null; @DataMember public Boolean IncludeClosed = null; @DataMember public Date ClosedStartDate = null; public Integer getCustomerAccount() { return CustomerAccount; } public History360Request setCustomerAccount(Integer value) { this.CustomerAccount = value; return this; } public Boolean isIncludeInvoices() { return IncludeInvoices; } public History360Request setIncludeInvoices(Boolean value) { this.IncludeInvoices = value; return this; } public Boolean isIncludeOrders() { return IncludeOrders; } public History360Request setIncludeOrders(Boolean value) { this.IncludeOrders = value; return this; } public Boolean isIncludeWorkOrders() { return IncludeWorkOrders; } public History360Request setIncludeWorkOrders(Boolean value) { this.IncludeWorkOrders = value; return this; } public Boolean isIncludeContracts() { return IncludeContracts; } public History360Request setIncludeContracts(Boolean value) { this.IncludeContracts = value; return this; } public Boolean isIncludeClosed() { return IncludeClosed; } public History360Request setIncludeClosed(Boolean value) { this.IncludeClosed = value; return this; } public Date getClosedStartDate() { return ClosedStartDate; } public History360Request setClosedStartDate(Date value) { this.ClosedStartDate = value; return this; } private static Object responseType = History360Response.class; public Object getResponseType() { return responseType; } } @DataContract public static class History360Response extends BaseResponse { @DataMember public ArrayList Invoices = null; @DataMember public ArrayList Orders = null; @DataMember public ArrayList WorkOrders = null; @DataMember public ArrayList Contracts = null; public ArrayList getInvoices() { return Invoices; } public History360Response setInvoices(ArrayList value) { this.Invoices = value; return this; } public ArrayList getOrders() { return Orders; } public History360Response setOrders(ArrayList value) { this.Orders = value; return this; } public ArrayList getWorkOrders() { return WorkOrders; } public History360Response setWorkOrders(ArrayList value) { this.WorkOrders = value; return this; } public ArrayList getContracts() { return Contracts; } public History360Response setContracts(ArrayList value) { this.Contracts = value; return this; } } @DataContract public static class BaseRequest { /** * This is your AIM API Key provided by Tri-Tech */ @DataMember @ApiMember(DataType="string", Description="This is your AIM API Key provided by Tri-Tech", IsRequired=true, Name="ApiKey", ParameterType="header") public String ApiKey = null; @DataMember @ApiMember(DataType="string", Name="OAuthToken", ParameterType="header") public String OAuthToken = null; public String getApiKey() { return ApiKey; } public BaseRequest setApiKey(String value) { this.ApiKey = value; return this; } public String getOAuthToken() { return OAuthToken; } public BaseRequest setOAuthToken(String value) { this.OAuthToken = value; return this; } } @DataContract public static class BaseSecureRequest extends BaseRequest { /** * */ @DataMember @ApiMember(DataType="string", Description="", Name="Token", ParameterType="Header") public String Token = null; /** * */ @DataMember @ApiMember(DataType="string", Description="", Name="DeviceId", ParameterType="Header") public String DeviceId = null; /** * */ @DataMember @ApiMember(DataType="string", Description="", IsRequired=true, Name="AppId", ParameterType="Header") public String AppId = null; public String getToken() { return Token; } public BaseSecureRequest setToken(String value) { this.Token = value; return this; } public String getDeviceId() { return DeviceId; } public BaseSecureRequest setDeviceId(String value) { this.DeviceId = value; return this; } public String getAppId() { return AppId; } public BaseSecureRequest setAppId(String value) { this.AppId = value; return this; } } @DataContract public static class Invoice360 { @DataMember public String Id = null; @DataMember public Date DueDate = null; @DataMember public BigDecimal Total = null; @DataMember public String Status = null; @DataMember public BigDecimal AmountPaid = null; @DataMember public BigDecimal LateFeeAmount = null; @DataMember public Date PurchaseDate = null; @DataMember public Integer StoreLocationId = null; @DataMember public ArrayList Items = null; public String getId() { return Id; } public Invoice360 setId(String value) { this.Id = value; return this; } public Date getDueDate() { return DueDate; } public Invoice360 setDueDate(Date value) { this.DueDate = value; return this; } public BigDecimal getTotal() { return Total; } public Invoice360 setTotal(BigDecimal value) { this.Total = value; return this; } public String getStatus() { return Status; } public Invoice360 setStatus(String value) { this.Status = value; return this; } public BigDecimal getAmountPaid() { return AmountPaid; } public Invoice360 setAmountPaid(BigDecimal value) { this.AmountPaid = value; return this; } public BigDecimal getLateFeeAmount() { return LateFeeAmount; } public Invoice360 setLateFeeAmount(BigDecimal value) { this.LateFeeAmount = value; return this; } public Date getPurchaseDate() { return PurchaseDate; } public Invoice360 setPurchaseDate(Date value) { this.PurchaseDate = value; return this; } public Integer getStoreLocationId() { return StoreLocationId; } public Invoice360 setStoreLocationId(Integer value) { this.StoreLocationId = value; return this; } public ArrayList getItems() { return Items; } public Invoice360 setItems(ArrayList value) { this.Items = value; return this; } } @DataContract public static class Order360 { @DataMember public Integer Id = null; @DataMember public Date Date = null; @DataMember public BigDecimal Discount = null; @DataMember public String PaymentType = null; @DataMember public BigDecimal SubTotal = null; @DataMember public BigDecimal Tax = null; @DataMember public BigDecimal ShippingAmount = null; @DataMember public BigDecimal Total = null; public Integer getId() { return Id; } public Order360 setId(Integer value) { this.Id = value; return this; } public Date getDate() { return Date; } public Order360 setDate(Date value) { this.Date = value; return this; } public BigDecimal getDiscount() { return Discount; } public Order360 setDiscount(BigDecimal value) { this.Discount = value; return this; } public String getPaymentType() { return PaymentType; } public Order360 setPaymentType(String value) { this.PaymentType = value; return this; } public BigDecimal getSubTotal() { return SubTotal; } public Order360 setSubTotal(BigDecimal value) { this.SubTotal = value; return this; } public BigDecimal getTax() { return Tax; } public Order360 setTax(BigDecimal value) { this.Tax = value; return this; } public BigDecimal getShippingAmount() { return ShippingAmount; } public Order360 setShippingAmount(BigDecimal value) { this.ShippingAmount = value; return this; } public BigDecimal getTotal() { return Total; } public Order360 setTotal(BigDecimal value) { this.Total = value; return this; } } @DataContract public static class WorkOrder360 { @DataMember public String Id = null; @DataMember public String Status = null; @DataMember public BigDecimal Deposit = null; @DataMember public Integer StoreLocationId = null; @DataMember public Date CreationDate = null; @DataMember public Date CompletedDate = null; @DataMember public BigDecimal Price = null; @DataMember public ArrayList Jobs = null; public String getId() { return Id; } public WorkOrder360 setId(String value) { this.Id = value; return this; } public String getStatus() { return Status; } public WorkOrder360 setStatus(String value) { this.Status = value; return this; } public BigDecimal getDeposit() { return Deposit; } public WorkOrder360 setDeposit(BigDecimal value) { this.Deposit = value; return this; } public Integer getStoreLocationId() { return StoreLocationId; } public WorkOrder360 setStoreLocationId(Integer value) { this.StoreLocationId = value; return this; } public Date getCreationDate() { return CreationDate; } public WorkOrder360 setCreationDate(Date value) { this.CreationDate = value; return this; } public Date getCompletedDate() { return CompletedDate; } public WorkOrder360 setCompletedDate(Date value) { this.CompletedDate = value; return this; } public BigDecimal getPrice() { return Price; } public WorkOrder360 setPrice(BigDecimal value) { this.Price = value; return this; } public ArrayList getJobs() { return Jobs; } public WorkOrder360 setJobs(ArrayList value) { this.Jobs = value; return this; } } @DataContract public static class Contract360 { @DataMember public String Id = null; @DataMember public Date PaymentDate = null; @DataMember public Integer StoreLocationId = null; @DataMember public BigDecimal AmountDue = null; @DataMember public BigDecimal LateFee = null; @DataMember public String ContractStatus = null; @DataMember public BigDecimal Amount = null; @DataMember public ArrayList ContractItems = null; public String getId() { return Id; } public Contract360 setId(String value) { this.Id = value; return this; } public Date getPaymentDate() { return PaymentDate; } public Contract360 setPaymentDate(Date value) { this.PaymentDate = value; return this; } public Integer getStoreLocationId() { return StoreLocationId; } public Contract360 setStoreLocationId(Integer value) { this.StoreLocationId = value; return this; } public BigDecimal getAmountDue() { return AmountDue; } public Contract360 setAmountDue(BigDecimal value) { this.AmountDue = value; return this; } public BigDecimal getLateFee() { return LateFee; } public Contract360 setLateFee(BigDecimal value) { this.LateFee = value; return this; } public String getContractStatus() { return ContractStatus; } public Contract360 setContractStatus(String value) { this.ContractStatus = value; return this; } public BigDecimal getAmount() { return Amount; } public Contract360 setAmount(BigDecimal value) { this.Amount = value; return this; } public ArrayList getContractItems() { return ContractItems; } public Contract360 setContractItems(ArrayList value) { this.ContractItems = value; return this; } } @DataContract public static class Item360 { @DataMember public Long PslrId = null; @DataMember public BigDecimal Quantity = null; @DataMember public BigDecimal Price = null; @DataMember public BigDecimal TotalDiscountAmount = null; @DataMember public String SerialNumber = null; @DataMember public String Condition = null; public Long getPslrId() { return PslrId; } public Item360 setPslrId(Long value) { this.PslrId = value; return this; } public BigDecimal getQuantity() { return Quantity; } public Item360 setQuantity(BigDecimal value) { this.Quantity = value; return this; } public BigDecimal getPrice() { return Price; } public Item360 setPrice(BigDecimal value) { this.Price = value; return this; } public BigDecimal getTotalDiscountAmount() { return TotalDiscountAmount; } public Item360 setTotalDiscountAmount(BigDecimal value) { this.TotalDiscountAmount = value; return this; } public String getSerialNumber() { return SerialNumber; } public Item360 setSerialNumber(String value) { this.SerialNumber = value; return this; } public String getCondition() { return Condition; } public Item360 setCondition(String value) { this.Condition = value; return this; } } @DataContract public static class Job360 { @DataMember public String ItemId = null; @DataMember public String ItemType = null; @DataMember public String Title = null; @DataMember public BigDecimal Quantity = null; @DataMember public BigDecimal Price = null; @DataMember public BigDecimal TotalDiscountAmount = null; @DataMember public String SerialNumber = null; @DataMember public String Condition = null; public String getItemId() { return ItemId; } public Job360 setItemId(String value) { this.ItemId = value; return this; } public String getItemType() { return ItemType; } public Job360 setItemType(String value) { this.ItemType = value; return this; } public String getTitle() { return Title; } public Job360 setTitle(String value) { this.Title = value; return this; } public BigDecimal getQuantity() { return Quantity; } public Job360 setQuantity(BigDecimal value) { this.Quantity = value; return this; } public BigDecimal getPrice() { return Price; } public Job360 setPrice(BigDecimal value) { this.Price = value; return this; } public BigDecimal getTotalDiscountAmount() { return TotalDiscountAmount; } public Job360 setTotalDiscountAmount(BigDecimal value) { this.TotalDiscountAmount = value; return this; } public String getSerialNumber() { return SerialNumber; } public Job360 setSerialNumber(String value) { this.SerialNumber = value; return this; } public String getCondition() { return Condition; } public Job360 setCondition(String value) { this.Condition = value; return this; } } @DataContract public static class BaseResponse { /** * */ @DataMember @ApiMember(DataType="BaseResponseResult", Description="", Name="Status", ParameterType="body") public BaseResponseResult Status = null; public BaseResponseResult getStatus() { return Status; } public BaseResponse setStatus(BaseResponseResult value) { this.Status = value; return this; } } }