Creates a new discount rule.
The createDiscountRule()
function returns a Promise that resolves to the new discount rule when it's created.
This function requires elevated permissions and runs only on the backend and on dashboard pages.
Discount rule info.