Package com.xero.models.accounting
Class Prepayment
java.lang.Object
com.xero.models.accounting.Prepayment
public class Prepayment extends Object
Prepayment
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPrepayment.StatusEnumSee Prepayment Status Codesstatic classPrepayment.TypeEnumSee Prepayment Types -
Constructor Summary
Constructors Constructor Description Prepayment() -
Method Summary
Modifier and Type Method Description PrepaymentaddAllocationsItem(Allocation allocationsItem)PrepaymentaddAttachmentsItem(Attachment attachmentsItem)PrepaymentaddLineItemsItem(LineItem lineItemsItem)Prepaymentallocations(List<Allocation> allocations)PrepaymentappliedAmount(Double appliedAmount)Prepaymentattachments(List<Attachment> attachments)Prepaymentcontact(Contact contact)PrepaymentcurrencyCode(CurrencyCode currencyCode)PrepaymentcurrencyRate(Double currencyRate)Prepaymentdate(String date)booleanequals(Object o)List<Allocation>getAllocations()See AllocationsDoublegetAppliedAmount()The amount of applied to an invoiceList<Attachment>getAttachments()See AttachmentsContactgetContact()Get contactCurrencyCodegetCurrencyCode()Get currencyCodeDoublegetCurrencyRate()The currency rate for a multicurrency prepayment.StringgetDate()The date the prepayment is created YYYY-MM-DDorg.threeten.bp.LocalDategetDateAsDate()BooleangetHasAttachments()boolean to indicate if a prepayment has an attachmentLineAmountTypesgetLineAmountTypes()Get lineAmountTypesList<LineItem>getLineItems()See Prepayment Line ItemsUUIDgetPrepaymentID()Xero generated unique identifierStringgetReference()Returns Invoice number field.DoublegetRemainingCredit()The remaining credit balance on the prepaymentPrepayment.StatusEnumgetStatus()See Prepayment Status CodesDoublegetSubTotal()The subtotal of the prepayment excluding taxesDoublegetTotal()The total of the prepayment(subtotal + total tax)DoublegetTotalTax()The total tax on the prepaymentPrepayment.TypeEnumgetType()See Prepayment TypesStringgetUpdatedDateUTC()UTC timestamp of last update to the prepaymentorg.threeten.bp.OffsetDateTimegetUpdatedDateUTCAsDate()inthashCode()PrepaymentlineAmountTypes(LineAmountTypes lineAmountTypes)PrepaymentlineItems(List<LineItem> lineItems)PrepaymentprepaymentID(UUID prepaymentID)PrepaymentremainingCredit(Double remainingCredit)voidsetAllocations(List<Allocation> allocations)voidsetAppliedAmount(Double appliedAmount)voidsetAttachments(List<Attachment> attachments)voidsetContact(Contact contact)voidsetCurrencyCode(CurrencyCode currencyCode)voidsetCurrencyRate(Double currencyRate)voidsetDate(String date)voidsetDate(org.threeten.bp.LocalDate date)voidsetLineAmountTypes(LineAmountTypes lineAmountTypes)voidsetLineItems(List<LineItem> lineItems)voidsetPrepaymentID(UUID prepaymentID)voidsetRemainingCredit(Double remainingCredit)voidsetStatus(Prepayment.StatusEnum status)voidsetSubTotal(Double subTotal)voidsetTotal(Double total)voidsetTotalTax(Double totalTax)voidsetType(Prepayment.TypeEnum type)Prepaymentstatus(Prepayment.StatusEnum status)PrepaymentsubTotal(Double subTotal)StringtoString()Prepaymenttotal(Double total)PrepaymenttotalTax(Double totalTax)Prepaymenttype(Prepayment.TypeEnum type)
-
Constructor Details
-
Prepayment
public Prepayment()
-
-
Method Details
-
type
-
getType
See Prepayment Types- Returns:
- type
-
setType
-
contact
-
getContact
Get contact- Returns:
- contact
-
setContact
-
date
-
getDate
The date the prepayment is created YYYY-MM-DD- Returns:
- date
-
getDateAsDate
public org.threeten.bp.LocalDate getDateAsDate() -
setDate
-
setDate
public void setDate(org.threeten.bp.LocalDate date) -
status
-
getStatus
See Prepayment Status Codes- Returns:
- status
-
setStatus
-
lineAmountTypes
-
getLineAmountTypes
Get lineAmountTypes- Returns:
- lineAmountTypes
-
setLineAmountTypes
-
lineItems
-
addLineItemsItem
-
getLineItems
See Prepayment Line Items- Returns:
- lineItems
-
setLineItems
-
subTotal
-
getSubTotal
The subtotal of the prepayment excluding taxes- Returns:
- subTotal
-
setSubTotal
-
totalTax
-
getTotalTax
The total tax on the prepayment- Returns:
- totalTax
-
setTotalTax
-
total
-
getTotal
The total of the prepayment(subtotal + total tax)- Returns:
- total
-
setTotal
-
getReference
Returns Invoice number field. Reference field isn't available.- Returns:
- reference
-
getUpdatedDateUTC
UTC timestamp of last update to the prepayment- Returns:
- updatedDateUTC
-
getUpdatedDateUTCAsDate
public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate() -
currencyCode
-
getCurrencyCode
Get currencyCode- Returns:
- currencyCode
-
setCurrencyCode
-
prepaymentID
-
getPrepaymentID
Xero generated unique identifier- Returns:
- prepaymentID
-
setPrepaymentID
-
currencyRate
-
getCurrencyRate
The currency rate for a multicurrency prepayment. If no rate is specified, the XE.com day rate is used- Returns:
- currencyRate
-
setCurrencyRate
-
remainingCredit
-
getRemainingCredit
The remaining credit balance on the prepayment- Returns:
- remainingCredit
-
setRemainingCredit
-
allocations
-
addAllocationsItem
-
getAllocations
See Allocations- Returns:
- allocations
-
setAllocations
-
appliedAmount
-
getAppliedAmount
The amount of applied to an invoice- Returns:
- appliedAmount
-
setAppliedAmount
-
getHasAttachments
boolean to indicate if a prepayment has an attachment- Returns:
- hasAttachments
-
attachments
-
addAttachmentsItem
-
getAttachments
See Attachments- Returns:
- attachments
-
setAttachments
-
equals
-
hashCode
public int hashCode() -
toString
-