Package odata.msgraph.client.beta.entity
Class Item
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.Item
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class Item extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
Org.OData.Capabilities.V1.DeleteRestrictions
Deletable = true
Org.OData.Capabilities.V1.InsertRestrictions
Insertable = true
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = true
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classItem.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringbaseUnitOfMeasureIdprotected Booleanblockedprotected StringdisplayNameprotected Stringgtinprotected BigDecimalinventoryprotected StringitemCategoryCodeprotected StringitemCategoryIdprotected OffsetDateTimelastModifiedDateTimeprotected Stringnumberprotected BooleanpriceIncludesTaxprotected StringtaxGroupCodeprotected StringtaxGroupIdprotected Stringtypeprotected BigDecimalunitCostprotected BigDecimalunitPrice-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedItem()
-
Method Summary
-
-
-
Field Detail
-
baseUnitOfMeasureId
protected String baseUnitOfMeasureId
-
blocked
protected Boolean blocked
-
displayName
protected String displayName
-
gtin
protected String gtin
-
inventory
protected BigDecimal inventory
-
itemCategoryCode
protected String itemCategoryCode
-
itemCategoryId
protected String itemCategoryId
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
number
protected String number
-
priceIncludesTax
protected Boolean priceIncludesTax
-
taxGroupCode
protected String taxGroupCode
-
taxGroupId
protected String taxGroupId
-
type
protected String type
-
unitCost
protected BigDecimal unitCost
-
unitPrice
protected BigDecimal unitPrice
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderItem
public static Item.Builder builderItem()
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
-
getInventory
public Optional<BigDecimal> getInventory()
-
withInventory
public Item withInventory(BigDecimal inventory)
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
-
withLastModifiedDateTime
public Item withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
-
getUnitCost
public Optional<BigDecimal> getUnitCost()
-
withUnitCost
public Item withUnitCost(BigDecimal unitCost)
-
getUnitPrice
public Optional<BigDecimal> getUnitPrice()
-
withUnitPrice
public Item withUnitPrice(BigDecimal unitPrice)
-
withUnmappedField
public Item withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getItemCategory
public ItemCategoryRequest getItemCategory()
-
getPicture
public PictureCollectionRequest getPicture()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public Item patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public Item put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-