POST | /investmentallocation/save |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class InvestmentAllocationDataRequest
{
public ArrayList<InvestmentAllocation> investmentAllocations = null;
public MemberContribution memberContribution = null;
public Long memberId = null;
public String createdBy = null;
public Date dateOfBirthSpouse = null;
public Date dateOfBirthYoungestChild = null;
public Short childrenCount = null;
public String investmentStrategy = null;
public Boolean isAdditionalInfoDisplayed = null;
public ArrayList<InvestmentAllocation> getInvestmentAllocations() { return investmentAllocations; }
public InvestmentAllocationDataRequest setInvestmentAllocations(ArrayList<InvestmentAllocation> value) { this.investmentAllocations = value; return this; }
public MemberContribution getMemberContribution() { return memberContribution; }
public InvestmentAllocationDataRequest setMemberContribution(MemberContribution value) { this.memberContribution = value; return this; }
public Long getMemberId() { return memberId; }
public InvestmentAllocationDataRequest setMemberId(Long value) { this.memberId = value; return this; }
public String getCreatedBy() { return createdBy; }
public InvestmentAllocationDataRequest setCreatedBy(String value) { this.createdBy = value; return this; }
public Date getDateOfBirthSpouse() { return dateOfBirthSpouse; }
public InvestmentAllocationDataRequest setDateOfBirthSpouse(Date value) { this.dateOfBirthSpouse = value; return this; }
public Date getDateOfBirthYoungestChild() { return dateOfBirthYoungestChild; }
public InvestmentAllocationDataRequest setDateOfBirthYoungestChild(Date value) { this.dateOfBirthYoungestChild = value; return this; }
public Short getChildrenCount() { return childrenCount; }
public InvestmentAllocationDataRequest setChildrenCount(Short value) { this.childrenCount = value; return this; }
public String getInvestmentStrategy() { return investmentStrategy; }
public InvestmentAllocationDataRequest setInvestmentStrategy(String value) { this.investmentStrategy = value; return this; }
public Boolean getIsAdditionalInfoDisplayed() { return isAdditionalInfoDisplayed; }
public InvestmentAllocationDataRequest setIsAdditionalInfoDisplayed(Boolean value) { this.isAdditionalInfoDisplayed = value; return this; }
}
public static class InvestmentAllocation
{
public Long id = null;
public Long memberId = null;
public String fundId = null;
public BigDecimal currentBalancePercent = null;
public BigDecimal futureContributionPercent = null;
public BigDecimal currentBalanceFutureContributionPercent = null;
public Date dateCreated = null;
public String createdBy = null;
public Date dateUpdated = null;
public String updatedBy = null;
public Long getId() { return id; }
public InvestmentAllocation setId(Long value) { this.id = value; return this; }
public Long getMemberId() { return memberId; }
public InvestmentAllocation setMemberId(Long value) { this.memberId = value; return this; }
public String getFundId() { return fundId; }
public InvestmentAllocation setFundId(String value) { this.fundId = value; return this; }
public BigDecimal getCurrentBalancePercent() { return currentBalancePercent; }
public InvestmentAllocation setCurrentBalancePercent(BigDecimal value) { this.currentBalancePercent = value; return this; }
public BigDecimal getFutureContributionPercent() { return futureContributionPercent; }
public InvestmentAllocation setFutureContributionPercent(BigDecimal value) { this.futureContributionPercent = value; return this; }
public BigDecimal getCurrentBalanceFutureContributionPercent() { return currentBalanceFutureContributionPercent; }
public InvestmentAllocation setCurrentBalanceFutureContributionPercent(BigDecimal value) { this.currentBalanceFutureContributionPercent = value; return this; }
public Date getDateCreated() { return dateCreated; }
public InvestmentAllocation setDateCreated(Date value) { this.dateCreated = value; return this; }
public String getCreatedBy() { return createdBy; }
public InvestmentAllocation setCreatedBy(String value) { this.createdBy = value; return this; }
public Date getDateUpdated() { return dateUpdated; }
public InvestmentAllocation setDateUpdated(Date value) { this.dateUpdated = value; return this; }
public String getUpdatedBy() { return updatedBy; }
public InvestmentAllocation setUpdatedBy(String value) { this.updatedBy = value; return this; }
}
public static class MemberContribution
{
public Long id = null;
public Long memberId = null;
public Date choiceStartDate = null;
public Date choiceEndDate = null;
public BigDecimal baseContributionPercent = null;
public BigDecimal voluntaryContributionPercent = null;
public BigDecimal incentiveContributionPercent = null;
public BigDecimal totalContributionPercent = null;
public BigDecimal baseContributionValue = null;
public BigDecimal voluntaryContributionValue = null;
public BigDecimal incentiveContributionValue = null;
public BigDecimal totalContributionValue = null;
public Date dateCreated = null;
public String createdBy = null;
public Date dateUpdated = null;
public String updatedBy = null;
public Long getId() { return id; }
public MemberContribution setId(Long value) { this.id = value; return this; }
public Long getMemberId() { return memberId; }
public MemberContribution setMemberId(Long value) { this.memberId = value; return this; }
public Date getChoiceStartDate() { return choiceStartDate; }
public MemberContribution setChoiceStartDate(Date value) { this.choiceStartDate = value; return this; }
public Date getChoiceEndDate() { return choiceEndDate; }
public MemberContribution setChoiceEndDate(Date value) { this.choiceEndDate = value; return this; }
public BigDecimal getBaseContributionPercent() { return baseContributionPercent; }
public MemberContribution setBaseContributionPercent(BigDecimal value) { this.baseContributionPercent = value; return this; }
public BigDecimal getVoluntaryContributionPercent() { return voluntaryContributionPercent; }
public MemberContribution setVoluntaryContributionPercent(BigDecimal value) { this.voluntaryContributionPercent = value; return this; }
public BigDecimal getIncentiveContributionPercent() { return incentiveContributionPercent; }
public MemberContribution setIncentiveContributionPercent(BigDecimal value) { this.incentiveContributionPercent = value; return this; }
public BigDecimal getTotalContributionPercent() { return totalContributionPercent; }
public MemberContribution setTotalContributionPercent(BigDecimal value) { this.totalContributionPercent = value; return this; }
public BigDecimal getBaseContributionValue() { return baseContributionValue; }
public MemberContribution setBaseContributionValue(BigDecimal value) { this.baseContributionValue = value; return this; }
public BigDecimal getVoluntaryContributionValue() { return voluntaryContributionValue; }
public MemberContribution setVoluntaryContributionValue(BigDecimal value) { this.voluntaryContributionValue = value; return this; }
public BigDecimal getIncentiveContributionValue() { return incentiveContributionValue; }
public MemberContribution setIncentiveContributionValue(BigDecimal value) { this.incentiveContributionValue = value; return this; }
public BigDecimal getTotalContributionValue() { return totalContributionValue; }
public MemberContribution setTotalContributionValue(BigDecimal value) { this.totalContributionValue = value; return this; }
public Date getDateCreated() { return dateCreated; }
public MemberContribution setDateCreated(Date value) { this.dateCreated = value; return this; }
public String getCreatedBy() { return createdBy; }
public MemberContribution setCreatedBy(String value) { this.createdBy = value; return this; }
public Date getDateUpdated() { return dateUpdated; }
public MemberContribution setDateUpdated(Date value) { this.dateUpdated = value; return this; }
public String getUpdatedBy() { return updatedBy; }
public MemberContribution setUpdatedBy(String value) { this.updatedBy = value; return this; }
}
}
Java 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)