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