Package odata.msgraph.client.beta.entity
Class PurchaseInvoiceLine
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.PurchaseInvoiceLine
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class PurchaseInvoiceLine 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 classPurchaseInvoiceLine.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringaccountIdprotected BigDecimalamountExcludingTaxprotected BigDecimalamountIncludingTaxprotected Stringdescriptionprotected BigDecimaldiscountAmountprotected BooleandiscountAppliedBeforeTaxprotected BigDecimaldiscountPercentprotected StringdocumentIdprotected LocalDateexpectedReceiptDateprotected BigDecimalinvoiceDiscountAllocationprotected StringitemIdprotected StringlineTypeprotected BigDecimalnetAmountprotected BigDecimalnetAmountIncludingTaxprotected BigDecimalnetTaxAmountprotected BigDecimalquantityprotected Integersequenceprotected StringtaxCodeprotected BigDecimaltaxPercentprotected BigDecimaltotalTaxAmountprotected BigDecimalunitCost-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPurchaseInvoiceLine()
-
Method Summary
-
-
-
Field Detail
-
accountId
protected String 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 String documentId
-
expectedReceiptDate
protected LocalDate expectedReceiptDate
-
invoiceDiscountAllocation
protected BigDecimal invoiceDiscountAllocation
-
itemId
protected String 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
-
unitCost
protected BigDecimal unitCost
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderPurchaseInvoiceLine
public static PurchaseInvoiceLine.Builder builderPurchaseInvoiceLine()
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 PurchaseInvoiceLine withAccountId(String accountId)
-
getAmountExcludingTax
public Optional<BigDecimal> getAmountExcludingTax()
-
withAmountExcludingTax
public PurchaseInvoiceLine withAmountExcludingTax(BigDecimal amountExcludingTax)
-
getAmountIncludingTax
public Optional<BigDecimal> getAmountIncludingTax()
-
withAmountIncludingTax
public PurchaseInvoiceLine withAmountIncludingTax(BigDecimal amountIncludingTax)
-
withDescription
public PurchaseInvoiceLine withDescription(String description)
-
getDiscountAmount
public Optional<BigDecimal> getDiscountAmount()
-
withDiscountAmount
public PurchaseInvoiceLine withDiscountAmount(BigDecimal discountAmount)
-
withDiscountAppliedBeforeTax
public PurchaseInvoiceLine withDiscountAppliedBeforeTax(Boolean discountAppliedBeforeTax)
-
getDiscountPercent
public Optional<BigDecimal> getDiscountPercent()
-
withDiscountPercent
public PurchaseInvoiceLine withDiscountPercent(BigDecimal discountPercent)
-
withDocumentId
public PurchaseInvoiceLine withDocumentId(String documentId)
-
withExpectedReceiptDate
public PurchaseInvoiceLine withExpectedReceiptDate(LocalDate expectedReceiptDate)
-
getInvoiceDiscountAllocation
public Optional<BigDecimal> getInvoiceDiscountAllocation()
-
withInvoiceDiscountAllocation
public PurchaseInvoiceLine withInvoiceDiscountAllocation(BigDecimal invoiceDiscountAllocation)
-
withItemId
public PurchaseInvoiceLine withItemId(String itemId)
-
withLineType
public PurchaseInvoiceLine withLineType(String lineType)
-
getNetAmount
public Optional<BigDecimal> getNetAmount()
-
withNetAmount
public PurchaseInvoiceLine withNetAmount(BigDecimal netAmount)
-
getNetAmountIncludingTax
public Optional<BigDecimal> getNetAmountIncludingTax()
-
withNetAmountIncludingTax
public PurchaseInvoiceLine withNetAmountIncludingTax(BigDecimal netAmountIncludingTax)
-
getNetTaxAmount
public Optional<BigDecimal> getNetTaxAmount()
-
withNetTaxAmount
public PurchaseInvoiceLine withNetTaxAmount(BigDecimal netTaxAmount)
-
getQuantity
public Optional<BigDecimal> getQuantity()
-
withQuantity
public PurchaseInvoiceLine withQuantity(BigDecimal quantity)
-
withSequence
public PurchaseInvoiceLine withSequence(Integer sequence)
-
withTaxCode
public PurchaseInvoiceLine withTaxCode(String taxCode)
-
getTaxPercent
public Optional<BigDecimal> getTaxPercent()
-
withTaxPercent
public PurchaseInvoiceLine withTaxPercent(BigDecimal taxPercent)
-
getTotalTaxAmount
public Optional<BigDecimal> getTotalTaxAmount()
-
withTotalTaxAmount
public PurchaseInvoiceLine withTotalTaxAmount(BigDecimal totalTaxAmount)
-
getUnitCost
public Optional<BigDecimal> getUnitCost()
-
withUnitCost
public PurchaseInvoiceLine withUnitCost(BigDecimal unitCost)
-
withUnmappedField
public PurchaseInvoiceLine 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 PurchaseInvoiceLine patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public PurchaseInvoiceLine put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-