Name | Type | Description | Mandatory | Available from version |
---|---|---|---|---|
BrickId | Guid | This is the unique id of the policy that should be updated | True | 2.02.20160603 |
ExpirationDate | DateTime | The expiration date for the selected insurance policy | 2.02.20160603 | |
ExternalReference | string | The external reference for the selected insurance policy | 2.02.20160603 | |
AccountId | Guid | The BrickId of the account associated with the selected insurance policy | 2.02.20160603 | |
Parameters | string | This is a string with custom parameters separated by semicolons. For example if a car insurance policy was 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". If this value is updated by this method the previous value is overwritten. | 2.02.20160603 | |
PolicyPeriod | int | The period of the policy entered as number of months. | 2.02.20160603 | |
Premium | decimal | The value of the insurance premium | 2.02.20160603 | |
PremiumFrequency | int | The premium frequency entered as number of months. | 2.02.20160603 | |
SecondInsuredLegalEntityId | Guid | The BrickIds of the second insured Legal Entities | 2.02.20160603 | |
SignDate | DateTime | The date when the policy was signed | 2.02.20160603 | |
Status | int | 1 = Active, 2 = Inactive | 2.02.20160603 | |
InitialActivationDate | DateTime | The initial activation date of the policy | 2.02.20160603 | |
PeriodStartDate | DateTime | The date on which the policy period was started | 2.02.20160603 | |
PeriodEndDate | DateTime | The date on which the policy period was ended | 2.02.20160603 | |
LastPartnerInvoiceDate | DateTime | The date on which the associated partner invoiced the house for this insurance policy | 2.02.20160603 | |
CancellationDate | DateTime | The date on which the selected insurance policy was cancelled | 2.02.20160603 | |
TerminationDate | DateTime | The date on which the selected insurance policy was terminated | 2.02.20160603 |
Name | Type | Description | Available from version |
---|---|---|---|
EntitiesArray | Array | All insurance policies are returned along with each insurance policy's BrickId and array of Errors per insurance policy | 2.02.20160603 |
// Update a Insurance Policy with the UpdateInsurancePolicy method 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.UpdateInsurancePolicies(new BFSServiceReference.UpdateInsurancePoliciesRequest() { Credentials = credentials, identify = bfsidentifier, //Identifier is a unique token for your instance of BFS Fields = new UpdateInsurancePolicyFields() { BrickId = true, Premium = true }, Entities = new[] { new UpdateInsurancePolicy() { BrickId = new Guid("15b1f034-c9b9-4747-a03a-5bb06edd0ad1"), Premium = 100M, }, }, }); foreach (var c in response.Entities) { Console.WriteLine(c.BrickId + ", " + response.Message); } |