The Fall '18 release includes an attribute schema change. Customers who implemented attribute-based pricing in an earlier release must install the latest version of the Attribute/Volume Based Pricing DataPack in order to obtain the latest Apex classes that support the new attribute schema. The updated classes are backward-compatible, so they can be used in deployments that have not migrated yet to the new schema as well as in deployments that have completed the migration.
To implement attribute-based pricing in Summer '18, add the following Apex classes to your org. Due to code dependencies, you must create these classes in the order shown below.
For information on how to create Apex classes, see Create an Apex Class in the Salesforce help.
-
PricingPlanHelper.clsThis Apex helper class is invoked by the CustomPricingPlanStepImpl.cls that analyzes the matrix and invokes the calculation procedure.
-
CustomPricingPlanStepImpl.clsThis VlocityOpenInterface implementation Apex class that exposes the GetMatrixPrice method and invokes the PricingPlanHelper class.
-
CustomPricingPlanStepImplTest.cls:This is an Apex test class. For more information on Apex test classes, see Introduction to Apex Code Test Methods.