Class Split


  • public class Split
    extends Object
    Split
    • Constructor Detail

      • Split

        public Split()
    • Method Detail

      • getAccount

        public String getAccount()
        The account to which this split applies. >Required if the type is `MarketPlace`.
        Returns:
        account
      • setAccount

        public void setAccount​(String account)
      • getAmount

        public SplitAmount getAmount()
        Get amount
        Returns:
        amount
      • setAmount

        public void setAmount​(SplitAmount amount)
      • description

        public Split description​(String description)
      • getDescription

        public String getDescription()
        A description of this split.
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
      • reference

        public Split reference​(String reference)
      • getReference

        public String getReference()
        The reference of this split. Used to link other operations (e.g. captures and refunds) to this split. >Required if the type is `MarketPlace`.
        Returns:
        reference
      • setReference

        public void setReference​(String reference)
      • getType

        public Split.TypeEnum getType()
        The type of this split. >Permitted values: `Default`, `PaymentFee`, `VAT`, `Commission`, `MarketPlace`, `BalanceAccount`.
        Returns:
        type
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object