Discounts/Methods

Discounts/Methods

Methods

(static) discounts/deleteRate(discountId) → {String}

Source:
Parameters:
Name Type Description
discountId String

discount id to delete

Returns:

returns update/insert result

Type
String

(static) discounts/setRate(cartId, discountRate, discounts) → {Number}

Update the cart discounts without hooks

Source:
Parameters:
Name Type Description
cartId String

cartId

discountRate Number

discountRate

discounts Object

discounts

Returns:

returns update result

Type
Number