AlbaApi

<back to all web services

InvestmentRiskProfileRiskRequest

The following routes are available for this service:
PUT/members/{EmployeeGuid}/investmentprofile/risk
namespace AlbaApi.ServiceModel

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type RecommendedRisk() = 
        member val RiskName:String = null with get,set
        member val RiskValue:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val RiskId:String = null with get,set

    [<AllowNullLiteral>]
    type RiskModel() = 
        member val RecommendedRisk:RecommendedRisk = null with get,set
        member val ChosenRisk:RecommendedRisk = null with get,set

    [<AllowNullLiteral>]
    type InvestmentProductAllocationsSpec() = 
        member val FromAge:Int32 = new Int32() with get,set
        member val Term:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val Allocs:Dictionary<String, Double> = new Dictionary<String, Double>() with get,set
        member val TotalAlloc:Double = new Double() with get,set

    [<AllowNullLiteral>]
    type InvestmentProduct() = 
        member val Code:String = null with get,set
        member val Name:String = null with get,set
        member val Group:String = null with get,set
        member val IsAssetClassFund:Boolean = new Boolean() with get,set
        member val Allocs:ResizeArray<InvestmentProductAllocationsSpec> = new ResizeArray<InvestmentProductAllocationsSpec>() with get,set
        member val Order:Int32 = new Int32() with get,set
        member val AllocationsDictionary:Dictionary<Int32, Dictionary<String,Double>> = new Dictionary<Int32, Dictionary<String,Double>>() with get,set

    [<AllowNullLiteral>]
    type RecommendedProductType() = 
        member val Product:String = null with get,set
        member val InvestmentProduct:String = null with get,set
        member val Score:Nullable<Double> = new Nullable<Double>() with get,set
        member val ProductType:Int32 = new Int32() with get,set
        member val InvestmentProducts:ResizeArray<InvestmentProduct> = new ResizeArray<InvestmentProduct>() with get,set

    [<AllowNullLiteral>]
    type RecommendedProducts() = 
        member val RecommendedProduct:RecommendedProductType = null with get,set
        member val ChosenProduct:RecommendedProductType = null with get,set

    [<AllowNullLiteral>]
    type MatrixNoRisk() = 
        member val MinimumAllocationInStocks:String = null with get,set
        member val MaximumAllocationinStocks:String = null with get,set

    [<AllowNullLiteral>]
    type RecommendedProductGraph() = 
        member val BarGraphData:ResizeArray<Dictionary<String,String>> = new ResizeArray<Dictionary<String,String>>() with get,set
        member val PieGraphInfo:MatrixNoRisk = null with get,set

    [<AllowNullLiteral>]
    type InvestmentRiskProfileResponse() = 
        member val Risk:RiskModel = null with get,set
        member val Product:RecommendedProducts = null with get,set
        member val RecommendedProductGraph:RecommendedProductGraph = null with get,set
        member val QuestionnaireAnswers:QuestionnaireAnswers[] = [||] with get,set

    [<AllowNullLiteral>]
    type InvestmentRiskProfileRiskRequest() = 
        member val EmployeeGuid:Guid = new Guid() with get,set
        member val RiskId:String = null with get,set

    [<AllowNullLiteral>]
    type QuestionnaireAnswers() = 
        member val QuestionNumber:Int32 = new Int32() with get,set
        member val OptionNumber:Int32 = new Int32() with get,set

F# InvestmentRiskProfileRiskRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<InvestmentRiskProfileRiskRequest 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>
  <RiskId>String</RiskId>
</InvestmentRiskProfileRiskRequest>
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>