Class Discount

java.lang.Object
com.onlinepayments.domain.Discount

public class Discount extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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
    void
    setAmount(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
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Discount

      public Discount()
  • Method Details

    • getAmount

      public Long 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

      public void setAmount(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
    • withAmount

      public Discount withAmount(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