/* Options: Date: 2026-06-13 03:46:45 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: FinanceRequest.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; public class dtos { @Route(Path="/v1/dashboard/finance", Verbs="POST,OPTIONS") public static class FinanceRequest implements IReturn { public Date FromDate = null; public Date ToDate = null; public ArrayList LocationIds = new ArrayList(); public Date getFromDate() { return FromDate; } public FinanceRequest setFromDate(Date value) { this.FromDate = value; return this; } public Date getToDate() { return ToDate; } public FinanceRequest setToDate(Date value) { this.ToDate = value; return this; } public ArrayList getLocationIds() { return LocationIds; } public FinanceRequest setLocationIds(ArrayList value) { this.LocationIds = value; return this; } private static Object responseType = FinanceResponse.class; public Object getResponseType() { return responseType; } } public static class FinanceResponse { public ResponseStatus ResponseStatus = null; public ArrayList Stats = new ArrayList(); public ArrayList Trend = new ArrayList(); public DashboardSeries SourceMix = null; public ArrayList ByLocation = new ArrayList(); public ArrayList TopServices = new ArrayList(); public ArrayList TopProducts = new ArrayList(); public FinanceSubscriptionInfo Subscriptions = null; public ResponseStatus getResponseStatus() { return ResponseStatus; } public FinanceResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } public ArrayList getStats() { return Stats; } public FinanceResponse setStats(ArrayList value) { this.Stats = value; return this; } public ArrayList getTrend() { return Trend; } public FinanceResponse setTrend(ArrayList value) { this.Trend = value; return this; } public DashboardSeries getSourceMix() { return SourceMix; } public FinanceResponse setSourceMix(DashboardSeries value) { this.SourceMix = value; return this; } public ArrayList getByLocation() { return ByLocation; } public FinanceResponse setByLocation(ArrayList value) { this.ByLocation = value; return this; } public ArrayList getTopServices() { return TopServices; } public FinanceResponse setTopServices(ArrayList value) { this.TopServices = value; return this; } public ArrayList getTopProducts() { return TopProducts; } public FinanceResponse setTopProducts(ArrayList value) { this.TopProducts = value; return this; } public FinanceSubscriptionInfo getSubscriptions() { return Subscriptions; } public FinanceResponse setSubscriptions(FinanceSubscriptionInfo value) { this.Subscriptions = value; return this; } } public static class DashboardStatTile { public String Key = null; public String Label = null; public Double Value = null; public Double PreviousValue = null; public String Unit = null; public Double DeltaPct = null; public String getKey() { return Key; } public DashboardStatTile setKey(String value) { this.Key = value; return this; } public String getLabel() { return Label; } public DashboardStatTile setLabel(String value) { this.Label = value; return this; } public Double getValue() { return Value; } public DashboardStatTile setValue(Double value) { this.Value = value; return this; } public Double getPreviousValue() { return PreviousValue; } public DashboardStatTile setPreviousValue(Double value) { this.PreviousValue = value; return this; } public String getUnit() { return Unit; } public DashboardStatTile setUnit(String value) { this.Unit = value; return this; } public Double getDeltaPct() { return DeltaPct; } public DashboardStatTile setDeltaPct(Double value) { this.DeltaPct = value; return this; } } public static class DashboardSeries { public String Name = null; public ArrayList Points = new ArrayList(); public String getName() { return Name; } public DashboardSeries setName(String value) { this.Name = value; return this; } public ArrayList getPoints() { return Points; } public DashboardSeries setPoints(ArrayList value) { this.Points = value; return this; } } public static class FinanceLocationRow { public String LocationName = null; public Double ServiceRev = null; public Double ProductRev = null; public Double SubscriptionRev = null; public Double Total = null; public String getLocationName() { return LocationName; } public FinanceLocationRow setLocationName(String value) { this.LocationName = value; return this; } public Double getServiceRev() { return ServiceRev; } public FinanceLocationRow setServiceRev(Double value) { this.ServiceRev = value; return this; } public Double getProductRev() { return ProductRev; } public FinanceLocationRow setProductRev(Double value) { this.ProductRev = value; return this; } public Double getSubscriptionRev() { return SubscriptionRev; } public FinanceLocationRow setSubscriptionRev(Double value) { this.SubscriptionRev = value; return this; } public Double getTotal() { return Total; } public FinanceLocationRow setTotal(Double value) { this.Total = value; return this; } } public static class FinanceTopRow { public String Name = null; public Double Revenue = null; public String getName() { return Name; } public FinanceTopRow setName(String value) { this.Name = value; return this; } public Double getRevenue() { return Revenue; } public FinanceTopRow setRevenue(Double value) { this.Revenue = value; return this; } } public static class FinanceSubscriptionInfo { public Double Mrr = null; public Double Arr = null; public Integer ActiveCount = null; public Integer NewCount = null; public Integer ChurnedCount = null; public Double ChurnRatePct = null; public Double getMrr() { return Mrr; } public FinanceSubscriptionInfo setMrr(Double value) { this.Mrr = value; return this; } public Double getArr() { return Arr; } public FinanceSubscriptionInfo setArr(Double value) { this.Arr = value; return this; } public Integer getActiveCount() { return ActiveCount; } public FinanceSubscriptionInfo setActiveCount(Integer value) { this.ActiveCount = value; return this; } public Integer getNewCount() { return NewCount; } public FinanceSubscriptionInfo setNewCount(Integer value) { this.NewCount = value; return this; } public Integer getChurnedCount() { return ChurnedCount; } public FinanceSubscriptionInfo setChurnedCount(Integer value) { this.ChurnedCount = value; return this; } public Double getChurnRatePct() { return ChurnRatePct; } public FinanceSubscriptionInfo setChurnRatePct(Double value) { this.ChurnRatePct = value; return this; } } public static class DashboardSeriesPoint { public String Label = null; public Double Value = null; public String getLabel() { return Label; } public DashboardSeriesPoint setLabel(String value) { this.Label = value; return this; } public Double getValue() { return Value; } public DashboardSeriesPoint setValue(Double value) { this.Value = value; return this; } } }