public class CreditNote extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CreditNote.StatusEnum
See Credit Note Status Codes
|
static class |
CreditNote.TypeEnum
See Credit Note Types
|
| Constructor and Description |
|---|
CreditNote() |
| Modifier and Type | Method and Description |
|---|---|
CreditNote |
addAllocationsItem(Allocation allocationsItem) |
CreditNote |
addLineItemsItem(LineItem lineItemsItem) |
CreditNote |
allocations(List<Allocation> allocations) |
CreditNote |
brandingThemeID(UUID brandingThemeID) |
CreditNote |
contact(Contact contact) |
CreditNote |
creditNoteID(UUID creditNoteID) |
CreditNote |
creditNoteNumber(String creditNoteNumber) |
CreditNote |
currencyCode(CurrencyCode currencyCode) |
CreditNote |
currencyRate(Float currencyRate) |
CreditNote |
date(String date) |
boolean |
equals(Object o) |
CreditNote |
fullyPaidOnDate(org.threeten.bp.LocalDate fullyPaidOnDate) |
List<Allocation> |
getAllocations()
See Allocations
|
UUID |
getBrandingThemeID()
See BrandingThemes
|
Contact |
getContact()
Get contact
|
UUID |
getCreditNoteID()
Xero generated unique identifier
|
String |
getCreditNoteNumber()
ACCRECCREDIT – Unique alpha numeric code identifying credit note (when missing will auto-generate from your Organisation Invoice Settings)
|
CurrencyCode |
getCurrencyCode()
Get currencyCode
|
Float |
getCurrencyRate()
The currency rate for a multicurrency invoice.
|
String |
getDate()
The date the credit note is issued YYYY-MM-DD.
|
org.threeten.bp.LocalDate |
getFullyPaidOnDate()
Date when credit note was fully paid(UTC format)
|
Boolean |
getHasAttachments()
boolean to indicate if a credit note has an attachment
|
LineAmountTypes |
getLineAmountTypes()
Get lineAmountTypes
|
List<LineItem> |
getLineItems()
See Invoice Line Items
|
String |
getReference()
ACCRECCREDIT only – additional reference number
|
Float |
getRemainingCredit()
The remaining credit balance on the Credit Note
|
Boolean |
getSentToContact()
boolean to indicate if a credit note has been sent to a contact via the Xero app (currently read only)
|
CreditNote.StatusEnum |
getStatus()
See Credit Note Status Codes
|
Float |
getSubTotal()
The subtotal of the credit note excluding taxes
|
Float |
getTotal()
The total of the Credit Note(subtotal + total tax)
|
Float |
getTotalTax()
The total tax on the credit note
|
CreditNote.TypeEnum |
getType()
See Credit Note Types
|
org.threeten.bp.OffsetDateTime |
getUpdatedDateUTC()
UTC timestamp of last update to the credit note
|
CreditNote |
hasAttachments(Boolean hasAttachments) |
int |
hashCode() |
CreditNote |
lineAmountTypes(LineAmountTypes lineAmountTypes) |
CreditNote |
lineItems(List<LineItem> lineItems) |
CreditNote |
reference(String reference) |
CreditNote |
remainingCredit(Float remainingCredit) |
void |
setAllocations(List<Allocation> allocations) |
void |
setBrandingThemeID(UUID brandingThemeID) |
void |
setContact(Contact contact) |
void |
setCreditNoteID(UUID creditNoteID) |
void |
setCreditNoteNumber(String creditNoteNumber) |
void |
setCurrencyCode(CurrencyCode currencyCode) |
void |
setCurrencyRate(Float currencyRate) |
void |
setDate(String date) |
void |
setFullyPaidOnDate(org.threeten.bp.LocalDate fullyPaidOnDate) |
void |
setHasAttachments(Boolean hasAttachments) |
void |
setLineAmountTypes(LineAmountTypes lineAmountTypes) |
void |
setLineItems(List<LineItem> lineItems) |
void |
setReference(String reference) |
void |
setRemainingCredit(Float remainingCredit) |
void |
setStatus(CreditNote.StatusEnum status) |
void |
setSubTotal(Float subTotal) |
void |
setTotal(Float total) |
void |
setTotalTax(Float totalTax) |
void |
setType(CreditNote.TypeEnum type) |
void |
setUpdatedDateUTC(org.threeten.bp.OffsetDateTime updatedDateUTC) |
CreditNote |
status(CreditNote.StatusEnum status) |
CreditNote |
subTotal(Float subTotal) |
String |
toString() |
CreditNote |
total(Float total) |
CreditNote |
totalTax(Float totalTax) |
CreditNote |
type(CreditNote.TypeEnum type) |
CreditNote |
updatedDateUTC(org.threeten.bp.OffsetDateTime updatedDateUTC) |
public CreditNote type(CreditNote.TypeEnum type)
public CreditNote.TypeEnum getType()
public void setType(CreditNote.TypeEnum type)
public CreditNote contact(Contact contact)
public Contact getContact()
public void setContact(Contact contact)
public CreditNote date(String date)
public String getDate()
public void setDate(String date)
public CreditNote status(CreditNote.StatusEnum status)
public CreditNote.StatusEnum getStatus()
public void setStatus(CreditNote.StatusEnum status)
public CreditNote lineAmountTypes(LineAmountTypes lineAmountTypes)
public LineAmountTypes getLineAmountTypes()
public void setLineAmountTypes(LineAmountTypes lineAmountTypes)
public CreditNote lineItems(List<LineItem> lineItems)
public CreditNote addLineItemsItem(LineItem lineItemsItem)
public CreditNote subTotal(Float subTotal)
public Float getSubTotal()
public void setSubTotal(Float subTotal)
public CreditNote totalTax(Float totalTax)
public Float getTotalTax()
public void setTotalTax(Float totalTax)
public CreditNote total(Float total)
public Float getTotal()
public void setTotal(Float total)
public CreditNote updatedDateUTC(org.threeten.bp.OffsetDateTime updatedDateUTC)
public org.threeten.bp.OffsetDateTime getUpdatedDateUTC()
public void setUpdatedDateUTC(org.threeten.bp.OffsetDateTime updatedDateUTC)
public CreditNote currencyCode(CurrencyCode currencyCode)
public CurrencyCode getCurrencyCode()
public void setCurrencyCode(CurrencyCode currencyCode)
public CreditNote fullyPaidOnDate(org.threeten.bp.LocalDate fullyPaidOnDate)
public org.threeten.bp.LocalDate getFullyPaidOnDate()
public void setFullyPaidOnDate(org.threeten.bp.LocalDate fullyPaidOnDate)
public CreditNote creditNoteID(UUID creditNoteID)
public UUID getCreditNoteID()
public void setCreditNoteID(UUID creditNoteID)
public CreditNote creditNoteNumber(String creditNoteNumber)
public String getCreditNoteNumber()
public void setCreditNoteNumber(String creditNoteNumber)
public CreditNote reference(String reference)
public String getReference()
public void setReference(String reference)
public Boolean getSentToContact()
public CreditNote currencyRate(Float currencyRate)
public Float getCurrencyRate()
public void setCurrencyRate(Float currencyRate)
public CreditNote remainingCredit(Float remainingCredit)
public Float getRemainingCredit()
public void setRemainingCredit(Float remainingCredit)
public CreditNote allocations(List<Allocation> allocations)
public CreditNote addAllocationsItem(Allocation allocationsItem)
public List<Allocation> getAllocations()
public void setAllocations(List<Allocation> allocations)
public CreditNote brandingThemeID(UUID brandingThemeID)
public UUID getBrandingThemeID()
public void setBrandingThemeID(UUID brandingThemeID)
public CreditNote hasAttachments(Boolean hasAttachments)
public Boolean getHasAttachments()
public void setHasAttachments(Boolean hasAttachments)
Copyright © 2018. All rights reserved.