financeOrgsRevenueNetOverTimeRetrieveWithHttpInfo method

Future<Response> financeOrgsRevenueNetOverTimeRetrieveWithHttpInfo(
  1. String org, {
  2. String? endDate,
  3. String? startDate,
})

Returns Net Revenue over time for org and slug

Note: This method returns the HTTP Response.

Parameters:

  • String org (required):

  • String endDate: End of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.

  • String startDate: Start of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.

Implementation

Future<Response> financeOrgsRevenueNetOverTimeRetrieveWithHttpInfo(String org, { String? endDate, String? startDate, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/finance/orgs/{org}/revenue/net-over-time'
    .replaceAll('{org}', org);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  if (endDate != null) {
    queryParams.addAll(_queryParams('', 'end_date', endDate));
  }
  if (startDate != null) {
    queryParams.addAll(_queryParams('', 'start_date', startDate));
  }

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}