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 .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)