java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<ProductMLPrices>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.productmaster.ProductMLPrices

public class ProductMLPrices extends VdmEntity<ProductMLPrices>
Material Ledger Prices

Original entity name from the Odata EDM: A_ProductMLPricesType

  • Field Details

    • ALL_FIELDS

      public static final ProductMLPricesSelectable ALL_FIELDS
      Selector for all available fields of ProductMLPrices.
    • PRODUCT

      public static final ProductMLPricesField<String> PRODUCT
      Use with available fluent helpers to apply the Product field to query operations.
    • VALUATION_AREA

      public static final ProductMLPricesField<String> VALUATION_AREA
      Use with available fluent helpers to apply the ValuationArea field to query operations.
    • VALUATION_TYPE

      public static final ProductMLPricesField<String> VALUATION_TYPE
      Use with available fluent helpers to apply the ValuationType field to query operations.
    • CURRENCY_ROLE

      public static final ProductMLPricesField<String> CURRENCY_ROLE
      Use with available fluent helpers to apply the CurrencyRole field to query operations.
    • CURRENCY

      public static final ProductMLPricesField<String> CURRENCY
      Use with available fluent helpers to apply the Currency field to query operations.
    • FUTURE_PRICE

      public static final ProductMLPricesField<BigDecimal> FUTURE_PRICE
      Use with available fluent helpers to apply the FuturePrice field to query operations.
    • FUTURE_PRICE_VALIDITY_START_DATE

      public static final ProductMLPricesField<LocalDateTime> FUTURE_PRICE_VALIDITY_START_DATE
      Use with available fluent helpers to apply the FuturePriceValidityStartDate field to query operations.
    • PLANNED_PRICE

      public static final ProductMLPricesField<BigDecimal> PLANNED_PRICE
      Use with available fluent helpers to apply the PlannedPrice field to query operations.
  • Constructor Details

    • ProductMLPrices

      public ProductMLPrices()
    • ProductMLPrices

      public ProductMLPrices(@Nullable String product, @Nullable String valuationArea, @Nullable String valuationType, @Nullable String currencyRole, @Nullable String currency, @Nullable BigDecimal futurePrice, @Nullable LocalDateTime futurePriceValidityStartDate, @Nullable BigDecimal plannedPrice)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: Product

      Parameters:
      product - Material 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
    • setCurrency

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

      Original property name from the Odata EDM: Currency

      Parameters:
      currency - Currency Key
    • setFuturePrice

      public void setFuturePrice(@Nullable BigDecimal futurePrice)
      Constraints: Not nullable, Precision: 12, Scale: 3

      Original property name from the Odata EDM: FuturePrice

      Parameters:
      futurePrice - Future Price
    • setFuturePriceValidityStartDate

      public void setFuturePriceValidityStartDate(@Nullable LocalDateTime futurePriceValidityStartDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: FuturePriceValidityStartDate

      Parameters:
      futurePriceValidityStartDate - Date from Which a Future Valuation Price Is to Be Valid
    • setPlannedPrice

      public void setPlannedPrice(@Nullable BigDecimal plannedPrice)
      Constraints: Not nullable, Precision: 24, Scale: 3

      Original property name from the Odata EDM: PlannedPrice

      Parameters:
      plannedPrice - Cost
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> ProductMLPricesField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      Parameters:
      fieldName - The name of the extension field as returned by the OData service.
      fieldType - The Java type to use for the extension field when performing value comparisons.
      Returns:
      A representation of an extension field from this entity.
    • field

      @Nonnull public static <T, DomainT> ProductMLPricesField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      DomainT - The type of the extension field as returned by the OData service.
      Parameters:
      typeConverter - A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the field
      fieldName - The name of the extension field as returned by the OData service.
      Returns:
      A representation of an extension field from this entity, holding a reference to the given TypeConverter.
    • getDestinationForFetch

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<ProductMLPrices>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<ProductMLPrices>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<ProductMLPrices>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<ProductMLPrices>
    • builder

      @Nonnull public static ProductMLPrices.ProductMLPricesBuilder builder()
    • getProduct

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

      Original property name from the Odata EDM: Product

      Returns:
      Material 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
    • getCurrency

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

      Original property name from the Odata EDM: Currency

      Returns:
      Currency Key
    • getFuturePrice

      @Nullable public BigDecimal getFuturePrice()
      Constraints: Not nullable, Precision: 12, Scale: 3

      Original property name from the Odata EDM: FuturePrice

      Returns:
      Future Price
    • getFuturePriceValidityStartDate

      @Nullable public LocalDateTime getFuturePriceValidityStartDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: FuturePriceValidityStartDate

      Returns:
      Date from Which a Future Valuation Price Is to Be Valid
    • getPlannedPrice

      @Nullable public BigDecimal getPlannedPrice()
      Constraints: Not nullable, Precision: 24, Scale: 3

      Original property name from the Odata EDM: PlannedPrice

      Returns:
      Cost
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<ProductMLPrices>