Package odata.msgraph.client.beta.entity
Class PurchaseInvoice
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.PurchaseInvoice
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class PurchaseInvoice 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 classPurchaseInvoice.Builder
-
Field Summary
Fields Modifier and Type Field Description protected PostalAddressTypebuyFromAddressprotected StringcurrencyCodeprotected StringcurrencyIdprotected BigDecimaldiscountAmountprotected BooleandiscountAppliedBeforeTaxprotected LocalDatedueDateprotected LocalDateinvoiceDateprotected OffsetDateTimelastModifiedDateTimeprotected Stringnumberprotected PostalAddressTypepayToAddressprotected StringpayToContactprotected StringpayToNameprotected StringpayToVendorIdprotected StringpayToVendorNumberprotected BooleanpricesIncludeTaxprotected PostalAddressTypeshipToAddressprotected StringshipToContactprotected StringshipToNameprotected Stringstatusprotected BigDecimaltotalAmountExcludingTaxprotected BigDecimaltotalAmountIncludingTaxprotected BigDecimaltotalTaxAmountprotected StringvendorIdprotected StringvendorInvoiceNumberprotected StringvendorNameprotected StringvendorNumber-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPurchaseInvoice()
-
Method Summary
-
-
-
Field Detail
-
buyFromAddress
protected PostalAddressType buyFromAddress
-
currencyCode
protected String currencyCode
-
currencyId
protected String currencyId
-
discountAmount
protected BigDecimal discountAmount
-
discountAppliedBeforeTax
protected Boolean discountAppliedBeforeTax
-
dueDate
protected LocalDate dueDate
-
invoiceDate
protected LocalDate invoiceDate
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
number
protected String number
-
payToAddress
protected PostalAddressType payToAddress
-
payToContact
protected String payToContact
-
payToName
protected String payToName
-
payToVendorId
protected String payToVendorId
-
payToVendorNumber
protected String payToVendorNumber
-
pricesIncludeTax
protected Boolean pricesIncludeTax
-
shipToAddress
protected PostalAddressType shipToAddress
-
shipToContact
protected String shipToContact
-
shipToName
protected String shipToName
-
status
protected String status
-
totalAmountExcludingTax
protected BigDecimal totalAmountExcludingTax
-
totalAmountIncludingTax
protected BigDecimal totalAmountIncludingTax
-
totalTaxAmount
protected BigDecimal totalTaxAmount
-
vendorId
protected String vendorId
-
vendorInvoiceNumber
protected String vendorInvoiceNumber
-
vendorName
protected String vendorName
-
vendorNumber
protected String vendorNumber
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderPurchaseInvoice
public static PurchaseInvoice.Builder builderPurchaseInvoice()
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
-
getBuyFromAddress
public Optional<PostalAddressType> getBuyFromAddress()
-
withBuyFromAddress
public PurchaseInvoice withBuyFromAddress(PostalAddressType buyFromAddress)
-
withCurrencyCode
public PurchaseInvoice withCurrencyCode(String currencyCode)
-
withCurrencyId
public PurchaseInvoice withCurrencyId(String currencyId)
-
getDiscountAmount
public Optional<BigDecimal> getDiscountAmount()
-
withDiscountAmount
public PurchaseInvoice withDiscountAmount(BigDecimal discountAmount)
-
withDiscountAppliedBeforeTax
public PurchaseInvoice withDiscountAppliedBeforeTax(Boolean discountAppliedBeforeTax)
-
withDueDate
public PurchaseInvoice withDueDate(LocalDate dueDate)
-
withInvoiceDate
public PurchaseInvoice withInvoiceDate(LocalDate invoiceDate)
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
-
withLastModifiedDateTime
public PurchaseInvoice withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
-
withNumber
public PurchaseInvoice withNumber(String number)
-
getPayToAddress
public Optional<PostalAddressType> getPayToAddress()
-
withPayToAddress
public PurchaseInvoice withPayToAddress(PostalAddressType payToAddress)
-
withPayToContact
public PurchaseInvoice withPayToContact(String payToContact)
-
withPayToName
public PurchaseInvoice withPayToName(String payToName)
-
withPayToVendorId
public PurchaseInvoice withPayToVendorId(String payToVendorId)
-
withPayToVendorNumber
public PurchaseInvoice withPayToVendorNumber(String payToVendorNumber)
-
withPricesIncludeTax
public PurchaseInvoice withPricesIncludeTax(Boolean pricesIncludeTax)
-
getShipToAddress
public Optional<PostalAddressType> getShipToAddress()
-
withShipToAddress
public PurchaseInvoice withShipToAddress(PostalAddressType shipToAddress)
-
withShipToContact
public PurchaseInvoice withShipToContact(String shipToContact)
-
withShipToName
public PurchaseInvoice withShipToName(String shipToName)
-
withStatus
public PurchaseInvoice withStatus(String status)
-
getTotalAmountExcludingTax
public Optional<BigDecimal> getTotalAmountExcludingTax()
-
withTotalAmountExcludingTax
public PurchaseInvoice withTotalAmountExcludingTax(BigDecimal totalAmountExcludingTax)
-
getTotalAmountIncludingTax
public Optional<BigDecimal> getTotalAmountIncludingTax()
-
withTotalAmountIncludingTax
public PurchaseInvoice withTotalAmountIncludingTax(BigDecimal totalAmountIncludingTax)
-
getTotalTaxAmount
public Optional<BigDecimal> getTotalTaxAmount()
-
withTotalTaxAmount
public PurchaseInvoice withTotalTaxAmount(BigDecimal totalTaxAmount)
-
withVendorId
public PurchaseInvoice withVendorId(String vendorId)
-
withVendorInvoiceNumber
public PurchaseInvoice withVendorInvoiceNumber(String vendorInvoiceNumber)
-
withVendorName
public PurchaseInvoice withVendorName(String vendorName)
-
withVendorNumber
public PurchaseInvoice withVendorNumber(String vendorNumber)
-
withUnmappedField
public PurchaseInvoice withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getCurrency
public CurrencyRequest getCurrency()
-
getPurchaseInvoiceLines
public PurchaseInvoiceLineCollectionRequest getPurchaseInvoiceLines()
-
getVendor
public VendorRequest getVendor()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public PurchaseInvoice patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public PurchaseInvoice put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
post
public com.github.davidmoten.odata.client.ActionRequestNoReturn post()
-
-