Package com.xero.models.accounting
Class Quote
java.lang.Object
com.xero.models.accounting.Quote
public class Quote extends Object
Quote
-
Constructor Summary
Constructors Constructor Description Quote() -
Method Summary
Modifier and Type Method Description QuoteaddLineItemsItem(LineItem lineItemsItem)QuoteaddValidationErrorsItem(ValidationError validationErrorsItem)QuotebrandingThemeID(UUID brandingThemeID)Quotecontact(Contact contact)QuotecurrencyCode(CurrencyCode currencyCode)QuotecurrencyRate(Double currencyRate)Quotedate(String date)QuotedateString(String dateString)booleanequals(Object o)QuoteexpiryDate(String expiryDate)QuoteexpiryDateString(String expiryDateString)UUIDgetBrandingThemeID()See BrandingThemesContactgetContact()Get contactCurrencyCodegetCurrencyCode()Get currencyCodeDoublegetCurrencyRate()The currency rate for a multicurrency quoteStringgetDate()Date quote was issued – YYYY-MM-DD.org.threeten.bp.LocalDategetDateAsDate()StringgetDateString()Date the quote was issued (YYYY-MM-DD)StringgetExpiryDate()Date the quote expires – YYYY-MM-DD.org.threeten.bp.LocalDategetExpiryDateAsDate()StringgetExpiryDateString()Date the quote expires – YYYY-MM-DD.QuoteLineAmountTypesgetLineAmountTypes()Get lineAmountTypesList<LineItem>getLineItems()See LineItemsUUIDgetQuoteID()QuoteID GUID is automatically generated and is returned after create or GET.StringgetQuoteNumber()Unique alpha numeric code identifying a quote (Max Length = 255)StringgetReference()Additional reference numberQuoteStatusCodesgetStatus()Get statusStringgetStatusAttributeString()A string to indicate if a invoice statusDoublegetSubTotal()Total of quote excluding taxes.StringgetSummary()Summary text for the quoteStringgetTerms()Terms of the quoteStringgetTitle()Title text for the quoteDoublegetTotal()Total of Quote tax inclusive (i.e.DoublegetTotalDiscount()Total of discounts applied on the quote line itemsDoublegetTotalTax()Total tax on quoteStringgetUpdatedDateUTC()Last modified date UTC formatorg.threeten.bp.OffsetDateTimegetUpdatedDateUTCAsDate()List<ValidationError>getValidationErrors()Displays array of validation error messages from the APIinthashCode()QuotelineAmountTypes(QuoteLineAmountTypes lineAmountTypes)QuotelineItems(List<LineItem> lineItems)QuotequoteID(UUID quoteID)QuotequoteNumber(String quoteNumber)Quotereference(String reference)voidsetBrandingThemeID(UUID brandingThemeID)voidsetContact(Contact contact)voidsetCurrencyCode(CurrencyCode currencyCode)voidsetCurrencyRate(Double currencyRate)voidsetDate(String date)voidsetDate(org.threeten.bp.LocalDate date)voidsetDateString(String dateString)voidsetExpiryDate(String expiryDate)voidsetExpiryDate(org.threeten.bp.LocalDate expiryDate)voidsetExpiryDateString(String expiryDateString)voidsetLineAmountTypes(QuoteLineAmountTypes lineAmountTypes)voidsetLineItems(List<LineItem> lineItems)voidsetQuoteID(UUID quoteID)voidsetQuoteNumber(String quoteNumber)voidsetReference(String reference)voidsetStatus(QuoteStatusCodes status)voidsetStatusAttributeString(String statusAttributeString)voidsetSummary(String summary)voidsetTerms(String terms)voidsetTitle(String title)voidsetValidationErrors(List<ValidationError> validationErrors)Quotestatus(QuoteStatusCodes status)QuotestatusAttributeString(String statusAttributeString)Quotesummary(String summary)Quoteterms(String terms)Quotetitle(String title)StringtoString()QuotevalidationErrors(List<ValidationError> validationErrors)
-
Constructor Details
-
Quote
public Quote()
-
-
Method Details
-
quoteID
-
getQuoteID
QuoteID GUID is automatically generated and is returned after create or GET.- Returns:
- quoteID
-
setQuoteID
-
quoteNumber
-
getQuoteNumber
Unique alpha numeric code identifying a quote (Max Length = 255)- Returns:
- quoteNumber
-
setQuoteNumber
-
reference
-
getReference
Additional reference number- Returns:
- reference
-
setReference
-
terms
-
getTerms
Terms of the quote- Returns:
- terms
-
setTerms
-
contact
-
getContact
Get contact- Returns:
- contact
-
setContact
-
lineItems
-
addLineItemsItem
-
getLineItems
See LineItems- Returns:
- lineItems
-
setLineItems
-
date
-
getDate
Date quote was issued – YYYY-MM-DD. If the Date element is not specified it will default to the current date based on the timezone setting of the organisation- Returns:
- date
-
getDateAsDate
public org.threeten.bp.LocalDate getDateAsDate() -
setDate
-
setDate
public void setDate(org.threeten.bp.LocalDate date) -
dateString
-
getDateString
Date the quote was issued (YYYY-MM-DD)- Returns:
- dateString
-
setDateString
-
expiryDate
-
getExpiryDate
Date the quote expires – YYYY-MM-DD.- Returns:
- expiryDate
-
getExpiryDateAsDate
public org.threeten.bp.LocalDate getExpiryDateAsDate() -
setExpiryDate
-
setExpiryDate
public void setExpiryDate(org.threeten.bp.LocalDate expiryDate) -
expiryDateString
-
getExpiryDateString
Date the quote expires – YYYY-MM-DD.- Returns:
- expiryDateString
-
setExpiryDateString
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
currencyCode
-
getCurrencyCode
Get currencyCode- Returns:
- currencyCode
-
setCurrencyCode
-
currencyRate
-
getCurrencyRate
The currency rate for a multicurrency quote- Returns:
- currencyRate
-
setCurrencyRate
-
getSubTotal
Total of quote excluding taxes.- Returns:
- subTotal
-
getTotalTax
Total tax on quote- Returns:
- totalTax
-
getTotal
Total of Quote tax inclusive (i.e. SubTotal + TotalTax). This will be ignored if it doesn’t equal the sum of the LineAmounts- Returns:
- total
-
getTotalDiscount
Total of discounts applied on the quote line items- Returns:
- totalDiscount
-
title
-
getTitle
Title text for the quote- Returns:
- title
-
setTitle
-
summary
-
getSummary
Summary text for the quote- Returns:
- summary
-
setSummary
-
brandingThemeID
-
getBrandingThemeID
See BrandingThemes- Returns:
- brandingThemeID
-
setBrandingThemeID
-
getUpdatedDateUTC
Last modified date UTC format- Returns:
- updatedDateUTC
-
getUpdatedDateUTCAsDate
public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate() -
lineAmountTypes
-
getLineAmountTypes
Get lineAmountTypes- Returns:
- lineAmountTypes
-
setLineAmountTypes
-
statusAttributeString
-
getStatusAttributeString
A string to indicate if a invoice status- Returns:
- statusAttributeString
-
setStatusAttributeString
-
validationErrors
-
addValidationErrorsItem
-
getValidationErrors
Displays array of validation error messages from the API- Returns:
- validationErrors
-
setValidationErrors
-
equals
-
hashCode
public int hashCode() -
toString
-