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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllocationaddValidationErrorsItem(ValidationError validationErrorsItem)Displays array of validation error messages from the APIAllocationamount(Double amount)the amount being applied to the invoiceAllocationcreditNote(CreditNote creditNote)creditNoteAllocationdate(String date)the date the allocation is applied YYYY-MM-DD.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()the date the allocation is applied YYYY-MM-DD.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)invoiceAllocationoverpayment(Overpayment overpayment)overpaymentAllocationprepayment(Prepayment prepayment)prepaymentvoidsetAmount(Double amount)the amount being applied to the invoicevoidsetCreditNote(CreditNote creditNote)creditNotevoidsetDate(String date)the 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 APIAllocationstatusAttributeString(String statusAttributeString)A string to indicate if a invoice statusStringtoString()AllocationvalidationErrors(List<ValidationError> validationErrors)Displays array of validation error messages from the API
-
-
-
Method Detail
-
invoice
public Allocation invoice(Invoice invoice)
invoice- Parameters:
invoice- Invoice- Returns:
- Allocation
-
getInvoice
public Invoice getInvoice()
Get invoice- Returns:
- invoice
-
setInvoice
public void setInvoice(Invoice invoice)
invoice- Parameters:
invoice- Invoice
-
overpayment
public Allocation overpayment(Overpayment overpayment)
overpayment- Parameters:
overpayment- Overpayment- Returns:
- Allocation
-
getOverpayment
public Overpayment getOverpayment()
Get overpayment- Returns:
- overpayment
-
setOverpayment
public void setOverpayment(Overpayment overpayment)
overpayment- Parameters:
overpayment- Overpayment
-
prepayment
public Allocation prepayment(Prepayment prepayment)
prepayment- Parameters:
prepayment- Prepayment- Returns:
- Allocation
-
getPrepayment
public Prepayment getPrepayment()
Get prepayment- Returns:
- prepayment
-
setPrepayment
public void setPrepayment(Prepayment prepayment)
prepayment- Parameters:
prepayment- Prepayment
-
creditNote
public Allocation creditNote(CreditNote creditNote)
creditNote- Parameters:
creditNote- CreditNote- Returns:
- Allocation
-
getCreditNote
public CreditNote getCreditNote()
Get creditNote- Returns:
- creditNote
-
setCreditNote
public void setCreditNote(CreditNote creditNote)
creditNote- Parameters:
creditNote- CreditNote
-
amount
public Allocation amount(Double amount)
the amount being applied to the invoice- Parameters:
amount- Double- Returns:
- Allocation
-
getAmount
public Double getAmount()
the amount being applied to the invoice- Returns:
- amount
-
setAmount
public void setAmount(Double amount)
the amount being applied to the invoice- Parameters:
amount- Double
-
date
public Allocation date(String date)
the date the allocation is applied YYYY-MM-DD.- Parameters:
date- String- Returns:
- Allocation
-
getDate
public String getDate()
the date the allocation is applied YYYY-MM-DD.- Returns:
- date
-
getDateAsDate
public org.threeten.bp.LocalDate getDateAsDate()
the date the allocation is applied YYYY-MM-DD.- Returns:
- LocalDate
-
setDate
public void setDate(String date)
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
-
statusAttributeString
public Allocation statusAttributeString(String statusAttributeString)
A string to indicate if a invoice status- Parameters:
statusAttributeString- String- Returns:
- Allocation
-
getStatusAttributeString
public String getStatusAttributeString()
A string to indicate if a invoice status- Returns:
- statusAttributeString
-
setStatusAttributeString
public void setStatusAttributeString(String statusAttributeString)
A string to indicate if a invoice status- Parameters:
statusAttributeString- String
-
validationErrors
public Allocation validationErrors(List<ValidationError> validationErrors)
Displays array of validation error messages from the API- Parameters:
validationErrors- List<ValidationError>- Returns:
- Allocation
-
addValidationErrorsItem
public Allocation addValidationErrorsItem(ValidationError validationErrorsItem)
Displays array of validation error messages from the API- Parameters:
validationErrorsItem- ValidationError- Returns:
- Allocation
-
getValidationErrors
public List<ValidationError> getValidationErrors()
Displays array of validation error messages from the API- Returns:
- validationErrors
-
setValidationErrors
public void setValidationErrors(List<ValidationError> validationErrors)
Displays array of validation error messages from the API- Parameters:
validationErrors- List<ValidationError>
-
-