Billing Central Apex API Developer Reference

ffbc.DiscountsService

global with sharing class DiscountsService

This class provides service functionality for discounts.

Methods

load

global static List<ffbc.DiscountsService.Discount> load()

Retrieves all discounts stored on the database.

Return Value

The wrappers for the discounts.

ffbc.DiscountsService.Discount

global with sharing class Discount

This models a discount. 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 Discount SObject being represented.
Name String Read only. The Name of the Discount SObject being represented.
CurrencyIsoCode String Read only. The Currency Iso Code of the Discount.
Description String Read only. The Description of the Discount.
Percentage Double Read only. The Percentage of the Discount. The Percentage or the Amount is populated, not both.
Amount Decimal Read only. The Amount of Discount. The Percentage or the Amount is populated, not both.
ViewUrl String The URL of the view page for the SObject being represented.
© Copyright 2009–2023 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.