getTreasuryWithHttpInfo method

Future<Response> getTreasuryWithHttpInfo()

Returns the reserve fund's health and the current revenue-share policy for any validated caller.

Returns the reserve fund's health and the current revenue-share policy for any validated caller. It is a TRANSPARENCY view — a partner or author can see that the pool backing their payouts is solvent — and NOT per-org money, which is the customer's own commerce balance at /v1/billing/balance. The policy is read-only here; only a SuperAdmin sets it.

Note: This method returns the HTTP Response.

Implementation

Future<Response> getTreasuryWithHttpInfo() async {
  // ignore: prefer_const_declarations
  final path = r'/v1/treasury';

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];


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