| GET | /summary-report/{BeeNumber}/region-b |
|---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using NAV.ServiceModel;
using Nxnw.Adc.Common.ServiceModel;
namespace NAV.ServiceModel
{
public partial class GetResponse<TEntity>
{
public virtual TEntity Item { get; set; }
public virtual ResponseStatus ResponseStatus { get; set; }
}
public partial class RepresentativeSummaryReportRegionBViewModel
{
public virtual BeeNumberDisplaySet BeeNumber { get; set; }
public virtual int CurrentYear { get; set; }
public virtual int PriorYear { get; set; }
public virtual YearlyValues AwardSales { get; set; }
public virtual YearlyValues NetSales { get; set; }
public virtual YearlyValues NumberOfCustomers { get; set; }
public virtual YearlyValues Orders { get; set; }
public virtual YearlyValues Activity { get; set; }
public virtual YearlyValues AOSAwardSales { get; set; }
public virtual YearlyValues RepCount { get; set; }
public virtual YearlyValues AOSNetSales { get; set; }
}
///<summary>
///Region B is middle section of summary report that shows cycles for this year compared to last year
///</summary>
public partial class SummaryReportRepresentativeRegionBGet
: IGet
{
public virtual decimal BeeNumber { get; set; }
}
public partial class SummaryReportRepresentativeRegionBGetResponse
: GetResponse<RepresentativeSummaryReportRegionBViewModel>
{
}
public partial class SummaryValues
{
public virtual decimal C1 { get; set; }
public virtual decimal C2 { get; set; }
public virtual decimal C3 { get; set; }
public virtual decimal C4 { get; set; }
public virtual decimal C5 { get; set; }
public virtual decimal C6 { get; set; }
public virtual decimal C7 { get; set; }
public virtual decimal C8 { get; set; }
public virtual decimal C9 { get; set; }
public virtual decimal C10 { get; set; }
public virtual decimal C11 { get; set; }
public virtual decimal C12 { get; set; }
public virtual decimal C13 { get; set; }
public virtual decimal C14 { get; set; }
public virtual decimal C15 { get; set; }
public virtual decimal C16 { get; set; }
public virtual decimal C17 { get; set; }
public virtual decimal C18 { get; set; }
public virtual decimal C19 { get; set; }
public virtual decimal C20 { get; set; }
public virtual decimal C21 { get; set; }
public virtual decimal C22 { get; set; }
public virtual decimal C23 { get; set; }
public virtual decimal C24 { get; set; }
public virtual decimal C25 { get; set; }
public virtual decimal C26 { get; set; }
public virtual decimal? C27 { get; set; }
public virtual decimal? C28 { get; set; }
public virtual decimal YTD { get; set; }
public virtual decimal Q1 { get; set; }
public virtual decimal Q2 { get; set; }
public virtual decimal Q3 { get; set; }
public virtual decimal Q4 { get; set; }
public virtual decimal? Q5 { get; set; }
public virtual decimal QTD { get; set; }
public virtual decimal CurrentQuarter { get; set; }
public virtual decimal CurrentVSPCPercent { get; set; }
public virtual decimal CurrentVSPYPercent { get; set; }
}
public partial class YearlyValues
{
public virtual SummaryValues CurrentYear { get; set; }
public virtual SummaryValues PriorYear { get; set; }
public virtual SummaryValues PercentVsPriorYear { get; set; }
}
}
namespace Nxnw.Adc.Common.ServiceModel
{
public partial class BeeNumberDisplaySet
{
public BeeNumberDisplaySet()
{
ExternalIds = new List<string>{};
}
public virtual decimal BeeNumber { get; set; }
public virtual List<string> ExternalIds { get; set; }
public virtual string SalesOrganizationId { get; set; }
}
}
C# SummaryReportRepresentativeRegionBGet DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /summary-report/{BeeNumber}/region-b HTTP/1.1
Host: extensions.avon.ca
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
item:
{
beeNumber:
{
beeNumber: 0,
externalIds:
[
String
],
salesOrganizationId: String
},
currentYear: 0,
priorYear: 0,
awardSales:
{
currentYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
},
priorYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
},
percentVsPriorYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
}
},
netSales:
{
currentYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
},
priorYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
},
percentVsPriorYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
}
},
numberOfCustomers:
{
currentYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
},
priorYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
},
percentVsPriorYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
}
},
orders:
{
currentYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
},
priorYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
},
percentVsPriorYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
}
},
activity:
{
currentYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
},
priorYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
},
percentVsPriorYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
}
},
aosAwardSales:
{
currentYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
},
priorYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
},
percentVsPriorYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
}
},
repCount:
{
currentYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
},
priorYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
},
percentVsPriorYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
}
},
aosNetSales:
{
currentYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
},
priorYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
},
percentVsPriorYear:
{
c1: 0,
c2: 0,
c3: 0,
c4: 0,
c5: 0,
c6: 0,
c7: 0,
c8: 0,
c9: 0,
c10: 0,
c11: 0,
c12: 0,
c13: 0,
c14: 0,
c15: 0,
c16: 0,
c17: 0,
c18: 0,
c19: 0,
c20: 0,
c21: 0,
c22: 0,
c23: 0,
c24: 0,
c25: 0,
c26: 0,
c27: 0,
c28: 0,
ytd: 0,
q1: 0,
q2: 0,
q3: 0,
q4: 0,
q5: 0,
qtd: 0,
currentQuarter: 0,
currentVSPCPercent: 0,
currentVSPYPercent: 0
}
}
},
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}