/** * Deletes the draft version of product changes for each product code specified in the request. * * @param PublishingScope $publishScope Describes the scope of the product publishing update, which can include individual product codes or all pending changes. */ public static function discardDraftsClient($dataViewMode, $publishScope) { $url = PublishingScopeUrl::discardDraftsUrl(); $mozuClient = new MozuClient(); $mozuClient->withResourceUrl($url)->withBody($publishScope)->withHeader(Headers::X_VOL_DATAVIEW_MODE, $dataViewMode); return $mozuClient; }