Class AmountAllocations.AmountAllocationsBuilder
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.flow.paymentsessionscomplete.requests.AmountAllocations.AmountAllocationsBuilder
-
- Enclosing class:
- AmountAllocations
public static class AmountAllocations.AmountAllocationsBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AmountAllocations.AmountAllocationsBuilderamount(java.lang.Long amount)The split amount, in minor currency units.AmountAllocationsbuild()AmountAllocations.AmountAllocationsBuildercommission(Commission commission)The commission you'd like to collect from the split, calculated using the formula: commission = (amount * commission.percentage) + commission.amount.AmountAllocations.AmountAllocationsBuilderid(java.lang.String id)The sub-entity's ID.AmountAllocations.AmountAllocationsBuilderreference(java.lang.String reference)A reference you can use to identify the split.java.lang.StringtoString()
-
-
-
Method Detail
-
id
public AmountAllocations.AmountAllocationsBuilder id(java.lang.String id)
The sub-entity's ID.- Returns:
this.
-
amount
public AmountAllocations.AmountAllocationsBuilder 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.
-
reference
public AmountAllocations.AmountAllocationsBuilder reference(java.lang.String reference)
A reference you can use to identify the split. For example, an order number.- Returns:
this.
-
commission
public AmountAllocations.AmountAllocationsBuilder 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.
-
build
public AmountAllocations build()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-