public class Prepayment extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Prepayment.StatusEnum
See Prepayment Status Codes
|
static class |
Prepayment.TypeEnum
See Prepayment Types
|
| Constructor and Description |
|---|
Prepayment() |
| Modifier and Type | Method and Description |
|---|---|
Prepayment |
addAllocationsItem(Allocation allocationsItem) |
Prepayment |
addAttachmentsItem(Attachment attachmentsItem) |
Prepayment |
addLineItemsItem(LineItem lineItemsItem) |
Prepayment |
allocations(List<Allocation> allocations) |
Prepayment |
appliedAmount(Double appliedAmount) |
Prepayment |
attachments(List<Attachment> attachments) |
Prepayment |
contact(Contact contact) |
Prepayment |
currencyCode(CurrencyCode currencyCode) |
Prepayment |
currencyRate(Double currencyRate) |
Prepayment |
date(org.threeten.bp.LocalDate date) |
boolean |
equals(Object o) |
List<Allocation> |
getAllocations()
See Allocations
|
Double |
getAppliedAmount()
The amount of applied to an invoice
|
List<Attachment> |
getAttachments()
See Attachments
|
Contact |
getContact()
Get contact
|
CurrencyCode |
getCurrencyCode()
Get currencyCode
|
Double |
getCurrencyRate()
The currency rate for a multicurrency prepayment.
|
org.threeten.bp.LocalDate |
getDate()
The date the prepayment is created YYYY-MM-DD
|
Boolean |
getHasAttachments()
boolean to indicate if a prepayment has an attachment
|
LineAmountTypes |
getLineAmountTypes()
Get lineAmountTypes
|
List<LineItem> |
getLineItems()
See Prepayment Line Items
|
UUID |
getPrepaymentID()
Xero generated unique identifier
|
String |
getReference()
Returns Invoice number field.
|
Double |
getRemainingCredit()
The remaining credit balance on the prepayment
|
Prepayment.StatusEnum |
getStatus()
See Prepayment Status Codes
|
Double |
getSubTotal()
The subtotal of the prepayment excluding taxes
|
Double |
getTotal()
The total of the prepayment(subtotal + total tax)
|
Double |
getTotalTax()
The total tax on the prepayment
|
Prepayment.TypeEnum |
getType()
See Prepayment Types
|
org.threeten.bp.OffsetDateTime |
getUpdatedDateUTC()
UTC timestamp of last update to the prepayment
|
int |
hashCode() |
Prepayment |
lineAmountTypes(LineAmountTypes lineAmountTypes) |
Prepayment |
lineItems(List<LineItem> lineItems) |
Prepayment |
prepaymentID(UUID prepaymentID) |
Prepayment |
remainingCredit(Double remainingCredit) |
void |
setAllocations(List<Allocation> allocations) |
void |
setAppliedAmount(Double appliedAmount) |
void |
setAttachments(List<Attachment> attachments) |
void |
setContact(Contact contact) |
void |
setCurrencyCode(CurrencyCode currencyCode) |
void |
setCurrencyRate(Double currencyRate) |
void |
setDate(org.threeten.bp.LocalDate date) |
void |
setLineAmountTypes(LineAmountTypes lineAmountTypes) |
void |
setLineItems(List<LineItem> lineItems) |
void |
setPrepaymentID(UUID prepaymentID) |
void |
setRemainingCredit(Double remainingCredit) |
void |
setStatus(Prepayment.StatusEnum status) |
void |
setSubTotal(Double subTotal) |
void |
setTotal(Double total) |
void |
setTotalTax(Double totalTax) |
void |
setType(Prepayment.TypeEnum type) |
Prepayment |
status(Prepayment.StatusEnum status) |
Prepayment |
subTotal(Double subTotal) |
String |
toString() |
Prepayment |
total(Double total) |
Prepayment |
totalTax(Double totalTax) |
Prepayment |
type(Prepayment.TypeEnum type) |
public Prepayment type(Prepayment.TypeEnum type)
public Prepayment.TypeEnum getType()
public void setType(Prepayment.TypeEnum type)
public Prepayment contact(Contact contact)
public Contact getContact()
public void setContact(Contact contact)
public Prepayment date(org.threeten.bp.LocalDate date)
public org.threeten.bp.LocalDate getDate()
public void setDate(org.threeten.bp.LocalDate date)
public Prepayment status(Prepayment.StatusEnum status)
public Prepayment.StatusEnum getStatus()
public void setStatus(Prepayment.StatusEnum status)
public Prepayment lineAmountTypes(LineAmountTypes lineAmountTypes)
public LineAmountTypes getLineAmountTypes()
public void setLineAmountTypes(LineAmountTypes lineAmountTypes)
public Prepayment lineItems(List<LineItem> lineItems)
public Prepayment addLineItemsItem(LineItem lineItemsItem)
public Prepayment subTotal(Double subTotal)
public Double getSubTotal()
public void setSubTotal(Double subTotal)
public Prepayment totalTax(Double totalTax)
public Double getTotalTax()
public void setTotalTax(Double totalTax)
public Prepayment total(Double total)
public Double getTotal()
public void setTotal(Double total)
public String getReference()
public org.threeten.bp.OffsetDateTime getUpdatedDateUTC()
public Prepayment currencyCode(CurrencyCode currencyCode)
public CurrencyCode getCurrencyCode()
public void setCurrencyCode(CurrencyCode currencyCode)
public Prepayment prepaymentID(UUID prepaymentID)
public UUID getPrepaymentID()
public void setPrepaymentID(UUID prepaymentID)
public Prepayment currencyRate(Double currencyRate)
public Double getCurrencyRate()
public void setCurrencyRate(Double currencyRate)
public Prepayment remainingCredit(Double remainingCredit)
public Double getRemainingCredit()
public void setRemainingCredit(Double remainingCredit)
public Prepayment allocations(List<Allocation> allocations)
public Prepayment addAllocationsItem(Allocation allocationsItem)
public List<Allocation> getAllocations()
public void setAllocations(List<Allocation> allocations)
public Prepayment appliedAmount(Double appliedAmount)
public Double getAppliedAmount()
public void setAppliedAmount(Double appliedAmount)
public Boolean getHasAttachments()
public Prepayment attachments(List<Attachment> attachments)
public Prepayment addAttachmentsItem(Attachment attachmentsItem)
public List<Attachment> getAttachments()
public void setAttachments(List<Attachment> attachments)
Copyright © 2020. All rights reserved.