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(Object contact) |
Prepayment |
currencyCode(String currencyCode) |
Prepayment |
currencyRate(Float currencyRate) |
Prepayment |
date(String date) |
boolean |
equals(Object o) |
List<Allocation> |
getAllocations()
See Allocations
|
Object |
getContact()
Get contact
|
String |
getCurrencyCode()
Currency used for the prepayment
|
Float |
getCurrencyRate()
The currency rate for a multicurrency prepayment.
|
String |
getDate()
The date the prepayment is created YYYY-MM-DD
|
Boolean |
getHasAttachments()
boolean to indicate if a prepayment has an attachment
|
String |
getLineAmountTypes()
See Prepayment Line Amount Types
|
List<LineItem> |
getLineItems()
See Prepayment Line Items
|
UUID |
getPrepaymentID()
Xero generated unique identifier
|
String |
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
|
String |
getUpdatedDateUTC()
UTC timestamp of last update to the prepayment
|
Prepayment |
hasAttachments(Boolean hasAttachments) |
int |
hashCode() |
Prepayment |
lineAmountTypes(String lineAmountTypes) |
Prepayment |
lineItems(List<LineItem> lineItems) |
Prepayment |
prepaymentID(UUID prepaymentID) |
Prepayment |
remainingCredit(String remainingCredit) |
void |
setAllocations(List<Allocation> allocations) |
void |
setContact(Object contact) |
void |
setCurrencyCode(String currencyCode) |
void |
setCurrencyRate(Float currencyRate) |
void |
setDate(String date) |
void |
setHasAttachments(Boolean hasAttachments) |
void |
setLineAmountTypes(String lineAmountTypes) |
void |
setLineItems(List<LineItem> lineItems) |
void |
setPrepaymentID(UUID prepaymentID) |
void |
setRemainingCredit(String 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(String 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(String updatedDateUTC) |
public Prepayment type(Prepayment.TypeEnum type)
public Prepayment.TypeEnum getType()
public void setType(Prepayment.TypeEnum type)
public Prepayment contact(Object contact)
public Object getContact()
public void setContact(Object contact)
public Prepayment date(String date)
public String getDate()
public void setDate(String date)
public Prepayment status(Prepayment.StatusEnum status)
public Prepayment.StatusEnum getStatus()
public void setStatus(Prepayment.StatusEnum status)
public Prepayment lineAmountTypes(String lineAmountTypes)
public String getLineAmountTypes()
public void setLineAmountTypes(String 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(String updatedDateUTC)
public String getUpdatedDateUTC()
public void setUpdatedDateUTC(String updatedDateUTC)
public Prepayment currencyCode(String currencyCode)
public String getCurrencyCode()
public void setCurrencyCode(String 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(String remainingCredit)
public String getRemainingCredit()
public void setRemainingCredit(String 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.