ffbc.ContractsAmendmentServiceglobal with sharing class ContractsAmendmentService This class provides services for automated amendments to active contracts. Methods
changeContractPricesByPercentageglobal static ffbc.ContractsAmendmentService.ChangeContractPricesByPercentageResponse changeContractPricesByPercentage(ffbc.ContractsAmendmentService.ChangeContractPricesByPercentageRequest request) Create change requests that will increase the unit prices on the given contracts by a fixed percentage value, taking effect on the date given. This service will only create the change requests, they must be applied separately using ContractsService.applyChangeRequests. Exceptions Thrown
Return ValueResponse containing the IDs of the change requests that have been created. changeContractLinePricesglobal static ffbc.ContractsAmendmentService.ChangeContractLinePricesResponse changeContractLinePrices(List<ffbc.ContractsAmendmentService.ChangeContractLinePricesRequest> requests) Create change requests that will change the unit prices on the given contracts by given amounts for each line, taking effect on the date given. This service will only create the change requests, they must be applied separately using ContractsService.applyChangeRequests. Exceptions Thrown
Return ValueResponse containing the IDs of the change requests that have been created. ffbc.ContractsAmendmentService.ChangeContractPricesByPercentageRequestglobal with sharing class ChangeContractPricesByPercentageRequest A request to amend contract prices by a certain percentage, used with changeContractPricesByPercentage. Properties
Methods
ChangeContractPricesByPercentageRequestglobal ChangeContractPricesByPercentageRequest() Creates a request with an empty set of contract IDs, a percentage change of 0, and an effective from date of tomorrow. ChangeContractPricesByPercentageRequestglobal ChangeContractPricesByPercentageRequest(Set<Id> contractIds, Decimal percentage, Date effectiveFromDate) Creates a request with the given contract IDs, percentage change, and effective from date. ffbc.ContractsAmendmentService.ChangeContractPricesResponseglobal virtual with sharing class ChangeContractPricesResponse extends Response The result of amending contract prices using changeContractPricesByPercentage or changeContractLinePrices. This class contains the data that is common to both the line and percentage amendment variants. The two variants then extend this class to provide their own responses. This class currently will never report any errors. Errors in creating a change request for any contract will produce an exception. This response may contain warnings. This class extends ffbc.Response Properties
Methods
ChangeContractPricesResponseglobal ChangeContractPricesResponse() Creates a response with no change request IDs. ChangeContractPricesResponseglobal ChangeContractPricesResponse(Map<Id, Id> changeRequestIdsByActiveContractId) Creates a response with the given change request IDs keyed by active contract ID. ffbc.ContractsAmendmentService.ChangeContractPricesByPercentageResponseglobal with sharing class ChangeContractPricesByPercentageResponse extends ChangeContractPricesResponse The result of amending contract prices using changeContractPricesByPercentage. This class currently will never report any errors. Errors in creating a change request for any contract will produce an exception. This response may contain warnings. This class extends ffbc.ContractsAmendmentService.ChangeContractPricesResponse Methods
ChangeContractPricesByPercentageResponseglobal ChangeContractPricesByPercentageResponse() Creates a response with no change request IDs. ChangeContractPricesByPercentageResponseglobal ChangeContractPricesByPercentageResponse(Map<Id, Id> changeRequestIdsByActiveContractId) Creates a response with the given change request IDs keyed by active contract ID. ffbc.ContractsAmendmentService.ChangeContractLinePricesRequestglobal with sharing class ChangeContractLinePricesRequest A request to amend prices for a contract by given amounts for each line, used with changeContractLinePrices. Properties
Methods
ChangeContractLinePricesRequestglobal ChangeContractLinePricesRequest(Id contractId, Map<Id, ffbc.ContractsAmendmentService.ContractLinePriceInfo> linePrices) Creates a request with the given contract ID and line amendments. ffbc.ContractsAmendmentService.ContractLinePriceInfoglobal with sharing class ContractLinePriceInfo Contains new price information for a contract line item. Includes the new unit price and effective from date. Used with ChangeContractLinePricesRequest. Properties
Methods
ContractLinePriceInfoglobal ContractLinePriceInfo(Decimal unitPrice, Date effectiveFromDate) Creates an object with the given line unit price and effective from date ffbc.ContractsAmendmentService.ChangeContractLinePricesResponseglobal with sharing class ChangeContractLinePricesResponse extends ChangeContractPricesResponse The result of amending contract prices using changeContractLinePrices. This class currently will never report any errors. Errors in creating a change request for any contract will produce an exception. This response may contain warnings. This class extends ffbc.ContractsAmendmentService.ChangeContractPricesResponse Methods
ChangeContractLinePricesResponseglobal ChangeContractLinePricesResponse() Creates a response with no change request IDs. ChangeContractLinePricesResponseglobal ChangeContractLinePricesResponse(Map<Id, Id> changeRequestIdsByActiveContractId) Creates a response with the given change request IDs keyed by active contract ID. |