postCaptableClassesWithHttpInfo method

Future<Response> postCaptableClassesWithHttpInfo(
  1. CaptableShareClassIn captableShareClassIn
)

Defines a new class of shares.

Defines a new class of shares. Every field but convertsToShareClassId is required — a class is the instrument every later issuance prices against, so a partially-specified one would silently mis-value every share issued into it. seniority orders liquidation preference with LOWER first.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> postCaptableClassesWithHttpInfo(CaptableShareClassIn captableShareClassIn,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/captable/classes';

  // ignore: prefer_final_locals
  Object? postBody = captableShareClassIn;

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

  const contentTypes = <String>['application/json'];


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