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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

{"investmentAllocations":[{"id":0,"memberId":0,"fundId":"String","currentBalancePercent":0,"futureContributionPercent":0,"currentBalanceFutureContributionPercent":0,"dateCreated":"0001-01-01T00:00:00.0000000","createdBy":"String","dateUpdated":"0001-01-01T00:00:00.0000000","updatedBy":"String"}],"memberContribution":{"id":0,"memberId":0,"choiceStartDate":"0001-01-01T00:00:00.0000000","choiceEndDate":"0001-01-01T00:00:00.0000000","baseContributionPercent":0,"voluntaryContributionPercent":0,"incentiveContributionPercent":0,"totalContributionPercent":0,"baseContributionValue":0,"voluntaryContributionValue":0,"incentiveContributionValue":0,"totalContributionValue":0,"dateCreated":"0001-01-01T00:00:00.0000000","createdBy":"String","dateUpdated":"0001-01-01T00:00:00.0000000","updatedBy":"String"},"memberId":0,"createdBy":"String","dateOfBirthSpouse":"0001-01-01T00:00:00.0000000","dateOfBirthYoungestChild":"0001-01-01T00:00:00.0000000","childrenCount":0,"investmentStrategy":"String","isAdditionalInfoDisplayed":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

(HttpWebResponse)