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 |
addLineItemsItem(LineItem lineItemsItem) |
Prepayment |
allocations(List<Allocation> allocations) |
Prepayment |
contact(Contact contact) |
Prepayment |
currencyCode(CurrencyCode currencyCode) |
Prepayment |
currencyRate(Float currencyRate) |
Prepayment |
date(org.threeten.bp.LocalDate date) |
boolean |
equals(Object o) |
List<Allocation> |
getAllocations()
See Allocations
|
Contact |
getContact()
Get contact
|
CurrencyCode |
getCurrencyCode()
Get currencyCode
|
Float |
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
|
Float |
getRemainingCredit()
The remaining credit balance on the prepayment
|
Prepayment.StatusEnum |
getStatus()
See Prepayment Status Codes
|
Float |
getSubTotal()
The subtotal of the prepayment excluding taxes
|
Float |
getTotal()
The total of the prepayment(subtotal + total tax)
|
Float |
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
|
Prepayment |
hasAttachments(Boolean hasAttachments) |
int |
hashCode() |
Prepayment |
lineAmountTypes(LineAmountTypes lineAmountTypes) |
Prepayment |
lineItems(List<LineItem> lineItems) |
Prepayment |
prepaymentID(UUID prepaymentID) |
Prepayment |
remainingCredit(Float remainingCredit) |
void |
setAllocations(List<Allocation> allocations) |
void |
setContact(Contact contact) |
void |
setCurrencyCode(CurrencyCode currencyCode) |
void |
setCurrencyRate(Float currencyRate) |
void |
setDate(org.threeten.bp.LocalDate date) |
void |
setHasAttachments(Boolean hasAttachments) |
void |
setLineAmountTypes(LineAmountTypes lineAmountTypes) |
void |
setLineItems(List<LineItem> lineItems) |
void |
setPrepaymentID(UUID prepaymentID) |
void |
setRemainingCredit(Float remainingCredit) |
void |
setStatus(Prepayment.StatusEnum status) |
void |
setSubTotal(Float subTotal) |
void |
setTotal(Float total) |
void |
setTotalTax(Float totalTax) |
void |
setType(Prepayment.TypeEnum type) |
void |
setUpdatedDateUTC(org.threeten.bp.OffsetDateTime updatedDateUTC) |
Prepayment |
status(Prepayment.StatusEnum status) |
Prepayment |
subTotal(Float subTotal) |
String |
toString() |
Prepayment |
total(Float total) |
Prepayment |
totalTax(Float totalTax) |
Prepayment |
type(Prepayment.TypeEnum type) |
Prepayment |
updatedDateUTC(org.threeten.bp.OffsetDateTime updatedDateUTC) |
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(Float subTotal)
public Float getSubTotal()
public void setSubTotal(Float subTotal)
public Prepayment totalTax(Float totalTax)
public Float getTotalTax()
public void setTotalTax(Float totalTax)
public Prepayment total(Float total)
public Float getTotal()
public void setTotal(Float total)
public Prepayment updatedDateUTC(org.threeten.bp.OffsetDateTime updatedDateUTC)
public org.threeten.bp.OffsetDateTime getUpdatedDateUTC()
public void setUpdatedDateUTC(org.threeten.bp.OffsetDateTime updatedDateUTC)
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(Float currencyRate)
public Float getCurrencyRate()
public void setCurrencyRate(Float currencyRate)
public Prepayment remainingCredit(Float remainingCredit)
public Float getRemainingCredit()
public void setRemainingCredit(Float remainingCredit)
public Prepayment allocations(List<Allocation> allocations)
public Prepayment addAllocationsItem(Allocation allocationsItem)
public List<Allocation> getAllocations()
public void setAllocations(List<Allocation> allocations)
public Prepayment hasAttachments(Boolean hasAttachments)
public Boolean getHasAttachments()
public void setHasAttachments(Boolean hasAttachments)
Copyright © 2018. All rights reserved.