Billing Central Apex API Developer Reference

ffbc.PricingStructuresService

global with sharing class PricingStructuresService

This class provides service functionality for the Pricing Structure object.

This class contains deprecated items.

Enums

Type

An enum that represents the valid pricing types for pricing structures.

Value Description
Volume The unit price for a quantity of units is applied to all units.
Tiered The unit price for each quantity break is applied only to units that exceed its quantity.

UsageBillingType

An enum that represents the valid usage billing types for pricing structures.

Value Description
TotalUsage Unit prices are calculated based on the total usage quantity per billing period of the contract line item.
PerUsage Unit prices are calculated based on the quantity of the individual usage records per billing period of the contract line item.

Deprecated

The following items are deprecated and not supported for use. We recommend that you stop using these items to avoid exceptions.

Methods

load

Deprecated: This method has been deprecated. Use a standard Salesforce query instead.

global static List<ffbc.PricingStructuresService.PricingStructure> load(Set<Id> pricingStructureIds)

Retrieves the pricing structures with the IDs provided and returns a wrapper for each pricing structure and its quantity breaks.

Input Parameters

Name Type Description
pricingStructureIds Set<Id> The pricing structures to query.

Return Value

The wrappers for each pricing structure and its list of quantity breaks in ascending order of quantity.

ffbc.PricingStructuresService.PricingStructure

global with sharing class PricingStructure

This class models a pricing structure with quantity breaks. This class is marked as serializable and deserializable to work around an issue in enforcing JsonAccess for Visualforce remoting requests. Warning: Do not rely on any behavior available via serializing as or deserializing from JSON that is not part of the global API because it might be subject to change.

Properties

Name Type Description
Id Id Read only. The ID of the Pricing Structure.
PricingStructureName String The name of the Pricing Structure.
PricingType ffbc.PricingStructuresService.Type Read only. The type of pricing to be used in billing.
UsageBillingType ffbc.PricingStructuresService.UsageBillingType The usage billing type to be used.
Description String The description of the Pricing Structure.
QuantityBreaks List<ffbc.PricingStructuresService.QuantityBreak> Read only. The Quantity Breaks related to the Pricing Structure, ordered by ascending quantity.

ffbc.PricingStructuresService.QuantityBreak

global with sharing class QuantityBreak

This class models a quantity break. This class is marked as serializable and deserializable to work around an issue in enforcing JsonAccess for Visualforce remoting requests. Warning: Do not rely on any behavior available via serializing as or deserializing from JSON that is not part of the global API because it might be subject to change.

Properties

Name Type Description
Quantity Decimal Read only. The quantity of the quantity break.
UnitPrice Decimal Read only. The unit price of the quantity break.
© Copyright 2009–2023 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.