Class ProductValuationLedgerAccount

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

public class ProductValuationLedgerAccount extends VdmEntity<ProductValuationLedgerAccount> implements VdmEntitySet
Product Valuation Ledger Account

Original entity name from the Odata EDM: ProductValuationLedgerAccount_Type

  • Field Details

  • Constructor Details

    • ProductValuationLedgerAccount

      public ProductValuationLedgerAccount()
    • ProductValuationLedgerAccount

      public ProductValuationLedgerAccount(@Nullable String product, @Nullable String valuationArea, @Nullable String valuationType, @Nullable String currencyRole, @Nullable String ledger, @Nullable String productPriceControl, @Nullable BigDecimal productPriceUnitQuantity, @Nullable String currency, @Nullable BigDecimal movingAveragePrice, @Nullable BigDecimal standardPrice, @Nullable String baseUnit, @Nullable String baseISOUnit, @Nullable Product to_Product, @Nullable ProductValuation to_ProductValuation)
  • Method Details

    • getType

      @Nonnull public Class<ProductValuationLedgerAccount> getType()
      Specified by:
      getType in class VdmObject<ProductValuationLedgerAccount>
    • 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
    • setCurrencyRole

      public void setCurrencyRole(@Nullable String currencyRole)
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: CurrencyRole

      Parameters:
      currencyRole - External Currency Type and Valuation View
    • setLedger

      public void setLedger(@Nullable String ledger)
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Ledger

      Parameters:
      ledger - The ledger to set.
    • setProductPriceControl

      public void setProductPriceControl(@Nullable String productPriceControl)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ProductPriceControl

      Parameters:
      productPriceControl - Price control indicator
    • setProductPriceUnitQuantity

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

      Original property name from the Odata EDM: ProductPriceUnitQuantity

      Parameters:
      productPriceUnitQuantity - Price unit
    • 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
    • setMovingAveragePrice

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

      Original property name from the Odata EDM: MovingAveragePrice

      Parameters:
      movingAveragePrice - Periodic unit price
    • 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
    • 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<ProductValuationLedgerAccount>
    • getKey

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

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

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

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

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<ProductValuationLedgerAccount>
    • 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 ProductValuationLedgerAccount 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.
    • getProductValuationIfPresent

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

      If the navigation property for an entity ProductValuationLedgerAccount 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 _ProductValuation is already loaded, the result will contain the ProductValuation entity. If not, an Option with result state empty is returned.
    • setProductValuation

      public void setProductValuation(ProductValuation value)
      Overwrites the associated ProductValuation entity for the loaded navigation property _ProductValuation.
      Parameters:
      value - New ProductValuation entity.
    • 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
    • getCurrencyRole

      @Nullable public String getCurrencyRole()
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: CurrencyRole

      Returns:
      External Currency Type and Valuation View
    • getLedger

      @Nullable public String getLedger()
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Ledger

      Returns:
      The ledger contained in this VdmEntity.
    • getProductPriceControl

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

      Original property name from the Odata EDM: ProductPriceControl

      Returns:
      Price control indicator
    • getProductPriceUnitQuantity

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

      Original property name from the Odata EDM: ProductPriceUnitQuantity

      Returns:
      Price unit
    • getCurrency

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

      Original property name from the Odata EDM: Currency

      Returns:
      Currency Key
    • getMovingAveragePrice

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

      Original property name from the Odata EDM: MovingAveragePrice

      Returns:
      Periodic unit price
    • getStandardPrice

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

      Original property name from the Odata EDM: StandardPrice

      Returns:
      Standard price
    • 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<ProductValuationLedgerAccount>
    • equals

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

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

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

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