getBooksPositionWithHttpInfo method

Future<Response> getBooksPositionWithHttpInfo({
  1. String? sandbox,
  2. String? to,
})

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:

  • String sandbox: Sandbox reads the org's SANDBOX ledger when it is exactly "true".

  • String to: To is the RFC3339 instant the statement is struck as of. Empty means all time.

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,
  );
}