Package com.xero.models.accounting
Class Quote
java.lang.Object
com.xero.models.accounting.Quote
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddLineItemsItem(LineItem lineItemsItem) See LineItemsaddValidationErrorsItem(ValidationError validationErrorsItem) Displays array of validation error messages from the APIbrandingThemeID(UUID brandingThemeID) See BrandingThemescontactcurrencyCode(CurrencyCode currencyCode) currencyCodecurrencyRate(Double currencyRate) The currency rate for a multicurrency quoteDate quote was issued – YYYY-MM-DD.dateString(String dateString) Date the quote was issued (YYYY-MM-DD)booleanexpiryDate(String expiryDate) Date the quote expires – YYYY-MM-DD.expiryDateString(String expiryDateString) Date the quote expires – YYYY-MM-DD.See BrandingThemesGet contactGet currencyCodeThe currency rate for a multicurrency quotegetDate()Date quote was issued – YYYY-MM-DD.org.threeten.bp.LocalDateDate quote was issued – YYYY-MM-DD.Date the quote was issued (YYYY-MM-DD)Date the quote expires – YYYY-MM-DD.org.threeten.bp.LocalDateDate the quote expires – YYYY-MM-DD.Date the quote expires – YYYY-MM-DD.Get lineAmountTypesSee LineItemsQuoteID GUID is automatically generated and is returned after create or GET.Unique alpha numeric code identifying a quote (Max Length = 255)Additional reference numberGet statusA string to indicate if a invoice statusTotal of quote excluding taxes.Summary text for the quotegetTerms()Terms of the quotegetTitle()Title text for the quotegetTotal()Total of Quote tax inclusive (i.e.Total of discounts applied on the quote line itemsTotal tax on quoteLast modified date UTC formatorg.threeten.bp.OffsetDateTimeLast modified date UTC formatDisplays array of validation error messages from the APIinthashCode()lineAmountTypes(QuoteLineAmountTypes lineAmountTypes) lineAmountTypesSee LineItemsQuoteID GUID is automatically generated and is returned after create or GET.quoteNumber(String quoteNumber) Unique alpha numeric code identifying a quote (Max Length = 255)Additional reference numbervoidsetBrandingThemeID(UUID brandingThemeID) See BrandingThemesvoidsetContact(Contact contact) contactvoidsetCurrencyCode(CurrencyCode currencyCode) currencyCodevoidsetCurrencyRate(Double currencyRate) The currency rate for a multicurrency quotevoidDate quote was issued – YYYY-MM-DD.voidsetDate(org.threeten.bp.LocalDate date) Date quote was issued – YYYY-MM-DD.voidsetDateString(String dateString) Date the quote was issued (YYYY-MM-DD)voidsetExpiryDate(String expiryDate) Date the quote expires – YYYY-MM-DD.voidsetExpiryDate(org.threeten.bp.LocalDate expiryDate) Date the quote expires – YYYY-MM-DD.voidsetExpiryDateString(String expiryDateString) Date the quote expires – YYYY-MM-DD.voidsetLineAmountTypes(QuoteLineAmountTypes lineAmountTypes) lineAmountTypesvoidsetLineItems(List<LineItem> lineItems) See LineItemsvoidsetQuoteID(UUID quoteID) QuoteID GUID is automatically generated and is returned after create or GET.voidsetQuoteNumber(String quoteNumber) Unique alpha numeric code identifying a quote (Max Length = 255)voidsetReference(String reference) Additional reference numbervoidsetStatus(QuoteStatusCodes status) statusvoidsetStatusAttributeString(String statusAttributeString) A string to indicate if a invoice statusvoidsetSummary(String summary) Summary text for the quotevoidTerms of the quotevoidTitle text for the quotevoidsetValidationErrors(List<ValidationError> validationErrors) Displays array of validation error messages from the APIstatus(QuoteStatusCodes status) statusstatusAttributeString(String statusAttributeString) A string to indicate if a invoice statusSummary text for the quoteTerms of the quoteTitle text for the quotetoString()validationErrors(List<ValidationError> validationErrors) Displays array of validation error messages from the API
-
Constructor Details
-
Quote
public Quote()
-
-
Method Details
-
quoteID
-
getQuoteID
QuoteID GUID is automatically generated and is returned after create or GET.- Returns:
- quoteID
-
setQuoteID
QuoteID GUID is automatically generated and is returned after create or GET.- Parameters:
quoteID- UUID
-
quoteNumber
-
getQuoteNumber
Unique alpha numeric code identifying a quote (Max Length = 255)- Returns:
- quoteNumber
-
setQuoteNumber
Unique alpha numeric code identifying a quote (Max Length = 255)- Parameters:
quoteNumber- String
-
reference
-
getReference
-
setReference
Additional reference number- Parameters:
reference- String
-
terms
-
getTerms
-
setTerms
-
contact
-
getContact
-
setContact
-
lineItems
-
addLineItemsItem
-
getLineItems
-
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()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:
- LocalDate
-
setDate
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- Parameters:
date- String
-
setDate
public void setDate(org.threeten.bp.LocalDate date) 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- Parameters:
date- LocalDateTime
-
dateString
-
getDateString
-
setDateString
Date the quote was issued (YYYY-MM-DD)- Parameters:
dateString- String
-
expiryDate
-
getExpiryDate
-
getExpiryDateAsDate
public org.threeten.bp.LocalDate getExpiryDateAsDate()Date the quote expires – YYYY-MM-DD.- Returns:
- LocalDate
-
setExpiryDate
Date the quote expires – YYYY-MM-DD.- Parameters:
expiryDate- String
-
setExpiryDate
public void setExpiryDate(org.threeten.bp.LocalDate expiryDate) Date the quote expires – YYYY-MM-DD.- Parameters:
expiryDate- LocalDateTime
-
expiryDateString
-
getExpiryDateString
-
setExpiryDateString
Date the quote expires – YYYY-MM-DD.- Parameters:
expiryDateString- String
-
status
status- Parameters:
status- QuoteStatusCodes- Returns:
- Quote
-
getStatus
-
setStatus
-
currencyCode
currencyCode- Parameters:
currencyCode- CurrencyCode- Returns:
- Quote
-
getCurrencyCode
-
setCurrencyCode
currencyCode- Parameters:
currencyCode- CurrencyCode
-
currencyRate
-
getCurrencyRate
-
setCurrencyRate
The currency rate for a multicurrency quote- Parameters:
currencyRate- Double
-
getSubTotal
-
getTotalTax
-
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
-
setTitle
-
summary
-
getSummary
-
setSummary
-
brandingThemeID
-
getBrandingThemeID
-
setBrandingThemeID
See BrandingThemes- Parameters:
brandingThemeID- UUID
-
getUpdatedDateUTC
-
getUpdatedDateUTCAsDate
public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate()Last modified date UTC format- Returns:
- OffsetDateTime
-
lineAmountTypes
lineAmountTypes- Parameters:
lineAmountTypes- QuoteLineAmountTypes- Returns:
- Quote
-
getLineAmountTypes
-
setLineAmountTypes
lineAmountTypes- Parameters:
lineAmountTypes- QuoteLineAmountTypes
-
statusAttributeString
-
getStatusAttributeString
A string to indicate if a invoice status- Returns:
- statusAttributeString
-
setStatusAttributeString
A string to indicate if a invoice status- Parameters:
statusAttributeString- String
-
validationErrors
Displays array of validation error messages from the API- Parameters:
validationErrors- List<ValidationError>- Returns:
- Quote
-
addValidationErrorsItem
Displays array of validation error messages from the API- Parameters:
validationErrorsItem- ValidationError- Returns:
- Quote
-
getValidationErrors
Displays array of validation error messages from the API- Returns:
- validationErrors
-
setValidationErrors
Displays array of validation error messages from the API- Parameters:
validationErrors- List<ValidationError>
-
equals
-
hashCode
-
toString
-