Package com.xero.models.accounting
Class Schedule
java.lang.Object
com.xero.models.accounting.Schedule
public class Schedule extends Object
Schedule
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSchedule.DueDateTypeEnumthe payment termsstatic classSchedule.UnitEnumOne of the following - WEEKLY or MONTHLY -
Constructor Summary
Constructors Constructor Description Schedule() -
Method Summary
Modifier and Type Method Description ScheduledueDate(Integer dueDate)ScheduledueDateType(Schedule.DueDateTypeEnum dueDateType)ScheduleendDate(String endDate)booleanequals(Object o)IntegergetDueDate()Integer used with due date type e.g 20 (of following month), 31 (of current month)Schedule.DueDateTypeEnumgetDueDateType()the payment termsStringgetEndDate()Invoice end date – only returned if the template has an end date setorg.threeten.bp.LocalDategetEndDateAsDate()StringgetNextScheduledDate()The calendar date of the next invoice in the schedule to be generatedorg.threeten.bp.LocalDategetNextScheduledDateAsDate()IntegergetPeriod()Integer used with the unit e.g.StringgetStartDate()Date the first invoice of the current version of the repeating schedule was generated (changes when repeating invoice is edited)org.threeten.bp.LocalDategetStartDateAsDate()Schedule.UnitEnumgetUnit()One of the following - WEEKLY or MONTHLYinthashCode()SchedulenextScheduledDate(String nextScheduledDate)Scheduleperiod(Integer period)voidsetDueDate(Integer dueDate)voidsetDueDateType(Schedule.DueDateTypeEnum dueDateType)voidsetEndDate(String endDate)voidsetEndDate(org.threeten.bp.LocalDate endDate)voidsetNextScheduledDate(String nextScheduledDate)voidsetNextScheduledDate(org.threeten.bp.LocalDate nextScheduledDate)voidsetPeriod(Integer period)voidsetStartDate(String startDate)voidsetStartDate(org.threeten.bp.LocalDate startDate)voidsetUnit(Schedule.UnitEnum unit)SchedulestartDate(String startDate)StringtoString()Scheduleunit(Schedule.UnitEnum unit)
-
Constructor Details
-
Schedule
public Schedule()
-
-
Method Details
-
period
-
getPeriod
Integer used with the unit e.g. 1 (every 1 week), 2 (every 2 months)- Returns:
- period
-
setPeriod
-
unit
-
getUnit
One of the following - WEEKLY or MONTHLY- Returns:
- unit
-
setUnit
-
dueDate
-
getDueDate
Integer used with due date type e.g 20 (of following month), 31 (of current month)- Returns:
- dueDate
-
setDueDate
-
dueDateType
-
getDueDateType
the payment terms- Returns:
- dueDateType
-
setDueDateType
-
startDate
-
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
-
setStartDate
public void setStartDate(org.threeten.bp.LocalDate startDate) -
nextScheduledDate
-
getNextScheduledDate
The calendar date of the next invoice in the schedule to be generated- Returns:
- nextScheduledDate
-
getNextScheduledDateAsDate
public org.threeten.bp.LocalDate getNextScheduledDateAsDate() -
setNextScheduledDate
-
setNextScheduledDate
public void setNextScheduledDate(org.threeten.bp.LocalDate nextScheduledDate) -
endDate
-
getEndDate
Invoice end date – only returned if the template has an end date set- Returns:
- endDate
-
getEndDateAsDate
public org.threeten.bp.LocalDate getEndDateAsDate() -
setEndDate
-
setEndDate
public void setEndDate(org.threeten.bp.LocalDate endDate) -
equals
-
hashCode
public int hashCode() -
toString
-