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(Object contact) |
CreditNote |
creditNoteID(UUID creditNoteID) |
CreditNote |
creditNoteNumber(String creditNoteNumber) |
CreditNote |
currencyCode(String currencyCode) |
CreditNote |
currencyRate(Float currencyRate) |
CreditNote |
date(String date) |
boolean |
equals(Object o) |
CreditNote |
fullyPaidOnDate(String fullyPaidOnDate) |
List<Allocation> |
getAllocations()
See Allocations
|
UUID |
getBrandingThemeID()
See BrandingThemes
|
Object |
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)
|
String |
getCurrencyCode()
Currency used for the Credit Note
|
Float |
getCurrencyRate()
The currency rate for a multicurrency invoice.
|
String |
getDate()
The date the credit note is issued YYYY-MM-DD.
|
String |
getFullyPaidOnDate()
Date when credit note was fully paid(UTC format)
|
Boolean |
getHasAttachments()
boolean to indicate if a credit note has an attachment
|
String |
getLineAmountTypes()
See Invoice Line Amount Types
|
List<LineItem> |
getLineItems()
See Invoice Line Items
|
String |
getReference()
ACCRECCREDIT only – additional reference number
|
String |
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
|
String |
getUpdatedDateUTC()
UTC timestamp of last update to the credit note
|
CreditNote |
hasAttachments(Boolean hasAttachments) |
int |
hashCode() |
CreditNote |
lineAmountTypes(String lineAmountTypes) |
CreditNote |
lineItems(List<LineItem> lineItems) |
CreditNote |
reference(String reference) |
CreditNote |
remainingCredit(String remainingCredit) |
void |
setAllocations(List<Allocation> allocations) |
void |
setBrandingThemeID(UUID brandingThemeID) |
void |
setContact(Object contact) |
void |
setCreditNoteID(UUID creditNoteID) |
void |
setCreditNoteNumber(String creditNoteNumber) |
void |
setCurrencyCode(String currencyCode) |
void |
setCurrencyRate(Float currencyRate) |
void |
setDate(String date) |
void |
setFullyPaidOnDate(String fullyPaidOnDate) |
void |
setHasAttachments(Boolean hasAttachments) |
void |
setLineAmountTypes(String lineAmountTypes) |
void |
setLineItems(List<LineItem> lineItems) |
void |
setReference(String reference) |
void |
setRemainingCredit(String 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(String 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(String updatedDateUTC) |
public CreditNote type(CreditNote.TypeEnum type)
public CreditNote.TypeEnum getType()
public void setType(CreditNote.TypeEnum type)
public CreditNote contact(Object contact)
public Object getContact()
public void setContact(Object 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(String lineAmountTypes)
public String getLineAmountTypes()
public void setLineAmountTypes(String 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(String updatedDateUTC)
public String getUpdatedDateUTC()
public void setUpdatedDateUTC(String updatedDateUTC)
public CreditNote currencyCode(String currencyCode)
public String getCurrencyCode()
public void setCurrencyCode(String currencyCode)
public CreditNote fullyPaidOnDate(String fullyPaidOnDate)
public String getFullyPaidOnDate()
public void setFullyPaidOnDate(String 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(String remainingCredit)
public String getRemainingCredit()
public void setRemainingCredit(String 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.