Package com.xero.models.accounting
Class Overpayment
- java.lang.Object
-
- com.xero.models.accounting.Overpayment
-
public class Overpayment extends Object
Overpayment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOverpayment.StatusEnumSee Overpayment Status Codesstatic classOverpayment.TypeEnumSee Overpayment Types
-
Constructor Summary
Constructors Constructor Description Overpayment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OverpaymentaddAllocationsItem(Allocation allocationsItem)See AllocationsOverpaymentaddAttachmentsItem(Attachment attachmentsItem)See AttachmentsOverpaymentaddLineItemsItem(LineItem lineItemsItem)See Overpayment Line ItemsOverpaymentaddPaymentsItem(Payment paymentsItem)See PaymentsOverpaymentallocations(List<Allocation> allocations)See AllocationsOverpaymentappliedAmount(Double appliedAmount)The amount of applied to an invoiceOverpaymentattachments(List<Attachment> attachments)See AttachmentsOverpaymentcontact(Contact contact)contactOverpaymentcurrencyCode(CurrencyCode currencyCode)currencyCodeOverpaymentcurrencyRate(Double currencyRate)The currency rate for a multicurrency overpayment.Overpaymentdate(String date)The date the overpayment is created YYYY-MM-DDbooleanequals(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 overpayment.StringgetDate()The date the overpayment is created YYYY-MM-DDorg.threeten.bp.LocalDategetDateAsDate()The date the overpayment is created YYYY-MM-DDBooleangetHasAttachments()boolean to indicate if a overpayment has an attachmentLineAmountTypesgetLineAmountTypes()Get lineAmountTypesList<LineItem>getLineItems()See Overpayment Line ItemsUUIDgetOverpaymentID()Xero generated unique identifierList<Payment>getPayments()See PaymentsDoublegetRemainingCredit()The remaining credit balance on the overpaymentOverpayment.StatusEnumgetStatus()See Overpayment Status CodesDoublegetSubTotal()The subtotal of the overpayment excluding taxesDoublegetTotal()The total of the overpayment (subtotal + total tax)DoublegetTotalTax()The total tax on the overpaymentOverpayment.TypeEnumgetType()See Overpayment TypesStringgetUpdatedDateUTC()UTC timestamp of last update to the overpaymentorg.threeten.bp.OffsetDateTimegetUpdatedDateUTCAsDate()UTC timestamp of last update to the overpaymentinthashCode()OverpaymentlineAmountTypes(LineAmountTypes lineAmountTypes)lineAmountTypesOverpaymentlineItems(List<LineItem> lineItems)See Overpayment Line ItemsOverpaymentoverpaymentID(UUID overpaymentID)Xero generated unique identifierOverpaymentpayments(List<Payment> payments)See PaymentsOverpaymentremainingCredit(Double remainingCredit)The remaining credit balance on the overpaymentvoidsetAllocations(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 overpayment.voidsetDate(String date)The date the overpayment is created YYYY-MM-DDvoidsetDate(org.threeten.bp.LocalDate date)The date the overpayment is created YYYY-MM-DDvoidsetLineAmountTypes(LineAmountTypes lineAmountTypes)lineAmountTypesvoidsetLineItems(List<LineItem> lineItems)See Overpayment Line ItemsvoidsetOverpaymentID(UUID overpaymentID)Xero generated unique identifiervoidsetPayments(List<Payment> payments)See PaymentsvoidsetRemainingCredit(Double remainingCredit)The remaining credit balance on the overpaymentvoidsetStatus(Overpayment.StatusEnum status)See Overpayment Status CodesvoidsetSubTotal(Double subTotal)The subtotal of the overpayment excluding taxesvoidsetTotal(Double total)The total of the overpayment (subtotal + total tax)voidsetTotalTax(Double totalTax)The total tax on the overpaymentvoidsetType(Overpayment.TypeEnum type)See Overpayment TypesOverpaymentstatus(Overpayment.StatusEnum status)See Overpayment Status CodesOverpaymentsubTotal(Double subTotal)The subtotal of the overpayment excluding taxesStringtoString()Overpaymenttotal(Double total)The total of the overpayment (subtotal + total tax)OverpaymenttotalTax(Double totalTax)The total tax on the overpaymentOverpaymenttype(Overpayment.TypeEnum type)See Overpayment Types
-
-
-
Method Detail
-
type
public Overpayment type(Overpayment.TypeEnum type)
See Overpayment Types- Parameters:
type- TypeEnum- Returns:
- Overpayment
-
getType
public Overpayment.TypeEnum getType()
See Overpayment Types- Returns:
- type
-
setType
public void setType(Overpayment.TypeEnum type)
See Overpayment Types- Parameters:
type- TypeEnum
-
contact
public Overpayment contact(Contact contact)
contact- Parameters:
contact- Contact- Returns:
- Overpayment
-
getContact
public Contact getContact()
Get contact- Returns:
- contact
-
setContact
public void setContact(Contact contact)
contact- Parameters:
contact- Contact
-
date
public Overpayment date(String date)
The date the overpayment is created YYYY-MM-DD- Parameters:
date- String- Returns:
- Overpayment
-
getDate
public String getDate()
The date the overpayment is created YYYY-MM-DD- Returns:
- date
-
getDateAsDate
public org.threeten.bp.LocalDate getDateAsDate()
The date the overpayment is created YYYY-MM-DD- Returns:
- LocalDate
-
setDate
public void setDate(String date)
The date the overpayment is created YYYY-MM-DD- Parameters:
date- String
-
setDate
public void setDate(org.threeten.bp.LocalDate date)
The date the overpayment is created YYYY-MM-DD- Parameters:
date- LocalDateTime
-
status
public Overpayment status(Overpayment.StatusEnum status)
See Overpayment Status Codes- Parameters:
status- StatusEnum- Returns:
- Overpayment
-
getStatus
public Overpayment.StatusEnum getStatus()
See Overpayment Status Codes- Returns:
- status
-
setStatus
public void setStatus(Overpayment.StatusEnum status)
See Overpayment Status Codes- Parameters:
status- StatusEnum
-
lineAmountTypes
public Overpayment lineAmountTypes(LineAmountTypes lineAmountTypes)
lineAmountTypes- Parameters:
lineAmountTypes- LineAmountTypes- Returns:
- Overpayment
-
getLineAmountTypes
public LineAmountTypes getLineAmountTypes()
Get lineAmountTypes- Returns:
- lineAmountTypes
-
setLineAmountTypes
public void setLineAmountTypes(LineAmountTypes lineAmountTypes)
lineAmountTypes- Parameters:
lineAmountTypes- LineAmountTypes
-
lineItems
public Overpayment lineItems(List<LineItem> lineItems)
See Overpayment Line Items- Parameters:
lineItems- List<LineItem>- Returns:
- Overpayment
-
addLineItemsItem
public Overpayment addLineItemsItem(LineItem lineItemsItem)
See Overpayment Line Items- Parameters:
lineItemsItem- LineItem- Returns:
- Overpayment
-
setLineItems
public void setLineItems(List<LineItem> lineItems)
See Overpayment Line Items- Parameters:
lineItems- List<LineItem>
-
subTotal
public Overpayment subTotal(Double subTotal)
The subtotal of the overpayment excluding taxes- Parameters:
subTotal- Double- Returns:
- Overpayment
-
getSubTotal
public Double getSubTotal()
The subtotal of the overpayment excluding taxes- Returns:
- subTotal
-
setSubTotal
public void setSubTotal(Double subTotal)
The subtotal of the overpayment excluding taxes- Parameters:
subTotal- Double
-
totalTax
public Overpayment totalTax(Double totalTax)
The total tax on the overpayment- Parameters:
totalTax- Double- Returns:
- Overpayment
-
getTotalTax
public Double getTotalTax()
The total tax on the overpayment- Returns:
- totalTax
-
setTotalTax
public void setTotalTax(Double totalTax)
The total tax on the overpayment- Parameters:
totalTax- Double
-
total
public Overpayment total(Double total)
The total of the overpayment (subtotal + total tax)- Parameters:
total- Double- Returns:
- Overpayment
-
getTotal
public Double getTotal()
The total of the overpayment (subtotal + total tax)- Returns:
- total
-
setTotal
public void setTotal(Double total)
The total of the overpayment (subtotal + total tax)- Parameters:
total- Double
-
getUpdatedDateUTC
public String getUpdatedDateUTC()
UTC timestamp of last update to the overpayment- Returns:
- updatedDateUTC
-
getUpdatedDateUTCAsDate
public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate()
UTC timestamp of last update to the overpayment- Returns:
- OffsetDateTime
-
currencyCode
public Overpayment currencyCode(CurrencyCode currencyCode)
currencyCode- Parameters:
currencyCode- CurrencyCode- Returns:
- Overpayment
-
getCurrencyCode
public CurrencyCode getCurrencyCode()
Get currencyCode- Returns:
- currencyCode
-
setCurrencyCode
public void setCurrencyCode(CurrencyCode currencyCode)
currencyCode- Parameters:
currencyCode- CurrencyCode
-
overpaymentID
public Overpayment overpaymentID(UUID overpaymentID)
Xero generated unique identifier- Parameters:
overpaymentID- UUID- Returns:
- Overpayment
-
getOverpaymentID
public UUID getOverpaymentID()
Xero generated unique identifier- Returns:
- overpaymentID
-
setOverpaymentID
public void setOverpaymentID(UUID overpaymentID)
Xero generated unique identifier- Parameters:
overpaymentID- UUID
-
currencyRate
public Overpayment currencyRate(Double currencyRate)
The currency rate for a multicurrency overpayment. If no rate is specified, the XE.com day rate is used- Parameters:
currencyRate- Double- Returns:
- Overpayment
-
getCurrencyRate
public Double getCurrencyRate()
The currency rate for a multicurrency overpayment. If no rate is specified, the XE.com day rate is used- Returns:
- currencyRate
-
setCurrencyRate
public void setCurrencyRate(Double currencyRate)
The currency rate for a multicurrency overpayment. If no rate is specified, the XE.com day rate is used- Parameters:
currencyRate- Double
-
remainingCredit
public Overpayment remainingCredit(Double remainingCredit)
The remaining credit balance on the overpayment- Parameters:
remainingCredit- Double- Returns:
- Overpayment
-
getRemainingCredit
public Double getRemainingCredit()
The remaining credit balance on the overpayment- Returns:
- remainingCredit
-
setRemainingCredit
public void setRemainingCredit(Double remainingCredit)
The remaining credit balance on the overpayment- Parameters:
remainingCredit- Double
-
allocations
public Overpayment allocations(List<Allocation> allocations)
See Allocations- Parameters:
allocations- List<Allocation>- Returns:
- Overpayment
-
addAllocationsItem
public Overpayment addAllocationsItem(Allocation allocationsItem)
See Allocations- Parameters:
allocationsItem- Allocation- Returns:
- Overpayment
-
getAllocations
public List<Allocation> getAllocations()
See Allocations- Returns:
- allocations
-
setAllocations
public void setAllocations(List<Allocation> allocations)
See Allocations- Parameters:
allocations- List<Allocation>
-
appliedAmount
public Overpayment appliedAmount(Double appliedAmount)
The amount of applied to an invoice- Parameters:
appliedAmount- Double- Returns:
- Overpayment
-
getAppliedAmount
public Double getAppliedAmount()
The amount of applied to an invoice- Returns:
- appliedAmount
-
setAppliedAmount
public void setAppliedAmount(Double appliedAmount)
The amount of applied to an invoice- Parameters:
appliedAmount- Double
-
payments
public Overpayment payments(List<Payment> payments)
See Payments- Parameters:
payments- List<Payment>- Returns:
- Overpayment
-
addPaymentsItem
public Overpayment addPaymentsItem(Payment paymentsItem)
See Payments- Parameters:
paymentsItem- Payment- Returns:
- Overpayment
-
setPayments
public void setPayments(List<Payment> payments)
See Payments- Parameters:
payments- List<Payment>
-
getHasAttachments
public Boolean getHasAttachments()
boolean to indicate if a overpayment has an attachment- Returns:
- hasAttachments
-
attachments
public Overpayment attachments(List<Attachment> attachments)
See Attachments- Parameters:
attachments- List<Attachment>- Returns:
- Overpayment
-
addAttachmentsItem
public Overpayment addAttachmentsItem(Attachment attachmentsItem)
See Attachments- Parameters:
attachmentsItem- Attachment- Returns:
- Overpayment
-
getAttachments
public List<Attachment> getAttachments()
See Attachments- Returns:
- attachments
-
setAttachments
public void setAttachments(List<Attachment> attachments)
See Attachments- Parameters:
attachments- List<Attachment>
-
-