pse.RateCardMatcherPluginglobal with sharing class RateCardMatcherPlugin A class that contains plugins for rate card matching. pse.RateCardMatcherPlugin.IFinalRateCardChoicePluginglobal interface IFinalRateCardChoicePlugin Provides an interface that can be used to create plugins to be executed during the matching of rate cards. The plugins customize how the best matching rate cards are chosen. To set up a plugin, create a fferpcore__Plugin__mdt record with a fferpcore__ExtensionPoint__c of RateCardMatcherPlugin.IFinalRateCardChoicePlugin, and a fferpcore__ClassName__c that matches an Apex class that implements that interface. Sample Code
MethodschooseRateCardsList<FinalRateCardChoiceResponse> chooseRateCards(List<pse.RateCardMatcherPlugin.FinalRateCardChoiceRequest> requests) A method that chooses the best rate card for a record from a set of rate cards. Input Parameters
Return ValueA list of RateCardMatcherPlugin.FinalRateCardChoiceResponse that parallels the list of requests. pse.RateCardMatcherPlugin.FinalRateCardChoiceRequestglobal with sharing class FinalRateCardChoiceRequest The request structure for choosing a rate card to match to a record. MethodsgetRecordglobal SObject getRecord() Returns the record that rate cards are being matched to. Return ValueThe record to match rate cards to. getRateCardsToChooseFromglobal Set<pse__Rate_Card__c> getRateCardsToChooseFrom() Returns the set of rate cards to choose from to match to the record. Return ValueThe set of rate cards to choose from to match to the record. pse.RateCardMatcherPlugin.FinalRateCardChoiceResponseglobal with sharing class FinalRateCardChoiceResponse The response structure for choosing a rate card to match to a record. Methods
FinalRateCardChoiceResponseglobal FinalRateCardChoiceResponse() setChosenRateCardglobal void setChosenRateCard(pse__Rate_Card__c chosenRateCard) Sets the rate card chosen from the set of rate cards provided in the request. Input Parameters
|