AlbaApi

<back to all web services

InvestmentAllocationDataRequest

The following routes are available for this service:
POST/investmentallocation/save
namespace AlbaApi.ServiceModel

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

    [<AllowNullLiteral>]
    type InvestmentAllocation() = 
        member val Id:Int64 = new Int64() with get,set
        member val MemberId:Int64 = new Int64() with get,set
        member val FundId:String = null with get,set
        member val CurrentBalancePercent:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val FutureContributionPercent:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val CurrentBalanceFutureContributionPercent:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val DateCreated:DateTime = new DateTime() with get,set
        member val CreatedBy:String = null with get,set
        member val DateUpdated:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val UpdatedBy:String = null with get,set

    [<AllowNullLiteral>]
    type MemberContribution() = 
        member val Id:Int64 = new Int64() with get,set
        member val MemberId:Int64 = new Int64() with get,set
        member val ChoiceStartDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val ChoiceEndDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val BaseContributionPercent:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val VoluntaryContributionPercent:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val IncentiveContributionPercent:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val TotalContributionPercent:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val BaseContributionValue:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val VoluntaryContributionValue:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val IncentiveContributionValue:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val TotalContributionValue:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val DateCreated:DateTime = new DateTime() with get,set
        member val CreatedBy:String = null with get,set
        member val DateUpdated:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val UpdatedBy:String = null with get,set

    [<AllowNullLiteral>]
    type InvestmentAllocationDataRequest() = 
        member val InvestmentAllocations:ResizeArray<InvestmentAllocation> = new ResizeArray<InvestmentAllocation>() with get,set
        member val MemberContribution:MemberContribution = null with get,set
        member val MemberId:Int64 = new Int64() with get,set
        member val CreatedBy:String = null with get,set
        member val DateOfBirthSpouse:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val DateOfBirthYoungestChild:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val ChildrenCount:Nullable<Int16> = new Nullable<Int16>() with get,set
        member val InvestmentStrategy:String = null with get,set
        member val IsAdditionalInfoDisplayed:Nullable<Boolean> = new Nullable<Boolean>() with get,set

F# InvestmentAllocationDataRequest 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.

POST /investmentallocation/save HTTP/1.1 
Host: hcbtas-q-albamfs-api.azurewebsites.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<InvestmentAllocationDataRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlbaApi.ServiceModel">
  <ChildrenCount>0</ChildrenCount>
  <CreatedBy>String</CreatedBy>
  <DateOfBirthSpouse>0001-01-01T00:00:00</DateOfBirthSpouse>
  <DateOfBirthYoungestChild>0001-01-01T00:00:00</DateOfBirthYoungestChild>
  <InvestmentAllocations xmlns:d2p1="http://schemas.datacontract.org/2004/07/AlbaApi.Model">
    <d2p1:InvestmentAllocation>
      <d2p1:CreatedBy>String</d2p1:CreatedBy>
      <d2p1:CurrentBalanceFutureContributionPercent>0</d2p1:CurrentBalanceFutureContributionPercent>
      <d2p1:CurrentBalancePercent>0</d2p1:CurrentBalancePercent>
      <d2p1:DateCreated>0001-01-01T00:00:00</d2p1:DateCreated>
      <d2p1:DateUpdated>0001-01-01T00:00:00</d2p1:DateUpdated>
      <d2p1:FundId>String</d2p1:FundId>
      <d2p1:FutureContributionPercent>0</d2p1:FutureContributionPercent>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:MemberId>0</d2p1:MemberId>
      <d2p1:UpdatedBy>String</d2p1:UpdatedBy>
    </d2p1:InvestmentAllocation>
  </InvestmentAllocations>
  <InvestmentStrategy>String</InvestmentStrategy>
  <IsAdditionalInfoDisplayed>false</IsAdditionalInfoDisplayed>
  <MemberContribution xmlns:d2p1="http://schemas.datacontract.org/2004/07/AlbaApi.Model">
    <d2p1:BaseContributionPercent>0</d2p1:BaseContributionPercent>
    <d2p1:BaseContributionValue>0</d2p1:BaseContributionValue>
    <d2p1:ChoiceEndDate>0001-01-01T00:00:00</d2p1:ChoiceEndDate>
    <d2p1:ChoiceStartDate>0001-01-01T00:00:00</d2p1:ChoiceStartDate>
    <d2p1:CreatedBy>String</d2p1:CreatedBy>
    <d2p1:DateCreated>0001-01-01T00:00:00</d2p1:DateCreated>
    <d2p1:DateUpdated>0001-01-01T00:00:00</d2p1:DateUpdated>
    <d2p1:Id>0</d2p1:Id>
    <d2p1:IncentiveContributionPercent>0</d2p1:IncentiveContributionPercent>
    <d2p1:IncentiveContributionValue>0</d2p1:IncentiveContributionValue>
    <d2p1:MemberId>0</d2p1:MemberId>
    <d2p1:TotalContributionPercent>0</d2p1:TotalContributionPercent>
    <d2p1:TotalContributionValue>0</d2p1:TotalContributionValue>
    <d2p1:UpdatedBy>String</d2p1:UpdatedBy>
    <d2p1:VoluntaryContributionPercent>0</d2p1:VoluntaryContributionPercent>
    <d2p1:VoluntaryContributionValue>0</d2p1:VoluntaryContributionValue>
  </MemberContribution>
  <MemberId>0</MemberId>
</InvestmentAllocationDataRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

(HttpWebResponse)