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

public class ProductSales extends VdmEntity<ProductSales> implements VdmEntitySet
Product Sales

Original entity name from the Odata EDM: ProductSales_Type

  • Field Details

  • Constructor Details

    • ProductSales

      public ProductSales()
    • ProductSales

      public ProductSales(@Nullable String product, @Nullable String salesStatus, @Nullable LocalDate salesStatusValidityDate, @Nullable String transportationGroup, @Nullable String packagingProductType, @Nullable BigDecimal allowedPackagingWeightQty, @Nullable String allowedPackagingWeightQtyUnit, @Nullable String allwdPackagingWeightQtyISOUnit, @Nullable BigDecimal allowedPackagingVolumeQty, @Nullable String allowedPackagingVolumeQtyUnit, @Nullable String allwdPackagingVolumeQtyISOUnit, @Nullable BigDecimal maximumLevelByVolumeInPercent, @Nullable BigDecimal excessWeightToleranceValue, @Nullable Boolean packggProductIsClosedPackaging, @Nullable Short productStackingFactor, @Nullable BigDecimal prodExcessVolumeToleranceValue, @Nullable Product to_Product)
  • Method Details

    • getType

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

      public void setSalesStatus(@Nullable String salesStatus)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: SalesStatus

      Parameters:
      salesStatus - Cross-Distribution-Chain Material Status
    • setSalesStatusValidityDate

      public void setSalesStatusValidityDate(@Nullable LocalDate salesStatusValidityDate)
      Constraints: Nullable

      Original property name from the Odata EDM: SalesStatusValidityDate

      Parameters:
      salesStatusValidityDate - Date from which the X-distr.-chain Product status is valid
    • setTransportationGroup

      public void setTransportationGroup(@Nullable String transportationGroup)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: TransportationGroup

      Parameters:
      transportationGroup - Transportation Group
    • setPackagingProductType

      public void setPackagingProductType(@Nullable String packagingProductType)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: PackagingProductType

      Parameters:
      packagingProductType - Packaging Material Type
    • setAllowedPackagingWeightQty

      public void setAllowedPackagingWeightQty(@Nullable BigDecimal allowedPackagingWeightQty)
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: AllowedPackagingWeightQty

      Parameters:
      allowedPackagingWeightQty - Allowed packaging weight
    • setAllowedPackagingWeightQtyUnit

      public void setAllowedPackagingWeightQtyUnit(@Nullable String allowedPackagingWeightQtyUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: AllowedPackagingWeightQtyUnit

      Parameters:
      allowedPackagingWeightQtyUnit - Unit of weight (allowed packaging weight)
    • setAllwdPackagingWeightQtyISOUnit

      public void setAllwdPackagingWeightQtyISOUnit(@Nullable String allwdPackagingWeightQtyISOUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: AllwdPackagingWeightQtyISOUnit

      Parameters:
      allwdPackagingWeightQtyISOUnit - ISO Code for Unit of Measurement
    • setAllowedPackagingVolumeQty

      public void setAllowedPackagingVolumeQty(@Nullable BigDecimal allowedPackagingVolumeQty)
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: AllowedPackagingVolumeQty

      Parameters:
      allowedPackagingVolumeQty - Allowed packaging volume
    • setAllowedPackagingVolumeQtyUnit

      public void setAllowedPackagingVolumeQtyUnit(@Nullable String allowedPackagingVolumeQtyUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: AllowedPackagingVolumeQtyUnit

      Parameters:
      allowedPackagingVolumeQtyUnit - Volume unit (allowed packaging volume)
    • setAllwdPackagingVolumeQtyISOUnit

      public void setAllwdPackagingVolumeQtyISOUnit(@Nullable String allwdPackagingVolumeQtyISOUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: AllwdPackagingVolumeQtyISOUnit

      Parameters:
      allwdPackagingVolumeQtyISOUnit - ISO Code for Unit of Measurement
    • setMaximumLevelByVolumeInPercent

      public void setMaximumLevelByVolumeInPercent(@Nullable BigDecimal maximumLevelByVolumeInPercent)
      Constraints: Not nullable, Precision: 3

      Original property name from the Odata EDM: MaximumLevelByVolumeInPercent

      Parameters:
      maximumLevelByVolumeInPercent - Maximum level (by volume)
    • setExcessWeightToleranceValue

      public void setExcessWeightToleranceValue(@Nullable BigDecimal excessWeightToleranceValue)
      Constraints: Not nullable, Precision: 3, Scale: 1

      Original property name from the Odata EDM: ExcessWeightToleranceValue

      Parameters:
      excessWeightToleranceValue - Excess Weight Tolerance for Handling unit
    • setPackggProductIsClosedPackaging

      public void setPackggProductIsClosedPackaging(@Nullable Boolean packggProductIsClosedPackaging)
      Constraints: Not nullable

      Original property name from the Odata EDM: PackggProductIsClosedPackaging

      Parameters:
      packggProductIsClosedPackaging - Packaging Material is Closed Packaging
    • setProductStackingFactor

      public void setProductStackingFactor(@Nullable Short productStackingFactor)
      Constraints: Not nullable

      Original property name from the Odata EDM: ProductStackingFactor

      Parameters:
      productStackingFactor - Stacking factor
    • setProdExcessVolumeToleranceValue

      public void setProdExcessVolumeToleranceValue(@Nullable BigDecimal prodExcessVolumeToleranceValue)
      Constraints: Not nullable, Precision: 3, Scale: 1

      Original property name from the Odata EDM: ProdExcessVolumeToleranceValue

      Parameters:
      prodExcessVolumeToleranceValue - Excess Volume Tolerance of the Handling Unit
    • getEntityCollection

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

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

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

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

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

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

      @Nonnull public static ProductSales.ProductSalesBuilder 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
    • getSalesStatus

      @Nullable public String getSalesStatus()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: SalesStatus

      Returns:
      Cross-Distribution-Chain Material Status
    • getSalesStatusValidityDate

      @Nullable public LocalDate getSalesStatusValidityDate()
      Constraints: Nullable

      Original property name from the Odata EDM: SalesStatusValidityDate

      Returns:
      Date from which the X-distr.-chain Product status is valid
    • getTransportationGroup

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

      Original property name from the Odata EDM: TransportationGroup

      Returns:
      Transportation Group
    • getPackagingProductType

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

      Original property name from the Odata EDM: PackagingProductType

      Returns:
      Packaging Material Type
    • getAllowedPackagingWeightQty

      @Nullable public BigDecimal getAllowedPackagingWeightQty()
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: AllowedPackagingWeightQty

      Returns:
      Allowed packaging weight
    • getAllowedPackagingWeightQtyUnit

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

      Original property name from the Odata EDM: AllowedPackagingWeightQtyUnit

      Returns:
      Unit of weight (allowed packaging weight)
    • getAllwdPackagingWeightQtyISOUnit

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

      Original property name from the Odata EDM: AllwdPackagingWeightQtyISOUnit

      Returns:
      ISO Code for Unit of Measurement
    • getAllowedPackagingVolumeQty

      @Nullable public BigDecimal getAllowedPackagingVolumeQty()
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: AllowedPackagingVolumeQty

      Returns:
      Allowed packaging volume
    • getAllowedPackagingVolumeQtyUnit

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

      Original property name from the Odata EDM: AllowedPackagingVolumeQtyUnit

      Returns:
      Volume unit (allowed packaging volume)
    • getAllwdPackagingVolumeQtyISOUnit

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

      Original property name from the Odata EDM: AllwdPackagingVolumeQtyISOUnit

      Returns:
      ISO Code for Unit of Measurement
    • getMaximumLevelByVolumeInPercent

      @Nullable public BigDecimal getMaximumLevelByVolumeInPercent()
      Constraints: Not nullable, Precision: 3

      Original property name from the Odata EDM: MaximumLevelByVolumeInPercent

      Returns:
      Maximum level (by volume)
    • getExcessWeightToleranceValue

      @Nullable public BigDecimal getExcessWeightToleranceValue()
      Constraints: Not nullable, Precision: 3, Scale: 1

      Original property name from the Odata EDM: ExcessWeightToleranceValue

      Returns:
      Excess Weight Tolerance for Handling unit
    • getPackggProductIsClosedPackaging

      @Nullable public Boolean getPackggProductIsClosedPackaging()
      Constraints: Not nullable

      Original property name from the Odata EDM: PackggProductIsClosedPackaging

      Returns:
      Packaging Material is Closed Packaging
    • getProductStackingFactor

      @Nullable public Short getProductStackingFactor()
      Constraints: Not nullable

      Original property name from the Odata EDM: ProductStackingFactor

      Returns:
      Stacking factor
    • getProdExcessVolumeToleranceValue

      @Nullable public BigDecimal getProdExcessVolumeToleranceValue()
      Constraints: Not nullable, Precision: 3, Scale: 1

      Original property name from the Odata EDM: ProdExcessVolumeToleranceValue

      Returns:
      Excess Volume Tolerance of the Handling Unit
    • toString

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

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

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

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

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