Class Schedule


  • public class Schedule
    extends Object
    Schedule
    • Constructor Detail

      • Schedule

        public Schedule()
    • Method Detail

      • period

        public Schedule period​(Integer period)
        Integer used with the unit e.g. 1 (every 1 week), 2 (every 2 months)
        Parameters:
        period - Integer
        Returns:
        Schedule
      • getPeriod

        public Integer getPeriod()
        Integer used with the unit e.g. 1 (every 1 week), 2 (every 2 months)
        Returns:
        period
      • setPeriod

        public void setPeriod​(Integer period)
        Integer used with the unit e.g. 1 (every 1 week), 2 (every 2 months)
        Parameters:
        period - Integer
      • unit

        public Schedule unit​(Schedule.UnitEnum unit)
        One of the following - WEEKLY or MONTHLY
        Parameters:
        unit - UnitEnum
        Returns:
        Schedule
      • getUnit

        public Schedule.UnitEnum getUnit()
        One of the following - WEEKLY or MONTHLY
        Returns:
        unit
      • setUnit

        public void setUnit​(Schedule.UnitEnum unit)
        One of the following - WEEKLY or MONTHLY
        Parameters:
        unit - UnitEnum
      • dueDate

        public Schedule dueDate​(Integer dueDate)
        Integer used with due date type e.g 20 (of following month), 31 (of current month)
        Parameters:
        dueDate - Integer
        Returns:
        Schedule
      • getDueDate

        public Integer getDueDate()
        Integer used with due date type e.g 20 (of following month), 31 (of current month)
        Returns:
        dueDate
      • setDueDate

        public void setDueDate​(Integer dueDate)
        Integer used with due date type e.g 20 (of following month), 31 (of current month)
        Parameters:
        dueDate - Integer
      • dueDateType

        public Schedule dueDateType​(Schedule.DueDateTypeEnum dueDateType)
        the payment terms
        Parameters:
        dueDateType - DueDateTypeEnum
        Returns:
        Schedule
      • setDueDateType

        public void setDueDateType​(Schedule.DueDateTypeEnum dueDateType)
        the payment terms
        Parameters:
        dueDateType - DueDateTypeEnum
      • startDate

        public Schedule startDate​(String startDate)
        Date the first invoice of the current version of the repeating schedule was generated (changes when repeating invoice is edited)
        Parameters:
        startDate - String
        Returns:
        Schedule
      • getStartDate

        public String getStartDate()
        Date the first invoice of the current version of the repeating schedule was generated (changes when repeating invoice is edited)
        Returns:
        startDate
      • getStartDateAsDate

        public org.threeten.bp.LocalDate getStartDateAsDate()
        Date the first invoice of the current version of the repeating schedule was generated (changes when repeating invoice is edited)
        Returns:
        LocalDate
      • setStartDate

        public void setStartDate​(String startDate)
        Date the first invoice of the current version of the repeating schedule was generated (changes when repeating invoice is edited)
        Parameters:
        startDate - String
      • setStartDate

        public void setStartDate​(org.threeten.bp.LocalDate startDate)
        Date the first invoice of the current version of the repeating schedule was generated (changes when repeating invoice is edited)
        Parameters:
        startDate - LocalDateTime
      • nextScheduledDate

        public Schedule nextScheduledDate​(String nextScheduledDate)
        The calendar date of the next invoice in the schedule to be generated
        Parameters:
        nextScheduledDate - String
        Returns:
        Schedule
      • getNextScheduledDate

        public String getNextScheduledDate()
        The calendar date of the next invoice in the schedule to be generated
        Returns:
        nextScheduledDate
      • getNextScheduledDateAsDate

        public org.threeten.bp.LocalDate getNextScheduledDateAsDate()
        The calendar date of the next invoice in the schedule to be generated
        Returns:
        LocalDate
      • setNextScheduledDate

        public void setNextScheduledDate​(String nextScheduledDate)
        The calendar date of the next invoice in the schedule to be generated
        Parameters:
        nextScheduledDate - String
      • setNextScheduledDate

        public void setNextScheduledDate​(org.threeten.bp.LocalDate nextScheduledDate)
        The calendar date of the next invoice in the schedule to be generated
        Parameters:
        nextScheduledDate - LocalDateTime
      • endDate

        public Schedule endDate​(String endDate)
        Invoice end date – only returned if the template has an end date set
        Parameters:
        endDate - String
        Returns:
        Schedule
      • getEndDate

        public String getEndDate()
        Invoice end date – only returned if the template has an end date set
        Returns:
        endDate
      • getEndDateAsDate

        public org.threeten.bp.LocalDate getEndDateAsDate()
        Invoice end date – only returned if the template has an end date set
        Returns:
        LocalDate
      • setEndDate

        public void setEndDate​(String endDate)
        Invoice end date – only returned if the template has an end date set
        Parameters:
        endDate - String
      • setEndDate

        public void setEndDate​(org.threeten.bp.LocalDate endDate)
        Invoice end date – only returned if the template has an end date set
        Parameters:
        endDate - LocalDateTime
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object