Class Split


  • public class Split
    extends Object
    Split
    • Constructor Detail

      • Split

        public Split()
    • Method Detail

      • getAccount

        public String getAccount()
        Unique identifier of the account where the split amount should be sent. This is required if `type` is **MarketPlace** or **BalanceAccount**.
        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()
        Your reference for the split, which you can use to link the split to other operations such as captures and refunds. This is required if `type` is **MarketPlace** or **BalanceAccount**. For the other types, we also recommend sending a reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. If the reference is not provided, the split is reported as part of the aggregated [TransferBalance record type](https://docs.adyen.com/reporting/marketpay-payments-accounting-report) in Adyen for Platforms.
        Returns:
        reference
      • setReference

        public void setReference​(String reference)
      • getType

        public Split.TypeEnum getType()
        The type of split. Possible values: **Default**, **PaymentFee**, **VAT**, **Commission**, **MarketPlace**, **BalanceAccount**, **Remainder**, **Surcharge**, **Tip**.
        Returns:
        type
      • equals

        public boolean equals​(Object o)
        Return true if this Split object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static Split fromJson​(String jsonString)
                              throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of Split given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of Split
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to Split
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of Split to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException