java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<ProductValuation>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.product.ProductValuation
All Implemented Interfaces:
VdmEntitySet

public class ProductValuation extends VdmEntity<ProductValuation> implements VdmEntitySet
Product Valuation

Original entity name from the Odata EDM: ProductValuation_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

      @Nonnull public Class<ProductValuation> getType()
      Specified by:
      getType in class VdmObject<ProductValuation>
    • setProduct

      public void setProduct(@Nullable String product)
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Product

      Parameters:
      product - Product Number
    • setValuationArea

      public void setValuationArea(@Nullable String valuationArea)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ValuationArea

      Parameters:
      valuationArea - Valuation Area
    • setValuationType

      public void setValuationType(@Nullable String valuationType)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ValuationType

      Parameters:
      valuationType - Valuation Type
    • setValuationClass

      public void setValuationClass(@Nullable String valuationClass)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ValuationClass

      Parameters:
      valuationClass - Valuation Class
    • setPriceDeterminationControl

      public void setPriceDeterminationControl(@Nullable String priceDeterminationControl)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PriceDeterminationControl

      Parameters:
      priceDeterminationControl - Material Price Determination: Control
    • setStandardPrice

      public void setStandardPrice(@Nullable BigDecimal standardPrice)
      Constraints: Not nullable, Precision: 11, Scale: 0

      Original property name from the Odata EDM: StandardPrice

      Parameters:
      standardPrice - Standard price
    • setProductPriceUnitQuantity

      public void setProductPriceUnitQuantity(@Nullable BigDecimal productPriceUnitQuantity)
      Constraints: Not nullable, Precision: 5

      Original property name from the Odata EDM: ProductPriceUnitQuantity

      Parameters:
      productPriceUnitQuantity - Price unit
    • setInventoryValuationProcedure

      public void setInventoryValuationProcedure(@Nullable String inventoryValuationProcedure)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: InventoryValuationProcedure

      Parameters:
      inventoryValuationProcedure - Price Control
    • setMovingAveragePrice

      public void setMovingAveragePrice(@Nullable BigDecimal movingAveragePrice)
      Constraints: Not nullable, Precision: 11, Scale: 0

      Original property name from the Odata EDM: MovingAveragePrice

      Parameters:
      movingAveragePrice - Moving Average Price/Periodic Unit Price
    • setValuationCategory

      public void setValuationCategory(@Nullable String valuationCategory)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ValuationCategory

      Parameters:
      valuationCategory - Valuation Category
    • setProductUsageType

      public void setProductUsageType(@Nullable String productUsageType)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ProductUsageType

      Parameters:
      productUsageType - Usage of the Product
    • setProductOriginType

      public void setProductOriginType(@Nullable String productOriginType)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ProductOriginType

      Parameters:
      productOriginType - Origin of the Product
    • setIsProducedInhouse

      public void setIsProducedInhouse(@Nullable Boolean isProducedInhouse)
      Constraints: Not nullable

      Original property name from the Odata EDM: IsProducedInhouse

      Parameters:
      isProducedInhouse - Produced in-house
    • setIsMarkedForDeletion

      public void setIsMarkedForDeletion(@Nullable Boolean isMarkedForDeletion)
      Constraints: Not nullable

      Original property name from the Odata EDM: IsMarkedForDeletion

      Parameters:
      isMarkedForDeletion - Deletion flag for all material data of a valuation type
    • setValuationClassSalesOrderStock

      public void setValuationClassSalesOrderStock(@Nullable String valuationClassSalesOrderStock)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ValuationClassSalesOrderStock

      Parameters:
      valuationClassSalesOrderStock - Valuation Class for Sales Order Stock
    • setProjectStockValuationClass

      public void setProjectStockValuationClass(@Nullable String projectStockValuationClass)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ProjectStockValuationClass

      Parameters:
      projectStockValuationClass - Valuation Class for Project Stock
    • setCurrency

      public void setCurrency(@Nullable String currency)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: Currency

      Parameters:
      currency - Currency Key
    • setBaseUnit

      public void setBaseUnit(@Nullable String baseUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: BaseUnit

      Parameters:
      baseUnit - Base Unit of Measure
    • setBaseISOUnit

      public void setBaseISOUnit(@Nullable String baseISOUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: BaseISOUnit

      Parameters:
      baseISOUnit - Base unit of measure in ISO code
    • getEntityCollection

      protected String getEntityCollection()
      Specified by:
      getEntityCollection in class VdmEntity<ProductValuation>
    • getKey

      @Nonnull protected ODataEntityKey getKey()
      Overrides:
      getKey in class VdmObject<ProductValuation>
    • toMapOfFields

      @Nonnull protected Map<String,Object> toMapOfFields()
      Overrides:
      toMapOfFields in class VdmObject<ProductValuation>
    • fromMap

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<ProductValuation>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<ProductValuation>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<ProductValuation>
    • getProductIfPresent

      @Nonnull public io.vavr.control.Option<Product> getProductIfPresent()
      Retrieval of associated Product entity (one to one). This corresponds to the OData navigation property _Product.

      If the navigation property for an entity ProductValuation has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property _Product is already loaded, the result will contain the Product entity. If not, an Option with result state empty is returned.
    • setProduct

      public void setProduct(Product value)
      Overwrites the associated Product entity for the loaded navigation property _Product.
      Parameters:
      value - New Product entity.
    • getProductValuationAccountingIfPresent

      @Nonnull public io.vavr.control.Option<ProductValuationAccounting> getProductValuationAccountingIfPresent()
      Retrieval of associated ProductValuationAccounting entity (one to one). This corresponds to the OData navigation property _ProductValuationAccounting.

      If the navigation property for an entity ProductValuation has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property _ProductValuationAccounting is already loaded, the result will contain the ProductValuationAccounting entity. If not, an Option with result state empty is returned.
    • setProductValuationAccounting

      public void setProductValuationAccounting(ProductValuationAccounting value)
      Overwrites the associated ProductValuationAccounting entity for the loaded navigation property _ProductValuationAccounting.
      Parameters:
      value - New ProductValuationAccounting entity.
    • getProductValuationCostingIfPresent

      @Nonnull public io.vavr.control.Option<ProductValuationCosting> getProductValuationCostingIfPresent()
      Retrieval of associated ProductValuationCosting entity (one to one). This corresponds to the OData navigation property _ProductValuationCosting.

      If the navigation property for an entity ProductValuation has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property _ProductValuationCosting is already loaded, the result will contain the ProductValuationCosting entity. If not, an Option with result state empty is returned.
    • setProductValuationCosting

      public void setProductValuationCosting(ProductValuationCosting value)
      Overwrites the associated ProductValuationCosting entity for the loaded navigation property _ProductValuationCosting.
      Parameters:
      value - New ProductValuationCosting entity.
    • getProductValuationLedgerAccountIfPresent

      @Nonnull public io.vavr.control.Option<List<ProductValuationLedgerAccount>> getProductValuationLedgerAccountIfPresent()
      Retrieval of associated ProductValuationLedgerAccount entities (one to many). This corresponds to the OData navigation property _ProductValuationLedgerAccount.

      If the navigation property for an entity ProductValuation has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property _ProductValuationLedgerAccount is already loaded, the result will contain the ProductValuationLedgerAccount entities. If not, an Option with result state empty is returned.
    • setProductValuationLedgerAccount

      public void setProductValuationLedgerAccount(@Nonnull List<ProductValuationLedgerAccount> value)
      Overwrites the list of associated ProductValuationLedgerAccount entities for the loaded navigation property _ProductValuationLedgerAccount.

      If the navigation property _ProductValuationLedgerAccount of a queried ProductValuation is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      value - List of ProductValuationLedgerAccount entities.
    • addProductValuationLedgerAccount

      public void addProductValuationLedgerAccount(ProductValuationLedgerAccount... entity)
      Adds elements to the list of associated ProductValuationLedgerAccount entities. This corresponds to the OData navigation property _ProductValuationLedgerAccount.

      If the navigation property _ProductValuationLedgerAccount of a queried ProductValuation is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      entity - Array of ProductValuationLedgerAccount entities.
    • getProductValuationLedgerPricesIfPresent

      @Nonnull public io.vavr.control.Option<List<ProductValuationLedgerPrices>> getProductValuationLedgerPricesIfPresent()
      Retrieval of associated ProductValuationLedgerPrices entities (one to many). This corresponds to the OData navigation property _ProductValuationLedgerPrices.

      If the navigation property for an entity ProductValuation has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property _ProductValuationLedgerPrices is already loaded, the result will contain the ProductValuationLedgerPrices entities. If not, an Option with result state empty is returned.
    • setProductValuationLedgerPrices

      public void setProductValuationLedgerPrices(@Nonnull List<ProductValuationLedgerPrices> value)
      Overwrites the list of associated ProductValuationLedgerPrices entities for the loaded navigation property _ProductValuationLedgerPrices.

      If the navigation property _ProductValuationLedgerPrices of a queried ProductValuation is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      value - List of ProductValuationLedgerPrices entities.
    • addProductValuationLedgerPrices

      public void addProductValuationLedgerPrices(ProductValuationLedgerPrices... entity)
      Adds elements to the list of associated ProductValuationLedgerPrices entities. This corresponds to the OData navigation property _ProductValuationLedgerPrices.

      If the navigation property _ProductValuationLedgerPrices of a queried ProductValuation is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      entity - Array of ProductValuationLedgerPrices entities.
    • builder

      @Nonnull public static ProductValuation.ProductValuationBuilder builder()
    • getProduct

      @Nullable public String getProduct()
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Product

      Returns:
      Product Number
    • getValuationArea

      @Nullable public String getValuationArea()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ValuationArea

      Returns:
      Valuation Area
    • getValuationType

      @Nullable public String getValuationType()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ValuationType

      Returns:
      Valuation Type
    • getValuationClass

      @Nullable public String getValuationClass()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ValuationClass

      Returns:
      Valuation Class
    • getPriceDeterminationControl

      @Nullable public String getPriceDeterminationControl()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PriceDeterminationControl

      Returns:
      Material Price Determination: Control
    • getStandardPrice

      @Nullable public BigDecimal getStandardPrice()
      Constraints: Not nullable, Precision: 11, Scale: 0

      Original property name from the Odata EDM: StandardPrice

      Returns:
      Standard price
    • getProductPriceUnitQuantity

      @Nullable public BigDecimal getProductPriceUnitQuantity()
      Constraints: Not nullable, Precision: 5

      Original property name from the Odata EDM: ProductPriceUnitQuantity

      Returns:
      Price unit
    • getInventoryValuationProcedure

      @Nullable public String getInventoryValuationProcedure()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: InventoryValuationProcedure

      Returns:
      Price Control
    • getMovingAveragePrice

      @Nullable public BigDecimal getMovingAveragePrice()
      Constraints: Not nullable, Precision: 11, Scale: 0

      Original property name from the Odata EDM: MovingAveragePrice

      Returns:
      Moving Average Price/Periodic Unit Price
    • getValuationCategory

      @Nullable public String getValuationCategory()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ValuationCategory

      Returns:
      Valuation Category
    • getProductUsageType

      @Nullable public String getProductUsageType()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ProductUsageType

      Returns:
      Usage of the Product
    • getProductOriginType

      @Nullable public String getProductOriginType()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ProductOriginType

      Returns:
      Origin of the Product
    • getIsProducedInhouse

      @Nullable public Boolean getIsProducedInhouse()
      Constraints: Not nullable

      Original property name from the Odata EDM: IsProducedInhouse

      Returns:
      Produced in-house
    • getIsMarkedForDeletion

      @Nullable public Boolean getIsMarkedForDeletion()
      Constraints: Not nullable

      Original property name from the Odata EDM: IsMarkedForDeletion

      Returns:
      Deletion flag for all material data of a valuation type
    • getValuationClassSalesOrderStock

      @Nullable public String getValuationClassSalesOrderStock()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ValuationClassSalesOrderStock

      Returns:
      Valuation Class for Sales Order Stock
    • getProjectStockValuationClass

      @Nullable public String getProjectStockValuationClass()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ProjectStockValuationClass

      Returns:
      Valuation Class for Project Stock
    • getCurrency

      @Nullable public String getCurrency()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: Currency

      Returns:
      Currency Key
    • getBaseUnit

      @Nullable public String getBaseUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: BaseUnit

      Returns:
      Base Unit of Measure
    • getBaseISOUnit

      @Nullable public String getBaseISOUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: BaseISOUnit

      Returns:
      Base unit of measure in ISO code
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class VdmObject<ProductValuation>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class VdmEntity<ProductValuation>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Overrides:
      canEqual in class VdmEntity<ProductValuation>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<ProductValuation>
    • getOdataType

      public String getOdataType()
      Specified by:
      getOdataType in class VdmObject<ProductValuation>