Class RepeatingInvoice

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

public class RepeatingInvoice
extends Object
RepeatingInvoice
  • Constructor Details

    • RepeatingInvoice

      public RepeatingInvoice()
  • Method Details

    • type

    • getType

      public RepeatingInvoice.TypeEnum getType()
      See Invoice Types
      Returns:
      type
    • setType

      public void setType​(RepeatingInvoice.TypeEnum type)
    • contact

      public RepeatingInvoice contact​(Contact contact)
    • getContact

      public Contact getContact()
      Get contact
      Returns:
      contact
    • setContact

      public void setContact​(Contact contact)
    • schedule

      public RepeatingInvoice schedule​(Schedule schedule)
    • getSchedule

      public Schedule getSchedule()
      Get schedule
      Returns:
      schedule
    • setSchedule

      public void setSchedule​(Schedule schedule)
    • lineItems

      public RepeatingInvoice lineItems​(List<LineItem> lineItems)
    • addLineItemsItem

      public RepeatingInvoice addLineItemsItem​(LineItem lineItemsItem)
    • getLineItems

      public List<LineItem> getLineItems()
      See LineItems
      Returns:
      lineItems
    • setLineItems

      public void setLineItems​(List<LineItem> lineItems)
    • lineAmountTypes

      public RepeatingInvoice lineAmountTypes​(LineAmountTypes lineAmountTypes)
    • getLineAmountTypes

      public LineAmountTypes getLineAmountTypes()
      Get lineAmountTypes
      Returns:
      lineAmountTypes
    • setLineAmountTypes

      public void setLineAmountTypes​(LineAmountTypes lineAmountTypes)
    • reference

      public RepeatingInvoice reference​(String reference)
    • getReference

      public String getReference()
      ACCREC only – additional reference number
      Returns:
      reference
    • setReference

      public void setReference​(String reference)
    • brandingThemeID

      public RepeatingInvoice brandingThemeID​(UUID brandingThemeID)
    • getBrandingThemeID

      public UUID getBrandingThemeID()
      See BrandingThemes
      Returns:
      brandingThemeID
    • setBrandingThemeID

      public void setBrandingThemeID​(UUID brandingThemeID)
    • currencyCode

      public RepeatingInvoice currencyCode​(CurrencyCode currencyCode)
    • getCurrencyCode

      public CurrencyCode getCurrencyCode()
      Get currencyCode
      Returns:
      currencyCode
    • setCurrencyCode

      public void setCurrencyCode​(CurrencyCode currencyCode)
    • status

      public RepeatingInvoice status​(RepeatingInvoice.StatusEnum status)
    • 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)
    • subTotal

      public RepeatingInvoice subTotal​(Double subTotal)
    • getSubTotal

      public Double getSubTotal()
      Total of invoice excluding taxes
      Returns:
      subTotal
    • setSubTotal

      public void setSubTotal​(Double subTotal)
    • totalTax

      public RepeatingInvoice totalTax​(Double totalTax)
    • getTotalTax

      public Double getTotalTax()
      Total tax on invoice
      Returns:
      totalTax
    • setTotalTax

      public void setTotalTax​(Double totalTax)
    • total

      public RepeatingInvoice total​(Double total)
    • getTotal

      public Double getTotal()
      Total of Invoice tax inclusive (i.e. SubTotal + TotalTax)
      Returns:
      total
    • setTotal

      public void setTotal​(Double total)
    • repeatingInvoiceID

      public RepeatingInvoice repeatingInvoiceID​(UUID repeatingInvoiceID)
    • getRepeatingInvoiceID

      public UUID getRepeatingInvoiceID()
      Xero generated unique identifier for repeating invoice template
      Returns:
      repeatingInvoiceID
    • setRepeatingInvoiceID

      public void setRepeatingInvoiceID​(UUID repeatingInvoiceID)
    • ID

      public RepeatingInvoice ID​(UUID ID)
    • getID

      public UUID getID()
      Xero generated unique identifier for repeating invoice template
      Returns:
      ID
    • setID

      public void setID​(UUID ID)
    • getHasAttachments

      public Boolean getHasAttachments()
      boolean to indicate if an invoice has an attachment
      Returns:
      hasAttachments
    • attachments

      public RepeatingInvoice attachments​(List<Attachment> attachments)
    • addAttachmentsItem

      public RepeatingInvoice addAttachmentsItem​(Attachment attachmentsItem)
    • getAttachments

      public List<Attachment> getAttachments()
      Displays array of attachments from the API
      Returns:
      attachments
    • setAttachments

      public void setAttachments​(List<Attachment> attachments)
    • 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