getBooksPositionWithHttpInfo method
Returns the org's Balance Sheet as of to (empty = all time), with the Assets == Liabilities + Equity equation proof.
Returns the org's Balance Sheet as of to (empty = all time), with the Assets == Liabilities + Equity equation proof.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> getBooksPositionWithHttpInfo({ String? sandbox, String? to, }) async {
// ignore: prefer_const_declarations
final path = r'/v1/books/position';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (sandbox != null) {
queryParams.addAll(_queryParams('', 'sandbox', sandbox));
}
if (to != null) {
queryParams.addAll(_queryParams('', 'to', to));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}