Package odata.msgraph.client.beta.entity
Class SalesOrderLine
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.SalesOrderLine
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class SalesOrderLine 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 classSalesOrderLine.Builder
-
Field Summary
Fields Modifier and Type Field Description protected UUIDaccountIdprotected BigDecimalamountExcludingTaxprotected BigDecimalamountIncludingTaxprotected Stringdescriptionprotected BigDecimaldiscountAmountprotected BooleandiscountAppliedBeforeTaxprotected BigDecimaldiscountPercentprotected UUIDdocumentIdprotected BigDecimalinvoiceDiscountAllocationprotected BigDecimalinvoicedQuantityprotected BigDecimalinvoiceQuantityprotected UUIDitemIdprotected StringlineTypeprotected BigDecimalnetAmountprotected BigDecimalnetAmountIncludingTaxprotected BigDecimalnetTaxAmountprotected BigDecimalquantityprotected Integersequenceprotected LocalDateshipmentDateprotected BigDecimalshippedQuantityprotected BigDecimalshipQuantityprotected 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 protectedSalesOrderLine()
-
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
-
invoiceDiscountAllocation
protected BigDecimal invoiceDiscountAllocation
-
invoicedQuantity
protected BigDecimal invoicedQuantity
-
invoiceQuantity
protected BigDecimal invoiceQuantity
-
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
-
shipmentDate
protected LocalDate shipmentDate
-
shippedQuantity
protected BigDecimal shippedQuantity
-
shipQuantity
protected BigDecimal shipQuantity
-
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
-
builderSalesOrderLine
public static SalesOrderLine.Builder builderSalesOrderLine()
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 SalesOrderLine withAccountId(UUID accountId)
-
getAmountExcludingTax
public Optional<BigDecimal> getAmountExcludingTax()
-
withAmountExcludingTax
public SalesOrderLine withAmountExcludingTax(BigDecimal amountExcludingTax)
-
getAmountIncludingTax
public Optional<BigDecimal> getAmountIncludingTax()
-
withAmountIncludingTax
public SalesOrderLine withAmountIncludingTax(BigDecimal amountIncludingTax)
-
withDescription
public SalesOrderLine withDescription(String description)
-
getDiscountAmount
public Optional<BigDecimal> getDiscountAmount()
-
withDiscountAmount
public SalesOrderLine withDiscountAmount(BigDecimal discountAmount)
-
withDiscountAppliedBeforeTax
public SalesOrderLine withDiscountAppliedBeforeTax(Boolean discountAppliedBeforeTax)
-
getDiscountPercent
public Optional<BigDecimal> getDiscountPercent()
-
withDiscountPercent
public SalesOrderLine withDiscountPercent(BigDecimal discountPercent)
-
withDocumentId
public SalesOrderLine withDocumentId(UUID documentId)
-
getInvoiceDiscountAllocation
public Optional<BigDecimal> getInvoiceDiscountAllocation()
-
withInvoiceDiscountAllocation
public SalesOrderLine withInvoiceDiscountAllocation(BigDecimal invoiceDiscountAllocation)
-
getInvoicedQuantity
public Optional<BigDecimal> getInvoicedQuantity()
-
withInvoicedQuantity
public SalesOrderLine withInvoicedQuantity(BigDecimal invoicedQuantity)
-
getInvoiceQuantity
public Optional<BigDecimal> getInvoiceQuantity()
-
withInvoiceQuantity
public SalesOrderLine withInvoiceQuantity(BigDecimal invoiceQuantity)
-
withItemId
public SalesOrderLine withItemId(UUID itemId)
-
withLineType
public SalesOrderLine withLineType(String lineType)
-
getNetAmount
public Optional<BigDecimal> getNetAmount()
-
withNetAmount
public SalesOrderLine withNetAmount(BigDecimal netAmount)
-
getNetAmountIncludingTax
public Optional<BigDecimal> getNetAmountIncludingTax()
-
withNetAmountIncludingTax
public SalesOrderLine withNetAmountIncludingTax(BigDecimal netAmountIncludingTax)
-
getNetTaxAmount
public Optional<BigDecimal> getNetTaxAmount()
-
withNetTaxAmount
public SalesOrderLine withNetTaxAmount(BigDecimal netTaxAmount)
-
getQuantity
public Optional<BigDecimal> getQuantity()
-
withQuantity
public SalesOrderLine withQuantity(BigDecimal quantity)
-
withSequence
public SalesOrderLine withSequence(Integer sequence)
-
withShipmentDate
public SalesOrderLine withShipmentDate(LocalDate shipmentDate)
-
getShippedQuantity
public Optional<BigDecimal> getShippedQuantity()
-
withShippedQuantity
public SalesOrderLine withShippedQuantity(BigDecimal shippedQuantity)
-
getShipQuantity
public Optional<BigDecimal> getShipQuantity()
-
withShipQuantity
public SalesOrderLine withShipQuantity(BigDecimal shipQuantity)
-
withTaxCode
public SalesOrderLine withTaxCode(String taxCode)
-
getTaxPercent
public Optional<BigDecimal> getTaxPercent()
-
withTaxPercent
public SalesOrderLine withTaxPercent(BigDecimal taxPercent)
-
getTotalTaxAmount
public Optional<BigDecimal> getTotalTaxAmount()
-
withTotalTaxAmount
public SalesOrderLine withTotalTaxAmount(BigDecimal totalTaxAmount)
-
withUnitOfMeasureId
public SalesOrderLine withUnitOfMeasureId(UUID unitOfMeasureId)
-
getUnitPrice
public Optional<BigDecimal> getUnitPrice()
-
withUnitPrice
public SalesOrderLine withUnitPrice(BigDecimal unitPrice)
-
withUnmappedField
public SalesOrderLine 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 SalesOrderLine patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public SalesOrderLine put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-