POST | /investmentallocation/save |
---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using AlbaApi.ServiceModel;
using AlbaApi.Model;
namespace AlbaApi.Model
{
public partial class InvestmentAllocation
{
public virtual long Id { get; set; }
public virtual long MemberId { get; set; }
public virtual string FundId { get; set; }
public virtual decimal? CurrentBalancePercent { get; set; }
public virtual decimal? FutureContributionPercent { get; set; }
public virtual decimal? CurrentBalanceFutureContributionPercent { get; set; }
public virtual DateTime DateCreated { get; set; }
public virtual string CreatedBy { get; set; }
public virtual DateTime? DateUpdated { get; set; }
public virtual string UpdatedBy { get; set; }
}
public partial class MemberContribution
{
public virtual long Id { get; set; }
public virtual long MemberId { get; set; }
public virtual DateTime? ChoiceStartDate { get; set; }
public virtual DateTime? ChoiceEndDate { get; set; }
public virtual decimal? BaseContributionPercent { get; set; }
public virtual decimal? VoluntaryContributionPercent { get; set; }
public virtual decimal? IncentiveContributionPercent { get; set; }
public virtual decimal? TotalContributionPercent { get; set; }
public virtual decimal? BaseContributionValue { get; set; }
public virtual decimal? VoluntaryContributionValue { get; set; }
public virtual decimal? IncentiveContributionValue { get; set; }
public virtual decimal? TotalContributionValue { get; set; }
public virtual DateTime DateCreated { get; set; }
public virtual string CreatedBy { get; set; }
public virtual DateTime? DateUpdated { get; set; }
public virtual string UpdatedBy { get; set; }
}
}
namespace AlbaApi.ServiceModel
{
public partial class InvestmentAllocationDataRequest
{
public InvestmentAllocationDataRequest()
{
InvestmentAllocations = new List<InvestmentAllocation>{};
}
public virtual List<InvestmentAllocation> InvestmentAllocations { get; set; }
public virtual MemberContribution MemberContribution { get; set; }
public virtual long MemberId { get; set; }
public virtual string CreatedBy { get; set; }
public virtual DateTime? DateOfBirthSpouse { get; set; }
public virtual DateTime? DateOfBirthYoungestChild { get; set; }
public virtual short? ChildrenCount { get; set; }
public virtual string InvestmentStrategy { get; set; }
public virtual bool? IsAdditionalInfoDisplayed { get; set; }
}
}
C# InvestmentAllocationDataRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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)