Package odata.msgraph.client.beta.entity
Class SalesQuoteLine
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.SalesQuoteLine
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class SalesQuoteLine extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
Org.OData.Capabilities.V1.DeleteRestrictions
Deletable = false
Org.OData.Capabilities.V1.InsertRestrictions
Insertable = false
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = true
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSalesQuoteLine.Builder
-
Field Summary
Fields Modifier and Type Field Description protected UUIDaccountIdprotected BigDecimalamountExcludingTaxprotected BigDecimalamountIncludingTaxprotected Stringdescriptionprotected BigDecimaldiscountAmountprotected BooleandiscountAppliedBeforeTaxprotected BigDecimaldiscountPercentprotected UUIDdocumentIdprotected UUIDitemIdprotected StringlineTypeprotected BigDecimalnetAmountprotected BigDecimalnetAmountIncludingTaxprotected BigDecimalnetTaxAmountprotected BigDecimalquantityprotected Integersequenceprotected StringtaxCodeprotected BigDecimaltaxPercentprotected BigDecimaltotalTaxAmountprotected UUIDunitOfMeasureIdprotected BigDecimalunitPrice-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSalesQuoteLine()
-
Method Summary
-
-
-
Field Detail
-
accountId
protected UUID accountId
-
amountExcludingTax
protected BigDecimal amountExcludingTax
-
amountIncludingTax
protected BigDecimal amountIncludingTax
-
description
protected String description
-
discountAmount
protected BigDecimal discountAmount
-
discountAppliedBeforeTax
protected Boolean discountAppliedBeforeTax
-
discountPercent
protected BigDecimal discountPercent
-
documentId
protected UUID documentId
-
itemId
protected UUID itemId
-
lineType
protected String lineType
-
netAmount
protected BigDecimal netAmount
-
netAmountIncludingTax
protected BigDecimal netAmountIncludingTax
-
netTaxAmount
protected BigDecimal netTaxAmount
-
quantity
protected BigDecimal quantity
-
sequence
protected Integer sequence
-
taxCode
protected String taxCode
-
taxPercent
protected BigDecimal taxPercent
-
totalTaxAmount
protected BigDecimal totalTaxAmount
-
unitOfMeasureId
protected UUID unitOfMeasureId
-
unitPrice
protected BigDecimal unitPrice
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderSalesQuoteLine
public static SalesQuoteLine.Builder builderSalesQuoteLine()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
withAccountId
public SalesQuoteLine withAccountId(UUID accountId)
-
getAmountExcludingTax
public Optional<BigDecimal> getAmountExcludingTax()
-
withAmountExcludingTax
public SalesQuoteLine withAmountExcludingTax(BigDecimal amountExcludingTax)
-
getAmountIncludingTax
public Optional<BigDecimal> getAmountIncludingTax()
-
withAmountIncludingTax
public SalesQuoteLine withAmountIncludingTax(BigDecimal amountIncludingTax)
-
withDescription
public SalesQuoteLine withDescription(String description)
-
getDiscountAmount
public Optional<BigDecimal> getDiscountAmount()
-
withDiscountAmount
public SalesQuoteLine withDiscountAmount(BigDecimal discountAmount)
-
withDiscountAppliedBeforeTax
public SalesQuoteLine withDiscountAppliedBeforeTax(Boolean discountAppliedBeforeTax)
-
getDiscountPercent
public Optional<BigDecimal> getDiscountPercent()
-
withDiscountPercent
public SalesQuoteLine withDiscountPercent(BigDecimal discountPercent)
-
withDocumentId
public SalesQuoteLine withDocumentId(UUID documentId)
-
withItemId
public SalesQuoteLine withItemId(UUID itemId)
-
withLineType
public SalesQuoteLine withLineType(String lineType)
-
getNetAmount
public Optional<BigDecimal> getNetAmount()
-
withNetAmount
public SalesQuoteLine withNetAmount(BigDecimal netAmount)
-
getNetAmountIncludingTax
public Optional<BigDecimal> getNetAmountIncludingTax()
-
withNetAmountIncludingTax
public SalesQuoteLine withNetAmountIncludingTax(BigDecimal netAmountIncludingTax)
-
getNetTaxAmount
public Optional<BigDecimal> getNetTaxAmount()
-
withNetTaxAmount
public SalesQuoteLine withNetTaxAmount(BigDecimal netTaxAmount)
-
getQuantity
public Optional<BigDecimal> getQuantity()
-
withQuantity
public SalesQuoteLine withQuantity(BigDecimal quantity)
-
withSequence
public SalesQuoteLine withSequence(Integer sequence)
-
withTaxCode
public SalesQuoteLine withTaxCode(String taxCode)
-
getTaxPercent
public Optional<BigDecimal> getTaxPercent()
-
withTaxPercent
public SalesQuoteLine withTaxPercent(BigDecimal taxPercent)
-
getTotalTaxAmount
public Optional<BigDecimal> getTotalTaxAmount()
-
withTotalTaxAmount
public SalesQuoteLine withTotalTaxAmount(BigDecimal totalTaxAmount)
-
withUnitOfMeasureId
public SalesQuoteLine withUnitOfMeasureId(UUID unitOfMeasureId)
-
getUnitPrice
public Optional<BigDecimal> getUnitPrice()
-
withUnitPrice
public SalesQuoteLine withUnitPrice(BigDecimal unitPrice)
-
withUnmappedField
public SalesQuoteLine withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getAccount
public AccountRequest getAccount()
-
getItem
public ItemRequest getItem()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public SalesQuoteLine patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public SalesQuoteLine put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-