How can we apply discount with amount instead of applying as percentage? In android when adding Discount to line time by setting amount it throws ClientException but we set percent to discount object it works fine.

Below is the case of failure :

Discount discount = new Discount(); discount.setName("Test discount"); discount.setAmount(500);

connector.addLineItemDiscount2(orderID, lineItemID, discount);

Below is the case of Success :

Discount discount = new Discount(); discount.setName("Test discount"); discount.setPercentage(50)

connector.addLineItemDiscount2(orderID, lineItemID, discount);

In success case, the percentage is Long value but there may be some cases when calculated percentage is a decimal value which is getting ignored because its a long value.

Below is the reference of Discount class in clover android sdk : http://clover.github.io/clover-androi...