PUT | /members/{EmployeeGuid}/investmentprofile/producttype |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class InvestmentRiskProfileProductTypeRequest
{
var employeeGuid:UUID? = null
var productName:String? = null
}
open class InvestmentRiskProfileResponse
{
var risk:RiskModel? = null
var product:RecommendedProducts? = null
var recommendedProductGraph:RecommendedProductGraph? = null
var questionnaireAnswers:ArrayList<QuestionnaireAnswers>? = null
}
open class RiskModel
{
var recommendedRisk:RecommendedRisk? = null
var chosenRisk:RecommendedRisk? = null
}
open class RecommendedRisk
{
var riskName:String? = null
var riskValue:Int? = null
var riskId:String? = null
}
open class RecommendedProducts
{
var recommendedProduct:RecommendedProductType? = null
var chosenProduct:RecommendedProductType? = null
}
open class RecommendedProductType
{
var product:String? = null
var investmentProduct:String? = null
var score:Double? = null
var productType:Int? = null
var investmentProducts:ArrayList<InvestmentProduct> = ArrayList<InvestmentProduct>()
}
open class InvestmentProduct
{
var code:String? = null
var name:String? = null
var group:String? = null
var isAssetClassFund:Boolean? = null
var allocs:ArrayList<InvestmentProductAllocationsSpec> = ArrayList<InvestmentProductAllocationsSpec>()
var order:Int? = null
var allocationsDictionary:HashMap<Int,HashMap<String,Double>> = HashMap<Int,HashMap<String,Double>>()
}
open class InvestmentProductAllocationsSpec
{
var fromAge:Int? = null
var term:Int? = null
var allocs:HashMap<String,Double> = HashMap<String,Double>()
var totalAlloc:Double? = null
}
open class RecommendedProductGraph
{
var barGraphData:ArrayList<HashMap<String,String>> = ArrayList<HashMap<String,String>>()
var pieGraphInfo:MatrixNoRisk? = null
}
open class MatrixNoRisk
{
var minimumAllocationInStocks:String? = null
var maximumAllocationinStocks:String? = null
}
open class QuestionnaireAnswers
{
var questionNumber:Int? = null
var optionNumber:Int? = null
}
Kotlin 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>