Class PlatformChargebackLogic


  • public class PlatformChargebackLogic
    extends Object
    PlatformChargebackLogic
    • Constructor Detail

      • PlatformChargebackLogic

        public PlatformChargebackLogic()
    • Method Detail

      • getBehavior

        public PlatformChargebackLogic.BehaviorEnum getBehavior()
        The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**.
        Returns:
        behavior
      • getCostAllocationAccount

        public String getCostAllocationAccount()
        The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account.
        Returns:
        costAllocationAccount
      • setCostAllocationAccount

        public void setCostAllocationAccount​(String costAllocationAccount)
      • getTargetAccount

        public String getTargetAccount()
        The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**.
        Returns:
        targetAccount
      • setTargetAccount

        public void setTargetAccount​(String targetAccount)
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to PlatformChargebackLogic
      • fromJson

        public static PlatformChargebackLogic fromJson​(String jsonString)
                                                throws IOException
        Create an instance of PlatformChargebackLogic given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of PlatformChargebackLogic
        Throws:
        IOException - if the JSON string is invalid with respect to PlatformChargebackLogic
      • toJson

        public String toJson()
        Convert an instance of PlatformChargebackLogic to an JSON string
        Returns:
        JSON string