Class SweepSchedule


  • public class SweepSchedule
    extends Object
    SweepSchedule
    • Constructor Detail

      • SweepSchedule

        public SweepSchedule()
    • Method Detail

      • getType

        public SweepSchedule.TypeEnum getType()
        The schedule type. Possible values: * **cron**: push out funds based on a cron expression. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: pull in funds instantly if the balance is less than or equal to the `triggerAmount`. You can only use this for sweeps of `type` **pull** and when the source is a `merchantAccount` or `transferInstrument`.
        Returns:
        type
      • 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 SweepSchedule
      • fromJson

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

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