Package com.xero.models.accounting
Class Allocation
java.lang.Object
com.xero.models.accounting.Allocation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValidationErrorsItem(ValidationError validationErrorsItem) Displays array of validation error messages from the APIallocationID(UUID allocationID) Xero generated unique identifierthe amount being applied to the invoicecreditNote(CreditNote creditNote) creditNotethe date the allocation is applied YYYY-MM-DD.booleanXero generated unique identifierthe amount being applied to the invoiceGet creditNotegetDate()the date the allocation is applied YYYY-MM-DD.org.threeten.bp.LocalDatethe date the allocation is applied YYYY-MM-DD.Get invoiceA flag that returns true when the allocation is succesfully deletedGet overpaymentGet prepaymentA string to indicate if a invoice statusDisplays array of validation error messages from the APIinthashCode()invoiceoverpayment(Overpayment overpayment) overpaymentprepayment(Prepayment prepayment) prepaymentvoidsetAllocationID(UUID allocationID) Xero generated unique identifiervoidthe amount being applied to the invoicevoidsetCreditNote(CreditNote creditNote) creditNotevoidthe date the allocation is applied YYYY-MM-DD.voidsetDate(org.threeten.bp.LocalDate date) the date the allocation is applied YYYY-MM-DD.voidsetInvoice(Invoice invoice) invoicevoidsetOverpayment(Overpayment overpayment) overpaymentvoidsetPrepayment(Prepayment prepayment) prepaymentvoidsetStatusAttributeString(String statusAttributeString) A string to indicate if a invoice statusvoidsetValidationErrors(List<ValidationError> validationErrors) Displays array of validation error messages from the APIstatusAttributeString(String statusAttributeString) A string to indicate if a invoice statustoString()validationErrors(List<ValidationError> validationErrors) Displays array of validation error messages from the API
-
Constructor Details
-
Allocation
public Allocation()
-
-
Method Details
-
allocationID
Xero generated unique identifier- Parameters:
allocationID- UUID- Returns:
- Allocation
-
getAllocationID
-
setAllocationID
Xero generated unique identifier- Parameters:
allocationID- UUID
-
invoice
invoice- Parameters:
invoice- Invoice- Returns:
- Allocation
-
getInvoice
-
setInvoice
-
overpayment
overpayment- Parameters:
overpayment- Overpayment- Returns:
- Allocation
-
getOverpayment
-
setOverpayment
overpayment- Parameters:
overpayment- Overpayment
-
prepayment
prepayment- Parameters:
prepayment- Prepayment- Returns:
- Allocation
-
getPrepayment
-
setPrepayment
-
creditNote
creditNote- Parameters:
creditNote- CreditNote- Returns:
- Allocation
-
getCreditNote
-
setCreditNote
-
amount
the amount being applied to the invoice- Parameters:
amount- Double- Returns:
- Allocation
-
getAmount
-
setAmount
the amount being applied to the invoice- Parameters:
amount- Double
-
date
the date the allocation is applied YYYY-MM-DD.- Parameters:
date- String- Returns:
- Allocation
-
getDate
-
getDateAsDate
public org.threeten.bp.LocalDate getDateAsDate()the date the allocation is applied YYYY-MM-DD.- Returns:
- LocalDate
-
setDate
the date the allocation is applied YYYY-MM-DD.- Parameters:
date- String
-
setDate
public void setDate(org.threeten.bp.LocalDate date) the date the allocation is applied YYYY-MM-DD.- Parameters:
date- LocalDateTime
-
getIsDeleted
A flag that returns true when the allocation is succesfully deleted- Returns:
- isDeleted
-
statusAttributeString
A string to indicate if a invoice status- Parameters:
statusAttributeString- String- Returns:
- Allocation
-
getStatusAttributeString
A string to indicate if a invoice status- Returns:
- statusAttributeString
-
setStatusAttributeString
A string to indicate if a invoice status- Parameters:
statusAttributeString- String
-
validationErrors
Displays array of validation error messages from the API- Parameters:
validationErrors- List<ValidationError>- Returns:
- Allocation
-
addValidationErrorsItem
Displays array of validation error messages from the API- Parameters:
validationErrorsItem- ValidationError- Returns:
- Allocation
-
getValidationErrors
Displays array of validation error messages from the API- Returns:
- validationErrors
-
setValidationErrors
Displays array of validation error messages from the API- Parameters:
validationErrors- List<ValidationError>
-
equals
-
hashCode
-
toString
-