Package com.onlinepayments.domain
Class Discount
java.lang.Object
com.onlinepayments.domain.Discount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAmount in the smallest currency unit, i.e.: EUR is a 2-decimals currency, the value 1234 will result in EUR 12.34 KWD is a 3-decimals currency, the value 1234 will result in KWD 1.234 JPY is a zero-decimal currency, the value 1234 will result in JPY 1234voidAmount in the smallest currency unit, i.e.: EUR is a 2-decimals currency, the value 1234 will result in EUR 12.34 KWD is a 3-decimals currency, the value 1234 will result in KWD 1.234 JPY is a zero-decimal currency, the value 1234 will result in JPY 1234withAmount(Long value) Amount in the smallest currency unit, i.e.: EUR is a 2-decimals currency, the value 1234 will result in EUR 12.34 KWD is a 3-decimals currency, the value 1234 will result in KWD 1.234 JPY is a zero-decimal currency, the value 1234 will result in JPY 1234
-
Constructor Details
-
Discount
public Discount()
-
-
Method Details
-
getAmount
Amount in the smallest currency unit, i.e.:- EUR is a 2-decimals currency, the value 1234 will result in EUR 12.34
- KWD is a 3-decimals currency, the value 1234 will result in KWD 1.234
- JPY is a zero-decimal currency, the value 1234 will result in JPY 1234
-
setAmount
Amount in the smallest currency unit, i.e.:- EUR is a 2-decimals currency, the value 1234 will result in EUR 12.34
- KWD is a 3-decimals currency, the value 1234 will result in KWD 1.234
- JPY is a zero-decimal currency, the value 1234 will result in JPY 1234
-
withAmount
Amount in the smallest currency unit, i.e.:- EUR is a 2-decimals currency, the value 1234 will result in EUR 12.34
- KWD is a 3-decimals currency, the value 1234 will result in KWD 1.234
- JPY is a zero-decimal currency, the value 1234 will result in JPY 1234
-