...
Name | Type | Description | Mandatory | Available from version | |
---|---|---|---|---|---|
BrickId | Guid | Not used as an input. | 2.02.20160603 | ||
AccountId | Guid | True | 2.02.20160603 | ||
OwnerId | Guid | Owner/holder of the policy | True | 2.02.20160603 | |
ExpirationDate | DateTime | True | 2.02.20160603 | ||
ExternalReference | string | 2.02.20160603 | |||
InsuranceProgramId | Guid | True | 2.02.20160603 | ||
Parameters | string | This is a string with custom parameters separated by semicolons. For example if a car insurance policy is created and the brand of the car should be stored and the production year the contents of this property could be "brand: Ford;year: 2016". | 2.02.20160603 | ||
PolicyPeriod | int | Monthly = 1 Quarterly = 2 Semi annually = 3 | Number of months for the policy. | True | 2.02.20160603 |
PolicyNo | string | Not used as an input. The created order will receive a policy number that is returned in the output. | 2.02.20160603 | ||
Premium | decimal | The amount that will be charged on each payment frequency | True | 2.02.20160603 | |
PremiumFrequency | int | Monthly = 1 Quarterly = 2 Semi annually = 3 | True | 2.02.20160603 | |
SecondInsuredLegalEntityId | Guid | BrickId of a second Legal Entity that is insured | 2.02.20160603 | ||
SignDate | DateTime | True | 2.02.20160603 | ||
Status | int | 1 = Active, 2 = Inactive | True | 2.02.20160603 | |
InitialActivationDate | DateTime | True | 2.02.20160603 | ||
PeriodStartDate | DateTime | True | 2.02.20160603 | ||
PeriodEndDate | DateTime | True | 2.02.20160603 |
...
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
// Create Insurance Policy var client = new BFSServiceReference.bfsapiSoapClient(); var credentials = new BFSServiceReference.Credentials() { UserName = bfsusername, //Username of administrative user in your instance of BFS Password = bfspassword, //Password of the administrative user in your instance of BFS }; var response = client.CreateInsurancePolicy(new BFSServiceReference.CreateInsurancePolicyRequest() { Credentials = credentials, identify = bfsidentifier, //Identifier is a unique token for your instance of BFS Entities = new[] { new InsurancePolicy() { AccountId = new Guid("28cb5e31-600e-4a17-b2a7-131e2b233c8f"), OwnerId = new Guid("b710db8e-06b3-4e5b-aa7f-4ad9ef93bb91"), ExpirationDate = DateTime.Today.AddMonths(1), ExternalReference = "My insurance policy", InsuranceProgramId = new Guid(""), Premium = 100M, PolicyPeriod = 112, PremiumFrequency = 1, SignDate = DateTime.Today, Status = 1, InitialActivationDate = DateTime.Today, PeriodStartDate = DateTime.Today, PeriodEndDate = DateTime.Today.AddMonths(1) }, } }); foreach (var c in response.Entities) { Console.WriteLine(c.BrickId + ", " + c.OwnerId); } |
...