ffbc.ProductsService
global with sharing class ProductsService
This class provides service functionality for the Product standard object.
Methods
getSummariesForPriceBook
global static List<ffbc.ProductsService.ProductSummary> getSummariesForPriceBook(ffbc.ProductsService.ProductSummaryRequest request)
Queries all active products for their ID, name and pricing information for the price book and currency provided.
Input Parameters
Return Value
The list of product summaries.
load
global static List<ffbc.ProductsService.Product> load(Set<Id> productIds)
Queries products with the IDs provided, including fields that are related to Billing Central.
Input Parameters
| productIds |
Set<Id> |
The products to query. |
Return Value
The list of products.
ffbc.ProductsService.Product
global class Product
This class models a product, including fields that are related to creating and editing Billing Central object types.
Properties
| Id |
Id |
Read only. The Salesforce Id of the Product SObject being represented.
|
| Description |
String |
Read only. The Description of the Product SObject being represented.
|
| Name |
String |
Read only. The Name of the Product SObject being represented.
|
| BillingType |
ffbc.BillingService.BillingType |
Read only. The Billing Type of the Product SObject being represented.
|
ffbc.ProductsService.ProductSummary
global class ProductSummary
This class models a product, including the ID, name, unit price, and pricing structure for a specific price book and currency.
Properties
| Id |
Id |
Read only. The Salesforce Id of the Product being summarised
|
| UnitPrice |
Decimal |
Read only. The Unit Price of the Product being summarised
|
| Name |
String |
Read only. The Name of the Product being summarised
|
| PricingStructure |
ffbc.ProductsService.PricingStructureSummary |
Read only. A summary of the pricing structure associated with the product by a price book structure entry.
|
ffbc.ProductsService.PricingStructureSummary
global class PricingStructureSummary
This class is a wrapper for summarised pricing structure information.
Properties
| Id |
Id |
Read only. The ID of the Pricing Structure. |
| MinimumUnitPrice |
Decimal |
Read only. The minimum unit price of the Pricing Structure's Quantity Breaks. |
| MaximumUnitPrice |
Decimal |
Read only. The maximum unit price of the Pricing Structure's Quantity Breaks. |
| PricingType |
ffbc.PricingStructuresService.Type |
Read only. The type of pricing to be used in billing. |
ffbc.ProductsService.ProductSummaryRequest
global class ProductSummaryRequest
This class provides the parameters that determine the product summary information to be retrieved.
Properties
| CurrencyIsoCode |
String |
The ISO code of the currency for which the product summary information will be returned. In single currency Salesforce orgs this is ignored.
|
| PriceBookId |
Id |
The ID of the price book from which to retrieve the unit price and pricing structure.
|
| WithPricingStructures |
Boolean |
The flag that determines whether pricing structure information is retrieved for each product. If false, the pricing structure summaries on the products are null.
|
Methods
|