getPlanResolveByIdWithHttpInfo method

Future<Response> getPlanResolveByIdWithHttpInfo(
  1. String id
)

Resolves one plan to everything a consumer of the catalog needs at once: its canonical entitlement block, the flat license-feature list a signed license carries, its billing reference, and the catalog it came from.

Resolves one plan to everything a consumer of the catalog needs at once: its canonical entitlement block, the flat license-feature list a signed license carries, its billing reference, and the catalog it came from. The id may be the plan's id or its slug, and it is resolved against the caller's catalog, so a reseller's override wins over the canonical record. An id no catalog holds answers 404.

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> getPlanResolveByIdWithHttpInfo(String id,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/plan/resolve/{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,
  );
}