PUT | /members/{EmployeeGuid}/investmentprofile/risk |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class InvestmentRiskProfileRiskRequest
{
public UUID employeeGuid = null;
public String riskId = null;
public UUID getEmployeeGuid() { return employeeGuid; }
public InvestmentRiskProfileRiskRequest setEmployeeGuid(UUID value) { this.employeeGuid = value; return this; }
public String getRiskId() { return riskId; }
public InvestmentRiskProfileRiskRequest setRiskId(String value) { this.riskId = value; return this; }
}
public static class InvestmentRiskProfileResponse
{
public RiskModel risk = null;
public RecommendedProducts product = null;
public RecommendedProductGraph recommendedProductGraph = null;
public ArrayList<QuestionnaireAnswers> questionnaireAnswers = null;
public RiskModel getRisk() { return risk; }
public InvestmentRiskProfileResponse setRisk(RiskModel value) { this.risk = value; return this; }
public RecommendedProducts getProduct() { return product; }
public InvestmentRiskProfileResponse setProduct(RecommendedProducts value) { this.product = value; return this; }
public RecommendedProductGraph getRecommendedProductGraph() { return recommendedProductGraph; }
public InvestmentRiskProfileResponse setRecommendedProductGraph(RecommendedProductGraph value) { this.recommendedProductGraph = value; return this; }
public ArrayList<QuestionnaireAnswers> getQuestionnaireAnswers() { return questionnaireAnswers; }
public InvestmentRiskProfileResponse setQuestionnaireAnswers(ArrayList<QuestionnaireAnswers> value) { this.questionnaireAnswers = value; return this; }
}
public static class RiskModel
{
public RecommendedRisk recommendedRisk = null;
public RecommendedRisk chosenRisk = null;
public RecommendedRisk getRecommendedRisk() { return recommendedRisk; }
public RiskModel setRecommendedRisk(RecommendedRisk value) { this.recommendedRisk = value; return this; }
public RecommendedRisk getChosenRisk() { return chosenRisk; }
public RiskModel setChosenRisk(RecommendedRisk value) { this.chosenRisk = value; return this; }
}
public static class RecommendedRisk
{
public String riskName = null;
public Integer riskValue = null;
public String riskId = null;
public String getRiskName() { return riskName; }
public RecommendedRisk setRiskName(String value) { this.riskName = value; return this; }
public Integer getRiskValue() { return riskValue; }
public RecommendedRisk setRiskValue(Integer value) { this.riskValue = value; return this; }
public String getRiskId() { return riskId; }
public RecommendedRisk setRiskId(String value) { this.riskId = value; return this; }
}
public static class RecommendedProducts
{
public RecommendedProductType recommendedProduct = null;
public RecommendedProductType chosenProduct = null;
public RecommendedProductType getRecommendedProduct() { return recommendedProduct; }
public RecommendedProducts setRecommendedProduct(RecommendedProductType value) { this.recommendedProduct = value; return this; }
public RecommendedProductType getChosenProduct() { return chosenProduct; }
public RecommendedProducts setChosenProduct(RecommendedProductType value) { this.chosenProduct = value; return this; }
}
public static class RecommendedProductType
{
public String product = null;
public String investmentProduct = null;
public Double score = null;
public Integer productType = null;
public ArrayList<InvestmentProduct> investmentProducts = null;
public String getProduct() { return product; }
public RecommendedProductType setProduct(String value) { this.product = value; return this; }
public String getInvestmentProduct() { return investmentProduct; }
public RecommendedProductType setInvestmentProduct(String value) { this.investmentProduct = value; return this; }
public Double getScore() { return score; }
public RecommendedProductType setScore(Double value) { this.score = value; return this; }
public Integer getProductType() { return productType; }
public RecommendedProductType setProductType(Integer value) { this.productType = value; return this; }
public ArrayList<InvestmentProduct> getInvestmentProducts() { return investmentProducts; }
public RecommendedProductType setInvestmentProducts(ArrayList<InvestmentProduct> value) { this.investmentProducts = value; return this; }
}
public static class InvestmentProduct
{
public String code = null;
public String name = null;
public String group = null;
public Boolean isAssetClassFund = null;
public ArrayList<InvestmentProductAllocationsSpec> allocs = null;
public Integer order = null;
public HashMap<Integer,HashMap<String,Double>> allocationsDictionary = null;
public String getCode() { return code; }
public InvestmentProduct setCode(String value) { this.code = value; return this; }
public String getName() { return name; }
public InvestmentProduct setName(String value) { this.name = value; return this; }
public String getGroup() { return group; }
public InvestmentProduct setGroup(String value) { this.group = value; return this; }
public Boolean getIsAssetClassFund() { return isAssetClassFund; }
public InvestmentProduct setIsAssetClassFund(Boolean value) { this.isAssetClassFund = value; return this; }
public ArrayList<InvestmentProductAllocationsSpec> getAllocs() { return allocs; }
public InvestmentProduct setAllocs(ArrayList<InvestmentProductAllocationsSpec> value) { this.allocs = value; return this; }
public Integer getOrder() { return order; }
public InvestmentProduct setOrder(Integer value) { this.order = value; return this; }
public HashMap<Integer,HashMap<String,Double>> getAllocationsDictionary() { return allocationsDictionary; }
public InvestmentProduct setAllocationsDictionary(HashMap<Integer,HashMap<String,Double>> value) { this.allocationsDictionary = value; return this; }
}
public static class InvestmentProductAllocationsSpec
{
public Integer fromAge = null;
public Integer term = null;
public HashMap<String,Double> allocs = null;
public Double totalAlloc = null;
public Integer getFromAge() { return fromAge; }
public InvestmentProductAllocationsSpec setFromAge(Integer value) { this.fromAge = value; return this; }
public Integer getTerm() { return term; }
public InvestmentProductAllocationsSpec setTerm(Integer value) { this.term = value; return this; }
public HashMap<String,Double> getAllocs() { return allocs; }
public InvestmentProductAllocationsSpec setAllocs(HashMap<String,Double> value) { this.allocs = value; return this; }
public Double getTotalAlloc() { return totalAlloc; }
public InvestmentProductAllocationsSpec setTotalAlloc(Double value) { this.totalAlloc = value; return this; }
}
public static class RecommendedProductGraph
{
public ArrayList<HashMap<String,String>> barGraphData = null;
public MatrixNoRisk pieGraphInfo = null;
public ArrayList<HashMap<String,String>> getBarGraphData() { return barGraphData; }
public RecommendedProductGraph setBarGraphData(ArrayList<HashMap<String,String>> value) { this.barGraphData = value; return this; }
public MatrixNoRisk getPieGraphInfo() { return pieGraphInfo; }
public RecommendedProductGraph setPieGraphInfo(MatrixNoRisk value) { this.pieGraphInfo = value; return this; }
}
public static class MatrixNoRisk
{
public String minimumAllocationInStocks = null;
public String maximumAllocationinStocks = null;
public String getMinimumAllocationInStocks() { return minimumAllocationInStocks; }
public MatrixNoRisk setMinimumAllocationInStocks(String value) { this.minimumAllocationInStocks = value; return this; }
public String getMaximumAllocationinStocks() { return maximumAllocationinStocks; }
public MatrixNoRisk setMaximumAllocationinStocks(String value) { this.maximumAllocationinStocks = value; return this; }
}
public static class QuestionnaireAnswers
{
public Integer questionNumber = null;
public Integer optionNumber = null;
public Integer getQuestionNumber() { return questionNumber; }
public QuestionnaireAnswers setQuestionNumber(Integer value) { this.questionNumber = value; return this; }
public Integer getOptionNumber() { return optionNumber; }
public QuestionnaireAnswers setOptionNumber(Integer value) { this.optionNumber = value; return this; }
}
}
Java InvestmentRiskProfileRiskRequest 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.
PUT /members/{EmployeeGuid}/investmentprofile/risk HTTP/1.1
Host: hcbtas-q-albamfs-api.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
employeeGuid: 00000000000000000000000000000000,
riskId: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { risk: { recommendedRisk: { riskName: String, riskValue: 0, riskId: String }, chosenRisk: { riskName: String, riskValue: 0, riskId: String } }, product: { recommendedProduct: { product: String, investmentProduct: String, score: 0, productType: 0, investmentProducts: [ { riskId: String, riskName: String } ] }, chosenProduct: { product: String, investmentProduct: String, score: 0, productType: 0, investmentProducts: [ { riskId: String, riskName: String } ] } }, recommendedProductGraph: { barGraphData: [ { String: String } ], pieGraphInfo: { minimumAllocationInStocks: String, maximumAllocationinStocks: String } }, questionnaireAnswers: [ { questionNumber: 0, optionNumber: 0 } ] }