Package com.xero.models.accounting
Class Overpayment
java.lang.Object
com.xero.models.accounting.Overpayment
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSee Overpayment Status Codesstatic enumSee Overpayment Types -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllocationsItem(Allocation allocationsItem) See AllocationsaddAttachmentsItem(Attachment attachmentsItem) See AttachmentsaddLineItemsItem(LineItem lineItemsItem) See Overpayment Line ItemsaddPaymentsItem(Payment paymentsItem) See Paymentsallocations(List<Allocation> allocations) See AllocationsappliedAmount(Double appliedAmount) The amount of applied to an invoiceattachments(List<Attachment> attachments) See AttachmentscontactcurrencyCode(CurrencyCode currencyCode) currencyCodecurrencyRate(Double currencyRate) The currency rate for a multicurrency overpayment.The date the overpayment is created YYYY-MM-DDbooleanSee AllocationsThe amount of applied to an invoiceSee AttachmentsGet contactGet currencyCodeThe currency rate for a multicurrency overpayment.getDate()The date the overpayment is created YYYY-MM-DDorg.threeten.bp.LocalDateThe date the overpayment is created YYYY-MM-DDboolean to indicate if a overpayment has an attachmentGet lineAmountTypesSee Overpayment Line ItemsXero generated unique identifierSee PaymentsThe remaining credit balance on the overpaymentSee Overpayment Status CodesThe subtotal of the overpayment excluding taxesgetTotal()The total of the overpayment (subtotal + total tax)The total tax on the overpaymentgetType()See Overpayment TypesUTC timestamp of last update to the overpaymentorg.threeten.bp.OffsetDateTimeUTC timestamp of last update to the overpaymentinthashCode()lineAmountTypes(LineAmountTypes lineAmountTypes) lineAmountTypesSee Overpayment Line ItemsoverpaymentID(UUID overpaymentID) Xero generated unique identifierSee PaymentsremainingCredit(Double remainingCredit) The remaining credit balance on the overpaymentvoidsetAllocations(List<Allocation> allocations) See AllocationsvoidsetAppliedAmount(Double appliedAmount) The amount of applied to an invoicevoidsetAttachments(List<Attachment> attachments) See AttachmentsvoidsetContact(Contact contact) contactvoidsetCurrencyCode(CurrencyCode currencyCode) currencyCodevoidsetCurrencyRate(Double currencyRate) The currency rate for a multicurrency overpayment.voidThe date the overpayment is created YYYY-MM-DDvoidsetDate(org.threeten.bp.LocalDate date) The date the overpayment is created YYYY-MM-DDvoidsetLineAmountTypes(LineAmountTypes lineAmountTypes) lineAmountTypesvoidsetLineItems(List<LineItem> lineItems) See Overpayment Line ItemsvoidsetOverpaymentID(UUID overpaymentID) Xero generated unique identifiervoidsetPayments(List<Payment> payments) See PaymentsvoidsetRemainingCredit(Double remainingCredit) The remaining credit balance on the overpaymentvoidsetStatus(Overpayment.StatusEnum status) See Overpayment Status CodesvoidsetSubTotal(Double subTotal) The subtotal of the overpayment excluding taxesvoidThe total of the overpayment (subtotal + total tax)voidsetTotalTax(Double totalTax) The total tax on the overpaymentvoidsetType(Overpayment.TypeEnum type) See Overpayment Typesstatus(Overpayment.StatusEnum status) See Overpayment Status CodesThe subtotal of the overpayment excluding taxestoString()The total of the overpayment (subtotal + total tax)The total tax on the overpaymenttype(Overpayment.TypeEnum type) See Overpayment Types
-
Constructor Details
-
Overpayment
public Overpayment()
-
-
Method Details
-
type
See Overpayment Types- Parameters:
type- TypeEnum- Returns:
- Overpayment
-
getType
-
setType
-
contact
contact- Parameters:
contact- Contact- Returns:
- Overpayment
-
getContact
-
setContact
-
date
The date the overpayment is created YYYY-MM-DD- Parameters:
date- String- Returns:
- Overpayment
-
getDate
-
getDateAsDate
public org.threeten.bp.LocalDate getDateAsDate()The date the overpayment is created YYYY-MM-DD- Returns:
- LocalDate
-
setDate
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
-
status
See Overpayment Status Codes- Parameters:
status- StatusEnum- Returns:
- Overpayment
-
getStatus
-
setStatus
See Overpayment Status Codes- Parameters:
status- StatusEnum
-
lineAmountTypes
lineAmountTypes- Parameters:
lineAmountTypes- LineAmountTypes- Returns:
- Overpayment
-
getLineAmountTypes
-
setLineAmountTypes
lineAmountTypes- Parameters:
lineAmountTypes- LineAmountTypes
-
lineItems
See Overpayment Line Items- Parameters:
lineItems- List<LineItem>- Returns:
- Overpayment
-
addLineItemsItem
See Overpayment Line Items- Parameters:
lineItemsItem- LineItem- Returns:
- Overpayment
-
getLineItems
-
setLineItems
-
subTotal
The subtotal of the overpayment excluding taxes- Parameters:
subTotal- Double- Returns:
- Overpayment
-
getSubTotal
-
setSubTotal
The subtotal of the overpayment excluding taxes- Parameters:
subTotal- Double
-
totalTax
The total tax on the overpayment- Parameters:
totalTax- Double- Returns:
- Overpayment
-
getTotalTax
-
setTotalTax
The total tax on the overpayment- Parameters:
totalTax- Double
-
total
The total of the overpayment (subtotal + total tax)- Parameters:
total- Double- Returns:
- Overpayment
-
getTotal
-
setTotal
The total of the overpayment (subtotal + total tax)- Parameters:
total- Double
-
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
currencyCode- Parameters:
currencyCode- CurrencyCode- Returns:
- Overpayment
-
getCurrencyCode
-
setCurrencyCode
currencyCode- Parameters:
currencyCode- CurrencyCode
-
overpaymentID
Xero generated unique identifier- Parameters:
overpaymentID- UUID- Returns:
- Overpayment
-
getOverpaymentID
-
setOverpaymentID
Xero generated unique identifier- Parameters:
overpaymentID- UUID
-
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
The currency rate for a multicurrency overpayment. If no rate is specified, the XE.com day rate is used- Returns:
- currencyRate
-
setCurrencyRate
The currency rate for a multicurrency overpayment. If no rate is specified, the XE.com day rate is used- Parameters:
currencyRate- Double
-
remainingCredit
The remaining credit balance on the overpayment- Parameters:
remainingCredit- Double- Returns:
- Overpayment
-
getRemainingCredit
The remaining credit balance on the overpayment- Returns:
- remainingCredit
-
setRemainingCredit
The remaining credit balance on the overpayment- Parameters:
remainingCredit- Double
-
allocations
See Allocations- Parameters:
allocations- List<Allocation>- Returns:
- Overpayment
-
addAllocationsItem
See Allocations- Parameters:
allocationsItem- Allocation- Returns:
- Overpayment
-
getAllocations
-
setAllocations
See Allocations- Parameters:
allocations- List<Allocation>
-
appliedAmount
The amount of applied to an invoice- Parameters:
appliedAmount- Double- Returns:
- Overpayment
-
getAppliedAmount
-
setAppliedAmount
The amount of applied to an invoice- Parameters:
appliedAmount- Double
-
payments
See Payments- Parameters:
payments- List<Payment>- Returns:
- Overpayment
-
addPaymentsItem
See Payments- Parameters:
paymentsItem- Payment- Returns:
- Overpayment
-
getPayments
-
setPayments
-
getHasAttachments
boolean to indicate if a overpayment has an attachment- Returns:
- hasAttachments
-
attachments
See Attachments- Parameters:
attachments- List<Attachment>- Returns:
- Overpayment
-
addAttachmentsItem
See Attachments- Parameters:
attachmentsItem- Attachment- Returns:
- Overpayment
-
getAttachments
-
setAttachments
See Attachments- Parameters:
attachments- List<Attachment>
-
equals
-
hashCode
-
toString
-