postCommerceRatesEntriesWithHttpInfo method

Future<Response> postCommerceRatesEntriesWithHttpInfo()

Add a rate

Creates one rate. Product AND meter are both required, because together they are the identity: a rate keyed on the metered thing alone would let one product's price overwrite another's under the same name. A slug that already exists is refused rather than silently replaced. SuperAdmin only.

Note: This method returns the HTTP Response.

Implementation

Future<Response> postCommerceRatesEntriesWithHttpInfo() async {
  // ignore: prefer_const_declarations
  final path = r'/v1/commerce/rates/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,
  );
}