POST | /investmentallocation/save |
---|
export class InvestmentAllocation
{
public id?: number;
public memberId?: number;
public fundId?: string;
public currentBalancePercent?: number;
public futureContributionPercent?: number;
public currentBalanceFutureContributionPercent?: number;
public dateCreated?: string;
public createdBy?: string;
public dateUpdated?: string;
public updatedBy?: string;
public constructor(init?: Partial<InvestmentAllocation>) { (Object as any).assign(this, init); }
}
export class MemberContribution
{
public id?: number;
public memberId?: number;
public choiceStartDate?: string;
public choiceEndDate?: string;
public baseContributionPercent?: number;
public voluntaryContributionPercent?: number;
public incentiveContributionPercent?: number;
public totalContributionPercent?: number;
public baseContributionValue?: number;
public voluntaryContributionValue?: number;
public incentiveContributionValue?: number;
public totalContributionValue?: number;
public dateCreated?: string;
public createdBy?: string;
public dateUpdated?: string;
public updatedBy?: string;
public constructor(init?: Partial<MemberContribution>) { (Object as any).assign(this, init); }
}
export class InvestmentAllocationDataRequest
{
public investmentAllocations?: InvestmentAllocation[];
public memberContribution?: MemberContribution;
public memberId?: number;
public createdBy?: string;
public dateOfBirthSpouse?: string;
public dateOfBirthYoungestChild?: string;
public childrenCount?: number;
public investmentStrategy?: string;
public isAdditionalInfoDisplayed?: boolean;
public constructor(init?: Partial<InvestmentAllocationDataRequest>) { (Object as any).assign(this, init); }
}
TypeScript 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
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)