AlbaApi

<back to all web services

InvestmentAllocationDataRequest

The following routes are available for this service:
POST/investmentallocation/save
import java.math.*
import java.util.*
import net.servicestack.client.*


open class InvestmentAllocationDataRequest
{
    var investmentAllocations:ArrayList<InvestmentAllocation> = ArrayList<InvestmentAllocation>()
    var memberContribution:MemberContribution? = null
    var memberId:Long? = null
    var createdBy:String? = null
    var dateOfBirthSpouse:Date? = null
    var dateOfBirthYoungestChild:Date? = null
    var childrenCount:Short? = null
    var investmentStrategy:String? = null
    var isAdditionalInfoDisplayed:Boolean? = null
}

open class InvestmentAllocation
{
    var id:Long? = null
    var memberId:Long? = null
    var fundId:String? = null
    var currentBalancePercent:BigDecimal? = null
    var futureContributionPercent:BigDecimal? = null
    var currentBalanceFutureContributionPercent:BigDecimal? = null
    var dateCreated:Date? = null
    var createdBy:String? = null
    var dateUpdated:Date? = null
    var updatedBy:String? = null
}

open class MemberContribution
{
    var id:Long? = null
    var memberId:Long? = null
    var choiceStartDate:Date? = null
    var choiceEndDate:Date? = null
    var baseContributionPercent:BigDecimal? = null
    var voluntaryContributionPercent:BigDecimal? = null
    var incentiveContributionPercent:BigDecimal? = null
    var totalContributionPercent:BigDecimal? = null
    var baseContributionValue:BigDecimal? = null
    var voluntaryContributionValue:BigDecimal? = null
    var incentiveContributionValue:BigDecimal? = null
    var totalContributionValue:BigDecimal? = null
    var dateCreated:Date? = null
    var createdBy:String? = null
    var dateUpdated:Date? = null
    var updatedBy:String? = null
}

Kotlin InvestmentAllocationDataRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + 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)