Class RepeatingInvoice


  • public class RepeatingInvoice
    extends Object
    RepeatingInvoice
    • Constructor Detail

      • RepeatingInvoice

        public RepeatingInvoice()
    • Method Detail

      • 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
      • getLineItems

        public List<LineItem> getLineItems()
        See LineItems
        Returns:
        lineItems
      • 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
      • 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>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object