Package com.xero.models.accounting
Class RepeatingInvoice
- java.lang.Object
-
- com.xero.models.accounting.RepeatingInvoice
-
public class RepeatingInvoice extends Object
RepeatingInvoice
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRepeatingInvoice.StatusEnumOne of the following - DRAFT or AUTHORISED – See Invoice Status Codesstatic classRepeatingInvoice.TypeEnumSee Invoice Types
-
Constructor Summary
Constructors Constructor Description RepeatingInvoice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RepeatingInvoiceaddAttachmentsItem(Attachment attachmentsItem)Displays array of attachments from the APIRepeatingInvoiceaddLineItemsItem(LineItem lineItemsItem)See LineItemsRepeatingInvoiceattachments(List<Attachment> attachments)Displays array of attachments from the APIRepeatingInvoicebrandingThemeID(UUID brandingThemeID)See BrandingThemesRepeatingInvoicecontact(Contact contact)contactRepeatingInvoicecurrencyCode(CurrencyCode currencyCode)currencyCodebooleanequals(Object o)List<Attachment>getAttachments()Displays array of attachments from the APIUUIDgetBrandingThemeID()See BrandingThemesContactgetContact()Get contactCurrencyCodegetCurrencyCode()Get currencyCodeBooleangetHasAttachments()boolean to indicate if an invoice has an attachmentUUIDgetID()Xero generated unique identifier for repeating invoice templateLineAmountTypesgetLineAmountTypes()Get lineAmountTypesList<LineItem>getLineItems()See LineItemsStringgetReference()ACCREC only – additional reference numberUUIDgetRepeatingInvoiceID()Xero generated unique identifier for repeating invoice templateSchedulegetSchedule()Get scheduleRepeatingInvoice.StatusEnumgetStatus()One of the following - DRAFT or AUTHORISED – See Invoice Status CodesDoublegetSubTotal()Total of invoice excluding taxesDoublegetTotal()Total of Invoice tax inclusive (i.e.DoublegetTotalTax()Total tax on invoiceRepeatingInvoice.TypeEnumgetType()See Invoice TypesinthashCode()RepeatingInvoiceID(UUID ID)Xero generated unique identifier for repeating invoice templateRepeatingInvoicelineAmountTypes(LineAmountTypes lineAmountTypes)lineAmountTypesRepeatingInvoicelineItems(List<LineItem> lineItems)See LineItemsRepeatingInvoicereference(String reference)ACCREC only – additional reference numberRepeatingInvoicerepeatingInvoiceID(UUID repeatingInvoiceID)Xero generated unique identifier for repeating invoice templateRepeatingInvoiceschedule(Schedule schedule)schedulevoidsetAttachments(List<Attachment> attachments)Displays array of attachments from the APIvoidsetBrandingThemeID(UUID brandingThemeID)See BrandingThemesvoidsetContact(Contact contact)contactvoidsetCurrencyCode(CurrencyCode currencyCode)currencyCodevoidsetID(UUID ID)Xero generated unique identifier for repeating invoice templatevoidsetLineAmountTypes(LineAmountTypes lineAmountTypes)lineAmountTypesvoidsetLineItems(List<LineItem> lineItems)See LineItemsvoidsetReference(String reference)ACCREC only – additional reference numbervoidsetRepeatingInvoiceID(UUID repeatingInvoiceID)Xero generated unique identifier for repeating invoice templatevoidsetSchedule(Schedule schedule)schedulevoidsetStatus(RepeatingInvoice.StatusEnum status)One of the following - DRAFT or AUTHORISED – See Invoice Status CodesvoidsetSubTotal(Double subTotal)Total of invoice excluding taxesvoidsetTotal(Double total)Total of Invoice tax inclusive (i.e.voidsetTotalTax(Double totalTax)Total tax on invoicevoidsetType(RepeatingInvoice.TypeEnum type)See Invoice TypesRepeatingInvoicestatus(RepeatingInvoice.StatusEnum status)One of the following - DRAFT or AUTHORISED – See Invoice Status CodesRepeatingInvoicesubTotal(Double subTotal)Total of invoice excluding taxesStringtoString()RepeatingInvoicetotal(Double total)Total of Invoice tax inclusive (i.e.RepeatingInvoicetotalTax(Double totalTax)Total tax on invoiceRepeatingInvoicetype(RepeatingInvoice.TypeEnum type)See Invoice Types
-
-
-
Method Detail
-
type
public RepeatingInvoice type(RepeatingInvoice.TypeEnum type)
See Invoice Types- Parameters:
type- TypeEnum- Returns:
- RepeatingInvoice
-
getType
public RepeatingInvoice.TypeEnum getType()
See Invoice Types- Returns:
- type
-
setType
public void setType(RepeatingInvoice.TypeEnum type)
See Invoice Types- Parameters:
type- TypeEnum
-
contact
public RepeatingInvoice contact(Contact contact)
contact- Parameters:
contact- Contact- Returns:
- RepeatingInvoice
-
getContact
public Contact getContact()
Get contact- Returns:
- contact
-
setContact
public void setContact(Contact contact)
contact- Parameters:
contact- Contact
-
schedule
public RepeatingInvoice schedule(Schedule schedule)
schedule- Parameters:
schedule- Schedule- Returns:
- RepeatingInvoice
-
getSchedule
public Schedule getSchedule()
Get schedule- Returns:
- schedule
-
setSchedule
public void setSchedule(Schedule schedule)
schedule- Parameters:
schedule- Schedule
-
lineItems
public RepeatingInvoice lineItems(List<LineItem> lineItems)
See LineItems- Parameters:
lineItems- List<LineItem>- Returns:
- RepeatingInvoice
-
addLineItemsItem
public RepeatingInvoice addLineItemsItem(LineItem lineItemsItem)
See LineItems- Parameters:
lineItemsItem- LineItem- Returns:
- RepeatingInvoice
-
setLineItems
public void setLineItems(List<LineItem> lineItems)
See LineItems- Parameters:
lineItems- List<LineItem>
-
lineAmountTypes
public RepeatingInvoice lineAmountTypes(LineAmountTypes lineAmountTypes)
lineAmountTypes- Parameters:
lineAmountTypes- LineAmountTypes- Returns:
- RepeatingInvoice
-
getLineAmountTypes
public LineAmountTypes getLineAmountTypes()
Get lineAmountTypes- Returns:
- lineAmountTypes
-
setLineAmountTypes
public void setLineAmountTypes(LineAmountTypes lineAmountTypes)
lineAmountTypes- Parameters:
lineAmountTypes- LineAmountTypes
-
reference
public RepeatingInvoice reference(String reference)
ACCREC only – additional reference number- Parameters:
reference- String- Returns:
- RepeatingInvoice
-
getReference
public String getReference()
ACCREC only – additional reference number- Returns:
- reference
-
setReference
public void setReference(String reference)
ACCREC only – additional reference number- Parameters:
reference- String
-
brandingThemeID
public RepeatingInvoice brandingThemeID(UUID brandingThemeID)
See BrandingThemes- Parameters:
brandingThemeID- UUID- Returns:
- RepeatingInvoice
-
getBrandingThemeID
public UUID getBrandingThemeID()
See BrandingThemes- Returns:
- brandingThemeID
-
setBrandingThemeID
public void setBrandingThemeID(UUID brandingThemeID)
See BrandingThemes- Parameters:
brandingThemeID- UUID
-
currencyCode
public RepeatingInvoice currencyCode(CurrencyCode currencyCode)
currencyCode- Parameters:
currencyCode- CurrencyCode- Returns:
- RepeatingInvoice
-
getCurrencyCode
public CurrencyCode getCurrencyCode()
Get currencyCode- Returns:
- currencyCode
-
setCurrencyCode
public void setCurrencyCode(CurrencyCode currencyCode)
currencyCode- Parameters:
currencyCode- CurrencyCode
-
status
public RepeatingInvoice status(RepeatingInvoice.StatusEnum status)
One of the following - DRAFT or AUTHORISED – See Invoice Status Codes- Parameters:
status- StatusEnum- Returns:
- RepeatingInvoice
-
getStatus
public RepeatingInvoice.StatusEnum getStatus()
One of the following - DRAFT or AUTHORISED – See Invoice Status Codes- Returns:
- status
-
setStatus
public void setStatus(RepeatingInvoice.StatusEnum status)
One of the following - DRAFT or AUTHORISED – See Invoice Status Codes- Parameters:
status- StatusEnum
-
subTotal
public RepeatingInvoice subTotal(Double subTotal)
Total of invoice excluding taxes- Parameters:
subTotal- Double- Returns:
- RepeatingInvoice
-
getSubTotal
public Double getSubTotal()
Total of invoice excluding taxes- Returns:
- subTotal
-
setSubTotal
public void setSubTotal(Double subTotal)
Total of invoice excluding taxes- Parameters:
subTotal- Double
-
totalTax
public RepeatingInvoice totalTax(Double totalTax)
Total tax on invoice- Parameters:
totalTax- Double- Returns:
- RepeatingInvoice
-
getTotalTax
public Double getTotalTax()
Total tax on invoice- Returns:
- totalTax
-
setTotalTax
public void setTotalTax(Double totalTax)
Total tax on invoice- Parameters:
totalTax- Double
-
total
public RepeatingInvoice total(Double total)
Total of Invoice tax inclusive (i.e. SubTotal + TotalTax)- Parameters:
total- Double- Returns:
- RepeatingInvoice
-
getTotal
public Double getTotal()
Total of Invoice tax inclusive (i.e. SubTotal + TotalTax)- Returns:
- total
-
setTotal
public void setTotal(Double total)
Total of Invoice tax inclusive (i.e. SubTotal + TotalTax)- Parameters:
total- Double
-
repeatingInvoiceID
public RepeatingInvoice repeatingInvoiceID(UUID repeatingInvoiceID)
Xero generated unique identifier for repeating invoice template- Parameters:
repeatingInvoiceID- UUID- Returns:
- RepeatingInvoice
-
getRepeatingInvoiceID
public UUID getRepeatingInvoiceID()
Xero generated unique identifier for repeating invoice template- Returns:
- repeatingInvoiceID
-
setRepeatingInvoiceID
public void setRepeatingInvoiceID(UUID repeatingInvoiceID)
Xero generated unique identifier for repeating invoice template- Parameters:
repeatingInvoiceID- UUID
-
ID
public RepeatingInvoice ID(UUID ID)
Xero generated unique identifier for repeating invoice template- Parameters:
ID- UUID- Returns:
- RepeatingInvoice
-
getID
public UUID getID()
Xero generated unique identifier for repeating invoice template- Returns:
- ID
-
setID
public void setID(UUID ID)
Xero generated unique identifier for repeating invoice template- Parameters:
ID- UUID
-
getHasAttachments
public Boolean getHasAttachments()
boolean to indicate if an invoice has an attachment- Returns:
- hasAttachments
-
attachments
public RepeatingInvoice attachments(List<Attachment> attachments)
Displays array of attachments from the API- Parameters:
attachments- List<Attachment>- Returns:
- RepeatingInvoice
-
addAttachmentsItem
public RepeatingInvoice addAttachmentsItem(Attachment attachmentsItem)
Displays array of attachments from the API- Parameters:
attachmentsItem- Attachment- Returns:
- RepeatingInvoice
-
getAttachments
public List<Attachment> getAttachments()
Displays array of attachments from the API- Returns:
- attachments
-
setAttachments
public void setAttachments(List<Attachment> attachments)
Displays array of attachments from the API- Parameters:
attachments- List<Attachment>
-
-