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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScheduledueDate(Integer dueDate)Integer used with due date type e.g 20 (of following month), 31 (of current month)ScheduledueDateType(Schedule.DueDateTypeEnum dueDateType)the payment termsScheduleendDate(String endDate)Invoice end date – only returned if the template has an end date setbooleanequals(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()Invoice end date – only returned if the template has an end date setStringgetNextScheduledDate()The calendar date of the next invoice in the schedule to be generatedorg.threeten.bp.LocalDategetNextScheduledDateAsDate()The calendar date of the next invoice in the schedule to be generatedIntegergetPeriod()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()Date the first invoice of the current version of the repeating schedule was generated (changes when repeating invoice is edited)Schedule.UnitEnumgetUnit()One of the following - WEEKLY or MONTHLYinthashCode()SchedulenextScheduledDate(String nextScheduledDate)The calendar date of the next invoice in the schedule to be generatedScheduleperiod(Integer period)Integer used with the unit e.g.voidsetDueDate(Integer dueDate)Integer used with due date type e.g 20 (of following month), 31 (of current month)voidsetDueDateType(Schedule.DueDateTypeEnum dueDateType)the payment termsvoidsetEndDate(String endDate)Invoice end date – only returned if the template has an end date setvoidsetEndDate(org.threeten.bp.LocalDate endDate)Invoice end date – only returned if the template has an end date setvoidsetNextScheduledDate(String nextScheduledDate)The calendar date of the next invoice in the schedule to be generatedvoidsetNextScheduledDate(org.threeten.bp.LocalDate nextScheduledDate)The calendar date of the next invoice in the schedule to be generatedvoidsetPeriod(Integer period)Integer used with the unit e.g.voidsetStartDate(String startDate)Date the first invoice of the current version of the repeating schedule was generated (changes when repeating invoice is edited)voidsetStartDate(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)voidsetUnit(Schedule.UnitEnum unit)One of the following - WEEKLY or MONTHLYSchedulestartDate(String startDate)Date the first invoice of the current version of the repeating schedule was generated (changes when repeating invoice is edited)StringtoString()Scheduleunit(Schedule.UnitEnum unit)One of the following - WEEKLY or MONTHLY
-
-
-
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
-
getDueDateType
public Schedule.DueDateTypeEnum getDueDateType()
the payment terms- Returns:
- dueDateType
-
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
-
-