PUT | /members/{EmployeeGuid}/investmentprofile/producttype |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class InvestmentRiskProfileProductTypeRequest
{
public UUID employeeGuid = null;
public String productName = null;
public UUID getEmployeeGuid() { return employeeGuid; }
public InvestmentRiskProfileProductTypeRequest setEmployeeGuid(UUID value) { this.employeeGuid = value; return this; }
public String getProductName() { return productName; }
public InvestmentRiskProfileProductTypeRequest setProductName(String value) { this.productName = 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 InvestmentRiskProfileProductTypeRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /members/{EmployeeGuid}/investmentprofile/producttype HTTP/1.1
Host: hcbtas-q-albamfs-api.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<InvestmentRiskProfileProductTypeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlbaApi.ServiceModel">
<EmployeeGuid>00000000-0000-0000-0000-000000000000</EmployeeGuid>
<ProductName>String</ProductName>
</InvestmentRiskProfileProductTypeRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <InvestmentRiskProfileResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlbaApi.Model"> <Product> <ChosenProduct> <InvestmentProduct>String</InvestmentProduct> <InvestmentProducts> <InvestmentProduct> <RiskId>String</RiskId> <RiskName>String</RiskName> </InvestmentProduct> </InvestmentProducts> <Product>String</Product> <ProductType>0</ProductType> <Score>0</Score> </ChosenProduct> <RecommendedProduct> <InvestmentProduct>String</InvestmentProduct> <InvestmentProducts> <InvestmentProduct> <RiskId>String</RiskId> <RiskName>String</RiskName> </InvestmentProduct> </InvestmentProducts> <Product>String</Product> <ProductType>0</ProductType> <Score>0</Score> </RecommendedProduct> </Product> <QuestionnaireAnswers> <QuestionnaireAnswers> <OptionNumber>0</OptionNumber> <QuestionNumber>0</QuestionNumber> </QuestionnaireAnswers> </QuestionnaireAnswers> <RecommendedProductGraph> <BarGraphData xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:ArrayOfKeyValueOfstringstring> <d3p1:KeyValueOfstringstring> <d3p1:Key>String</d3p1:Key> <d3p1:Value>String</d3p1:Value> </d3p1:KeyValueOfstringstring> </d3p1:ArrayOfKeyValueOfstringstring> </BarGraphData> <PieGraphInfo> <MaximumAllocationinStocks>String</MaximumAllocationinStocks> <MinimumAllocationInStocks>String</MinimumAllocationInStocks> </PieGraphInfo> </RecommendedProductGraph> <Risk> <ChosenRisk> <RiskId>String</RiskId> <RiskName>String</RiskName> <RiskValue>0</RiskValue> </ChosenRisk> <RecommendedRisk> <RiskId>String</RiskId> <RiskName>String</RiskName> <RiskValue>0</RiskValue> </RecommendedRisk> </Risk> </InvestmentRiskProfileResponse>