Class Schedule

java.lang.Object
com.xero.models.accounting.Schedule

public class Schedule
extends Object
Schedule
  • Constructor Details

    • Schedule

      public Schedule()
  • Method Details

    • period

      public Schedule period​(Integer period)
    • 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)
    • unit

      public Schedule unit​(Schedule.UnitEnum unit)
    • getUnit

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

      public void setUnit​(Schedule.UnitEnum unit)
    • dueDate

      public Schedule dueDate​(Integer dueDate)
    • 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)
    • dueDateType

      public Schedule dueDateType​(Schedule.DueDateTypeEnum dueDateType)
    • getDueDateType

      public Schedule.DueDateTypeEnum getDueDateType()
      the payment terms
      Returns:
      dueDateType
    • setDueDateType

      public void setDueDateType​(Schedule.DueDateTypeEnum dueDateType)
    • startDate

      public Schedule startDate​(String startDate)
    • 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()
    • setStartDate

      public void setStartDate​(String startDate)
    • setStartDate

      public void setStartDate​(org.threeten.bp.LocalDate startDate)
    • nextScheduledDate

      public Schedule nextScheduledDate​(String nextScheduledDate)
    • 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()
    • setNextScheduledDate

      public void setNextScheduledDate​(String nextScheduledDate)
    • setNextScheduledDate

      public void setNextScheduledDate​(org.threeten.bp.LocalDate nextScheduledDate)
    • endDate

      public Schedule endDate​(String endDate)
    • 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()
    • setEndDate

      public void setEndDate​(String endDate)
    • setEndDate

      public void setEndDate​(org.threeten.bp.LocalDate endDate)
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object