Create a charge breakdown lookup class

A charge breakdown lookup class defines the categories into which PolicyCenter splits the charges that it sends to a billing system for a policy period.

About this task

Create the lookup class to specify charge categories based on coverages and coverables for the businessowners policy line.

Procedure

  1. In Guidewire Studio, navigate to configuration > gsrc > gw > plugin > billing > bc5000.
  2. Right-click bc5000 and click New > Gosu Class.
  3. In New Gosu Class, type the following name:
    BOPLineChargeBreakdownCategoryLookup
  4. After the class name, type the following code:
    extends DefaultChargeBreakdownCategoryLookup
  5. Use the Studio hot key Alt-Enter to import the gw.billing.bc5000.DefaultChargeBreakdownCategoryLookup class.
  6. On the empty line between the braces for the class code, call the constructor for the parent class by typing the following code:
    construct{super({})}
  7. Inside the innermost braces in the constructor argument, type the categories that you want to use to itemize the billing charges.
    For example, type the following entity names to categorize charges by liabilities, buildings, and vehicles:
    BOPLiabilityCov, BOPBuildingCov, BusinessVehicleCov
    The code in your class looks like the following:
    package gw.plugin.billing.bc5000
    
    uses entity.BOPBuildingCov
    uses gw.billing.bc5000.DefaultChargeBreakdownCategoryLookup
    
    @Export
    class BOPLineChargeBreakdownCategoryLookup extends DefaultChargeBreakdownCategoryLookup {
      construct() {
        super({BOPLiabilityCov, BOPBuildingCov, BusinessVehicleCov})
      }
    }
  8. Test the charge breakdowns:
    1. Start the integrated billing system.
    2. Start the PolicyCenter server.
    3. In PolicyCenter, issue a new businessowners policy.
    4. In the integrated billing system, search for the policy that you just created and examine the charges on that policy.
    The billing system displays itemized charges. For example, in BillingCenter, the itemized charges appear in the Charge Breakdown tab for the transaction.

What to do next

To use a different naming convention for the categories that you send to the billing system, override the methods from DefaultChargeBreakdownCategoryLookup in your lookup class.