Billing Central Apex API Developer Reference

ffbc.Response

global virtual with sharing class Response

This class provides error handling functionality for Billing Central services. Responses from Billing Central services extend this class to expose extra service-specific information. You aren't expected to produce extensions of this class. 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.

Methods

getErrors

global Map<Id, List<String>> getErrors()

This method returns errors that are generated in the response.

Return Value

A Map containing a list of the errors generated for each record ID.

getWarnings

global virtual Map<Id, List<String>> getWarnings()

This method returns warnings that are generated in the response. This method is virtual to support upgrades from older versions of Billing Central. You aren't expected to override this method.

Return Value

A list containing the warnings

getStringErrors

global List<String> getStringErrors()

This method returns errors that are generated in the response.

Return Value

A list containing the errors generated for each record ID.

getStringWarnings

global virtual List<String> getStringWarnings()

This method returns warnings that are generated in the response. This method is virtual to support upgrades from older versions of Billing Central. You aren't expected to override this method.

Return Value

A list containing the warnings generated for each record ID.

hasErrors

global Boolean hasErrors()

Checks whether any errors were generated in the response.

Return Value

True or false depending on whether any errors were generated.

hasErrors

global Boolean hasErrors(Id objectId)

This method checks whether the response for a specific record generated any errors.

Input Parameters

Name Type Description
objectId Id ID of the record that needs checking for errors.

Return Value

True or false depending on whether any errors were generated.

hasWarnings

global virtual Boolean hasWarnings()

Checks whether any warnings were generated in the response. This method is virtual to support upgrades from older versions of Billing Central. You aren't expected to override this method.

Return Value

True or false depending on whether any warnings were generated.

hasWarnings

global virtual Boolean hasWarnings(Id objectId)

This method checks whether the response for a specific record generated any warnings. This method is virtual to support upgrades from older versions of Billing Central. You aren't expected to override this method.

Input Parameters

Name Type Description
objectId Id The ID of the record that needs checking for warnings.

Return Value

True or false depending on whether any warnings were generated.

© Copyright 2009–2023 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.