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

public class ProductSales extends VdmEntity<ProductSales>
Basic Sales Data

Original entity name from the Odata EDM: A_ProductSalesType

  • Field Details

    • ALL_FIELDS

      public static final ProductSalesSelectable ALL_FIELDS
      Selector for all available fields of ProductSales.
    • PRODUCT

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

      public static final ProductSalesField<String> SALES_STATUS
      Use with available fluent helpers to apply the SalesStatus field to query operations.
    • SALES_STATUS_VALIDITY_DATE

      public static final ProductSalesField<LocalDateTime> SALES_STATUS_VALIDITY_DATE
      Use with available fluent helpers to apply the SalesStatusValidityDate field to query operations.
    • TAX_CLASSIFICATION

      public static final ProductSalesField<String> TAX_CLASSIFICATION
      Use with available fluent helpers to apply the TaxClassification field to query operations.
    • TRANSPORTATION_GROUP

      public static final ProductSalesField<String> TRANSPORTATION_GROUP
      Use with available fluent helpers to apply the TransportationGroup field to query operations.
  • Constructor Details

    • ProductSales

      public ProductSales()
    • ProductSales

      public ProductSales(@Nullable String product, @Nullable String salesStatus, @Nullable LocalDateTime salesStatusValidityDate, @Nullable String taxClassification, @Nullable String transportationGroup)
  • 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: 40

      Original property name from the Odata EDM: Product

      Parameters:
      product - Material 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 LocalDateTime salesStatusValidityDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: SalesStatusValidityDate

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

      public void setTaxClassification(@Nullable String taxClassification)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: TaxClassification

      Parameters:
      taxClassification - Tax classification of the material
    • 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
    • getEntityCollection

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

      @Nonnull protected Map<String,Object> 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>
    • field

      @Nonnull public static <T> ProductSalesField<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> ProductSalesField<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<ProductSales>
    • setServicePathForFetch

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

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

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

      @Nonnull public static ProductSales.ProductSalesBuilder 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
    • 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 LocalDateTime getSalesStatusValidityDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: SalesStatusValidityDate

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

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

      Original property name from the Odata EDM: TaxClassification

      Returns:
      Tax classification of the material
    • getTransportationGroup

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

      Original property name from the Odata EDM: TransportationGroup

      Returns:
      Transportation Group
    • 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>