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 |
addPaymentsItem(Payment paymentsItem) |
CreditNote |
addValidationErrorsItem(ValidationError validationErrorsItem) |
CreditNote |
allocations(List<Allocation> allocations) |
CreditNote |
appliedAmount(Double appliedAmount) |
CreditNote |
brandingThemeID(UUID brandingThemeID) |
CreditNote |
contact(Contact contact) |
CreditNote |
creditNoteID(UUID creditNoteID) |
CreditNote |
creditNoteNumber(String creditNoteNumber) |
CreditNote |
currencyCode(CurrencyCode currencyCode) |
CreditNote |
currencyRate(Double currencyRate) |
CreditNote |
date(String date) |
boolean |
equals(Object o) |
CreditNote |
fullyPaidOnDate(String fullyPaidOnDate) |
List<Allocation> |
getAllocations()
See Allocations
|
Double |
getAppliedAmount()
The amount of applied to an invoice
|
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
|
Double |
getCurrencyRate()
The currency rate for a multicurrency invoice.
|
String |
getDate()
The date the credit note is issued YYYY-MM-DD.
|
org.threeten.bp.LocalDate |
getDateAsDate() |
String |
getFullyPaidOnDate()
Date when credit note was fully paid(UTC format)
|
org.threeten.bp.LocalDate |
getFullyPaidOnDateAsDate() |
Boolean |
getHasAttachments()
boolean to indicate if a credit note has an attachment
|
Boolean |
getHasErrors()
A boolean to indicate if a credit note has an validation errors
|
LineAmountTypes |
getLineAmountTypes()
Get lineAmountTypes
|
List<LineItem> |
getLineItems()
See Invoice Line Items
|
List<Payment> |
getPayments()
See Payments
|
String |
getReference()
ACCRECCREDIT only – additional reference number
|
Double |
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
|
String |
getStatusAttributeString()
A string to indicate if a invoice status
|
Double |
getSubTotal()
The subtotal of the credit note excluding taxes
|
Double |
getTotal()
The total of the Credit Note(subtotal + total tax)
|
Double |
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
|
org.threeten.bp.OffsetDateTime |
getUpdatedDateUTCAsDate() |
List<ValidationError> |
getValidationErrors()
Displays array of validation error messages from the API
|
CreditNote |
hasAttachments(Boolean hasAttachments) |
CreditNote |
hasErrors(Boolean hasErrors) |
int |
hashCode() |
CreditNote |
lineAmountTypes(LineAmountTypes lineAmountTypes) |
CreditNote |
lineItems(List<LineItem> lineItems) |
CreditNote |
payments(List<Payment> payments) |
CreditNote |
reference(String reference) |
CreditNote |
remainingCredit(Double remainingCredit) |
void |
setAllocations(List<Allocation> allocations) |
void |
setAppliedAmount(Double appliedAmount) |
void |
setBrandingThemeID(UUID brandingThemeID) |
void |
setContact(Contact contact) |
void |
setCreditNoteID(UUID creditNoteID) |
void |
setCreditNoteNumber(String creditNoteNumber) |
void |
setCurrencyCode(CurrencyCode currencyCode) |
void |
setCurrencyRate(Double currencyRate) |
void |
setDate(org.threeten.bp.LocalDate date) |
void |
setDate(String date) |
void |
setFullyPaidOnDate(org.threeten.bp.LocalDate fullyPaidOnDate) |
void |
setFullyPaidOnDate(String fullyPaidOnDate) |
void |
setHasAttachments(Boolean hasAttachments) |
void |
setHasErrors(Boolean hasErrors) |
void |
setLineAmountTypes(LineAmountTypes lineAmountTypes) |
void |
setLineItems(List<LineItem> lineItems) |
void |
setPayments(List<Payment> payments) |
void |
setReference(String reference) |
void |
setRemainingCredit(Double remainingCredit) |
void |
setStatus(CreditNote.StatusEnum status) |
void |
setStatusAttributeString(String statusAttributeString) |
void |
setSubTotal(Double subTotal) |
void |
setTotal(Double total) |
void |
setTotalTax(Double totalTax) |
void |
setType(CreditNote.TypeEnum type) |
void |
setValidationErrors(List<ValidationError> validationErrors) |
CreditNote |
status(CreditNote.StatusEnum status) |
CreditNote |
statusAttributeString(String statusAttributeString) |
CreditNote |
subTotal(Double subTotal) |
String |
toString() |
CreditNote |
total(Double total) |
CreditNote |
totalTax(Double totalTax) |
CreditNote |
type(CreditNote.TypeEnum type) |
CreditNote |
validationErrors(List<ValidationError> validationErrors) |
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 org.threeten.bp.LocalDate getDateAsDate()
public void setDate(String date)
public void setDate(org.threeten.bp.LocalDate 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(Double subTotal)
public Double getSubTotal()
public void setSubTotal(Double subTotal)
public CreditNote totalTax(Double totalTax)
public Double getTotalTax()
public void setTotalTax(Double totalTax)
public CreditNote total(Double total)
public Double getTotal()
public void setTotal(Double total)
public String getUpdatedDateUTC()
public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate()
public CreditNote currencyCode(CurrencyCode currencyCode)
public CurrencyCode getCurrencyCode()
public void setCurrencyCode(CurrencyCode currencyCode)
public CreditNote fullyPaidOnDate(String fullyPaidOnDate)
public String getFullyPaidOnDate()
public org.threeten.bp.LocalDate getFullyPaidOnDateAsDate()
public void setFullyPaidOnDate(String fullyPaidOnDate)
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(Double currencyRate)
public Double getCurrencyRate()
public void setCurrencyRate(Double currencyRate)
public CreditNote remainingCredit(Double remainingCredit)
public Double getRemainingCredit()
public void setRemainingCredit(Double remainingCredit)
public CreditNote allocations(List<Allocation> allocations)
public CreditNote addAllocationsItem(Allocation allocationsItem)
public List<Allocation> getAllocations()
public void setAllocations(List<Allocation> allocations)
public CreditNote appliedAmount(Double appliedAmount)
public Double getAppliedAmount()
public void setAppliedAmount(Double appliedAmount)
public CreditNote payments(List<Payment> payments)
public CreditNote addPaymentsItem(Payment paymentsItem)
public CreditNote brandingThemeID(UUID brandingThemeID)
public UUID getBrandingThemeID()
public void setBrandingThemeID(UUID brandingThemeID)
public CreditNote statusAttributeString(String statusAttributeString)
public String getStatusAttributeString()
public void setStatusAttributeString(String statusAttributeString)
public CreditNote hasAttachments(Boolean hasAttachments)
public Boolean getHasAttachments()
public void setHasAttachments(Boolean hasAttachments)
public CreditNote hasErrors(Boolean hasErrors)
public Boolean getHasErrors()
public void setHasErrors(Boolean hasErrors)
public CreditNote validationErrors(List<ValidationError> validationErrors)
public CreditNote addValidationErrorsItem(ValidationError validationErrorsItem)
public List<ValidationError> getValidationErrors()
public void setValidationErrors(List<ValidationError> validationErrors)
Copyright © 2020. All rights reserved.