Class Overpayment


  • public class Overpayment
    extends Object
    Overpayment
    • Constructor Detail

      • Overpayment

        public Overpayment()
    • Method Detail

      • setType

        public void setType​(Overpayment.TypeEnum type)
        See Overpayment Types
        Parameters:
        type - TypeEnum
      • contact

        public Overpayment contact​(Contact contact)
        contact
        Parameters:
        contact - Contact
        Returns:
        Overpayment
      • getContact

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

        public void setContact​(Contact contact)
        contact
        Parameters:
        contact - Contact
      • date

        public Overpayment date​(String date)
        The date the overpayment is created YYYY-MM-DD
        Parameters:
        date - String
        Returns:
        Overpayment
      • getDate

        public String getDate()
        The date the overpayment is created YYYY-MM-DD
        Returns:
        date
      • getDateAsDate

        public org.threeten.bp.LocalDate getDateAsDate()
        The date the overpayment is created YYYY-MM-DD
        Returns:
        LocalDate
      • setDate

        public void setDate​(String date)
        The date the overpayment is created YYYY-MM-DD
        Parameters:
        date - String
      • setDate

        public void setDate​(org.threeten.bp.LocalDate date)
        The date the overpayment is created YYYY-MM-DD
        Parameters:
        date - LocalDateTime
      • setStatus

        public void setStatus​(Overpayment.StatusEnum status)
        See Overpayment Status Codes
        Parameters:
        status - StatusEnum
      • lineAmountTypes

        public Overpayment lineAmountTypes​(LineAmountTypes lineAmountTypes)
        lineAmountTypes
        Parameters:
        lineAmountTypes - LineAmountTypes
        Returns:
        Overpayment
      • getLineAmountTypes

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

        public void setLineAmountTypes​(LineAmountTypes lineAmountTypes)
        lineAmountTypes
        Parameters:
        lineAmountTypes - LineAmountTypes
      • lineItems

        public Overpayment lineItems​(List<LineItem> lineItems)
        See Overpayment Line Items
        Parameters:
        lineItems - List<LineItem>
        Returns:
        Overpayment
      • addLineItemsItem

        public Overpayment addLineItemsItem​(LineItem lineItemsItem)
        See Overpayment Line Items
        Parameters:
        lineItemsItem - LineItem
        Returns:
        Overpayment
      • getLineItems

        public List<LineItem> getLineItems()
        See Overpayment Line Items
        Returns:
        lineItems
      • setLineItems

        public void setLineItems​(List<LineItem> lineItems)
        See Overpayment Line Items
        Parameters:
        lineItems - List<LineItem>
      • subTotal

        public Overpayment subTotal​(Double subTotal)
        The subtotal of the overpayment excluding taxes
        Parameters:
        subTotal - Double
        Returns:
        Overpayment
      • getSubTotal

        public Double getSubTotal()
        The subtotal of the overpayment excluding taxes
        Returns:
        subTotal
      • setSubTotal

        public void setSubTotal​(Double subTotal)
        The subtotal of the overpayment excluding taxes
        Parameters:
        subTotal - Double
      • totalTax

        public Overpayment totalTax​(Double totalTax)
        The total tax on the overpayment
        Parameters:
        totalTax - Double
        Returns:
        Overpayment
      • getTotalTax

        public Double getTotalTax()
        The total tax on the overpayment
        Returns:
        totalTax
      • setTotalTax

        public void setTotalTax​(Double totalTax)
        The total tax on the overpayment
        Parameters:
        totalTax - Double
      • total

        public Overpayment total​(Double total)
        The total of the overpayment (subtotal + total tax)
        Parameters:
        total - Double
        Returns:
        Overpayment
      • getTotal

        public Double getTotal()
        The total of the overpayment (subtotal + total tax)
        Returns:
        total
      • setTotal

        public void setTotal​(Double total)
        The total of the overpayment (subtotal + total tax)
        Parameters:
        total - Double
      • getUpdatedDateUTC

        public String getUpdatedDateUTC()
        UTC timestamp of last update to the overpayment
        Returns:
        updatedDateUTC
      • getUpdatedDateUTCAsDate

        public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate()
        UTC timestamp of last update to the overpayment
        Returns:
        OffsetDateTime
      • currencyCode

        public Overpayment currencyCode​(CurrencyCode currencyCode)
        currencyCode
        Parameters:
        currencyCode - CurrencyCode
        Returns:
        Overpayment
      • getCurrencyCode

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

        public void setCurrencyCode​(CurrencyCode currencyCode)
        currencyCode
        Parameters:
        currencyCode - CurrencyCode
      • overpaymentID

        public Overpayment overpaymentID​(UUID overpaymentID)
        Xero generated unique identifier
        Parameters:
        overpaymentID - UUID
        Returns:
        Overpayment
      • getOverpaymentID

        public UUID getOverpaymentID()
        Xero generated unique identifier
        Returns:
        overpaymentID
      • setOverpaymentID

        public void setOverpaymentID​(UUID overpaymentID)
        Xero generated unique identifier
        Parameters:
        overpaymentID - UUID
      • currencyRate

        public Overpayment currencyRate​(Double currencyRate)
        The currency rate for a multicurrency overpayment. If no rate is specified, the XE.com day rate is used
        Parameters:
        currencyRate - Double
        Returns:
        Overpayment
      • getCurrencyRate

        public Double getCurrencyRate()
        The currency rate for a multicurrency overpayment. If no rate is specified, the XE.com day rate is used
        Returns:
        currencyRate
      • setCurrencyRate

        public void setCurrencyRate​(Double currencyRate)
        The currency rate for a multicurrency overpayment. If no rate is specified, the XE.com day rate is used
        Parameters:
        currencyRate - Double
      • remainingCredit

        public Overpayment remainingCredit​(Double remainingCredit)
        The remaining credit balance on the overpayment
        Parameters:
        remainingCredit - Double
        Returns:
        Overpayment
      • getRemainingCredit

        public Double getRemainingCredit()
        The remaining credit balance on the overpayment
        Returns:
        remainingCredit
      • setRemainingCredit

        public void setRemainingCredit​(Double remainingCredit)
        The remaining credit balance on the overpayment
        Parameters:
        remainingCredit - Double
      • allocations

        public Overpayment allocations​(List<Allocation> allocations)
        See Allocations
        Parameters:
        allocations - List<Allocation>
        Returns:
        Overpayment
      • addAllocationsItem

        public Overpayment addAllocationsItem​(Allocation allocationsItem)
        See Allocations
        Parameters:
        allocationsItem - Allocation
        Returns:
        Overpayment
      • getAllocations

        public List<Allocation> getAllocations()
        See Allocations
        Returns:
        allocations
      • setAllocations

        public void setAllocations​(List<Allocation> allocations)
        See Allocations
        Parameters:
        allocations - List<Allocation>
      • appliedAmount

        public Overpayment appliedAmount​(Double appliedAmount)
        The amount of applied to an invoice
        Parameters:
        appliedAmount - Double
        Returns:
        Overpayment
      • getAppliedAmount

        public Double getAppliedAmount()
        The amount of applied to an invoice
        Returns:
        appliedAmount
      • setAppliedAmount

        public void setAppliedAmount​(Double appliedAmount)
        The amount of applied to an invoice
        Parameters:
        appliedAmount - Double
      • payments

        public Overpayment payments​(List<Payment> payments)
        See Payments
        Parameters:
        payments - List<Payment>
        Returns:
        Overpayment
      • addPaymentsItem

        public Overpayment addPaymentsItem​(Payment paymentsItem)
        See Payments
        Parameters:
        paymentsItem - Payment
        Returns:
        Overpayment
      • getPayments

        public List<Payment> getPayments()
        See Payments
        Returns:
        payments
      • setPayments

        public void setPayments​(List<Payment> payments)
        See Payments
        Parameters:
        payments - List<Payment>
      • getHasAttachments

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

        public Overpayment attachments​(List<Attachment> attachments)
        See Attachments
        Parameters:
        attachments - List<Attachment>
        Returns:
        Overpayment
      • addAttachmentsItem

        public Overpayment addAttachmentsItem​(Attachment attachmentsItem)
        See Attachments
        Parameters:
        attachmentsItem - Attachment
        Returns:
        Overpayment
      • getAttachments

        public List<Attachment> getAttachments()
        See Attachments
        Returns:
        attachments
      • setAttachments

        public void setAttachments​(List<Attachment> attachments)
        See Attachments
        Parameters:
        attachments - List<Attachment>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object