postCommercePlansEntriesWithHttpInfo method

Future<Response> postCommercePlansEntriesWithHttpInfo()

Add a subscription plan

Creates a plan from the body and answers it at 201. The slug is required and globally unique — a duplicate is 409 — and the row is marked authoritative on creation, so the corrective seed will leave it alone. Price, annual price and the contact-sales flag are stored exactly as sent, never coerced, so the difference between a free plan and a quote-only plan survives. PLATFORM admin only.

Note: This method returns the HTTP Response.

Implementation

Future<Response> postCommercePlansEntriesWithHttpInfo() async {
  // ignore: prefer_const_declarations
  final path = r'/v1/commerce/plans/entries';

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];


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