apiV2CustomerSettingsUpdateWithHttpInfo method
Used on the /settings/ page to update a customer's settings. (Basically notification related ones)
Note: This method returns the HTTP Response.
Parameters:
- CustomerSettings customerSettings:
Implementation
Future<Response> apiV2CustomerSettingsUpdateWithHttpInfo({ CustomerSettings? customerSettings, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v2/customer/settings/';
// ignore: prefer_final_locals
Object? postBody = customerSettings;
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,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}