getPlanEntitlementsByIdWithHttpInfo method

Future<Response> getPlanEntitlementsByIdWithHttpInfo(
  1. String id
)

Returns what one plan GRANTS and not what it costs: the canonical namespaced entitlement block and the flat license-feature list derived from it.

Returns what one plan GRANTS and not what it costs: the canonical namespaced entitlement block and the flat license-feature list derived from it. It is the entitlement half of ResolvePlan, over the same catalog and the same 404 for an id no catalog holds — the read a licensing or quota gate makes.

Note: This method returns the HTTP Response.

Parameters:

  • String id (required): ID is the plan's catalog id or slug — "pro", "team", "world-enterprise", "rpc-growth". Both are matched, so a slug resolves the plan it names.

Implementation

Future<Response> getPlanEntitlementsByIdWithHttpInfo(String id,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/plan/entitlements/{id}'
    .replaceAll('{id}', id);

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