Class Commission


  • public final class Commission
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Commission()  
      Commission​(java.lang.Long amount, java.lang.Double percentage)
      Creates a new Commission instance.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Commission.CommissionBuilder builder()  
      boolean equals​(java.lang.Object o)  
      java.lang.Long getAmount()
      An optional commission to collect, as a fixed amount in minor currency units.
      java.lang.Double getPercentage()
      An optional commission to collect, as a percentage value with up to eight decimal places.
      int hashCode()  
      void setAmount​(java.lang.Long amount)
      An optional commission to collect, as a fixed amount in minor currency units.
      void setPercentage​(java.lang.Double percentage)
      An optional commission to collect, as a percentage value with up to eight decimal places.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Commission

        public Commission()
      • Commission

        public Commission​(java.lang.Long amount,
                          java.lang.Double percentage)
        Creates a new Commission instance.
        Parameters:
        amount - An optional commission to collect, as a fixed amount in minor currency units.
        percentage - An optional commission to collect, as a percentage value with up to eight decimal places.
    • Method Detail

      • getAmount

        public java.lang.Long getAmount()
        An optional commission to collect, as a fixed amount in minor currency units.
      • getPercentage

        public java.lang.Double getPercentage()
        An optional commission to collect, as a percentage value with up to eight decimal places.
      • setAmount

        public void setAmount​(java.lang.Long amount)
        An optional commission to collect, as a fixed amount in minor currency units.
      • setPercentage

        public void setPercentage​(java.lang.Double percentage)
        An optional commission to collect, as a percentage value with up to eight decimal places.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object