ServiceResult Class

Return result for method calls made for certain Accounting Seed API methods. Encapsulates success/failure of method call and errors associated with failed method call. The ServiceResult can include returned data for certain method calls.

ServiceResult Properties

The following are properties of the ServiceResult class.

isSuccess

Status of success or failure of method call.

Type: Boolean

data

Data returned from method call. This can either be a primitive value or an arbitrary object. In the case of an arbitrary object the intent is for the caller to deserialize the returned string value into the appropriate object type.

Type: String

errors

List of errors associated with method call.

Type: List<Error>

results

List of nested ServiceResult records. Used in method calls where multiple records are passed as parameter to method. Provides mechanism to status individual records in this case independently.

Type: List<ServiceResult>