Package com.xero.models.accounting
Class Schedule
java.lang.Object
com.xero.models.accounting.Schedule
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumthe payment termsstatic enumOne of the following - WEEKLY or MONTHLY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInteger used with due date type e.g 20 (of following month), 31 (of current month)dueDateType(Schedule.DueDateTypeEnum dueDateType) the payment termsInvoice end date – only returned if the template has an end date setbooleanInteger used with due date type e.g 20 (of following month), 31 (of current month)the payment termsInvoice end date – only returned if the template has an end date setorg.threeten.bp.LocalDateInvoice end date – only returned if the template has an end date setThe calendar date of the next invoice in the schedule to be generatedorg.threeten.bp.LocalDateThe calendar date of the next invoice in the schedule to be generatedInteger used with the unit e.g.Date the first invoice of the current version of the repeating schedule was generated (changes when repeating invoice is edited)org.threeten.bp.LocalDateDate the first invoice of the current version of the repeating schedule was generated (changes when repeating invoice is edited)getUnit()One of the following - WEEKLY or MONTHLYinthashCode()nextScheduledDate(String nextScheduledDate) The calendar date of the next invoice in the schedule to be generatedInteger 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 generatedvoidInteger 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 MONTHLYDate the first invoice of the current version of the repeating schedule was generated (changes when repeating invoice is edited)toString()unit(Schedule.UnitEnum unit) One of the following - WEEKLY or MONTHLY
-
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
Integer used with the unit e.g. 1 (every 1 week), 2 (every 2 months)- Parameters:
period- Integer
-
unit
One of the following - WEEKLY or MONTHLY- Parameters:
unit- UnitEnum- Returns:
- Schedule
-
getUnit
-
setUnit
One of the following - WEEKLY or MONTHLY- Parameters:
unit- UnitEnum
-
dueDate
-
getDueDate
Integer used with due date type e.g 20 (of following month), 31 (of current month)- Returns:
- dueDate
-
setDueDate
Integer used with due date type e.g 20 (of following month), 31 (of current month)- Parameters:
dueDate- Integer
-
dueDateType
the payment terms- Parameters:
dueDateType- DueDateTypeEnum- Returns:
- Schedule
-
getDueDateType
-
setDueDateType
the payment terms- Parameters:
dueDateType- DueDateTypeEnum
-
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()Date the first invoice of the current version of the repeating schedule was generated (changes when repeating invoice is edited)- Returns:
- LocalDate
-
setStartDate
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
-
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
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
-
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
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
-
equals
-
hashCode
-
toString
-