Versions Compared

Key

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

...

NameTypeDescriptionMandatoryAvailable from version
BrickIdGuidNot used as an input.
2.02.20160603
AccountIdGuid
True2.02.20160603
OwnerIdGuidOwner/holder of the policyTrue2.02.20160603
ExpirationDateDateTime
True2.02.20160603
ExternalReferencestring

2.02.20160603
InsuranceProgramIdGuid
True2.02.20160603
ParametersstringThis 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
PolicyPeriodint

Monthly = 1

Quarterly = 2

Semi annually = 3

Number of months for the policy.

True2.02.20160603
PolicyNostringNot used as an input. The created order will receive a policy number that is returned in the output.
2.02.20160603
PremiumdecimalThe amount that will be charged on each payment frequencyTrue2.02.20160603
PremiumFrequencyint

Monthly = 1

Quarterly = 2

Semi annually = 3

True2.02.20160603
SecondInsuredLegalEntityIdGuidBrickId of a second Legal Entity that is insured
2.02.20160603
SignDateDateTime
True2.02.20160603
Statusint1 = Active, 2 = InactiveTrue2.02.20160603
InitialActivationDateDateTime
True2.02.20160603
PeriodStartDateDateTime
True2.02.20160603
PeriodEndDateDateTime
True2.02.20160603

...

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

...