apiV2CustomerSettingsPartialUpdateWithHttpInfo method

Future<Response> apiV2CustomerSettingsPartialUpdateWithHttpInfo({
  1. PatchedCustomerSettings? patchedCustomerSettings,
})

Used on the /settings/ page to update a customer's settings. (Basically notification related ones)

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> apiV2CustomerSettingsPartialUpdateWithHttpInfo({ PatchedCustomerSettings? patchedCustomerSettings, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v2/customer/settings/';

  // ignore: prefer_final_locals
  Object? postBody = patchedCustomerSettings;

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

  const contentTypes = <String>['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];


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