Package com.xero.models.accounting
Class Prepayment
java.lang.Object
com.xero.models.accounting.Prepayment
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSee Prepayment Status Codesstatic enumSee Prepayment Types -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllocationsItem(Allocation allocationsItem) See AllocationsaddAttachmentsItem(Attachment attachmentsItem) See AttachmentsaddLineItemsItem(LineItem lineItemsItem) See Prepayment Line ItemsaddPaymentsItem(Payment paymentsItem) See Paymentsallocations(List<Allocation> allocations) See AllocationsappliedAmount(Double appliedAmount) The amount of applied to an invoiceattachments(List<Attachment> attachments) See AttachmentscontactcurrencyCode(CurrencyCode currencyCode) currencyCodecurrencyRate(Double currencyRate) The currency rate for a multicurrency prepayment.The date the prepayment is created YYYY-MM-DDbooleanSee AllocationsThe amount of applied to an invoiceSee AttachmentsGet contactGet currencyCodeThe currency rate for a multicurrency prepayment.getDate()The date the prepayment is created YYYY-MM-DDorg.threeten.bp.LocalDateThe date the prepayment is created YYYY-MM-DDboolean to indicate if a prepayment has an attachmentGet lineAmountTypesSee Prepayment Line ItemsSee PaymentsXero generated unique identifierReturns Invoice number field.The remaining credit balance on the prepaymentSee Prepayment Status CodesThe subtotal of the prepayment excluding taxesgetTotal()The total of the prepayment(subtotal + total tax)The total tax on the prepaymentgetType()See Prepayment TypesUTC timestamp of last update to the prepaymentorg.threeten.bp.OffsetDateTimeUTC timestamp of last update to the prepaymentinthashCode()lineAmountTypes(LineAmountTypes lineAmountTypes) lineAmountTypesSee Prepayment Line ItemsSee PaymentsprepaymentID(UUID prepaymentID) Xero generated unique identifierremainingCredit(Double remainingCredit) The remaining credit balance on the prepaymentvoidsetAllocations(List<Allocation> allocations) See AllocationsvoidsetAppliedAmount(Double appliedAmount) The amount of applied to an invoicevoidsetAttachments(List<Attachment> attachments) See AttachmentsvoidsetContact(Contact contact) contactvoidsetCurrencyCode(CurrencyCode currencyCode) currencyCodevoidsetCurrencyRate(Double currencyRate) The currency rate for a multicurrency prepayment.voidThe date the prepayment is created YYYY-MM-DDvoidsetDate(org.threeten.bp.LocalDate date) The date the prepayment is created YYYY-MM-DDvoidsetLineAmountTypes(LineAmountTypes lineAmountTypes) lineAmountTypesvoidsetLineItems(List<LineItem> lineItems) See Prepayment Line ItemsvoidsetPayments(List<Payment> payments) See PaymentsvoidsetPrepaymentID(UUID prepaymentID) Xero generated unique identifiervoidsetRemainingCredit(Double remainingCredit) The remaining credit balance on the prepaymentvoidsetStatus(Prepayment.StatusEnum status) See Prepayment Status CodesvoidsetSubTotal(Double subTotal) The subtotal of the prepayment excluding taxesvoidThe total of the prepayment(subtotal + total tax)voidsetTotalTax(Double totalTax) The total tax on the prepaymentvoidsetType(Prepayment.TypeEnum type) See Prepayment Typesstatus(Prepayment.StatusEnum status) See Prepayment Status CodesThe subtotal of the prepayment excluding taxestoString()The total of the prepayment(subtotal + total tax)The total tax on the prepaymenttype(Prepayment.TypeEnum type) See Prepayment Types
-
Constructor Details
-
Prepayment
public Prepayment()
-
-
Method Details
-
type
See Prepayment Types- Parameters:
type- TypeEnum- Returns:
- Prepayment
-
getType
-
setType
-
contact
contact- Parameters:
contact- Contact- Returns:
- Prepayment
-
getContact
-
setContact
-
date
The date the prepayment is created YYYY-MM-DD- Parameters:
date- String- Returns:
- Prepayment
-
getDate
-
getDateAsDate
public org.threeten.bp.LocalDate getDateAsDate()The date the prepayment is created YYYY-MM-DD- Returns:
- LocalDate
-
setDate
The date the prepayment is created YYYY-MM-DD- Parameters:
date- String
-
setDate
public void setDate(org.threeten.bp.LocalDate date) The date the prepayment is created YYYY-MM-DD- Parameters:
date- LocalDateTime
-
status
See Prepayment Status Codes- Parameters:
status- StatusEnum- Returns:
- Prepayment
-
getStatus
-
setStatus
See Prepayment Status Codes- Parameters:
status- StatusEnum
-
lineAmountTypes
lineAmountTypes- Parameters:
lineAmountTypes- LineAmountTypes- Returns:
- Prepayment
-
getLineAmountTypes
-
setLineAmountTypes
lineAmountTypes- Parameters:
lineAmountTypes- LineAmountTypes
-
lineItems
See Prepayment Line Items- Parameters:
lineItems- List<LineItem>- Returns:
- Prepayment
-
addLineItemsItem
See Prepayment Line Items- Parameters:
lineItemsItem- LineItem- Returns:
- Prepayment
-
getLineItems
-
setLineItems
-
subTotal
The subtotal of the prepayment excluding taxes- Parameters:
subTotal- Double- Returns:
- Prepayment
-
getSubTotal
-
setSubTotal
The subtotal of the prepayment excluding taxes- Parameters:
subTotal- Double
-
totalTax
The total tax on the prepayment- Parameters:
totalTax- Double- Returns:
- Prepayment
-
getTotalTax
-
setTotalTax
The total tax on the prepayment- Parameters:
totalTax- Double
-
total
The total of the prepayment(subtotal + total tax)- Parameters:
total- Double- Returns:
- Prepayment
-
getTotal
-
setTotal
The total of the prepayment(subtotal + total tax)- Parameters:
total- Double
-
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()UTC timestamp of last update to the prepayment- Returns:
- OffsetDateTime
-
currencyCode
currencyCode- Parameters:
currencyCode- CurrencyCode- Returns:
- Prepayment
-
getCurrencyCode
-
setCurrencyCode
currencyCode- Parameters:
currencyCode- CurrencyCode
-
prepaymentID
Xero generated unique identifier- Parameters:
prepaymentID- UUID- Returns:
- Prepayment
-
getPrepaymentID
-
setPrepaymentID
Xero generated unique identifier- Parameters:
prepaymentID- UUID
-
currencyRate
The currency rate for a multicurrency prepayment. If no rate is specified, the XE.com day rate is used- Parameters:
currencyRate- Double- Returns:
- Prepayment
-
getCurrencyRate
The currency rate for a multicurrency prepayment. If no rate is specified, the XE.com day rate is used- Returns:
- currencyRate
-
setCurrencyRate
The currency rate for a multicurrency prepayment. If no rate is specified, the XE.com day rate is used- Parameters:
currencyRate- Double
-
remainingCredit
The remaining credit balance on the prepayment- Parameters:
remainingCredit- Double- Returns:
- Prepayment
-
getRemainingCredit
The remaining credit balance on the prepayment- Returns:
- remainingCredit
-
setRemainingCredit
The remaining credit balance on the prepayment- Parameters:
remainingCredit- Double
-
allocations
See Allocations- Parameters:
allocations- List<Allocation>- Returns:
- Prepayment
-
addAllocationsItem
See Allocations- Parameters:
allocationsItem- Allocation- Returns:
- Prepayment
-
getAllocations
-
setAllocations
See Allocations- Parameters:
allocations- List<Allocation>
-
payments
See Payments- Parameters:
payments- List<Payment>- Returns:
- Prepayment
-
addPaymentsItem
See Payments- Parameters:
paymentsItem- Payment- Returns:
- Prepayment
-
getPayments
-
setPayments
-
appliedAmount
The amount of applied to an invoice- Parameters:
appliedAmount- Double- Returns:
- Prepayment
-
getAppliedAmount
-
setAppliedAmount
The amount of applied to an invoice- Parameters:
appliedAmount- Double
-
getHasAttachments
boolean to indicate if a prepayment has an attachment- Returns:
- hasAttachments
-
attachments
See Attachments- Parameters:
attachments- List<Attachment>- Returns:
- Prepayment
-
addAttachmentsItem
See Attachments- Parameters:
attachmentsItem- Attachment- Returns:
- Prepayment
-
getAttachments
-
setAttachments
See Attachments- Parameters:
attachments- List<Attachment>
-
equals
-
hashCode
-
toString
-