Package com.xero.models.accounting
Class Allocation
java.lang.Object
com.xero.models.accounting.Allocation
public class Allocation extends Object
Allocation
-
Constructor Summary
Constructors Constructor Description Allocation() -
Method Summary
Modifier and Type Method Description AllocationaddValidationErrorsItem(ValidationError validationErrorsItem)Allocationamount(Double amount)AllocationcreditNote(CreditNote creditNote)Allocationdate(String date)booleanequals(Object o)DoublegetAmount()the amount being applied to the invoiceCreditNotegetCreditNote()Get creditNoteStringgetDate()the date the allocation is applied YYYY-MM-DD.org.threeten.bp.LocalDategetDateAsDate()InvoicegetInvoice()Get invoiceOverpaymentgetOverpayment()Get overpaymentPrepaymentgetPrepayment()Get prepaymentStringgetStatusAttributeString()A string to indicate if a invoice statusList<ValidationError>getValidationErrors()Displays array of validation error messages from the APIinthashCode()Allocationinvoice(Invoice invoice)Allocationoverpayment(Overpayment overpayment)Allocationprepayment(Prepayment prepayment)voidsetAmount(Double amount)voidsetCreditNote(CreditNote creditNote)voidsetDate(String date)voidsetDate(org.threeten.bp.LocalDate date)voidsetInvoice(Invoice invoice)voidsetOverpayment(Overpayment overpayment)voidsetPrepayment(Prepayment prepayment)voidsetStatusAttributeString(String statusAttributeString)voidsetValidationErrors(List<ValidationError> validationErrors)AllocationstatusAttributeString(String statusAttributeString)StringtoString()AllocationvalidationErrors(List<ValidationError> validationErrors)
-
Constructor Details
-
Allocation
public Allocation()
-
-
Method Details
-
invoice
-
getInvoice
Get invoice- Returns:
- invoice
-
setInvoice
-
overpayment
-
getOverpayment
Get overpayment- Returns:
- overpayment
-
setOverpayment
-
prepayment
-
getPrepayment
Get prepayment- Returns:
- prepayment
-
setPrepayment
-
creditNote
-
getCreditNote
Get creditNote- Returns:
- creditNote
-
setCreditNote
-
amount
-
getAmount
the amount being applied to the invoice- Returns:
- amount
-
setAmount
-
date
-
getDate
the date the allocation is applied YYYY-MM-DD.- Returns:
- date
-
getDateAsDate
public org.threeten.bp.LocalDate getDateAsDate() -
setDate
-
setDate
public void setDate(org.threeten.bp.LocalDate date) -
statusAttributeString
-
getStatusAttributeString
A string to indicate if a invoice status- Returns:
- statusAttributeString
-
setStatusAttributeString
-
validationErrors
-
addValidationErrorsItem
-
getValidationErrors
Displays array of validation error messages from the API- Returns:
- validationErrors
-
setValidationErrors
-
equals
-
hashCode
public int hashCode() -
toString
-