Class Repayment


  • public class Repayment
    extends Object
    Repayment
    • Constructor Detail

      • Repayment

        public Repayment()
    • Method Detail

      • getBasisPoints

        public Integer getBasisPoints()
        The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp).
        Returns:
        basisPoints
      • setBasisPoints

        public void setBasisPoints​(Integer basisPoints)
      • getTerm

        public RepaymentTerm getTerm()
        Get term
        Returns:
        term
      • getThreshold

        public ThresholdRepayment getThreshold()
        Get threshold
        Returns:
        threshold
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Throws:
        IOException
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj,
                                              boolean strictValidation)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        strictValidation - reject (new) fields missing from the specifications
        Throws:
        IOException - if the JSON Object is invalid with respect to Repayment
      • fromJson

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

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