Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NameTypeDescriptionMandatoryAvailable from version
BrickIdGuidThis is the unique id of the policy that should be updatedTrue2.02.20160603
ExpirationDateDateTimeThe expiration date for the selected insurance policy 
2.02.20160603
ExternalReferencestringThe external reference for the selected insurance policy 
2.02.20160603
AccountIdGuidThe BrickId of the account associated with the selected insurance policy 
2.02.20160603
ParametersstringThis 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
PolicyPeriodint

The policy period:

Monthly = 1

Quarterly = 2

Semi annually = 3

 
2.02.20160603
PremiumdecimalThe value of the insurance premium 
2.02.20160603
PremiumFrequencyint

Monthly = 1

Quarterly = 2

Semi annually = 3

 
2.02.20160603
SecondInsuredLegalEntityIdGuidThe BrickIds of the second insured Legal Entities 
2.02.20160603
SignDateDateTimeThe date when the policy was signed 
2.02.20160603
Statusint1 = Active, 2 = Inactive 
2.02.20160603
InitialActivationDateDateTimeThe initial activation date of the policy 
2.02.20160603
PeriodStartDateDateTimeThe date on which the policy period was started 
2.02.20160603
PeriodEndDateDateTimeThe date on which the policy period was ended 
2.02.20160603
LastPartnerInvoiceDateDateTimeThe date on which the associated partner invoiced the house for this insurance policy 
2.02.20160603
CancellationDateDateTimeThe date on which the selected insurance policy was cancelled 
2.02.20160603
TerminationDateDateTimeThe date on which the selected insurance policy was terminated 
2.02.20160603

Response rows (Array)

...

Code Block
languagec#
themeRDark
titleC# - Update insurance policy
linenumberstrue
collapsetrue
// Update ana 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);
}

...


Blog Posts
sortcreation
contenttitles
labelsUpdateInsurancePolicy