Class AmountAllocation.AmountAllocationBuilder

  • Enclosing class:
    AmountAllocation

    public static class AmountAllocation.AmountAllocationBuilder
    extends java.lang.Object
    • Method Detail

      • amount

        public AmountAllocation.AmountAllocationBuilder amount​(java.lang.Long amount)
        The split amount, in minor currency units. The sum of all split amounts must be equal to the payment amount. The split amount will be credited to your sub-entity's currency account.
        Returns:
        this.
      • commission

        public AmountAllocation.AmountAllocationBuilder commission​(Commission commission)
        The commission you'd like to collect from the split, calculated using the formula: commission = (amount * commission.percentage) + commission.amount. The commission cannot exceed the split amount. Commission will be credited to your currency account.
        Returns:
        this.
      • toString

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