POST | /investmentallocation/save |
---|
import Foundation
import ServiceStack
public class InvestmentAllocationDataRequest : Codable
{
public var investmentAllocations:[InvestmentAllocation] = []
public var memberContribution:MemberContribution?
public var memberId:Int?
public var createdBy:String?
public var dateOfBirthSpouse:Date?
public var dateOfBirthYoungestChild:Date?
public var childrenCount:Int16?
public var investmentStrategy:String?
public var isAdditionalInfoDisplayed:Bool?
required public init(){}
}
public class InvestmentAllocation : Codable
{
public var id:Int?
public var memberId:Int?
public var fundId:String?
public var currentBalancePercent:Double?
public var futureContributionPercent:Double?
public var currentBalanceFutureContributionPercent:Double?
public var dateCreated:Date?
public var createdBy:String?
public var dateUpdated:Date?
public var updatedBy:String?
required public init(){}
}
public class MemberContribution : Codable
{
public var id:Int?
public var memberId:Int?
public var choiceStartDate:Date?
public var choiceEndDate:Date?
public var baseContributionPercent:Double?
public var voluntaryContributionPercent:Double?
public var incentiveContributionPercent:Double?
public var totalContributionPercent:Double?
public var baseContributionValue:Double?
public var voluntaryContributionValue:Double?
public var incentiveContributionValue:Double?
public var totalContributionValue:Double?
public var dateCreated:Date?
public var createdBy:String?
public var dateUpdated:Date?
public var updatedBy:String?
required public init(){}
}
Swift 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)