AlbaApi

<back to all web services

InvestmentAllocationDataRequest

The following routes are available for this service:
POST/investmentallocation/save
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports AlbaApi.ServiceModel
Imports AlbaApi.Model

Namespace Global

    Namespace AlbaApi.Model

        Public Partial Class InvestmentAllocation
            Public Overridable Property Id As Long
            Public Overridable Property MemberId As Long
            Public Overridable Property FundId As String
            Public Overridable Property CurrentBalancePercent As Nullable(Of Decimal)
            Public Overridable Property FutureContributionPercent As Nullable(Of Decimal)
            Public Overridable Property CurrentBalanceFutureContributionPercent As Nullable(Of Decimal)
            Public Overridable Property DateCreated As Date
            Public Overridable Property CreatedBy As String
            Public Overridable Property DateUpdated As Nullable(Of Date)
            Public Overridable Property UpdatedBy As String
        End Class

        Public Partial Class MemberContribution
            Public Overridable Property Id As Long
            Public Overridable Property MemberId As Long
            Public Overridable Property ChoiceStartDate As Nullable(Of Date)
            Public Overridable Property ChoiceEndDate As Nullable(Of Date)
            Public Overridable Property BaseContributionPercent As Nullable(Of Decimal)
            Public Overridable Property VoluntaryContributionPercent As Nullable(Of Decimal)
            Public Overridable Property IncentiveContributionPercent As Nullable(Of Decimal)
            Public Overridable Property TotalContributionPercent As Nullable(Of Decimal)
            Public Overridable Property BaseContributionValue As Nullable(Of Decimal)
            Public Overridable Property VoluntaryContributionValue As Nullable(Of Decimal)
            Public Overridable Property IncentiveContributionValue As Nullable(Of Decimal)
            Public Overridable Property TotalContributionValue As Nullable(Of Decimal)
            Public Overridable Property DateCreated As Date
            Public Overridable Property CreatedBy As String
            Public Overridable Property DateUpdated As Nullable(Of Date)
            Public Overridable Property UpdatedBy As String
        End Class
    End Namespace

    Namespace AlbaApi.ServiceModel

        Public Partial Class InvestmentAllocationDataRequest
            Public Sub New()
                InvestmentAllocations = New List(Of InvestmentAllocation)
            End Sub

            Public Overridable Property InvestmentAllocations As List(Of InvestmentAllocation)
            Public Overridable Property MemberContribution As MemberContribution
            Public Overridable Property MemberId As Long
            Public Overridable Property CreatedBy As String
            Public Overridable Property DateOfBirthSpouse As Nullable(Of Date)
            Public Overridable Property DateOfBirthYoungestChild As Nullable(Of Date)
            Public Overridable Property ChildrenCount As Nullable(Of Short)
            Public Overridable Property InvestmentStrategy As String
            Public Overridable Property IsAdditionalInfoDisplayed As Nullable(Of Boolean)
        End Class
    End Namespace
End Namespace

VB.NET InvestmentAllocationDataRequest DTOs

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

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

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

(HttpWebResponse)