def update_discount(location_id, discount_id, body, opts = {})
      data, _status_code, _headers = update_discount_with_http_info(location_id, discount_id, body, opts)
      return data
    end
def update_discount(location_id, discount_id, body, opts = {})
      data, _status_code, _headers = update_discount_with_http_info(location_id, discount_id, body, opts)
      return data
    end
UpdateDiscount
 Modifies the details of an existing discount.
 @param location_id The ID of the category&#39;s associated location.
 @param discount_id The ID of the discount to edit.
 @param body An object containing the fields to POST for the request.  See the corresponding object definition for field details.
 @param [Hash] opts the optional parameters
 @return [V1Discount]