giftCardsGetCategoriesWithHttpInfo method

Future<Response> giftCardsGetCategoriesWithHttpInfo({
  1. Future<void>? abortTrigger,
})

List gift card categories

Lists the gift card categories with their display names. Returns the complete list { items: [{ category, name }] }, without paging. Use a category value to filter search and the catalog. The route takes no query parameters.

Note: This method returns the HTTP Response.

Implementation

Future<Response> giftCardsGetCategoriesWithHttpInfo({ Future<void>? abortTrigger, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/b2b/giftcards/categories';

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